/* Sevenopt Solutions — shared stylesheet
   Palette rules in docs/brand.md. Gold is never text on white (2.3:1). */

:root {
  --navy: #072E59;
  --navy-dark: #051F3C;
  --navy-soft: #3D5B80;
  --gold: #C8A758;
  --gold-dark: #B08F41;
  --cream: #FFF7F0;
  --peach: #FFE0C1;
  --white: #FFFFFF;
  --line: #E7DED4;

  --wrap: 1120px;
  --gutter: 20px;
  --radius: 14px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 1px 2px rgba(7, 46, 89, .04), 0 8px 24px rgba(7, 46, 89, .06);
  --shadow-lift: 0 2px 4px rgba(7, 46, 89, .06), 0 16px 40px rgba(7, 46, 89, .12);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 1.25rem + 2vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

/* navy ring on light (13.6:1), gold ring on dark (5.9:1) — gold-dark was 2.89:1 on cream */
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
.section--navy :focus-visible, .footer :focus-visible { outline-color: var(--gold); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: 12px 18px;
}
.skip:focus { left: 8px; top: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Sections ---------- */

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
  display: block;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  /* navy-soft, NOT gold-dark: #B08F41 measures 3.07:1 on white and 2.89:1 on cream — both
     fail AA. brand.md already specified "navy on light" for eyebrows; this now matches it. */
  text-transform: uppercase; color: var(--navy-soft);
  margin-bottom: 14px;
}
.section--navy .eyebrow { color: var(--gold); }

.section__head { max-width: 46rem; margin-bottom: clamp(36px, 5vw, 56px); }
.section__head p { color: var(--navy-soft); font-size: 1.06rem; }
.section--navy .section__head p { color: rgba(255,255,255,.78); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 650; font-size: 1rem; line-height: 1;
  text-decoration: none; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 19px; height: 19px; flex: none; }

/* gold bg + NAVY text = 5.9:1. never gold + white. */
.btn--primary { background: var(--gold); color: var(--navy); box-shadow: 0 6px 18px rgba(200,167,88,.35); }
.btn--primary:hover { background: #D6B76B; }

.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }

.section--navy .btn--outline { border-color: rgba(255,255,255,.55); color: #fff; }
.section--navy .btn--outline:hover { background: #fff; color: var(--navy); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 650; text-decoration: none; color: var(--navy);
  border-bottom: 2px solid var(--gold); padding-bottom: 2px;
}
.arrow-link:hover { gap: 12px; }
.arrow-link svg { width: 16px; height: 16px; transition: transform .15s ease; }

/* ---------- Header ---------- */

.header {
  position: sticky; top: 0; z-index: 50;
  /* solid, not translucent: backdrop-filter dropped — it can fail to composite over dark
     sections, which would leave the navy logo unreadable on the navy CTA band */
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.header__logo img { height: 34px; width: auto; }

.nav { display: none; }
.nav ul { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-weight: 550; font-size: .98rem; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; color: var(--navy);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close, .nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* keep the horizontal gutter — a bare `padding` shorthand here would zero out .wrap's padding-inline */
.mobile-nav { display: none; border-top: 1px solid var(--line); padding-block: 10px 22px; }
.mobile-nav .btn { width: 100%; justify-content: center; }
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; margin: 0 0 18px; padding: 0; }
.mobile-nav a { display: block; padding: 13px 0; text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }

@media (min-width: 900px) {
  .nav { display: block; }
  .nav-toggle, .mobile-nav { display: none !important; }
}

/* ---------- Hero ---------- */

.hero { padding: clamp(52px, 7vw, 92px) 0 clamp(44px, 5vw, 64px); position: relative; overflow: hidden; }
/* echoes the pixel-dissolve in the logo's "7" */
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto auto;
  width: 420px; height: 420px; pointer-events: none;
  background-image: radial-gradient(var(--peach) 1.6px, transparent 1.6px);
  background-size: 15px 15px;
  -webkit-mask-image: radial-gradient(circle at 78% 18%, #000, transparent 68%);
  mask-image: radial-gradient(circle at 78% 18%, #000, transparent 68%);
  opacity: .9;
}
.hero__inner { position: relative; max-width: 54rem; }
.hero h1 { margin-bottom: 22px; }
/* gradient highlight rather than a positioned pseudo-element: no stacking-context surprises */
.hero h1 em {
  font-style: normal;
  background: linear-gradient(to top, rgba(200,167,88,.55) .2em, transparent .2em);
}
.hero__lead { font-size: clamp(1.04rem, .98rem + .4vw, 1.2rem); color: var(--navy-soft); max-width: 40rem; margin-bottom: 30px; }

/* ---------- Trust strip ---------- */

.trust { background: var(--cream); border-block: 1px solid var(--line); padding: 32px 0 30px; }
.trust__label { margin-bottom: 22px; }   /* rest inherited from .eyebrow */
.trust__list { display: flex; flex-wrap: wrap; gap: 14px 34px; list-style: none; margin: 0; padding: 0; }
.trust__list li { font-weight: 650; color: var(--navy); font-size: 1rem; }
.trust__list li::before { content: "●"; color: var(--gold); font-size: .6em; vertical-align: middle; margin-right: 10px; }

/* ---------- Grids & cards ---------- */

.grid { display: grid; gap: 22px; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 899px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px 30px; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card p { color: var(--navy-soft); font-size: .98rem; }
.card .arrow-link { margin-top: auto; padding-top: 18px; align-self: flex-start; }

.card__icon {
  width: 50px; height: 50px; border-radius: 13px;
  background: var(--peach); color: var(--navy);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card__icon svg { width: 25px; height: 25px; }

/* ---------- Work ---------- */

.work { display: grid; gap: 22px; }
@media (min-width: 760px) { .work { grid-template-columns: repeat(2, 1fr); } }

.work__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow); }
.work__meta { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.work__meta h3 { margin: 0; }
.work__loc { font-size: .82rem; font-weight: 600; color: var(--navy-soft); background: var(--cream); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; }
.work__item p { color: var(--navy-soft); font-size: .98rem; }

/* ---------- Why (navy) ---------- */

.why { display: grid; gap: 30px; }
@media (min-width: 700px) { .why { grid-template-columns: repeat(2, 1fr); gap: 40px 48px; } }
.why__num { font-size: .88rem; font-weight: 700; letter-spacing: .1em; color: var(--gold); margin-bottom: 10px; }
.why h3 { margin-bottom: 8px; }
.why p { color: rgba(255,255,255,.78); font-size: .99rem; margin: 0; }

/* ---------- Process ---------- */

.steps { display: grid; gap: 26px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 30px; } }
.step { position: relative; padding-top: 26px; border-top: 3px solid var(--peach); }
.step:first-child { border-top-color: var(--gold); }
.step__n {
  position: absolute; top: -17px; left: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gold); color: var(--navy);
  display: grid; place-items: center; font-weight: 700; font-size: .92rem;
}
.step h3 { margin: 0 0 6px; font-size: 1.08rem; }
.step p { color: var(--navy-soft); font-size: .96rem; margin: 0; }

/* ---------- Founder ---------- */

/* photo pending — text-only for now; .founder grid returns when the image arrives */
.founder__text { max-width: 46rem; }
.founder__text h2 { margin-bottom: 16px; }
.founder__text p { color: var(--navy-soft); font-size: 1.04rem; }
.founder__text strong { color: var(--navy); }

/* ---------- CTA band ---------- */

.cta { text-align: center; }
.cta .section__head { margin-inline: auto; margin-bottom: 30px; }
.cta .btn-row { justify-content: center; }

/* ---------- Footer ---------- */

.footer { background: var(--navy-dark); color: rgba(255,255,255,.72); padding: 56px 0 30px; font-size: .95rem; }
.footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--gold); }
.footer__grid { display: grid; gap: 34px; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; } }
.footer__mark { height: 34px; width: auto; margin-bottom: 16px; }
.footer__label { color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; margin: 0 0 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 11px; }
.footer__legal { margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); font-size: .86rem; color: rgba(255,255,255,.55); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Inner page hero ---------- */

