/*
Theme Name: Northstar Formations
Theme URI: https://northstarformations.com/
Author: Northstar Formations
Description: A premium dark one-page WordPress theme for a US LLC formation agency serving US residents and non-US residents. Obsidian and gold palette, layered 3D depth, services, pricing, process, FAQ and a built-in lead capture form.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: northstar-formations
Tags: business, one-column, custom-logo, custom-menu, responsive-layout, dark
*/

/* ---------------------------------------------------------------
   1. Tokens — obsidian, brass, parchment
--------------------------------------------------------------- */
:root {
  --void:      #04060d;
  --obsidian:  #080c17;
  --slate-900: #0d1322;
  --slate-800: #121a2c;
  --slate-700: #1a2438;

  --brass-600: #a8862a;
  --brass-500: #d4af37;
  --brass-400: #e8c96a;
  --brass-100: #f6e9c2;

  --text:      #e9edf5;
  --text-soft: #9aa6bd;
  --text-mute: #6b788f;

  --line:      rgba(255, 255, 255, .09);
  --line-warm: rgba(212, 175, 55, .28);

  --glass:      rgba(255, 255, 255, .035);
  --glass-hi:   rgba(255, 255, 255, .065);
  --inner-edge: inset 0 1px 0 rgba(255, 255, 255, .07);

  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-ui: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;

  --lift-1: 0 1px 2px rgba(0,0,0,.4), 0 4px 12px rgba(0,0,0,.3);
  --lift-2: 0 2px 4px rgba(0,0,0,.35), 0 12px 28px rgba(0,0,0,.4);
  --lift-3: 0 4px 8px rgba(0,0,0,.4), 0 20px 44px rgba(0,0,0,.45), 0 48px 90px rgba(0,0,0,.5);

  --wrap: 1180px;
  --gutter: 24px;
}

/* ---------------------------------------------------------------
   2. Base
--------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.68;
  color: var(--text-soft);
  background: var(--obsidian);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient light: two brass auroras sitting behind everything. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(58% 44% at 78% -6%, rgba(212,175,55,.16), transparent 62%),
    radial-gradient(48% 40% at 4% 34%, rgba(52,84,150,.20), transparent 66%),
    linear-gradient(180deg, var(--obsidian) 0%, var(--void) 100%);
  pointer-events: none;
}

/* Fine grain so the large dark fields never look flat. */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  opacity: .035; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-family: var(--font-ui); font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; }
h4 { font-family: var(--font-ui); }

p { margin: 0 0 1rem; }
a { color: var(--brass-400); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--brass-100); }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--brass-500); outline-offset: 3px; border-radius: 4px; }

::selection { background: rgba(212,175,55,.28); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding: clamp(72px, 9vw, 128px) 0; position: relative; }
.section--soft { background: linear-gradient(180deg, rgba(255,255,255,.022), rgba(255,255,255,0)); }
.section--navy { background: linear-gradient(180deg, rgba(0,0,0,.34), rgba(0,0,0,.12)); }

/* Hairline seam between sections. */
.section--soft::before, .section--navy::before, .lead::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-warm), transparent);
}

.section-head { max-width: 680px; margin: 0 auto clamp(44px, 5vw, 66px); text-align: center; }
.section-head p { margin-bottom: 0; font-size: 1.06rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: .7rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--brass-500);
  margin-bottom: 16px;
  position: relative; padding-left: 30px;
}
.eyebrow::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 20px; height: 1px; background: var(--brass-500); opacity: .7;
}
.section-head .eyebrow { padding-left: 0; }
.section-head .eyebrow::before { display: none; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px,1px,1px,1px); white-space: nowrap;
}

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--brass-500); color: var(--void); padding: 12px 20px; z-index: 999; }
.skip-link:focus { left: 8px; top: 8px; }

/* Reusable glass surface. */
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r);
  backdrop-filter: blur(14px);
  box-shadow: var(--lift-1), var(--inner-edge);
}

