/* ═══════════════════════════════════════════════════════════
   C-LEVEL LEGAL  ·  Production Stylesheet
   ═══════════════════════════════════════════════════════════ */

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
ol, ul { list-style: none; }

/* ── Tokens ───────────────────────────────────────────────── */
:root {
  /* Brand palette — all in oklch for perceptual uniformity */
  --navy:        oklch(26% 0.115 265);   /* logo dark navy   */
  --navy-deep:   oklch(20% 0.10  265);   /* darkest surfaces */
  --blue:        oklch(50% 0.135 248);   /* logo sky-blue    */
  --blue-mid:    oklch(62% 0.115 245);   /* hover/accent     */
  --blue-pale:   oklch(80% 0.07  242);   /* light accents    */
  --ink:         oklch(22% 0.04  265);   /* body text        */
  --ink-muted:   oklch(46% 0.04  265);   /* secondary text   */
  --surface:     oklch(99% 0.004 240);   /* near-white bg    */
  --surface-alt: oklch(97% 0.008 240);   /* tinted off-white */
  --rule:        oklch(91% 0.012 240);   /* dividers         */

  /* Typography */
  --f-display: 'Marcellus', Georgia, serif;
  --f-body:    'Plus Jakarta Sans', system-ui, sans-serif;

  /* Fluid scale */
  --text-xs:  clamp(.72rem,  1vw,   .78rem);
  --text-sm:  clamp(.85rem,  1.3vw, .92rem);
  --text-md:  clamp(.95rem,  1.5vw, 1.02rem);
  --text-lg:  clamp(1.05rem, 1.8vw, 1.18rem);
  --text-xl:  clamp(1.2rem,  2.2vw, 1.45rem);
  --text-2xl: clamp(1.6rem,  3vw,   2.1rem);
  --text-3xl: clamp(2rem,    3.8vw, 2.8rem);
  --text-4xl: clamp(2.5rem,  4.8vw, 4rem);

  /* Space */
  --space-xs:  clamp(.5rem,  1vw,   .75rem);
  --space-sm:  clamp(.75rem, 1.5vw, 1rem);
  --space-md:  clamp(1rem,   2vw,   1.5rem);
  --space-lg:  clamp(1.5rem, 3vw,   2.5rem);
  --space-xl:  clamp(2rem,   4vw,   3.5rem);
  --space-2xl: clamp(3rem,   6vw,   5.5rem);
  --space-3xl: clamp(4rem,   8vw,   7rem);

  --container: 1200px;
}

/* ── Base ─────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f-body);
  font-size: var(--text-md);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }

strong {
  font-weight: 600;
  color: var(--ink);
}

p + p { margin-top: .9em; }

/* ── Container ────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--f-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .85rem 2rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
  line-height: 1;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--navy);
  color: var(--surface);
  border-color: var(--navy);
}
.btn-primary:hover {
  background: var(--blue);
  border-color: var(--blue);
}

.btn-light {
  background: var(--surface);
  color: var(--navy);
  border-color: var(--surface);
}
.btn-light:hover {
  background: transparent;
  color: var(--surface);
  border-color: var(--surface);
}

.btn-dark {
  background: var(--navy);
  color: var(--surface);
  border-color: var(--navy);
  width: 100%;
  text-align: center;
  margin-top: var(--space-lg);
}
.btn-dark:hover {
  background: var(--blue);
  border-color: var(--blue);
}

/* ── Labels & Section Headings ────────────────────────────── */
.label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .6rem;
}

.label--light { color: var(--blue-pale); }

.section-hd {
  margin-bottom: var(--space-xl);
}

.section-hd h2 {
  font-family: var(--f-display);
  font-size: var(--text-3xl);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.2;
  margin-top: .3rem;
}

.section-hd--light h2 { color: var(--surface); }
.heading--light        { color: var(--surface); }

/* ── Scroll Reveal ────────────────────────────────────────── */
/* Applied via JS .reveal → .in-view */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* stagger siblings */
.reveal:nth-child(2) { transition-delay: .1s; }
.reveal:nth-child(3) { transition-delay: .2s; }
.reveal:nth-child(4) { transition-delay: .3s; }

/* ═══════════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════════ */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--surface);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}

.nav-wrap.scrolled {
  border-color: var(--rule);
  box-shadow: 0 1px 12px oklch(0% 0 0 / 7%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--space-lg);
}

