/* =========================================================
   Migrate Digital — Services Page Styles
   Depends on: migrate-tokens.css + home.css (loaded first)
   Only contains NEW styles not already in home.css.
   ========================================================= */


/* ==========================================================
   ACTIVE NAV STATE — applies across all pages
   Placed here until home.css is refactored into a shared lib
   ========================================================== */

.masthead .nav-list a[aria-current="page"] {
  color: var(--bronze-hi);
}


/* ==========================================================
   INTERIOR HERO  ·  dark cover-style, type-at-top + dossier
   pinned to bottom via flex. Matches home .section-hero
   padding rhythm (72 / 34) and min-height (75vh).
   ========================================================== */

.section-hero-interior {
  position: relative;
  /* max() floor so the hero is large enough that a 2-line
     headline (process) never pushes past the min-height while
     the 1-line headlines (services, contact) are still snapping
     to min-height. Keeps all three interior heros identical. */
  min-height: max(50vh, 480px);
  display: flex;
  flex-direction: column;
  padding-top: 72px;
  padding-bottom: 34px;
}

/* Head vertically centered in the container; the meta strip
   is absolutely positioned at the bottom of the section
   (out of flow) so it sits on the same Y as the Website Build
   folder-tab that protrudes up into the hero. */
.section-hero-interior > .container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-interior-head {
  display: grid;
  row-gap: var(--sp-9); /* 20px */
  max-width: 900px;
}

.hero-interior-headline {
  /* Larger than standard .t-headline (25px) for cover emphasis,
     but well below the 92px home wordmark. --t-8 = 36px. */
  font-size: var(--t-8);
  line-height: var(--lh-display);
  letter-spacing: var(--track-display-tight);
}

.hero-interior-lede {
  max-width: 780px;
}


/* ==========================================================
   INTERIOR SECTION PADDING  ·  match home's rhythm: every
   non-hero section gets 120px top / 154px bottom.
   ========================================================== */

.section-build,
.section-rank,
.section-faq,
.section-cta-simple {
  padding-top: 120px;
  padding-bottom: 154px;
}


/* ==========================================================
   SECTION EYEBROW  ·  small bronze tag above the headline
   inside .section-head-body (for interior section pages).
   ========================================================== */

.section-eyebrow {
  display: inline-block;
  margin-bottom: var(--sp-5); /* 12px */
}

/* FAQ section eyebrow: de-emphasize by matching the folder-tab
   grey (--ink-3) instead of the default bronze. Avoids the
   bronze folder-tab + bronze eyebrow double-read of "FAQ". */
.section-faq .section-eyebrow {
  color: var(--ink-3);
}


/* ==========================================================
   WEBSITE BUILD PANEL  ·  .panel-build shares .panel chassis.
   Because this is a FULL-WIDTH panel (unlike home's half-width
   .panel-service), every child gets a more generous 40px
   horizontal inset so the content doesn't feel pressed against
   the panel edges. Matches the editorial scale of home's
   .discipline-block (--sp-13 = 48px). All four children keep
   the SAME horizontal inset so panel-head tag, row numerals,
   not-in-scope label, and panel-foot meta all line up.
   ========================================================== */

.panel-build {
  background: var(--surface);
}

.panel-build .panel-head {
  padding: var(--sp-9) var(--sp-12); /* 20 / 40 */
}

.panel-build .rows {
  padding: var(--sp-5) var(--sp-12) var(--sp-10); /* 12 / 40 / 24 */
}

.panel-build .panel-foot {
  padding: var(--sp-7) var(--sp-12); /* 16 / 40 */
}


/* ==========================================================
   NOT-IN-SCOPE BLOCK  ·  nested inside .panel-build, below
   the rows. Aligned to the rows' 3-column grid so the
   "NOT IN SCOPE" label lines up vertically with the row
   labels above, and the exclusion list sits directly beneath
   the row descriptions. Muted ink-3 color signals "excluded."
   Em-dash bullets in bronze (signature move #10).
   ========================================================== */

.not-in-scope {
  display: grid;
  grid-template-columns: 40px 220px 1fr;
  column-gap: var(--sp-10); /* matches .rows .row gap */
  padding: var(--sp-9) var(--sp-12); /* 20 vertical / 40 horizontal — matches .panel-build rows */
  border-top: var(--rule) solid var(--hairline);
}

.nis-label {
  grid-column: 2; /* align with .rows .row .lb */
  display: inline-flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding-top: 2px; /* optical alignment with first item */
  line-height: 1.3;
}

.nis-list {
  grid-column: 3; /* align with .rows .row .dc */
  list-style: none;
  display: grid;
  row-gap: var(--sp-4); /* 10px */
}

.nis-item {
  font-family: var(--body);
  font-weight: 400;
  font-size: var(--t-3); /* 13px */
  line-height: var(--lh-body);
  color: var(--ink-3); /* muted — signals excluded */
  padding-left: var(--sp-7); /* 16px room for em-dash */
  position: relative;
}
.nis-item::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--bronze);
  font-weight: 500;
}


/* ==========================================================
   LOCAL SEO  ·  two-panel grid reuses home's .services-grid.
   Panel variant .panel-rank tracks with .panel-service but
   doesn't need hover (not a link).
   ========================================================== */

.panel-rank {
  background: var(--surface);
  display: flex;
  flex-direction: column;
}

/* No hover state — these are info panels, not links. */
.panel-rank:hover { background: var(--surface); }

.panel-rank .rows {
  flex: 1;
  padding: var(--sp-5) var(--sp-10) var(--sp-10);
}


/* ==========================================================
   MIN-COMMITMENT BLOCK  ·  scope-locked caption below the
   Local SEO grid. Hairline top border, tight padding.
   ========================================================== */

