/* --------- CSS Reset (light) --------- */
* { box-sizing: border-box; }
html, body { margin:0; padding:0; }
img { max-width: 100%; height: auto; display: block; }

/* --------- Theme --------- */
:root{
  --green:#2d7a42;
  --green-600:#256a38;
  --text:#162312;
  --muted:#5a6a5a;
  --bg:#ffffff;
  --bg-soft:#f4f8f4;
  --border:#e6efe6;
  --shadow: 0 10px 25px rgba(0,0,0,.07);
  --radius: 14px;
  --container: 1120px;
}

/* --------- Base --------- */
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 16px;
}

/* --------- Header & Nav --------- */
.header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 12px;
}
.brand{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img{ width:42px; height:42px; }
.title{ font-weight:700; font-size:1.05rem; line-height:1.1; }
.subtitle{ font-size:.82rem; color:var(--muted); margin-top:2px; }

/* Menu */
.menu{
  display:flex;
  align-items:center;
  gap:18px;
}
.menu a{
  padding:8px 10px;
  border-radius:10px;
  text-decoration:none;
  color:#1c261b;
  transition: background .2s ease;
}
.menu a:hover{ background:var(--bg-soft); text-decoration:none; }
.menu a.active{ color:var(--green); font-weight:600; }
.menu .cta{
  background:var(--green);
  color:#fff !important;
  padding:10px 14px;
  border-radius:999px;
  box-shadow:var(--shadow);
}
.menu .cta:hover{ background:var(--green-600); }

/* --------- Mobile hamburger (robust) --------- */
/* Hidden on desktop by default */
.menu-toggle{ display:none; }

/* Base button style (used on mobile) */
.menu-toggle{
  position: relative;
  z-index: 1001;                /* above floating elements */
  width:44px; height:44px;
  border-radius:10px;
  border:1px solid var(--border);
  background:#fff;
  align-items:center; justify-content:center;
  cursor:pointer;
}

/* 3 bars drawn with a single span + pseudo elements (works even if spans get reset) */
.menu-toggle .menu-bar{
  position:relative;
  display:block;
  width:22px; height:2px;
  background:#1e2c1c;
  border-radius:2px;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle .menu-bar::before,
.menu-toggle .menu-bar::after{
  content:"";
  position:absolute; left:0;
  width:22px; height:2px;
  background:#1e2c1c;
  border-radius:2px;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle .menu-bar::before{ top:-6px; }
.menu-toggle .menu-bar::after { top: 6px; }

/* Toggle -> X */
.menu-toggle.is-open .menu-bar{ transform: rotate(45deg); }
.menu-toggle.is-open .menu-bar::before{ opacity:0; }
.menu-toggle.is-open .menu-bar::after{ transform: rotate(-90deg) translateY(0); }

/* --------- Hero --------- */
.hero.container{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:28px;
  padding-block: clamp(18px, 4vw, 42px);
}
.card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:clamp(16px, 3.5vw, 28px);
  box-shadow:var(--shadow);
}
.hero h1{
  font-size: clamp(1.4rem, 2.6vw, 2.4rem);
  line-height:1.2;
  margin:0 0 10px 0;
}
.hero p{ color:#263126; margin:6px 0 12px; }

.badges{ display:flex; flex-wrap:wrap; gap:8px; }
.badge{
  border:1px solid var(--border);
  background:var(--bg-soft);
  border-radius:999px;
  padding:6px 10px;
  font-size:.82rem;
}

.btn{
  display:inline-block;
  background:var(--green);
  color:#fff;
  padding:10px 14px;
  border-radius:999px;
  text-decoration:none;
  box-shadow:var(--shadow);
}
.btn:hover{ background:var(--green-600); text-decoration:none; }
.btn.outline{
  background:#fff;
  color:var(--green);
  border:1px solid var(--green);
  box-shadow:none;
}
.btn.outline:hover{ background:var(--bg-soft); }

.kpis{
  display:grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap:10px;
  margin-top:16px;
}
.kpi{
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px 12px;
  background:#fff;
}
.kpi .small{ font-size:.78rem; color:var(--muted); }
.kpi h4{ margin:6px 0 0; font-size:1rem; }

.hero-illustration{
  display:flex;
  align-items:center;
  justify-content:center;
  padding: clamp(10px, 2.5vw, 18px);
  background:var(--bg-soft);
  border:1px solid var(--border);
  border-radius:var(--radius);
}

/* --------- Sections --------- */
.section{ margin-top: clamp(24px, 5vw, 48px); }
.section h2{
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  margin:0 0 6px 0;
}
.lead{ color:var(--muted); margin-bottom:14px; }

.benefit-list{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:14px;
}
.benefit{
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  padding:14px;
  box-shadow:var(--shadow);
}
.benefit h3{ margin:0 0 6px 0; font-size:1.05rem; }

/* --------- Footer --------- */
.footer{
  background:#fff;
  border-top:1px solid var(--border);
  margin-top: clamp(28px, 6vw, 60px);
}
.footer .cols{
  display:grid;
  grid-template-columns:2fr 1fr 1.2fr;
  gap:16px;
  padding-block: clamp(16px, 3.5vw, 28px);
}
.footer a{ color:#223222; text-decoration:none; }
.footer a:hover{ text-decoration:underline; }
.small{ font-size:.86rem; color:var(--muted); }

/* --------- WhatsApp FAB --------- */
.whatsapp-fab{
  position:fixed;
  right:16px; bottom:16px;
  width:52px; height:52px;
  border-radius:999px;
  background:#25D366; color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-weight:700;
  box-shadow:var(--shadow);
}

/* --------- Responsive Breakpoints --------- */

/* Mobile: show hamburger & collapse menu */
@media (max-width: 992px){
  .menu-toggle{ display:inline-flex; }

  .menu{
    position:absolute;
    top:64px; right:16px; left:16px;
    display:none;                /* hidden until toggled */
    flex-direction:column;
    gap:10px;
    padding:12px;
    background:#fff;
    border:1px solid var(--border);
    border-radius:14px;
    box-shadow:var(--shadow);
    z-index:1000;
  }
  .menu.show{ display:flex; }

  .hero.container{ grid-template-columns:1fr; }
  .hero-illustration{ order:-1; } /* image first */
  .kpis{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .benefit-list{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer .cols{ grid-template-columns: 1fr 1fr; }
}

/* Desktop: keep menu visible & inline */
@media (min-width: 993px){
  .menu{
    position:static;
    display:flex;
    flex-direction:row;
    padding:0; border:0; box-shadow:none;
  }
}

/* <= 600px: stack everything and enlarge tap targets */
@media (max-width: 600px){
  .title{ font-size:1rem; }
  .subtitle{ display:none; }
  .kpis{ grid-template-columns:1fr; }
  .benefit-list{ grid-template-columns:1fr; }
  .footer .cols{ grid-template-columns:1fr; }
  .btn, .menu a{ padding:12px 14px; }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior:auto !important; transition:none !important; animation:none !important; }
}

/* --------- Contact / Form styles --------- */
.contact-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:var(--shadow);
  padding:14px;
}
.contact-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.contact-grid .full{ grid-column:1 / -1; }
@media (max-width: 600px){
  .contact-grid{ grid-template-columns:1fr; }
}

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form textarea{
  width:100%;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:10px;
  background:#fff;
  font:inherit;
  line-height:1.4;
  outline:none;
}
form textarea{ min-height:110px; resize:vertical; }
form input:focus,
form textarea:focus{
  border-color:var(--green);
  box-shadow:0 0 0 3px rgba(45,122,66,.12);
}

form button[type="submit"],
form input[type="submit"]{
  background:var(--green);
  color:#fff;
  border:0;
  padding:12px 16px;
  border-radius:999px;
  cursor:pointer;
  box-shadow:var(--shadow);
}
form button[type="submit"]:hover,
form input[type="submit"]:hover{
  background:var(--green-600);
}

.contact-alt{
  display:inline-block;
  padding:11px 16px;
  border:1px solid var(--green);
  border-radius:999px;
  background:#fff;
  color:var(--green);
  text-decoration:none;
}
.contact-alt:hover{ background:var(--bg-soft); text-decoration:none; }