.nav-logo img {
  height: 42px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links a {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color .2s;
}

.nav-links a:hover { color: var(--blue); }

.nav-cta {
  background: var(--navy);
  color: var(--surface) !important;
  padding: .5rem 1.2rem;
  transition: background .2s !important;
}

.nav-cta:hover {
  background: var(--blue) !important;
  color: var(--surface) !important;
}

/* hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  transition: width .3s, transform .3s, opacity .3s;
}

.nav-toggle span:nth-child(1) { width: 100%; }
.nav-toggle span:nth-child(2) { width: 70%; }
.nav-toggle span:nth-child(3) { width: 100%; }

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  width: 100%;
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  width: 100%;
}

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
  background: var(--navy-deep);
  position: relative;
  overflow: hidden;
  min-height: min(88vh, 740px);
  display: flex;
  align-items: center;
}

/* ambient glow from blue accent */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 90% at 88% 55%, oklch(50% 0.135 248 / .14) 0%, transparent 55%),
    radial-gradient(ellipse 45% 55% at 10% 85%, oklch(50% 0.135 248 / .06) 0%, transparent 50%);
  pointer-events: none;
}

/* thin accent stripe at top */
.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-pale) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--space-2xl);
  align-items: flex-end;
  padding-top: var(--space-3xl);
  padding-bottom: 0;
  width: 100%;
}

.eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue-pale);
  margin-bottom: var(--space-md);
}

.hero-inner h1 {
  font-family: var(--f-display);
  font-size: var(--text-4xl);
  font-weight: 400;
  color: var(--surface);
  line-height: 1.13;
  margin-bottom: var(--space-md);
}

.hero-inner h1 em {
  font-style: italic;
  color: var(--blue-pale);
}

.hero-sub {
  font-size: var(--text-lg);
  color: oklch(88% 0.015 240);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
  max-width: 440px;
}

.hero-photo {
  align-self: flex-end;
}

.hero-photo img {
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  /* fade bottom into navy bg */
  -webkit-mask-image: linear-gradient(to top, transparent 0%, black 18%);
          mask-image: linear-gradient(to top, transparent 0%, black 18%);
}

/* ═══════════════════════════════════════════════════════════
   CREDENTIALS BAR
   ═══════════════════════════════════════════════════════════ */
.cred-bar {
  background: var(--navy);
  padding: var(--space-md) 0;
  border-bottom: 1px solid oklch(35% 0.08 265);
}

.cred-bar-inner {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  justify-content: center;
}

.cred-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-pale);
  white-space: nowrap;
}

.cred-list {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
}

.cred-list li {
  font-family: var(--f-display);
  font-size: var(--text-md);
  color: oklch(92% 0.012 240);
  white-space: nowrap;
}

.cred-list li + li::before {
  content: '·';
  margin-right: var(--space-sm);
  color: var(--blue-mid);
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════
   SECTION — shared
   ═══════════════════════════════════════════════════════════ */
.section {
  padding-block: var(--space-3xl);
}

/* ═══════════════════════════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════════════════════════ */
.how { background: var(--surface); }

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.how-prose .lead {
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: var(--space-md);
}

.how-prose p {
  color: var(--ink-muted);
}

.how-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  border-left: 1px solid var(--rule);
  padding-left: var(--space-xl);
}

.how-step {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.step-num {
  font-family: var(--f-display);
  font-size: 2.2rem;
  color: var(--blue);
  opacity: .35;
  line-height: 1;
  flex-shrink: 0;
  min-width: 2.8rem;
}

.how-step h3 {
  font-family: var(--f-body);
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .35rem;
}

.how-step p {
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

/* ═══════════════════════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════════════════════ */
.services { background: var(--surface-alt); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* hairline grid via gap + background */
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.svc {
  background: var(--surface);
  padding: var(--space-xl) var(--space-lg);
  transition: background .2s;
}

.svc:hover { background: oklch(97.5% 0.012 248); }

.svc-mark {
  display: block;
  font-size: 1.6rem;
  color: var(--blue);
  opacity: .6;
  margin-bottom: var(--space-sm);
  font-family: var(--f-display);
  line-height: 1;
}

.svc h3 {
  font-family: var(--f-body);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .5rem;
}

.svc p {
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

/* ═══════════════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════════════ */
.about { background: var(--surface); }

.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-2xl);
  align-items: center;
}

.about-photo {
  position: relative;
}

/* offset frame */
.about-photo::after {
  content: '';
  position: absolute;
  inset: 20px -20px -20px 20px;
  border: 1px solid var(--rule);
  z-index: -1;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  display: block;
  position: relative;
  z-index: 1;
}

.about-body h2 {
  font-family: var(--f-display);
  font-size: var(--text-3xl);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.2;
  margin-top: .3rem;
  margin-bottom: var(--space-lg);
}

.about-body p {
  color: var(--ink-muted);
}

/* ═══════════════════════════════════════════════════════════
   COMPARISON
   ═══════════════════════════════════════════════════════════ */
.comparison {
  background: var(--navy-deep);
  position: relative;
  overflow: hidden;
}

.comparison::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, oklch(50% 0.135 248 / .08) 0%, transparent 60%);
  pointer-events: none;
}

