/* ---------- Root + Reset ---------- */
:root{
  --brand:#F4782E;
  --ink:#0f172a;
  --muted:#5b6b7b;
  --bg:#ffffff;
  --card:#ffffff;
  --hero-overlay:rgba(15,59,69,.78);
  --border:#e6eaee;
  --max:1200px;
  --radius:14px;
  --shadow:0 10px 30px rgba(15,23,42,.07);
}
*{box-sizing:border-box}
html, body { height:100%; }
html { scroll-behavior:smooth; }
body{
  margin:0;
  color:var(--ink);
  background:var(--bg);
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  min-height:100dvh;                 /* fill the visible viewport on mobile */
  display:flex;
  flex-direction:column;              /* lets footer stick to bottom */
}

/* ---------- Page width helpers ---------- */
.container{
  width:100%;
  max-width:var(--max);
  margin-inline:auto;
  padding-inline:24px;
}
.section{ padding:80px 0; width:100%; }

/* ---------- Links + Buttons ---------- */
a{ color:inherit; text-decoration:none }
.btn{
  display:inline-block; background:var(--brand); color:#fff;
  padding:12px 18px; border-radius:10px; font-weight:600; border:0;
}
.btn-wide{ width:100%; padding:14px 18px }
.form-btn{
  display:inline-block; background:var(--brand); color:#fff;
  padding:12px 18px; border-radius:10px; font-weight:600; border:0; cursor: pointer;
}

/* ---------- Header (full width) ---------- */
.site-header{
  position:sticky; top:0; z-index:1000;
  width:100%;
  background:#fff; border-bottom:1px solid var(--border);
}
.nav{ height:68px; display:flex; align-items:center; justify-content:space-between; gap:16px }
.brand{ display:flex; align-items:center; gap:10px; font-weight:700 }
.brand svg{ width:28px; height:28px; color:var(--brand) }
nav ul{ display:flex; gap:28px; list-style:none; margin:0; padding:0 }
nav a{ font-weight:500 }
nav a.active{ color:var(--brand) }

