/* Import brand fonts and CSS variables */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&family=Oswald:wght@400;600&display=swap');

:root{
    --brand: #8ab04f;
    --brand-dark: #91ac5f;
    --text: #172914;
    --muted: #6b6b6b;
}

/* Basic reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html,body { height: 100%; }
body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    line-height: 1.5;
    color: var(--text);
    background: #fafafa;
    -webkit-font-smoothing: antialiased;
}

/* Make sizing include padding/border to avoid unexpected overflow */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Logo / brand */
.logo h2 {
    font-family: 'Oswald', 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--brand);
    margin:0;
    text-transform:uppercase;
    letter-spacing: 2px;
}

/* Container */
.container {
    width: 92%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 40px 0;
}

/* Header / Navbar */
header { background: #fff; border-bottom: 1px solid rgba(138,176,79,0.12); position: sticky; top: 0; z-index: 50; }
.navbar .nav-container { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 0; }
.logo h2 { font-size: 1.25rem; color:var(--brand); margin: 20px; }
.nav-menu { list-style:none; display:flex; gap:18px; align-items:center; }
.nav-menu a { color:var(--text); text-decoration:none; font-weight:600; padding:8px 10px; border-radius:6px; transition: background .15s; }
.nav-menu a:hover { background: rgba(138,176,79,0.12); }

/* Hamburger (mobile) */
.hamburger { display:none; flex-direction:column; gap:4px; cursor:pointer; padding:8px; }
.hamburger span { display:block; width:22px; height:2px; background:#333; border-radius:2px; }

/* Hero */
.hero { background: linear-gradient(180deg, #eef6fb 0%, #ffffff 100%); padding:80px 0; text-align:center; }
.hero-content { max-width:900px; margin:0 auto; }
.hero h1 { font-size:2rem; color:var(--brand-dark); margin-bottom:12px; }
.hero p { font-size:1.05rem; color:#444; margin-bottom:18px; }
.hero-buttons { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }

/* Buttons */
.btn { display:inline-block; padding:10px 18px; border-radius:6px; text-decoration:none; font-weight:700; cursor:pointer; }
.btn-primary { background:var(--brand); color:#fff; border:1px solid var(--brand); }
.btn-primary:hover { background:var(--brand-dark); border-color:var(--brand-dark); }
.btn-secondary { background:#fff; color:var(--brand); border:1px solid var(--brand); }
.btn-secondary:hover { background:#f7fbf6; }

/* About */
.about .features { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:18px; }
.feature { background:#fff; border:1px solid #eee; padding:18px; border-radius:8px; text-align:center; }
.feature i { font-size:1.6rem; color:var(--brand); margin-bottom:8px; display:block; }
.feature h4 { margin-bottom:6px; color:var(--brand-dark); }

/* Products */
.products h2 { text-align:center; margin-bottom:20px; }
.product-categories { display:flex; gap:28px; flex-direction:column; }
.category h3 { color:var(--brand-dark); margin-bottom:12px; display:flex; align-items:center; gap:8px; font-size:1.15rem; }
.product-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.product-card { background:#fff; border:1px solid #eee; padding:12px; border-radius:8px; text-align:center; transition:transform .12s ease, box-shadow .12s ease; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 8px 24px rgba(138,176,79,0.08); }
.product-card img { width:100%; height:160px; object-fit:cover; border-radius:6px; display:block; margin-bottom:10px; }
.product-card h4 { color:var(--brand-dark); margin-bottom:6px; font-size:1rem; }
.product-card p { color:#555; font-size:0.95rem; }

/* Services */
.services-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; margin-top:18px; }
.service-card { background:#fff; padding:20px; border-radius:8px; border:1px solid #eee; text-align:center; }
.service-card i { font-size:1.6rem; color:var(--brand); margin-bottom:8px; }

/* Contact */
.contact-content { display:grid; grid-template-columns: 1fr 1fr; gap:20px; align-items:start; }
.contact-info .contact-item { display:flex; gap:12px; margin-bottom:14px; align-items:flex-start; }
.contact-item i { font-size:1.25rem; color:var(--brand); width:30px; }
.contact-form .form-group { margin-bottom:12px; }
.contact-form input, .contact-form textarea { width:100%; padding:10px 12px; border-radius:6px; border:1px solid #ddd; font-size:0.95rem; }
.btn-primary { display:inline-block; }

/* Maps */
.maps-grid { margin-top:20px; display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.map-card { background:#fff; border:1px solid rgba(138,176,79,0.08); padding:12px; border-radius:8px; }
.map-card h4 { margin-bottom:8px; color:var(--brand-dark); }
.map-card iframe { border-radius:6px; }

/* Footer */
footer { background: var(--brand-dark); color:#fff; padding:28px 0; margin-top:28px; }
.footer-content { display:grid; grid-template-columns:1fr 1fr 1fr; gap:20px; align-items:start; }
.footer-section h4, .footer-section h3 { color:#fff; margin-bottom:8px; }
.footer-section a { color:#fff; text-decoration:none; opacity:0.95; }
.footer-bottom { text-align:center; margin-top:18px; font-size:0.95rem; opacity:0.9; }

/* Animation keyframes */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
@keyframes navSlide { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* Reveal helpers (used by JS) */
.reveal { opacity: 0; transform: translateY(18px); will-change: opacity, transform; transition: opacity .6s cubic-bezier(.2,.9,.3,1), transform .6s cubic-bezier(.2,.9,.3,1); transition-delay: var(--delay, 0ms); }
.reveal.pop { transition-duration: .45s; }
.revealed, .reveal.revealed { opacity: 1; transform: translateY(0); }

/* Pop variant */
.reveal.pop.revealed { animation: pop .45s both; }

/* Nav/menu animations */
.nav-menu.show { animation: navSlide .28s ease both; }
.hamburger span { transition: transform .25s ease, opacity .18s ease; }
.hamburger.active span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2){ opacity: 0; transform: none; }
.hamburger.active span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

/* Micro-interactions */
.product-card:hover { transform: translateY(-8px) scale(1.01); box-shadow: 0 18px 36px rgba(138,176,79,0.06); }
.btn { transition: transform .12s ease, box-shadow .12s ease; }
.btn:active { transform: translateY(1px) scale(.997); }

/* Make sure nav links can animate */
.nav-menu a { transition: opacity .32s cubic-bezier(.2,.9,.3,1), transform .32s cubic-bezier(.2,.9,.3,1); }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal, .nav-menu.show, .hamburger span, .nav-menu a { transition: none !important; animation: none !important; transform: none !important; opacity: 1 !important; }
}

/* Responsive */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns:repeat(3,1fr); }
    .services-grid { grid-template-columns:repeat(2,1fr); }
}

@media (max-width: 768px) {
    .about .features { grid-template-columns:repeat(2,1fr); }
    .product-grid { grid-template-columns:repeat(2,1fr); }
    .contact-content { grid-template-columns:1fr; }
    .maps-grid { grid-template-columns:1fr; }
    .footer-content { grid-template-columns:1fr; }
    .hamburger { display:flex; }
    .nav-menu { display:none; position:absolute; right:16px; top:64px; background:#fff; flex-direction:column; padding:10px; border-radius:8px; box-shadow:0 8px 20px rgba(2,24,36,0.06); }
    .nav-menu.show { display:flex; }
}

@media (max-width: 480px) {
    .product-card img { height:140px; }
    .hero h1 { font-size:1.4rem; }
    .hero { padding:48px 0; }
}

/* Small helpers */
.text-center { text-align:center; }
.muted { color:#6b6b6b; font-size:0.95rem; }