.page-hero { padding: clamp(40px, 5.5vw, 72px) 0 clamp(26px, 3.5vw, 40px); }
.page-hero h1 { max-width: 22ch; }
.page-hero__lead { color: var(--navy-soft); max-width: 44rem; font-size: clamp(1.02rem, .97rem + .35vw, 1.15rem); }
.breadcrumb { font-size: .87rem; color: var(--navy-soft); margin-bottom: 18px; }
.breadcrumb a { text-decoration: none; color: var(--navy-soft); }
.breadcrumb a:hover { color: var(--navy); text-decoration: underline; }
.breadcrumb span { margin: 0 8px; opacity: .5; }

/* ---------- Service detail list ---------- */

.service-list { border-top: 1px solid var(--line); }
.service-item { padding: 28px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 780px) { .service-item { display: grid; grid-template-columns: 310px 1fr; gap: 44px; align-items: start; } }
.service-item h3 { margin: 0 0 6px; }
@media (min-width: 780px) { .service-item h3 { margin-bottom: 0; } }
.service-item p { margin: 0; color: var(--navy-soft); }

/* ---------- Beliefs / two-column notes ---------- */

.beliefs { display: grid; gap: 26px; }
@media (min-width: 700px) { .beliefs { grid-template-columns: repeat(2, 1fr); gap: 32px 44px; } }
.belief { border-left: 3px solid var(--gold); padding-left: 20px; }
.belief h3 { font-size: 1.05rem; margin-bottom: 6px; }
.belief p { margin: 0; color: var(--navy-soft); font-size: .98rem; }

/* ---------- Checklist ---------- */

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 13px; align-items: flex-start; color: var(--navy-soft); }
/* .checks only appears on navy today; --gold is 5.91:1 there. If it ever lands on a light
   background, the ticks must switch to --navy — gold on white is 2.30:1. */
.checks svg { width: 21px; height: 21px; flex: none; color: var(--gold); margin-top: 2px; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; gap: 44px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.05fr; gap: 64px; } }

