/* ============================================================
   FLORIDA DATA, LLC  —  Stylesheet (v3, green theme + dark mode)
   ============================================================
   CSS controls how everything LOOKS. Change a color in the
   :root block once and it updates across the whole site.

   LIGHT/DARK MODE:
     - :root holds the LIGHT theme values (the default).
     - :root[data-theme="dark"] overrides them for DARK mode.
     - The page picks the visitor's browser preference on first
       visit, and a toggle button (top-right) lets them switch.
       Their choice is remembered on their device.
   ============================================================ */

/* ---- THEME VARIABLES — LIGHT (default) ---- */
:root {
  --green:      #1f8f4e;   /* primary brand green (buttons, accents) */
  --green-dk:   #166b3a;   /* darker green for hover / depth */
  --green-deep: #0e3d24;   /* deep forest green — used as a DARK background
                              (trust strip, footer) in BOTH themes */
  --green-tint: #eaf6ef;   /* soft tinted surface (steps, tags, contact band) */

  --heading:    #0e3d24;   /* heading / label TEXT color */
  --text-accent:#166b3a;   /* small green accent TEXT (em, card footnotes) */

  --ink:    #16241c;       /* main body text */
  --muted:  #5c6b63;       /* secondary text */
  --bg:     #ffffff;       /* page background */
  --bg-alt: #f4f9f6;       /* alternating section background */
  --surface:#ffffff;       /* cards / panels / inputs */
  --header-bg: rgba(255,255,255,0.93); /* sticky header (translucent) */
  --line:   #dde9e2;       /* borders / dividers */

  --gold:   #f2b705;       /* warm accent (ribbons, badges) */
  --radius: 16px;
  --maxw:   1100px;
  --shadow: 0 14px 36px rgba(14, 61, 36, 0.10);
}

/* ---- THEME VARIABLES — DARK (override) ---- */
:root[data-theme="dark"] {
  --green:      #27a85d;   /* a touch brighter so it pops on dark */
  --green-dk:   #1c8048;
  /* --green-deep stays #0e3d24 so the hero/trust/footer keep their look */
  --green-tint: #17271e;   /* dark tinted surface */

  --heading:    #8fe6b0;   /* light green headings (readable on dark) */
  --text-accent:#5cc98a;

  --ink:    #e7f1eb;
  --muted:  #9fb3a8;
  --bg:     #0e1512;
  --bg-alt: #121b16;
  --surface:#16211b;
  --header-bg: rgba(14,21,18,0.92);
  --line:   #27362e;

  --shadow: 0 14px 36px rgba(0, 0, 0, 0.50);
}

/* Smooth the switch between themes (but not on every property). */
body, .site-header, .card, .pain, .point, .cert, .faq, .niche-band,
.step, .contact-form input, .contact-form textarea, .theme-toggle {
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

/* ---- GLOBAL RESETS ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%; /* stop iOS from auto-inflating text in landscape */
}

/* ---- iOS / touch device polish ---- */
body {
  -webkit-tap-highlight-color: rgba(31, 143, 78, 0.15); /* subtle green tap flash, not gray box */
  -webkit-overflow-scrolling: touch;                     /* momentum scrolling */
  text-rendering: optimizeLegibility;
}
/* Honor the iPhone safe areas (notch / Dynamic Island / home indicator) so
   nothing important hides under the rounded corners or the bottom bar. */
.container { padding-left: max(22px, env(safe-area-inset-left));
             padding-right: max(22px, env(safe-area-inset-right)); }

/* ---- Skip-to-content link (accessibility; hidden until keyboard-focused) ---- */
.skip-link {
  position: absolute; left: 12px; top: -50px; z-index: 100;
  background: var(--green-deep); color: #fff !important;
  padding: 10px 16px; border-radius: 0 0 10px 10px; font-weight: 700;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; text-decoration: none; outline: 3px solid var(--gold); }

/* ---- Spam honeypot field: visually hidden but present for bots ---- */
.hp-field {
  position: absolute !important;
  width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
em { font-style: italic; color: var(--text-accent); }

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.2rem; color: var(--heading);
  letter-spacing: -0.5px;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--green); color: #fff;
  font-size: 0.85rem; font-weight: 900; letter-spacing: 0.5px;
}
.brand-dot { color: var(--green); }