.comparison .section-hd {
  position: relative;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  align-items: start;
  position: relative;
}

.cmp-card {
  background: oklch(30% 0.09 265);
  border: 1px solid oklch(36% 0.08 265);
  padding: var(--space-xl) var(--space-lg);
  position: relative;
}

.cmp-card h3 {
  font-family: var(--f-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: oklch(82% 0.018 240);
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-md);
  border-bottom: 1px solid oklch(38% 0.07 265);
}

.cmp-list {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

.cmp-list li {
  font-size: var(--text-sm);
  color: oklch(70% 0.018 240);
  padding-left: 1.4rem;
  position: relative;
  line-height: 1.45;
}

.cmp-list li::before {
  position: absolute;
  left: 0;
  top: .05em;
  font-size: .8rem;
  font-weight: 700;
}

.cmp-list li.pro { color: oklch(78% 0.018 240); }
.cmp-list li.pro::before { content: '✓'; color: var(--blue-pale); }
.cmp-list li.con::before { content: '✕'; color: oklch(50% 0.05 265); }

/* Featured card */
.cmp-card--featured {
  background: var(--surface);
  border: none;
  box-shadow:
    0 0 0 1px oklch(60% 0.10 248 / .25),
    0 8px 48px oklch(20% 0.10 265 / .5),
    0 2px 12px oklch(20% 0.10 265 / .3);
  transform: translateY(-8px);
  z-index: 1;
}

.cmp-card--featured h3 {
  color: var(--navy);
  border-color: var(--rule);
}

.cmp-card--featured .cmp-list li {
  color: var(--ink-muted);
}

.cmp-card--featured .cmp-list li.pro { color: var(--ink); }
.cmp-card--featured .cmp-list li.pro::before { color: var(--blue); }

.cmp-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: var(--surface);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .3rem 1.1rem;
  white-space: nowrap;
}

.cmp-cta {
  margin-top: var(--space-lg);
}

/* ═══════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════ */
.contact {
  background: var(--surface-alt);
  border-top: 1px solid var(--rule);
}

.contact-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact-info h2 {
  font-family: var(--f-display);
  font-size: var(--text-3xl);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.2;
  margin-top: .3rem;
  margin-bottom: var(--space-md);
}

.contact-info p {
  color: var(--ink-muted);
  margin-bottom: var(--space-xl);
}

.contact-phone {
  font-family: var(--f-display);
  font-size: var(--text-2xl);
  color: var(--navy);
  transition: color .2s;
  display: block;
}

.contact-phone:hover { color: var(--blue); }

/* form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.field label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink);
}

.field input,
.field textarea {
  font-family: var(--f-body);
  font-size: var(--text-md);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: .75rem 1rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
  resize: vertical;
  border-radius: 0; /* intentional — matches sharp brand aesthetic */
}

.field input:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px oklch(50% 0.135 248 / .12);
}

.contact-form .btn-primary {
  align-self: flex-start;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
  background: var(--navy-deep);
  padding: var(--space-xl) 0;
  border-top: 1px solid oklch(30% 0.08 265);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer-logo {
  height: 34px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .75;
}

.footer-copy {
  font-size: var(--text-xs);
  color: oklch(62% 0.015 240);
}

.footer-phone {
  font-family: var(--f-display);
  font-size: var(--text-md);
  color: var(--blue-pale);
  transition: color .2s;
}

.footer-phone:hover { color: var(--surface); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

/* tablet */
@media (max-width: 1024px) {
  .how-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .about-grid {
    grid-template-columns: 1fr 1.4fr;
  }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-bottom: var(--space-3xl);
  }

  .hero-photo { display: none; }

  .hero-sub { max-width: 100%; }

  .comparison-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .cmp-card--featured {
    transform: none;
    order: -1;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-photo {
    max-width: 380px;
  }
}

/* mobile */
@media (max-width: 640px) {
  /* show hamburger */
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-lg) clamp(1.25rem, 5vw, 3rem);
    gap: var(--space-lg);
    border-top: 1px solid var(--rule);
    box-shadow: 0 8px 24px oklch(0% 0 0 / .12);
    z-index: 100;
  }

  .nav-links.is-open { display: flex; }

  .nav-cta { align-self: flex-start; }

  .services-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .cred-bar-inner { flex-direction: column; gap: var(--space-sm); }

  .cred-list { flex-direction: column; align-items: center; }
  .cred-list li + li::before { display: none; }

  .footer-inner { flex-direction: column; text-align: center; }

  .how-steps { padding-left: var(--space-md); }
}

/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .btn:hover { transform: none; }
}