.min-commitment {
  margin-top: var(--sp-12); /* 40px */
  padding: var(--sp-10) 0 0; /* 24px top */
  border-top: var(--rule) solid var(--hairline);
  display: grid;
  row-gap: var(--sp-4); /* 10px */
  max-width: 780px;
}

.mc-label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
}

.mc-body {
  font-family: var(--body);
  font-weight: 400;
  font-size: var(--t-4); /* 14px */
  line-height: var(--lh-body);
  color: var(--ink);
}


/* ==========================================================
   FAQ  ·  static Q/A stack using <dl>. Each .faq-item is a
   3-zone row: bronze number / question / answer beneath both.
   ========================================================== */

.panel-faq {
  background: var(--surface);
}

.faq {
  /* Sits between panel-head and panel-foot, full width of panel. */
}

.faq-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: var(--sp-7); /* 16px */
  row-gap: var(--sp-5); /* 12px */
  padding: var(--sp-10) var(--sp-12); /* 24 / 40 */
  border-top: var(--rule) solid var(--hairline);
}

.faq-item:first-child {
  border-top: none;
}

.faq-n {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--title);
  font-weight: 600;
  font-size: var(--t-4); /* 14px */
  letter-spacing: var(--track-ui-m);
  color: var(--bronze);
  line-height: 1.2;
  padding-top: 2px; /* optical alignment with question cap height */
}

.faq-q {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--title);
  font-weight: 600;
  font-size: var(--t-5); /* 16px */
  line-height: 1.35;
  letter-spacing: -0.002em;
  color: var(--ink);
}

.faq-a {
  grid-column: 2;
  grid-row: 2;
  font-family: var(--body);
  font-weight: 400;
  font-size: var(--t-4); /* 14px */
  line-height: var(--lh-body-lg);
  color: var(--ink-2);
}


/* ==========================================================
   SIMPLE DARK CTA  ·  the services-page closer. Single column,
   no form, no contact rail — just copy + button + stamp.
   (Home's .section-cta has a two-column form layout; this is
   the lighter sibling for content pages.)
   ========================================================== */

.section-cta-simple {
  position: relative;
  /* Vertical padding is set by the unified .section-build/.section-rank/.section-faq/.section-cta-simple rule above. */
}

.cta-simple-grid {
  display: grid;
  row-gap: var(--sp-9); /* 20px */
  max-width: 900px;
}

.cta-simple-headline {
  font-size: var(--t-8); /* 36px — matches interior hero scale */
  line-height: var(--lh-display);
  letter-spacing: var(--track-display-tight);
}

.cta-simple-sub {
  font-family: var(--body);
  font-weight: 400;
  font-size: var(--t-4);
  line-height: var(--lh-body-lg);
  color: var(--dark-2);
  max-width: 720px;
}

.cta-simple-actions {
  margin-top: var(--sp-4); /* 10px */
  display: flex;
  gap: var(--sp-9);
}

.cta-simple-stamp {
  margin-top: var(--sp-7); /* 16px */
  display: inline-flex;
  align-items: center;
  gap: var(--sp-5); /* 12px */
}


/* ==========================================================
   RESPONSIVE  ·  breakpoints aligned with home.css (960 / 560).
   Home handles shared components (masthead, services-grid,
   profile-grid, rows); services.css only handles the new bits.
   ========================================================== */

@media (max-width: 960px) {

  .section-build,
  .section-rank,
  .section-faq,
  .section-cta-simple {
    padding-top: 80px;
    padding-bottom: 100px;
  }

  /* Interior hero vertical rhythm matches home's .section-hero on
     mobile — 120px top / 48px bottom. Containers on interior pages
     are flex: 1 + justify-content: center by default; switch to
     flex-start so the new section padding-top reliably becomes
     eyebrow breathing room instead of being absorbed by centering. */
  .section-hero-interior {
    padding-top: 120px;       /* 72 masthead + 48 above eyebrow */
    padding-bottom: 48px;     /* space after meta strip */
  }
  .section-hero-interior > .container {
    justify-content: flex-start;
  }

  /* Mobile interior H1 drops to match .t-headline (~28.9px) so
     the hero reads as a peer of the section H2s below it. */
  .hero-interior-headline {
    font-size: calc(var(--t-7) * 1.155); /* ~28.9px */
  }

  .faq-item {
    padding: var(--sp-9) var(--sp-10); /* 20 / 24 */
    column-gap: var(--sp-5);
  }

  .cta-simple-headline {
    font-size: var(--t-7); /* 25px */
  }

  /* Not-in-scope on mobile: collapse the 3-col grid so
     label and list stack vertically instead of the 40/220/1fr
     layout, which overflows a narrow viewport. */
  .not-in-scope {
    grid-template-columns: 1fr;
    padding: var(--sp-9) var(--sp-10);
    row-gap: var(--sp-5);
  }
  .nis-label,
  .nis-list {
    grid-column: 1;
  }

  /* Panel-build: reduce horizontal padding from 40px to 24px
     on mobile. The desktop 40px inset is too generous for a
     narrow viewport. */
  .panel-build .panel-head {
    padding: var(--sp-9) var(--sp-10);
  }
  .panel-build .rows {
    padding: var(--sp-5) var(--sp-10) var(--sp-10);
  }
  .panel-build .panel-foot {
    padding: var(--sp-7) var(--sp-10);
  }

}

@media (max-width: 560px) {

  .section-hero-interior {
    min-height: auto;
  }

  /* Same scale as .t-headline — hero reads as a peer of the H2s. */
  .hero-interior-headline {
    font-size: calc(var(--t-7) * 1.155); /* ~28.9px */
  }

  .cta-simple-headline {
    font-size: calc(var(--t-7) * 1.05);
  }

}