/* ---- Brand logo image (header) ----
   SIZE CONTROL: change the "height" below to make the logo bigger/smaller.
   Bigger number = bigger logo. The header is 68px tall, so keep this at
   60px or under so it still fits comfortably. (Was 44px.) */
.brand { display: flex; align-items: center; }
.brand-logo {
  height: 180px; width: auto; display: block;
  transition: transform .15s ease;
}
.brand:hover .brand-logo { transform: translateY(-1px); }
/* In dark mode the logo's dark wordmark would nearly disappear, so lift it
   with a soft light glow that keeps the colored mark intact. */
:root[data-theme="dark"] .brand-logo {
  filter: drop-shadow(0 0 1px rgba(255,255,255,0.9))
          drop-shadow(0 0 6px rgba(255,255,255,0.35));
}

/* Right-side cluster: nav links + theme toggle + hamburger */
.nav-cluster { display: flex; align-items: center; gap: 18px; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.site-nav a:hover { color: var(--green); text-decoration: none; }
.nav-cta {
  background: var(--green); color: #fff !important;
  padding: 10px 18px; border-radius: 10px;
}
.nav-cta:hover { background: var(--green-dk); }

/* ---- Light/Dark toggle button ---- */
.theme-toggle {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: transparent; border: 1px solid var(--line);
  color: var(--heading); cursor: pointer;
}
.theme-toggle:hover { border-color: var(--green); transform: translateY(-1px); }
.theme-toggle svg { width: 20px; height: 20px; }
/* Show the moon in light mode (click = go dark); sun in dark mode. */
.theme-toggle .icon-sun  { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }

.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--heading); border-radius: 2px; }

/* ============================================================
   HERO  (intentionally dark-green in BOTH themes — brand anchor)
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(31,143,78,0.45), transparent 60%),
    linear-gradient(155deg, #0e3d24 0%, #14592f 55%, #1f8f4e 130%);
  color: #fff;
  padding: 104px 0 92px;
}

/* ---- Optional background video + readability overlay ----
   Both sit BEHIND the hero text (z-index 0 and 1; content is z-index 2).
   They start invisible and fade in only when a real video actually plays
   (the .has-video class is added by JS), so the gradient is the default. */
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; pointer-events: none;
  opacity: 0; transition: opacity .9s ease;
}
.hero.has-video .hero-video { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(155deg,
    rgba(14,61,36,0.62) 0%, rgba(20,89,47,0.50) 55%, rgba(31,143,78,0.40) 130%);
  opacity: 0; transition: opacity .9s ease;
}
.hero.has-video .hero-overlay { opacity: 1; }
.hero-inner { position: relative; z-index: 2; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 2px;
  font-size: 0.8rem; font-weight: 700; color: #9ce0b6; margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
  line-height: 1.08; font-weight: 900; letter-spacing: -1px;
  max-width: 22ch;
}
.hero h1 .accent { color: #8ee6ac; }
.hero-sub {
  margin-top: 22px; font-size: 1.18rem; color: #d6efe0; max-width: 58ch;
}
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 22px; font-size: 0.9rem; color: #9ce0b6; max-width: 56ch; }

/* ---- Buttons (reusable) ---- */
.btn {
  display: inline-block; font-weight: 700; font-size: 1rem;
  padding: 14px 26px; border-radius: 11px; cursor: pointer;
  border: 2px solid transparent; transition: all .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(31,143,78,0.35); }
.btn-primary:hover { background: var(--green-dk); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.10); }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip { background: var(--green-deep); color: #cdeed9; }
.trust-inner {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 10px 16px;
  padding: 16px 22px; font-size: 0.9rem; font-weight: 600;
}
.trust-item { white-space: nowrap; }
.trust-dot { color: #4fae74; }

/* ============================================================
   GENERIC SECTIONS
   ============================================================ */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-size: clamp(1.7rem, 3.6vw, 2.3rem); color: var(--heading);
  font-weight: 800; letter-spacing: -0.5px;
}
.section-lead {
  margin-top: 12px; color: var(--muted); font-size: 1.1rem; max-width: 62ch;
}

/* ---- Problem / pain grid ---- */
.pain-grid {
  margin-top: 36px;
  display: grid; gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}
.pain {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--green);
  border-radius: 12px; padding: 18px 20px; color: var(--ink); font-weight: 500;
  display: flex; gap: 12px; align-items: flex-start;
}
.pain-x { color: var(--green); font-weight: 900; }

