/* ============================================================
   Engine Seven — styles
   Design tokens per approved "bold statement" direction.
   Flat design: hairlines only, no gradients / shadows / glows.
   ============================================================ */

:root {
  --navy: #0C447C;
  --navy-deep: #093562;         /* darker navy for step numbers / subtle depth */
  --white: #FFFFFF;
  --light-blue: #B5D4F4;
  --light-blue-strong: #CFE0F5;
  --amber: #EF9F27;
  --amber-text: #412402;
  --amber-hover: #D98E1F;
  --ink: #1A1A18;
  --muted: #5F5E5A;
  --hairline: #E7E5DF;
  --surface: #F7F6F3;           /* faint warm off-white for alternating sections */

  --maxw: 1120px;
  --maxw-text: 720px;
  --gutter: 24px;
  --radius: 8px;
  --radius-lg: 12px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --section-y: clamp(64px, 8.5vw, 112px);
}

/* ---------- Reset-ish ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px; /* offset for sticky header on anchor jumps */
}

body {
  margin: 0;
  overflow-x: hidden; /* guard against accidental horizontal scroll on small screens */
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, ul, ol, figure, address {
  margin: 0;
}

ul {
  list-style: none;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

address {
  font-style: normal;
}

img, svg {
  display: block;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Focus states ---------- */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Elements on navy need a lighter focus ring for contrast */
.hero a:focus-visible,
.site-header a:focus-visible,
.site-header button:focus-visible,
.section--navy a:focus-visible,
.cta a:focus-visible {
  outline-color: var(--white);
}

/* ---------- Shared type helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--navy);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--amber);
  flex-shrink: 0;
}

.section-head {
  max-width: var(--maxw-text);
}
.section-title {
  font-size: clamp(27px, 3.8vw, 40px);
  font-weight: 600;
  line-height: 1.13;
  letter-spacing: -0.02em;
  margin-top: 18px;
}
.section-lead {
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 19px);
  line-height: 1.6;
  margin-top: 20px;
}

/* On navy sections, recolor helpers */
.section--navy .eyebrow { color: var(--light-blue); }
.section--navy .section-title { color: var(--white); }
.section--navy .section-lead { color: var(--light-blue-strong); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-amber {
  background: var(--amber);
  color: var(--amber-text);
}
.btn-amber:hover {
  background: var(--amber-hover);
}

/* Ghost button for use on navy */
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.btn .btn-arrow {
  transition: transform 0.15s ease;
}
.btn:hover .btn-arrow {
  transform: translateX(2px);
}

/* ============================================================
   LOGO / WORDMARK
   ============================================================ */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
.logomark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  font-weight: 700;
  font-size: 17px;
  line-height: 1;
  flex-shrink: 0;
}
.wordmark {
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
}

/* Logo on navy (header) */
.site-header .logomark { background: var(--amber); color: var(--amber-text); }
.site-header .wordmark { color: var(--white); }

/* Logo on white (footer) */
.site-footer .logomark { background: var(--navy); color: var(--white); }
.site-footer .wordmark { color: var(--ink); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

/* Solid navy once scrolled past the hero top, or always on interior pages */
.site-header.is-scrolled,
.site-header.solid {
  background: var(--navy);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--light-blue);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.15s ease;
}
.nav-links a:hover {
  color: var(--white);
}

.nav-cta {
  padding: 10px 18px;
}

/* Hamburger — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  margin: 0 auto;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu panel */
.mobile-menu {
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px var(--gutter) 24px;
}
.mobile-menu ul {
  display: flex;
  flex-direction: column;
}
.mobile-menu a {
  display: block;
  color: var(--light-blue);
  font-weight: 500;
  font-size: 17px;
  padding: 14px 0;
}
.mobile-menu a:hover { color: var(--white); }
.mobile-cta { width: 100%; margin-top: 8px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--navy);
  color: var(--white);
  margin-top: -72px; /* pull up under the transparent sticky header */
  padding-top: calc(72px + 92px);
  padding-bottom: 100px;
}
.hero-inner { max-width: 960px; }

.hero-headline {
  font-weight: 700;
  font-size: clamp(31px, 5.2vw, 56px);
  line-height: 1.07;
  letter-spacing: -0.022em;
  max-width: 15ch;
}
.hero-subhead {
  color: var(--light-blue);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  max-width: 52ch;
  margin-top: 22px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 34px;
}
.hero-note {
  color: var(--light-blue);
  font-size: 14px;
}
.hero-note a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
.section { padding-block: var(--section-y); }
.section--tint { background: var(--surface); }
.section--navy { background: var(--navy); color: var(--light-blue-strong); }
.section--hair-top { border-top: 1px solid var(--hairline); }

/* ============================================================
   POSITIONING (two-column intro)
   ============================================================ */
.positioning-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px 64px;
  align-items: start;
}
.positioning-body p + p { margin-top: 18px; }
.positioning-body p {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.6;
  color: var(--ink);
}
.positioning-body .muted { color: var(--muted); font-size: 17px; }

/* ============================================================
   SERVICES (detailed cards)
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.service-card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  background: var(--white);
  display: flex;
  flex-direction: column;
}
.service-icon {
  color: var(--navy);
  margin-bottom: 22px;
}
.service-title {
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.service-descriptor {
  color: var(--navy);
  font-weight: 500;
  font-size: 15px;
  margin-top: 8px;
}
.service-desc {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
  margin-top: 16px;
}
.service-includes {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.service-includes li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.45;
}
.service-includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--amber);
}

/* ============================================================
   APPROACH (numbered steps on navy)
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 40px;
  margin-top: 56px;
}
.step {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.step-num {
  font-size: 15px;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.02em;
}
.step-title {
  color: var(--white);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
  margin-top: 16px;
}
.step-text {
  color: var(--light-blue);
  font-size: 15px;
  line-height: 1.6;
  margin-top: 12px;
}

/* ============================================================
   VALUES / ABOUT
   ============================================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}
.value {
  padding: 8px 34px 8px 0;
  border-left: 1px solid var(--hairline);
  padding-left: 34px;
}
.values-grid .value:first-child {
  border-left: none;
  padding-left: 0;
}
.value-icon { color: var(--navy); margin-bottom: 18px; }
.value-title {
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.value-text {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
  margin-top: 10px;
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta {
  background: var(--navy);
  color: var(--white);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px 56px;
  flex-wrap: wrap;
  padding-block: clamp(52px, 7vw, 84px);
}
.cta-copy { max-width: 34ch; }
.cta-title {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.02em;
}
.cta-sub {
  color: var(--light-blue-strong);
  font-size: 18px;
  line-height: 1.55;
  margin-top: 16px;
}
.cta .btn-amber { padding: 15px 26px; font-size: 17px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--hairline);
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 56px;
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-tagline {
  color: var(--muted);
  max-width: 26ch;
  font-size: 15px;
}
.footer-heading {
  font-weight: 500;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col a {
  color: var(--ink);
  font-size: 15px;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--navy); }

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 14px;
}
.footer-contact address,
.footer-contact a {
  min-width: 0;
  overflow-wrap: anywhere;
}
.contact-icon {
  color: var(--navy);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Bottom bar */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 22px;
  border-top: 1px solid var(--hairline);
}
.copyright { color: var(--muted); font-size: 14px; }
.legal-links { display: flex; gap: 24px; }
.legal-links a {
  color: var(--muted);
  font-size: 14px;
  transition: color 0.15s ease;
}
.legal-links a:hover { color: var(--navy); }