/* ---------------------------------------------------------------
   3. Buttons
--------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-ui);
  font-size: .95rem; font-weight: 700; letter-spacing: -.005em;
  padding: 15px 30px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer; text-align: center;
  transition: transform .2s cubic-bezier(.22,.68,.36,1), box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  position: relative;
}

.btn--gold {
  background: linear-gradient(175deg, var(--brass-400) 0%, var(--brass-500) 48%, var(--brass-600) 100%);
  color: #201703;
  box-shadow: 0 3px 0 #6f5715, 0 10px 26px rgba(212,175,55,.28), inset 0 1px 0 rgba(255,255,255,.45);
}
.btn--gold:hover { transform: translateY(-2px); color: #201703; box-shadow: 0 5px 0 #6f5715, 0 18px 38px rgba(212,175,55,.36), inset 0 1px 0 rgba(255,255,255,.5); }
.btn--gold:active { transform: translateY(2px); box-shadow: 0 1px 0 #6f5715, 0 6px 16px rgba(212,175,55,.24); }

.btn--navy {
  background: linear-gradient(175deg, var(--slate-700), var(--slate-900));
  color: var(--text);
  border-color: var(--line);
  box-shadow: 0 3px 0 rgba(0,0,0,.55), var(--lift-1), var(--inner-edge);
}
.btn--navy:hover { transform: translateY(-2px); color: #fff; border-color: var(--line-warm); }
.btn--navy:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.55); }

.btn--ghost { background: transparent; color: var(--text); border-color: rgba(255,255,255,.22); }
.btn--ghost:hover { background: rgba(255,255,255,.06); border-color: var(--brass-500); color: #fff; transform: translateY(-2px); }

.btn--outline { background: var(--glass); color: var(--text); border-color: var(--line); backdrop-filter: blur(10px); }
.btn--outline:hover { border-color: var(--brass-500); color: var(--brass-100); transform: translateY(-2px); }

.btn--block { width: 100%; }
.btn--sm { padding: 11px 20px; font-size: .88rem; }

/* ---------------------------------------------------------------
   4. Header
--------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8,12,23,.72);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); background: rgba(6,9,18,.9); }

.header-inner { display: flex; align-items: center; gap: 20px; height: 82px; }

.brand { display: inline-flex; align-items: center; gap: 11px; margin-right: auto; }
.brand__mark { color: var(--brass-500); flex: none; filter: drop-shadow(0 0 10px rgba(212,175,55,.5)); }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.42rem; color: var(--text);
  letter-spacing: -.01em; white-space: nowrap;
}
.brand img { max-height: 48px; width: auto; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav__list { display: flex; align-items: center; gap: 32px; margin: 0; padding: 0; list-style: none; }
.nav a {
  font-family: var(--font-ui);
  font-size: .92rem; font-weight: 600; color: var(--text-soft);
  position: relative; padding: 5px 0;
}
.nav a:hover { color: var(--text); }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -1px;
  width: 100%; height: 1px; background: var(--brass-500);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav a:hover::after { transform: scaleX(1); }

.header-cta { flex: none; }

.nav-toggle {
  display: none; width: 46px; height: 46px;
  align-items: center; justify-content: center;
  background: var(--glass); border: 1px solid var(--line);
  border-radius: var(--r-sm); cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--text); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--text);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------------------------------------------------------------
   5. Hero
--------------------------------------------------------------- */
.hero { position: relative; padding: clamp(60px, 8vw, 104px) 0 clamp(80px, 9vw, 120px); }

.hero-grid {
  display: grid; grid-template-columns: 1.02fr .98fr;
  gap: clamp(36px, 5vw, 68px); align-items: center;
}