/* ---- Service cards grid ---- */
.cards {
  margin-top: 42px;
  display: grid; gap: 22px;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}
.card {
  position: relative;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px;
  transition: box-shadow .2s ease, transform .2s ease;
  display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-icon { font-size: 2.1rem; margin-bottom: 14px; }
.card h3 { color: var(--heading); font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: var(--muted); }
.card-foot {
  margin-top: auto; padding-top: 14px;
  font-size: 0.88rem; color: var(--text-accent); font-weight: 600;
}
.card-featured {
  border-color: var(--green); box-shadow: var(--shadow);
}
.ribbon {
  position: absolute; top: -12px; right: 20px;
  background: var(--gold); color: #3a2a00;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.5px;
  text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
}

/* ---- How it works steps ---- */
.steps {
  margin-top: 42px;
  display: grid; gap: 22px;
  grid-template-columns: repeat(3, 1fr);
}
.step {
  background: var(--green-tint); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px;
}
.step-num {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 900; font-size: 1.2rem;
  margin-bottom: 14px;
}
.step h3 { color: var(--heading); font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--muted); }

/* ---- About / why ---- */
.about-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start;
}
.about-grid p { color: var(--ink); margin-bottom: 14px; }
.about-sign { color: var(--muted); font-style: italic; }
.about-points { display: grid; gap: 14px; }
.about-points-row { margin-top: 40px; grid-template-columns: repeat(4, 1fr); }
.point {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 20px; display: grid; gap: 4px;
}
.point strong { color: var(--heading); }
.point span { color: var(--muted); font-size: 0.95rem; }

/* ---- Meet Frederick block ---- */
.meet-grid {
  margin-top: 34px;
  display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: center;
}
.meet-photo img {
  width: 260px; height: 260px; object-fit: cover;
  border-radius: 20px; border: 4px solid var(--surface); box-shadow: var(--shadow);
}
.photo-placeholder {
  width: 260px; height: 260px; border-radius: 20px;
  background: linear-gradient(155deg, var(--green) 0%, var(--green-deep) 100%);
  color: #fff; place-items: center; box-shadow: var(--shadow);
}
.photo-placeholder span { font-size: 3.4rem; font-weight: 900; letter-spacing: 1px; }
.photo-placeholder small { opacity: 0.8; margin-top: 6px; font-size: 0.8rem; }
.photo-placeholder .photo-soon {
  opacity: 1; margin-top: 12px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.35);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.meet-body p { color: var(--ink); margin-bottom: 14px; }
.meet-hi { font-size: 1.2rem; }
.meet-hi strong { color: var(--heading); }

/* ---- LinkedIn button ---- */
.linkedin-btn {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 6px; padding: 11px 20px; border-radius: 10px;
  background: #0a66c2; color: #fff !important; font-weight: 700; font-size: 0.95rem;
}
.linkedin-btn:hover { background: #084e95; text-decoration: none; transform: translateY(-1px); }
.li-mark {
  display: inline-grid; place-items: center; width: 22px; height: 22px;
  background: #fff; color: #0a66c2; border-radius: 4px; font-weight: 900; font-size: 0.85rem;
}

/* ---- Certifications ---- */
.cert-grid {
  margin-top: 38px; display: grid; gap: 22px; grid-template-columns: repeat(4, 1fr);
}
.cert {
  display: grid; justify-items: center; text-align: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px; color: var(--ink); transition: box-shadow .2s ease, transform .2s ease;
}
.cert:hover { box-shadow: var(--shadow); transform: translateY(-3px); text-decoration: none; }
.cert-logo {
  width: 96px; height: 96px; object-fit: contain; margin-bottom: 10px;
}
.cert-name { font-weight: 800; color: var(--heading); font-size: 1.1rem; }
.cert-sub { color: var(--muted); font-size: 0.9rem; }
.cert-note { margin-top: 28px; text-align: center; color: var(--muted); font-weight: 600; }

/* ---- Testimonials (styles kept for future use) ---- */
.testi-grid { margin-top: 34px; display: grid; gap: 22px; grid-template-columns: repeat(2, 1fr); }
.testi {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--green);
  border-radius: 12px; padding: 26px 28px;
}
.testi p { color: var(--ink); font-size: 1.05rem; font-style: italic; }
.testi footer { margin-top: 12px; color: var(--muted); font-weight: 600; font-style: normal; }
.testi-empty { opacity: 0.75; border-left-style: dashed; }