.method { display: flex; gap: 15px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.method:first-child { border-top: 1px solid var(--line); }
.method__icon { width: 42px; height: 42px; border-radius: 11px; background: var(--peach); color: var(--navy); display: grid; place-items: center; flex: none; }
.method__icon svg { width: 21px; height: 21px; }
.method h2 { font-size: 1.02rem; letter-spacing: -.01em; margin: 0 0 2px; }
.method p { margin: 0; font-size: .95rem; color: var(--navy-soft); }
.method a { font-weight: 650; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px 30px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 650; font-size: .93rem; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; font: inherit; color: var(--navy);
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: 2px solid var(--navy); outline-offset: 0; }
.form-note { font-size: .9rem; color: var(--navy-soft); margin-top: 14px; }
.hp { position: absolute; left: -9999px; }   /* honeypot */

.addr { font-style: normal; color: var(--navy-soft); line-height: 1.8; }

/* ---------- FAQ (native details/summary — no JS) ---------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; font-weight: 650; padding: 18px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--navy-soft); font-size: 1.5rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--navy-soft); margin: 0; padding: 0 0 20px; max-width: 54rem; }

/* ---------- Service tags ---------- */

.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 14px; padding: 0; }
.tags li {
  font-size: .78rem; font-weight: 650; letter-spacing: .02em;
  color: var(--navy); background: var(--peach);
  padding: 4px 11px; border-radius: 999px;
}
.section--navy .tags li { background: rgba(255,255,255,.14); color: #fff; }

/* ---------- Case studies ---------- */

.case { border-top: 1px solid var(--line); padding: clamp(32px, 4.5vw, 52px) 0; }
.case:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .case { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; } }
.case__no { font-size: .82rem; font-weight: 700; letter-spacing: .12em; color: var(--navy-soft); margin: 0 0 8px; }
.case__title h2 { margin-bottom: 6px; }
.case__loc { font-size: .92rem; color: var(--navy-soft); margin: 0 0 16px; }
.case__block { margin-bottom: 20px; }
.case__block:last-child { margin-bottom: 0; }
.case__block h3 { font-size: .8rem; letter-spacing: .13em; text-transform: uppercase; color: var(--navy-soft); margin: 0 0 7px; }
.case__block p { margin: 0; color: var(--navy-soft); }
.case__result { background: var(--cream); border-left: 3px solid var(--gold); padding: 18px 20px; border-radius: 0 10px 10px 0; }
.case__result p { color: var(--navy); font-weight: 550; }


/* ---------- Client logos ---------- */


.client-logo { height: 32px; width: auto; max-width: 150px; object-fit: contain; margin-bottom: 16px; }
.case__logo { height: 44px; width: auto; max-width: 190px; object-fit: contain; margin: 0 0 16px; }


/* ---------- Logo marquee ---------- */

.marquee {
  overflow: hidden;
  /* fade the logos in and out at the edges instead of clipping them dead */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 90px, #000 calc(100% - 90px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 90px, #000 calc(100% - 90px), transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }

.marquee__group {
  display: flex; align-items: center;
  gap: 68px; padding-right: 68px;
  list-style: none; margin: 0; padding-block: 0; padding-left: 0;
}
.marquee__group li { display: flex; align-items: center; justify-content: center; height: 64px; }
.marquee__group img {
  height: var(--logo-h, 44px);
  width: auto; max-width: none;
  object-fit: contain;
}

/* 4 identical groups -> shifting by 25% puts copy 2 exactly where copy 1 began */
@keyframes marquee-scroll { to { transform: translateX(-25%); } }

@media (min-width: 900px) {
  .marquee__group { gap: 96px; padding-right: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .marquee { overflow-x: auto; }
}


/* ---------- Section spacing under a page hero ----------
   .page-hero already ends with clamp(26px,3.5vw,40px) of bottom padding, so the first
   section under it must not add a full clamp(56px,8vw,104px) on top. Two values, chosen
   by what the section STARTS with — not per page, which is how 5 different values
   (0/36/44/52/102px) ended up in the markup for one structural slot. */

.section--flush { padding-top: 0; }                            /* starts with a bordered list/grid */
.section--tight { padding-top: clamp(28px, 3.5vw, 44px); }     /* starts with text or cards */

/* ---------- Secondary heading tier ---------- */

.h2--sub { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); }

/* ---------- Closing "who it's for" band (5 service pages) ---------- */

.band-cta { max-width: 46rem; margin-bottom: 0; }
.band-cta .btn-row { margin-top: 26px; }

/* ---------- Spacing after a block, before an arrow link ---------- */

.link-after { margin-top: 22px; }

/* ---------- One-offs lifted out of inline styles ---------- */

.method:last-child { border-bottom: none; }
.section--navy .checks li { color: rgba(255,255,255,.82); }
.btn-row--center { justify-content: center; }
.wrap--narrow { max-width: 40rem; }
.text-center { text-align: center; }

/* thank-you confirmation mark */
.tick { width: 64px; height: 64px; border-radius: 50%; background: var(--gold); color: var(--navy); margin: 0 auto 24px; display: grid; place-items: center; }
.tick svg { width: 30px; height: 30px; }