.hero h1 { margin-bottom: 22px; }
.hero h1 em {
  font-style: italic;
  background: linear-gradient(100deg, var(--brass-400), var(--brass-100) 45%, var(--brass-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero__lead { font-size: 1.1rem; max-width: 33em; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: linear-gradient(180deg, rgba(212,175,55,.16), rgba(212,175,55,.05));
  border: 1px solid var(--line-warm);
  color: var(--brass-400);
  font-family: var(--font-ui); font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 100px; margin-bottom: 26px;
  box-shadow: var(--inner-edge), 0 6px 20px rgba(212,175,55,.12);
}

.hero__points { display: grid; gap: 12px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero__points li { display: flex; gap: 12px; align-items: flex-start; font-size: .96rem; }
.hero__points svg { color: var(--brass-500); flex: none; margin-top: 5px; }

/* Hero card */
.hero-card {
  background: linear-gradient(168deg, rgba(26,36,56,.94), rgba(10,15,26,.97));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  color: var(--text-soft);
}
.hero-card h3 { font-size: 1.06rem; margin-bottom: 5px; color: var(--text); }
.hero-card__sub { font-size: .89rem; margin-bottom: 22px; color: var(--text-mute); }

.hero-card__row {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.hero-card__row:last-of-type { border-bottom: 0; }
.hero-card__step {
  width: 32px; height: 32px; flex: none; border-radius: 50%;
  background: linear-gradient(170deg, var(--slate-700), var(--slate-900));
  border: 1px solid var(--line-warm);
  color: var(--brass-400);
  font-family: var(--font-ui); font-size: .8rem; font-weight: 700;
  display: grid; place-items: center;
  box-shadow: var(--inner-edge);
}
.hero-card__row strong { display: block; font-family: var(--font-ui); font-size: .93rem; color: var(--text); font-weight: 700; }
.hero-card__row span { font-size: .82rem; color: var(--text-mute); }
.hero-card .btn { margin-top: 24px; }

/* Trust bar */
.trustbar { border-block: 1px solid var(--line); background: rgba(0,0,0,.28); }
.trustbar ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 24px 0; }
.trustbar li {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  color: var(--text-soft); font-size: .86rem;
  font-family: var(--font-ui); font-weight: 600; text-align: center;
}
.trustbar svg { color: var(--brass-500); flex: none; }

/* ---------------------------------------------------------------
   6. Services
--------------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.service {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px;
  backdrop-filter: blur(12px);
  box-shadow: var(--inner-edge);
  overflow: hidden;
}
/* Brass glow that wakes up on hover. */
.service::after {
  content: ""; position: absolute; inset: -1px;
  border-radius: inherit; pointer-events: none;
  background: radial-gradient(70% 60% at 50% 0%, rgba(212,175,55,.16), transparent 70%);
  opacity: 0; transition: opacity .35s ease;
}
.service:hover::after { opacity: 1; }

.service__icon {
  width: 50px; height: 50px; border-radius: 13px;
  background: linear-gradient(165deg, var(--slate-700), var(--slate-900));
  border: 1px solid var(--line-warm);
  color: var(--brass-400);
  display: grid; place-items: center; margin-bottom: 20px;
  box-shadow: var(--inner-edge), 0 8px 20px rgba(0,0,0,.4);
}
.service h3 { margin-bottom: 9px; }
.service p { font-size: .94rem; margin-bottom: 0; }
.service__tag {
  display: inline-block; margin-top: 16px;
  font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  font-family: var(--font-ui);
  color: var(--brass-400);
  border: 1px solid var(--line-warm);
  padding: 5px 12px; border-radius: 100px;
}

/* ---------------------------------------------------------------
   7. Process
--------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 44px; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-display); font-size: 3.4rem;
  position: absolute; top: -18px; left: -3px; letter-spacing: -.03em;
  background: linear-gradient(170deg, var(--brass-400), rgba(212,175,55,.06));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step__line { height: 1px; background: var(--line); margin-bottom: 20px; position: relative; }
.step__line::after {
  content: ""; position: absolute; left: 0; top: 0; height: 1px; width: 42px;
  background: var(--brass-500); box-shadow: 0 0 12px rgba(212,175,55,.7);
}
.step h3 { font-size: 1.04rem; margin-bottom: 8px; }
.step p { font-size: .92rem; margin-bottom: 0; }

/* ---------------------------------------------------------------
   8. Pricing
--------------------------------------------------------------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }

.plan {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px 30px;
  display: flex; flex-direction: column;
  backdrop-filter: blur(12px);
  box-shadow: var(--inner-edge);
}

.plan--featured {
  background: linear-gradient(170deg, rgba(28,38,60,.96), rgba(9,13,24,.98));
  border-color: transparent;
}
/* Gradient brass rim drawn with a mask so it stays crisp. */
.plan--featured::before {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit; padding: 1px;
  background: linear-gradient(160deg, var(--brass-400), rgba(212,175,55,.15) 42%, rgba(212,175,55,.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

.plan__flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(175deg, var(--brass-400), var(--brass-600));
  color: #201703;
  font-family: var(--font-ui); font-size: .64rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
  padding: 7px 16px; border-radius: 100px;
  box-shadow: 0 8px 22px rgba(212,175,55,.4), inset 0 1px 0 rgba(255,255,255,.4);
  white-space: nowrap;
}

.plan h3 { font-size: 1.06rem; margin-bottom: 6px; }
.plan__blurb { font-size: .88rem; min-height: 46px; color: var(--text-mute); }
.plan__price {
  font-family: var(--font-display); font-size: 3.6rem;
  color: var(--text); letter-spacing: -.03em; line-height: 1;
  margin: 18px 0 6px;
}
.plan__price sup { font-size: 1.3rem; top: -1.1em; color: var(--brass-400); }
.plan--featured .plan__price {
  background: linear-gradient(120deg, #fff, var(--brass-100) 55%, var(--brass-400));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.plan__note { font-size: .78rem; margin-bottom: 26px; color: var(--text-mute); letter-spacing: .02em; }

.plan__features { display: grid; gap: 13px; margin-bottom: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.plan__features li { display: flex; gap: 11px; font-size: .91rem; align-items: flex-start; }
.plan__features svg { color: var(--brass-500); flex: none; margin-top: 5px; }
.plan .btn { margin-top: auto; }

.pricing-footnote { text-align: center; font-size: .85rem; margin: 32px auto 0; max-width: 680px; color: var(--text-mute); }

/* ---------------------------------------------------------------
   9. Why us
--------------------------------------------------------------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why {
  border: 1px solid var(--line);
  border-radius: var(--r); padding: 28px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  box-shadow: var(--inner-edge);
}
.why h3 { font-size: 1rem; margin-bottom: 8px; }
.why p { font-size: .91rem; margin-bottom: 0; }
.why svg { color: var(--brass-500); margin-bottom: 16px; }

/* ---------------------------------------------------------------
   10. Testimonials  (PLACEHOLDER CONTENT — see front-page.php)
--------------------------------------------------------------- */
.reviews {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(310px, 1fr);
  gap: 20px; overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  scrollbar-width: thin;
}
.review {
  scroll-snap-align: start;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r); padding: 28px;
  display: flex; flex-direction: column;
  backdrop-filter: blur(10px);
  box-shadow: var(--inner-edge);
}
.review__stars { color: var(--brass-500); display: flex; gap: 3px; margin-bottom: 16px; }
.review__quote { font-size: .94rem; margin-bottom: 22px; flex: 1; }
.review__person { display: flex; align-items: center; gap: 13px; padding-top: 18px; border-top: 1px solid var(--line); }
.review__avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: linear-gradient(165deg, var(--slate-700), var(--slate-900));
  border: 1px solid var(--line-warm);
  color: var(--brass-400);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.15rem;
}
.review__person strong { display: block; font-family: var(--font-ui); color: var(--text); font-size: .93rem; }
.review__person span { font-size: .82rem; color: var(--text-mute); }

.reviews-controls { display: flex; justify-content: center; gap: 12px; margin-top: 26px; }
.reviews-controls button {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--glass);
  color: var(--text-soft); cursor: pointer;
  display: grid; place-items: center;
  transition: border-color .25s ease, color .25s ease, transform .25s ease;
}
.reviews-controls button:hover { border-color: var(--brass-500); color: var(--brass-400); transform: translateY(-2px); }

/* Review submission */
.notice--center { max-width: 640px; margin-inline: auto; text-align: center; }

.reviews-empty {
  max-width: 620px; margin: 0 auto;
  text-align: center; font-size: .97rem; color: var(--text-mute);
}

.reviews-cta { display: flex; justify-content: center; margin-top: 30px; }

.review-form {
  max-width: 720px; margin: 26px auto 0;
  background: linear-gradient(168deg, rgba(26,36,56,.9), rgba(9,13,24,.96));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 34px);
  backdrop-filter: blur(14px);
  box-shadow: var(--lift-2), var(--inner-edge);
  animation: nsf-drop .35s cubic-bezier(.22,.68,.36,1);
}
.review-form[hidden] { display: none; }

@keyframes nsf-drop {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------
   11. FAQ
--------------------------------------------------------------- */
.faq { max-width: 830px; margin-inline: auto; display: grid; gap: 12px; }
.faq details {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
  transition: border-color .25s ease, background .25s ease;
}
.faq details[open] { border-color: var(--line-warm); background: var(--glass-hi); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 20px 58px 20px 24px; position: relative;
  font-family: var(--font-ui); font-weight: 700;
  color: var(--text); font-size: .99rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%;
  width: 9px; height: 9px; margin-top: -6px;
  border-right: 1.5px solid var(--brass-500);
  border-bottom: 1.5px solid var(--brass-500);
  transform: rotate(45deg); transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .faq__body { padding: 0 24px 22px; font-size: .93rem; }
.faq .faq__body p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------
   12. Lead form
--------------------------------------------------------------- */
.lead { background: linear-gradient(180deg, rgba(0,0,0,.4), rgba(0,0,0,.15)); position: relative; }
.lead-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: clamp(36px, 5vw, 64px); align-items: start; }
.lead__contact { display: grid; gap: 18px; margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--line); }
.lead__contact li { display: flex; gap: 13px; align-items: flex-start; font-size: .94rem; }
.lead__contact svg { color: var(--brass-500); flex: none; margin-top: 4px; }

.form-card {
  background: linear-gradient(168deg, rgba(26,36,56,.9), rgba(9,13,24,.96));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(26px, 3vw, 38px);
  backdrop-filter: blur(16px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label {
  display: block; font-family: var(--font-ui);
  font-size: .78rem; font-weight: 700; color: var(--text-soft);
  letter-spacing: .07em; text-transform: uppercase; margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: var(--font-ui); font-size: .95rem; color: var(--text);
  background: rgba(0,0,0,.32);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-mute); }
.field select option { background: var(--slate-900); color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brass-500);
  background: rgba(0,0,0,.45);
  box-shadow: 0 0 0 3px rgba(212,175,55,.14);
}
.field textarea { min-height: 118px; resize: vertical; }
.field--hp { position: absolute; left: -9999px; }

.form-consent { font-size: .8rem; margin: 6px 0 20px; color: var(--text-mute); }

.notice { border-radius: var(--r-sm); padding: 14px 18px; font-size: .9rem; margin-bottom: 22px; }
.notice--ok { background: rgba(46,160,102,.12); color: #6fd6a0; border: 1px solid rgba(46,160,102,.35); }
.notice--err { background: rgba(214,77,77,.12); color: #f09a9a; border: 1px solid rgba(214,77,77,.35); }

/* ---------------------------------------------------------------
   13. Footer
--------------------------------------------------------------- */
.site-footer { background: rgba(0,0,0,.5); border-top: 1px solid var(--line); font-size: .91rem; color: var(--text-mute); }
.footer-top { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.1fr; gap: 34px; padding: 64px 0 44px; }
.site-footer h4 {
  font-family: var(--font-ui); color: var(--text);
  font-size: .74rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; margin-bottom: 18px;
}
.site-footer a { color: var(--text-mute); }
.site-footer a:hover { color: var(--brass-400); }
.footer-about p { margin-top: 18px; max-width: 32em; }
.footer-links { display: grid; gap: 11px; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 24px 0 34px;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  font-size: .82rem;
}
.disclaimer {
  border-top: 1px solid var(--line);
  padding: 22px 0; font-size: .77rem; color: #55617a; line-height: 1.7;
}

/* ---------------------------------------------------------------
   14. Inner pages
--------------------------------------------------------------- */
.page-hero { padding: 80px 0 0; }
.page-hero h1 { margin-bottom: 10px; }
.entry { max-width: 780px; margin-inline: auto; }
.entry h2, .entry h3 { margin-top: 1.7em; }
.entry ul { list-style: disc; padding-left: 1.2em; margin-bottom: 1rem; }
.entry li { margin-bottom: .4em; }

/* ---------------------------------------------------------------
   15. Motion
--------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.68,.36,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===============================================================
   16. 3D DEPTH LAYER
   =============================================================== */

.hero-stage {
  position: relative;
  perspective: 1200px; perspective-origin: 56% 44%;
  display: grid; place-items: center;
  min-height: 460px;
}

/* --- Rotating wireframe globe: the signature element ----------- */
.globe {
  position: absolute;
  width: 320px; height: 320px;
  top: 50%; left: 50%; margin: -160px 0 0 -160px;
  transform-style: preserve-3d;
  transform: rotateX(-16deg) rotateY(0deg);
  animation: nsf-globe 40s linear infinite;
  pointer-events: none;
}
.globe__core {
  position: absolute; inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, rgba(212,175,55,.34), rgba(212,175,55,.06) 44%, transparent 70%);
  filter: blur(3px);
}
.globe__mer, .globe__lat { position: absolute; inset: 0; border: 1px solid rgba(212,175,55,.3); border-radius: 50%; }
.globe__mer { transform: rotateY(var(--a)); }
.globe__lat { transform: rotateX(90deg) translateZ(var(--z)) scale(var(--s)); border-color: rgba(255,255,255,.13); }

@keyframes nsf-globe {
  from { transform: rotateX(-16deg) rotateY(0deg); }
  to   { transform: rotateX(-16deg) rotateY(360deg); }
}

/* --- Hero card lifted off the page ----------------------------- */
.hero-card {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(6deg) rotateY(-10deg);
  transition: transform .55s cubic-bezier(.22,.68,.36,1);
  box-shadow: var(--lift-3), var(--inner-edge);
  will-change: transform;
}
/* Ghost plate sitting behind, giving the card real thickness. */
.hero-card::before {
  content: ""; position: absolute; inset: 16px 16px -22px 16px;
  border-radius: var(--r-lg);
  background: rgba(212,175,55,.09);
  border: 1px solid rgba(212,175,55,.14);
  transform: translateZ(-70px);
  z-index: -1;
}
.hero-card > * { transform: translateZ(30px); }

.hero-card__chip {
  position: absolute;
  font-family: var(--font-ui);
  font-size: .68rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 9px 16px; border-radius: 100px;
  transform: translateZ(80px);
  white-space: nowrap;
}
.hero-card__chip--a {
  top: -17px; right: 24px;
  background: linear-gradient(175deg, var(--brass-400), var(--brass-600));
  color: #201703;
  box-shadow: 0 12px 26px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.4);
}
.hero-card__chip--b {
  bottom: -16px; left: -20px;
  background: rgba(233,237,245,.95); color: var(--void);
  transform: translateZ(62px);
  box-shadow: 0 12px 26px rgba(0,0,0,.5);
}

/* --- Depth across the grids ------------------------------------ */
.card-grid, .pricing, .why-grid, .reviews, .faq { perspective: 1500px; }

.service, .plan, .why, .review {
  transform-style: preserve-3d;
  transition: transform .4s cubic-bezier(.22,.68,.36,1), box-shadow .4s ease, border-color .4s ease, background .4s ease;
}

.service:hover {
  transform: translateY(-8px) rotateX(4deg) scale(1.014);
  border-color: var(--line-warm);
  box-shadow: var(--lift-2), var(--inner-edge), 0 0 40px rgba(212,175,55,.09);
}

.plan:hover { transform: translateY(-7px) rotateX(2.5deg); border-color: var(--line-warm); box-shadow: var(--lift-2), var(--inner-edge); }

.plan--featured {
  transform: translateY(-18px) scale(1.045);
  box-shadow: var(--lift-3), 0 0 70px rgba(212,175,55,.14), var(--inner-edge);
  z-index: 2;
}
.plan--featured:hover { transform: translateY(-24px) scale(1.055) rotateX(2deg); }
/* Pool of light under the featured plan. */
.plan--featured::after {
  content: ""; position: absolute; inset: auto 26px -22px 26px; height: 36px;
  border-radius: 50%;
  background: rgba(212,175,55,.22);
  filter: blur(24px); z-index: -1;
}

.why:hover { transform: translateY(-6px) rotateX(3deg); background: var(--glass-hi); border-color: var(--line-warm); }
.review:hover { transform: translateY(-6px); border-color: var(--line-warm); box-shadow: var(--lift-2), var(--inner-edge); }

.form-card { box-shadow: var(--lift-3), var(--inner-edge); }

/* ---------------------------------------------------------------
   17. Responsive
--------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { min-height: 0; perspective: none; }
  .hero-card { transform: none; }
  .hero-card > * { transform: none; }
  .hero-card::before { display: none; }
  .globe { position: relative; margin: 0 auto 34px; top: auto; left: auto; }
  .card-grid, .steps, .pricing, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .lead-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .trustbar ul { grid-template-columns: repeat(2, 1fr); }
  .plan--featured { transform: none; }
  .plan--featured:hover { transform: translateY(-6px); }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 82px;
    background: rgba(6,9,18,.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px 22px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .header-cta { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .card-grid, .steps, .pricing, .why-grid, .form-row,
  .footer-top, .trustbar ul { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .reviews { grid-auto-columns: minmax(270px, 88%); }
  .globe { width: 220px; height: 220px; margin-bottom: 26px; }
  .globe__lat[style*="112"] { display: none; }
  .hero-card__chip--b { left: 10px; }
  .plan__price { font-size: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .globe { animation: none; transform: rotateX(-16deg) rotateY(-26deg); }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