/* ============================================================
   INTERIOR / LEGAL PAGES
   ============================================================ */
.page-header {
  background: var(--navy);
  color: var(--white);
  margin-top: -72px;
  padding-top: calc(72px + 72px);
  padding-bottom: 64px;
}
.page-header .eyebrow { color: var(--light-blue); }
.page-title {
  font-weight: 700;
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-top: 16px;
}
.page-meta {
  color: var(--light-blue);
  font-size: 15px;
  margin-top: 18px;
}

.legal {
  padding-block: clamp(48px, 6vw, 80px);
}
.legal-inner {
  max-width: var(--maxw-text);
  margin: 0 auto;
}

/* Template / review callout */
.notice {
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px 22px;
  margin-bottom: 44px;
}
.notice p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}
.notice strong { color: var(--ink); font-weight: 600; }

.legal h2 {
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-top: 44px;
  margin-bottom: 14px;
  scroll-margin-top: 96px;
}
.legal h2:first-of-type { margin-top: 0; }
.legal h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 26px;
  margin-bottom: 10px;
}
.legal p {
  color: var(--ink);
  font-size: 16.5px;
  line-height: 1.7;
  margin-bottom: 16px;
}
.legal p.muted { color: var(--muted); }
.legal ul {
  list-style: none;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.legal ul li {
  position: relative;
  padding-left: 24px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
}
.legal ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--amber);
}
.legal a:not(.btn) {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal a:not(.btn):hover { color: var(--amber-hover); }

.legal-toc {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 44px;
}
.legal-toc h2 {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.legal-toc ol {
  list-style: none;
  padding: 0;
  columns: 2;
  column-gap: 32px;
}
.legal-toc li { margin-bottom: 9px; break-inside: avoid; }
.legal-toc a {
  color: var(--ink);
  font-size: 14.5px;
  text-decoration: none;
}
.legal-toc a:hover { color: var(--navy); text-decoration: underline; }

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  color: var(--navy);
  font-weight: 500;
  font-size: 15px;
}
.legal-back:hover { color: var(--amber-hover); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .positioning-grid { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 8px 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .services-grid { grid-template-columns: 1fr; gap: 18px; }
  .values-grid { grid-template-columns: 1fr; gap: 0; }
  .value {
    border-left: none;
    padding-left: 0;
    padding-block: 30px;
    border-top: 1px solid var(--hairline);
  }
  .values-grid .value:first-child { border-top: none; padding-top: 0; }
  .value:last-child { padding-bottom: 0; }
}

@media (max-width: 700px) {
  /* Header → hamburger */
  .nav { display: none; }
  .nav-toggle { display: flex; }

  .hero {
    padding-top: calc(72px + 56px);
    padding-bottom: 72px;
  }
  .hero-headline { max-width: 100%; }
  .hero-subhead { max-width: 100%; }

  .page-header {
    padding-top: calc(72px + 48px);
    padding-bottom: 48px;
  }

  .steps { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }

  .legal-toc ol { columns: 1; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