/* ---- FAQ ---- */
.faq-inner { max-width: 800px; }
.faq {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 4px 20px; margin-top: 14px; background: var(--surface);
}
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--heading);
  padding: 16px 0; list-style: none; position: relative;
  padding-right: 30px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 14px;
  font-size: 1.4rem; color: var(--green); font-weight: 700; transition: transform .2s ease;
}
.faq[open] summary::after { content: "–"; }
.faq p { color: var(--muted); padding: 0 0 18px; }

/* ---- Contact ---- */
.section-cta { background: var(--green-tint); }
.contact-inner { max-width: 760px; }
.contact-form { margin-top: 30px; display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label {
  display: grid; gap: 7px; font-weight: 600; color: var(--heading); font-size: 0.95rem;
}
.contact-form input,
.contact-form textarea {
  font: inherit; padding: 13px 14px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--surface); color: var(--ink);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31,143,78,0.18);
}
.contact-form .btn { justify-self: start; }
.form-fine { font-size: 0.85rem; color: var(--muted); }
.contact-alt { margin-top: 22px; color: var(--muted); }

/* ============================================================
   NICHE BAND (who I help best)
   ============================================================ */
.niche-band {
  margin-top: 40px; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px;
}
.niche-lead { color: var(--heading); font-size: 1.05rem; margin-bottom: 16px; }
.niche-tags {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
}
.niche-tag {
  background: var(--green-tint); border: 1px solid var(--line);
  color: var(--heading); font-weight: 700; font-size: 0.98rem;
  padding: 11px 18px; border-radius: 999px;
}
.niche-note { margin-top: 18px; color: var(--muted); font-size: 0.95rem; max-width: 62ch; margin-left: auto; margin-right: auto; }

/* ============================================================
   FOUNDING CLIENT OFFER  (dark-green in both themes)
   ============================================================ */
