:root{
  --bg:#fbfaf6;
  --card:#ffffff;
  --text:#0f1b12;
  --muted:#546158;
  --border:rgba(15,27,18,.10);
  --shadow:0 18px 60px rgba(15,27,18,.08);
  --shadow-sm:0 10px 26px rgba(15,27,18,.08);

  --gd:#0f2e18;
  --gm:#1f6a3a;
  --gl:#6bbf7c;
  --gold:#c9a84c;

  --radius:18px;
}

html{scroll-behavior:smooth;}
body{
  background:var(--bg);
  color:var(--text);
  -webkit-text-size-adjust:100%;
}

/* mobile menu */
.menu-overlay{
  display:none;
  position:fixed;
  inset:0;
  z-index:1999;
  background:rgba(0,0,0,.45);
  backdrop-filter: blur(2px);
}
.menu-overlay.show{display:block;}
.mobile-menu{
  display:none;
  position:fixed;
  top:0;
  right:-320px;
  width:320px;
  height:100vh;
  z-index:2000;
  background:rgba(15,46,24,.96);
  backdrop-filter: blur(14px);
  box-shadow:-20px 0 70px rgba(0,0,0,.28);
  padding:4.2rem 1.6rem 1.6rem;
  transition:right .35s cubic-bezier(.4,0,.2,1);
}
.mobile-menu.open{display:flex;flex-direction:column;right:0;}
.mobile-menu a{
  color:rgba(255,255,255,.86);
  text-decoration:none;
  font-weight:800;
  font-size:1.02rem;
  padding:1.1rem 0;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.mobile-menu a:hover{color:#fff;}
.close-menu{
  position:absolute;
  top:16px;
  right:16px;
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.18);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.8rem;
  cursor:pointer;
  background:rgba(255,255,255,.06);
}
.close-menu:hover{background:rgba(255,255,255,.10);}

/* subtle grain (cheap) */
.bg-grain{
  position:relative;
}
.bg-grain:before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.06;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(0,0,0,.8) 1px, transparent 0);
  background-size:22px 22px;
  mix-blend-mode:multiply;
}

/* header glass */
.glass{
  background:rgba(255,255,255,.72);
  backdrop-filter: blur(14px);
  border-bottom:1px solid rgba(15,27,18,.08);
}

/* cards */
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.55rem;
  border-radius:999px;
  font-weight:800;
  letter-spacing:.01em;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, opacity .18s ease;
  user-select:none;
}
.btn:active{transform:translateY(1px);}
.btn-primary{
  background:linear-gradient(135deg,var(--gold),#e7c46b);
  color:var(--gd);
  box-shadow:0 14px 40px rgba(201,168,76,.26);
}
.btn-primary:hover{box-shadow:0 18px 56px rgba(201,168,76,.32);}
.btn-green{
  background:linear-gradient(135deg,#25D366,#1ebe5a);
  color:#fff;
  box-shadow:0 14px 40px rgba(37,211,102,.22);
}
.btn-green:hover{box-shadow:0 18px 56px rgba(37,211,102,.28);}
.btn-ghost{
  border:1px solid rgba(255,255,255,.35);
  background:rgba(255,255,255,.08);
  color:#fff;
}
.btn-ghost:hover{background:rgba(255,255,255,.14);}

/* hero */
.hero{
  position:relative;
  overflow:hidden;
  background: linear-gradient(135deg,rgba(15,46,24,0.82) 0%,rgba(31,106,58,0.72) 55%,rgba(107,191,124,0.50) 100%), var(--hero-url, none);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero:not([style*="--hero-url"]):not(.has-custom-bg){
  background:linear-gradient(135deg,var(--gd) 0%, #184b2a 45%, #2f7a44 100%);
}
.hero:after{
  content:"";
  position:absolute;
  inset:-40%;
  background:
    radial-gradient(closest-side at 68% 22%, rgba(201,168,76,.24), transparent 55%),
    radial-gradient(closest-side at 22% 78%, rgba(107,191,124,.22), transparent 58%);
  transform:rotate(10deg);
}
.hero-inner{
  position:relative;
  z-index:1;
}

/* modal */
.modal{
  display:none;
  position:fixed;
  inset:0;
  z-index:3000;
  background:rgba(0,0,0,.72);
  backdrop-filter: blur(10px);
  align-items:center;
  justify-content:center;
  padding:1rem;
}
.modal.open{display:flex;}
.modal-panel{
  width:min(980px, 100%);
  max-height:92vh;
  overflow:hidden;
  background:#fff;
  border-radius:24px;
  box-shadow:0 30px 90px rgba(0,0,0,.32);
}
@media (max-width: 768px){
  .modal{padding:0;}
  .modal-panel{
    border-radius:0;
    height:100vh;
    max-height:100vh;
  }
}

/* floating buttons */
.fab{
  position:fixed;
  right:22px;
  z-index:1200;
  width:58px;
  height:58px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 16px 46px rgba(0,0,0,.20);
  transition:transform .18s ease, box-shadow .18s ease;
}
.fab:hover{transform:translateY(-2px);box-shadow:0 22px 64px rgba(0,0,0,.24);}
.fab-wa{bottom:22px;background:#25D366;color:#fff;}
.fab-top{bottom:92px;background:rgba(255,255,255,.9);color:var(--gd);border:1px solid rgba(15,27,18,.12);display:none;}
.fab-top.show{display:flex;}

/* toast */
#toast{
  position:fixed;
  bottom:166px;
  right:22px;
  z-index:1400;
  background:rgba(15,46,24,.96);
  color:#fff;
  border:1px solid rgba(255,255,255,.14);
  padding:12px 14px;
  border-radius:14px;
  box-shadow:0 20px 70px rgba(0,0,0,.25);
  opacity:0;
  transform:translateY(10px);
  transition:opacity .18s ease, transform .18s ease;
  pointer-events:none;
  font-size:.9rem;
  max-width:min(360px, calc(100vw - 44px));
}
#toast.show{opacity:1;transform:none;}

/* prevent body scroll while modal open */
body.modal-open{overflow:hidden;}