/* ---------- Hamburger + Mobile Drawer (FULLSCREEN) ---------- */
.hamburger{
  display:none; width:40px; height:40px; border:0; background:transparent;
  padding:8px; border-radius:10px;
}
.hamburger span{ display:block; height:3px; margin:5px 0; background:#1f4450; border-radius:2px; transition:transform .2s, opacity .2s }
.menu-open .hamburger span:nth-child(1){ transform:translateY(8px) rotate(45deg) }
.menu-open .hamburger span:nth-child(2){ opacity:0 }
.menu-open .hamburger span:nth-child(3){ transform:translateY(-8px) rotate(-45deg) }

/* The overlay element itself spans the whole screen */
.mobile-nav{
  position:fixed; inset:0; z-index:1100;
  display:block;
  background:rgba(0,0,0,.35);
  opacity:0; pointer-events:none;
  transition:opacity .25s ease;
}
.mobile-nav.open{ opacity:1; pointer-events:auto; }
.mobile-close {
  position:absolute;
  top:24px;
  right:24px;
  background:transparent;
  border:none;
  font-size:2rem;
  color:var(--ink);
  cursor:pointer;
  z-index:1200; /* above menu content */
}

/* Fullscreen menu panel */
.mobile-nav-inner{
  position:fixed;       /* covers viewport */
  inset:0;
  width:100%;
  height:100%;
  background:#fff;
  transform:translateY(-100%);  /* slide from top */
  transition:transform .25s ease, opacity .25s ease;

  display:flex;             /* flex for centering */
  flex-direction:column;
  justify-content:center;   /* vertical center */
  align-items:center;       /* horizontal center */
  gap:30px;                 /* spacing between links */
  padding:0;                /* remove padding */
  border-left:none;
}

.mobile-nav.open .mobile-nav-inner{
  transform:translateY(0); /* slide down into view */
}

.mobile-nav-inner a{
  font-size:1rem;       /* bigger links for fullscreen */
  font-weight:600;
  color:var(--ink);
}

.mobile-nav-inner .btn{
  width:auto;
  padding:14px 28px;
  font-size:1.2rem;
}
.menu-open{ overflow:hidden }  /* lock body scroll */

/* ---------- Hero (full width, covers viewport height slice) ---------- */
.hero{
  position:relative; width:100%;
  background-size:cover; background-position:center;
  color:#fff; isolation:isolate;
}
.hero::before{                           /* overlay gradient that truly spans the hero */
  content:''; position:absolute; inset:0; z-index:0; background:var(--hero-overlay);
}
.hero-inner{
  min-height:64dvh;                      /* take a big, responsive slice of the screen */
  display:grid; place-items:center; width:100%;
}
.hero-text{ position:relative; z-index:1; padding:88px 0 120px; text-align:left }
.hero h1{ font-size:clamp(28px,4.2vw,56px); line-height:1.08; margin:0 0 12px; font-weight:800 }
.hero p{ max-width:52ch; color:#e2f0f3; font-size:18px; line-height:1.6 }

/* Page-specific hero backgrounds */
.hero-home{
  background-image:url('https://res.cloudinary.com/dafytulc6/image/upload/v1762858154/andy-li-CpsTAUPoScw-unsplash_micede.jpg');
}
.hero-generic{
  background-image:url('https://res.cloudinary.com/dafytulc6/image/upload/v1762858168/ian-taylor-jOqJbvo1P9g-unsplash_zufcin.jpg');
}

/* ---------- Tracker ---------- */
.tracker{ position:relative; width:100%; margin-top:-60px }
.tracker-card{
  width:min(820px, 92%); margin:auto;
  background:var(--card); box-shadow:var(--shadow); border-radius:var(--radius);
  padding:28px; display:flex; gap:12px; align-items:center; justify-content:center;
}
.tracker-card form {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.track-input{
  flex:1; min-width:220px; padding:14px 16px; border:1.6px solid var(--border);
  border-radius:10px; font-size:16px
}

/* ---------- About / Content ---------- */
.about{ display:grid; grid-template-columns: 1.1fr .9fr; gap:42px; align-items:center; width:100% }
.eyebrow{ color:var(--brand); font-weight:800 }
.about h2{ font-size:clamp(26px,3.2vw,44px); margin:8px 0 14px }
.about p{ color:var(--muted); line-height:1.75 }
.about img{ border-radius:16px; box-shadow:var(--shadow); width:100%; height:auto; display:block }

/* ---------- Services ---------- */
.services h3{ font-size:clamp(24px,3vw,38px); margin:0 0 26px }
.lead{ color:var(--muted); max-width:70ch }
.cards{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; margin-top:28px; width:100% }
.cards.three{ grid-template-columns:repeat(3,1fr) }
.card{
  background:var(--card); border:1px solid var(--border); border-radius:16px;
  padding:28px; box-shadow:0 8px 0 rgba(244,120,46,.15);
}
.card h4{ margin:10px 0 }
.card p{ color:var(--muted); line-height:1.7 }
.card svg{ width:28px; height:28px; color:var(--brand) }

/* ---------- Stats ---------- */
.stats{ width:100% }
.stats-row{ display:grid; grid-template-columns:repeat(4,1fr); gap:34px; text-align:center; width:100% }
.stat .num{ font-weight:800; font-size:34px }
.stat .note{ color:var(--muted); margin-top:6px }

/* ---------- CTA (full width) ---------- */
.cta{ width:100%; background:linear-gradient(180deg, #0f3b45, #0d3944); color:#e8fbff }
.cta .content{ display:grid; place-items:center; text-align:center; padding:70px 0 }
.cta h3{ font-size:clamp(26px,3.4vw,44px); margin:0 0 10px; color:#e6f7fa }
.cta p{ max-width:60ch; margin:0 auto 22px; color:#bfe1e7 }

/* ---------- Footer (sticks to bottom if content is short) ---------- */
.site-footer{ width:100%; margin-top:auto; background:#fff }
.footer{ padding:46px 0 24px; width:100% }
.footer-grid{ display:grid; grid-template-columns:2fr 2fr 1.3fr; gap:32px }
.footer h5{ margin:0 0 12px }
.footer p, .footer a{ color:var(--muted) }
.foot-base{
  margin-top:30px; padding-top:18px; border-top:1px solid var(--border);
  color:#98a3ad; font-size:14px; text-align:center;
}

/* ---------- Forms ---------- */
.narrow{ max-width:820px }
.form{ display:grid; gap:14px; width:100% }
.field{
  width:100%; padding:14px 16px; border:1.6px solid var(--border);
  border-radius:10px; font-size:16px; background:#fff;
}

/* ---------- Utilities ---------- */
.bg-muted{ background:#f6f8f9 }

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .about{ grid-template-columns:1fr }
  .cards, .cards.three{ grid-template-columns:1fr }
  .stats-row{ grid-template-columns:1fr 1fr }
}
@media (max-width: 768px){
  nav ul{ display:none }
  .hamburger{ display:block }
}
@media (max-width: 560px){
  .tracker-card form{ flex-direction:column; gap:14px }
  .stats-row{ grid-template-columns:1fr }
  .footer{ padding:28px 0 18px }
  .footer-grid{ grid-template-columns:1fr; gap:18px }
}

@media (max-width: 768px) {
  .site-header .btn {
    /* font-size: 0.9rem;
    padding: 0.5rem 0.9rem;
    margin-left: auto;
    margin-right: 0; */
    display: none;
  }
  .site-footer .container {
    padding: 40px 16px; /* side padding so text doesn't touch screen edges */
  }

  .footer-grid {
    gap: 20px;
  }

  .foot-base {
    margin-top: 30px;
    padding-top: 15px;
  }
}