.section-offer {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 400px at 15% 0%, rgba(31,143,78,0.30), transparent 60%),
    linear-gradient(150deg, #0e3d24 0%, #14592f 100%);
  color: #fff;
}
.offer-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.offer-badge {
  display: inline-block; background: var(--gold); color: #3a2a00;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.offer-title {
  font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 900; letter-spacing: -0.5px;
  line-height: 1.12;
}
.offer-title .accent { color: #8ee6ac; }
.offer-text { margin-top: 18px; font-size: 1.12rem; color: #d6efe0; }
.section-offer .btn-primary { margin-top: 26px; box-shadow: 0 10px 26px rgba(0,0,0,0.30); }
.offer-fine { margin-top: 16px; font-size: 0.88rem; color: #9ce0b6; }

/* ---- LOCKED state: grays the offer + shows a "Releasing Soon" overlay ----
   To launch the offer later: remove "is-locked" from the section's class
   (and the .offer-lock div) in index.html. */
.section-offer.is-locked .offer-inner {
  opacity: 0.3; filter: grayscale(0.7) blur(4px);
  pointer-events: none;            /* nothing inside is clickable while locked */
  user-select: none;
}
.offer-lock {
  position: absolute; inset: 0; z-index: 3;
  display: grid; place-items: center;
  background: rgba(8, 20, 14, 0.6);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.offer-lock-badge {
  font-size: clamp(1.1rem, 3vw, 1.6rem); font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase; color: #fff;
  padding: 14px 30px; border-radius: 999px;
  background: rgba(255,255,255,0.12); border: 1.5px solid rgba(255,255,255,0.45);
  box-shadow: 0 10px 30px rgba(0,0,0,0.30);
}

/* ============================================================
   FOOTER  (dark-green in both themes)
   ============================================================ */
.site-footer { background: var(--green-deep); color: #b9ddc7; padding: 28px 0; }
.footer-inner {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 0.9rem;
}
.footer-tag { color: #7fc59a; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: #cdeed9; font-weight: 600; }
.footer-links a:hover { color: #fff; }

/* ============================================================
   RESPONSIVE / MOBILE
   ============================================================ */

/* Sticky header respects the notch on landscape/edge devices */
.site-header { padding-top: env(safe-area-inset-top); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: var(--surface); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .site-nav.open { max-height: 360px; }
  .site-nav a { padding: 16px 22px; border-top: 1px solid var(--line); }
  .nav-cta { margin: 12px 22px; text-align: center; }

  .pain-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-points-row { grid-template-columns: 1fr 1fr; }
  .meet-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 26px; }
  .meet-body { text-align: left; }
  .cert-grid { grid-template-columns: 1fr 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   PHONE / iPHONE TUNING  (≤ 560px)
   ============================================================
   Tighter spacing, comfortable tap targets, and the critical
   iOS fix that stops Safari zooming in when a form field is tapped.
   ============================================================ */
@media (max-width: 560px) {
  /* Trim big desktop section padding so there's less endless scrolling */
  .section { padding: 56px 0; }
  .hero { padding: 72px 0 60px; }

  /* Full-width, thumb-friendly buttons */
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }
  .btn { padding: 15px 22px; }            /* keeps a ~48px tap height */

  /* Single-column grids for the smallest screens */
  .about-points-row { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr 1fr; }

  /* Headings scale down a touch more gracefully */
  .hero h1 { letter-spacing: -0.5px; }

  /* Niche tags stack to full-width pills so they don't crowd */
  .niche-tags { flex-direction: column; }
  .niche-tag { width: 100%; }

  /* Footer reads better centered & stacked on a phone */
  .footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 10px; }

  /* Give the last section breathing room above the home indicator */
  .site-footer { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
}

/* iOS ZOOM FIX (applies to phones): form fields MUST be ≥16px or Safari
   auto-zooms the page when they're focused. Lock them to 16px on touch. */
@media (max-width: 860px) {
  .contact-form input,
  .contact-form textarea { font-size: 16px; }
}

/* ============================================================
   SCROLL-REVEAL ANIMATIONS
   ============================================================
   Elements with [data-reveal] start hidden + slightly lowered,
   then fade up into place when they scroll into view (the JS
   adds the .is-visible class). Progressive enhancement: only
   hides things when JavaScript is on (the .js flag on <html>).
   With JS off, everything shows normally.
   ============================================================ */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform .7s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
.js [data-reveal-group] > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform .6s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.js [data-reveal-group].is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
.js [data-reveal-group].is-visible > *:nth-child(1) { transition-delay: .00s; }
.js [data-reveal-group].is-visible > *:nth-child(2) { transition-delay: .08s; }
.js [data-reveal-group].is-visible > *:nth-child(3) { transition-delay: .16s; }
.js [data-reveal-group].is-visible > *:nth-child(4) { transition-delay: .24s; }
.js [data-reveal-group].is-visible > *:nth-child(5) { transition-delay: .32s; }
.js [data-reveal-group].is-visible > *:nth-child(6) { transition-delay: .40s; }

/* ---- Accessibility: honor "reduce motion" OS setting ---- */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal],
  .js [data-reveal-group] > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================================
   v3.1 ENHANCEMENTS  —  polish, animation, newsletter
   ============================================================ */

/* ---- Anchor offset fix: keep section titles clear of the sticky header
        when you click a nav link (no more hiding under the header). ---- */
:target { scroll-margin-top: 90px; }
section[id] { scroll-margin-top: 84px; }

/* ---- Scroll progress bar (thin green bar at the very top) ---- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--green), #8ee6ac);
  z-index: 60; transition: width .08s linear; pointer-events: none;
}

/* ---- Header gains a soft shadow once you scroll (depth cue) ---- */
.site-header.scrolled {
  box-shadow: 0 6px 24px rgba(14, 61, 36, 0.10);
  border-bottom-color: transparent;
}

/* ---- Hero entrance: content rises in once on load ---- */
.js .hero-inner > * { opacity: 0; transform: translateY(18px); animation: heroIn .8s cubic-bezier(0.22,0.61,0.36,1) forwards; }
.js .hero-inner > *:nth-child(1) { animation-delay: .05s; }
.js .hero-inner > *:nth-child(2) { animation-delay: .15s; }
.js .hero-inner > *:nth-child(3) { animation-delay: .27s; }
.js .hero-inner > *:nth-child(4) { animation-delay: .39s; }
.js .hero-inner > *:nth-child(5) { animation-delay: .50s; }
@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }

/* ---- Primary button: subtle sheen that sweeps across on hover ---- */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-18deg); transition: left .6s ease;
}
.btn-primary:hover::after { left: 130%; }

/* ---- Back-to-top button (appears after you scroll down) ---- */
.to-top {
  position: fixed; right: 20px; z-index: 55;
  bottom: calc(20px + env(safe-area-inset-bottom));
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--green); color: #fff; border: none;
  box-shadow: 0 8px 22px rgba(14,61,36,0.30);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background .15s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--green-dk); transform: translateY(-2px); }
.to-top svg { width: 22px; height: 22px; }

/* ============================================================
   NEWSLETTER  —  inline strip + splash modal
   ============================================================ */

/* ---- Slim inline signup strip (sits just above the footer) ---- */
.newsletter {
  background: var(--green-tint); border-top: 1px solid var(--line);
}
.newsletter-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 22px; flex-wrap: wrap; padding: 30px 0;
}
.newsletter-copy h3 { color: var(--heading); font-size: 1.25rem; margin-bottom: 4px; }
.newsletter-copy p { color: var(--muted); font-size: 0.96rem; max-width: 52ch; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input {
  font: inherit; font-size: 16px; padding: 12px 14px; min-width: 240px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink);
}
.newsletter-form input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(31,143,78,0.18); }
.newsletter-note { font-size: 0.82rem; color: var(--muted); margin-top: 8px; }
.newsletter-ok { color: var(--green); font-weight: 700; }

/* ---- Splash modal (the gentle pop-up invite) ----
   Uses flex + margin:auto so the card centers when it fits, but stays
   fully scrollable (never clips the close button) on short phone screens.
   Padding honors the notch / home-indicator safe areas. */
.nl-modal {
  position: fixed; inset: 0; z-index: 80;
  display: flex; justify-content: center; align-items: flex-start;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 22px;
  padding-top: max(22px, env(safe-area-inset-top));
  padding-bottom: max(22px, env(safe-area-inset-bottom));
  background: rgba(8, 20, 14, 0.55); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
.nl-modal.open { opacity: 1; visibility: visible; }
.nl-card {
  position: relative; width: 100%; max-width: 440px; margin: auto;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 20px;
  padding: 36px 32px 30px; box-shadow: 0 30px 70px rgba(0,0,0,0.35);
  transform: translateY(16px) scale(.98); transition: transform .3s cubic-bezier(0.22,0.61,0.36,1);
  text-align: center;
}
.nl-modal.open .nl-card { transform: translateY(0) scale(1); }
.nl-badge {
  display: inline-block; background: var(--gold); color: #3a2a00;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.nl-card h2 { color: var(--heading); font-size: 1.5rem; line-height: 1.15; margin-bottom: 10px; }
.nl-card p { color: var(--muted); font-size: 0.98rem; margin-bottom: 18px; }
.nl-card form { display: grid; gap: 10px; }
.nl-card input {
  font: inherit; font-size: 16px; padding: 13px 14px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--ink); text-align: center;
}
.nl-card input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(31,143,78,0.18); }
.nl-close {
  position: absolute; top: 12px; right: 14px;
  width: 32px; height: 32px; border-radius: 50%; border: none; cursor: pointer;
  background: transparent; color: var(--muted); font-size: 1.4rem; line-height: 1;
}
.nl-close:hover { background: var(--green-tint); color: var(--heading); }
.nl-fine { font-size: 0.8rem; color: var(--muted); margin-top: 4px; margin-bottom: 0; }
.nl-dismiss {
  background: none; border: none; cursor: pointer; margin-top: 12px;
  color: var(--muted); font-size: 0.85rem; text-decoration: underline;
}

@media (max-width: 560px) {
  .newsletter-form input { min-width: 0; width: 100%; }
  .newsletter-form { width: 100%; }
  .newsletter-form .btn { width: 100%; }

  /* Newsletter strip: stack neatly and give the form room */
  .newsletter-inner { gap: 16px; padding: 26px 0; }
  .newsletter-copy h3 { font-size: 1.15rem; }

  /* Splash modal: tighter card so it fits a small screen comfortably */
  .nl-card { padding: 30px 22px 26px; border-radius: 16px; }
  .nl-card h2 { font-size: 1.3rem; }
  .nl-card p { font-size: 0.95rem; }

  /* Back-to-top: slightly smaller + closer to the edge on phones */
  .to-top { width: 42px; height: 42px; right: 16px; }
}

/* Respect reduced-motion for the new animated bits too */
@media (prefers-reduced-motion: reduce) {
  .js .hero-inner > * { opacity: 1 !important; transform: none !important; animation: none !important; }
  .btn-primary::after { display: none; }
  .to-top, .nl-modal, .nl-card { transition: none !important; }
}
