/* ---------------------------------------------------
   McCullough & Company — Alpha site styles
--------------------------------------------------- */

:root {
  --navy: #344a66;
  --navy-dark: #344a66;
  /* Same hue/sat as --navy at 21% lightness. Gives the footer a tonal step
     down so it reads as the foot of the page, not a continuation of Contact. */
  --navy-deep: #243347;
  /* Halfway between --navy and --navy-deep. Contact's gradient ends here
     rather than on --navy-deep, so the footer still steps down from it. */
  --navy-mid: #2c3e56;
  /* Brand sage, sampled from the logo banner: #d0db96 bar, #b3bd78 pill */
  --sage: #d0db96;
  --sage-deep: #b3bd78;
  --navy-wash: rgba(52, 74, 102, 0.09);
  --cream: #e8dcc0;
  --cream-alt: #f0e6cf;
  --ink: #2a2f36;
  --ink-soft: #4c525a;
  --white: #f5efe0;
  --near-black: #17181a;
  --on-navy-soft: rgba(255, 255, 255, 0.78);
  --surface: #fdfbf6;
  --surface-tint: #f7f4ec;
  --line: #e2ddd0;
  /* Cards sit light on the cream --white (#f5efe0) sections. The card set was
     briefly inverted to navy while chasing a fuzziness that turned out to be a
     type problem, not a contrast one; with the headings on Inter the light card
     is both sharper (dark-on-light does not bloom the way light-on-dark does)
     and quieter. --card-line is navy-tinted rather than warm gray so the edge
     still holds against the cream. */
  --card: #fffdf8;
  --card-line: rgba(52, 74, 102, 0.28);
  --card-shadow: 0 1px 2px rgba(23, 24, 26, 0.05), 0 8px 18px -10px rgba(36, 51, 71, 0.35);

  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1140px;
  --radius: 10px;

  /* Height of the sticky header. Measured and rewritten by js/main.js on load
     and resize; this value is the fallback (14px + 42px logo + 14px + border). */
  --header-h: 71px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  /* No -webkit-font-smoothing: antialiased here. It thins every stroke on
     macOS and iOS, which is the opposite of what light-on-navy text needs —
     the OS default renders noticeably crisper. */
}

img { max-width: 100%; display: block; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow { max-width: 780px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--navy-dark);
  margin: 0 0 16px;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 600;
  margin: 0 0 10px;
}
.eyebrow.center { text-align: center; }

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}
.section-title.center { text-align: center; margin-bottom: 48px; }

/* Lead line under a centered section title. The negative top margin pulls it
   up into the title's 48px gap so title + lead read as one block. */
.section-lead {
  max-width: 640px;
  margin: -34px auto 48px;
  text-align: center;
  color: var(--ink-soft);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-lg { padding: 15px 32px; font-size: 1rem; }

.btn-primary {
  background: transparent;
  color: var(--cream-alt);
  border-color: var(--cream-alt);
}
.btn-primary:hover { background: var(--cream-alt); color: var(--navy-dark); }

/* Solid navy CTA — used where the button sits on cream/white */
.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: var(--near-black); color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-ghost:hover { background: var(--white); color: var(--navy-dark); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 20px;
}

.logo { display: flex; align-items: center; flex: none; }
.logo img {
  height: 42px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--white);
}
.site-nav a {
  position: relative;
  padding-bottom: 4px;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--sage);
  transition: width 0.25s ease;
}
.site-nav a:hover { color: var(--sage); }
.site-nav a:hover::after { width: 100%; }

/* The in-menu CTA exists only for the mobile panel. */
.nav-cta { display: none; }
.nav-cta::after { content: none; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 16px;
  color: var(--cream-alt);
  border: 1.5px solid var(--cream-alt);
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.phone-pill:hover { background: var(--cream-alt); color: var(--navy-dark); border-color: var(--cream-alt); }
.icon-phone { flex: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  display: block;
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy);
  padding: 110px 0 100px;
  /* Fills the first screen below the sticky header, like the nav-target
     sections. The media layers are absolutely positioned, so only .hero-inner
     is in flow and the centering applies to it alone. */
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Media layer: still photo underneath, crossfading flyover clips on top */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('../images/waco-hero-still.jpg') center center / cover no-repeat;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease;
  pointer-events: none;
}
.hero-video.is-active { opacity: 1; }

/* Scrim keeps the headline readable over whatever is behind it. The still
   photo is brighter than the footage, so it gets the heavier treatment. */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(52, 74, 102, 0.55) 0%, rgba(52, 74, 102, 0) 22%),
    linear-gradient(160deg, rgba(52, 74, 102, 0.85) 0%, rgba(52, 74, 102, 0.78) 100%);
}
.hero.has-video::after {
  background:
    linear-gradient(180deg, rgba(30, 43, 61, 0.72) 0%, rgba(30, 43, 61, 0) 26%),
    linear-gradient(0deg, rgba(52, 74, 102, 0.72) 0%, rgba(52, 74, 102, 0) 30%),
    linear-gradient(100deg, rgba(26, 38, 54, 0.86) 0%, rgba(35, 49, 68, 0.68) 46%, rgba(52, 74, 102, 0.44) 100%);
}

.hero-inner { max-width: 760px; position: relative; z-index: 1; }
.hero .eyebrow { color: var(--sage); }
.hero h1 { color: var(--white); }
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.1;
}
.hero h1 em { color: var(--sage); font-style: italic; }
.hero-sub {
  font-size: 1.1rem;
  color: var(--on-navy-soft);
  max-width: 620px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Who we serve strip */
.who-strip {
  background: var(--navy-dark);
  padding: 22px 0;
}
.who-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  text-align: center;
}
.who-label {
  color: var(--sage);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.who-list {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--white);
  font-size: 0.95rem;
}

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--cream); }

/* The header is sticky, so an anchor jump would tuck the section's top edge
   underneath it. Hold every jump target down by the header's own height. */
section[id] { scroll-margin-top: var(--header-h); }

/* Nav targets fill the screen below the header, so clicking a nav link lands
   on one whole section with none of the next one showing. min-height only —
   a section with more content than that still grows past it. Content is
   centered so a short section reads as composed rather than top-heavy.
   svh (small viewport) keeps mobile honest when the URL bar is expanded. */
#services,
#approach,
#about,
#faq,
#contact {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Navy sections — inverts the type; nested white cards keep their own colors.
   Used on Approach and Contact so the page leans blue rather than cream. */
.section-navy { background: var(--navy); }
.section-navy > .container > .eyebrow,
.section-navy .eyebrow { color: var(--sage); }
.section-navy .section-title,
.section-navy h2 { color: var(--white); }
.section-navy > .container > p { color: var(--on-navy-soft); }

/* Approach cards sit on navy: the hairline navy border vanishes there, so it
   becomes a light one, and the connector line flips to light as well. */
.section-navy .approach-steps li { border-color: rgba(255, 255, 255, 0.16); }
.section-navy .approach-steps li:hover { border-color: rgba(255, 255, 255, 0.34); }
.section-navy .approach-steps li::after { background: rgba(255, 255, 255, 0.28); }

/* About block on navy — copy is nested in .about-copy, so it needs its own rules */
.section-navy .about-copy p { color: var(--on-navy-soft); }
.section-navy .about-role { color: var(--sage); }
.section-navy .pull-quote {
  color: var(--white);
  border-left-color: var(--sage);
}

/* Contact deepens toward its own bottom edge, but stops at --navy-mid rather
   than reaching the footer's --navy-deep. The gradient adds depth inside the
   section; the footer still lands as a clean step below it. The other navy
   sections stay flat — they border cream, where the edge is the point. */
#contact.section-navy {
  background: linear-gradient(to bottom, var(--navy) 0%, var(--navy) 35%, var(--navy-mid) 100%);
}

/* Contact block on navy */
.section-navy .contact-sub { color: var(--on-navy-soft); }
.section-navy .contact-details {
  color: var(--white);
  border-top-color: rgba(255, 255, 255, 0.22);
}
.section-navy .contact-details a:hover { color: var(--sage); }

/* Approach steps */
.approach-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.approach-steps li {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(52, 74, 102, 0.16);
  border-radius: 16px;
  padding: 30px 26px 32px;
  box-shadow: 0 1px 2px rgba(23, 24, 26, 0.04), 0 14px 34px -22px rgba(23, 24, 26, 0.55);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.approach-steps li:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 74, 102, 0.32);
  box-shadow: 0 1px 2px rgba(23, 24, 26, 0.05), 0 22px 44px -24px rgba(23, 24, 26, 0.6);
}

/* connector line between steps */
.approach-steps li::after {
  content: "";
  position: absolute;
  top: 52px;
  left: 100%;
  width: 22px;
  height: 2px;
  background: rgba(52, 74, 102, 0.28);
}
.approach-steps li:last-child::after { display: none; }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
}
.approach-steps h3 {
  font-family: var(--font-sans);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--navy-dark);
  margin: 0 0 10px;
}
.approach-steps p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
}

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.value-card {
  padding: 26px;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}
/* Inter, not the serif. Cormorant Garamond is a display face with hairline
   thins that fall apart at card-heading sizes, and weight 700 was never
   loaded for it (only 400/500/600), so the browser was faking the bold by
   smearing 600 — the single biggest source of the fuzz. */
.value-card h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--navy-dark);
  font-weight: 600;
}
.value-card p { color: var(--ink); font-size: 0.94rem; margin: 0; }

/* About */
.about-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: start;
}
/* 2:3, matching the standing portrait's own crop so nothing is cut off. A
   square left 280px of photo against ~500px of copy, which read as a stamp
   pinned to the corner; the taller frame carries the column down the text. */
.about-photo {
  width: 100%;
  aspect-ratio: 2 / 3;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  border-radius: var(--radius);
  overflow: hidden;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.about-role {
  color: var(--navy);
  font-weight: 600;
  margin-top: -10px;
  margin-bottom: 20px;
}
/* Weight 500, not the inherited 400: Cormorant's italic is the thinnest face
   in use here, and 500 italic is loaded so this costs nothing. */
.pull-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--navy-dark);
  border-left: 3px solid var(--navy);
  padding-left: 18px;
  margin-top: 24px;
}

/* Services — click-in cards */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  font-family: var(--font-sans);
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 14px;
  padding: 30px 28px 26px;
  box-shadow: var(--card-shadow);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}
.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--navy);
  box-shadow: 0 2px 4px rgba(23, 24, 26, 0.06), 0 14px 26px -12px rgba(36, 51, 71, 0.45);
  outline: none;
}
.service-card:hover::before,
.service-card:focus-visible::before { transform: scaleX(1); }

.service-num {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}
/* Sans for the same reason as .value-card h3. */
.service-card h3 {
  font-family: var(--font-sans);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.service-card p {
  color: var(--ink);
  font-size: 0.92rem;
  margin: 0 0 20px;
}

.service-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}
.service-arrow {
  width: 16px;
  height: 8px;
  position: relative;
  transition: transform 0.22s ease;
}
.service-arrow::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
}
.service-arrow::after {
  content: '';
  position: absolute;
  top: 0;
  right: 1px;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.service-card:hover .service-arrow { transform: translateX(4px); }

/* Service detail modal */
body.modal-open { overflow: hidden; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 30, 40, 0.62);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.modal.is-open .modal-backdrop { opacity: 1; }

.modal-window {
  position: relative;
  width: min(620px, 100%);
  max-height: min(82vh, 720px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 30px 70px rgba(17, 24, 33, 0.4);
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.modal.is-open .modal-window {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.modal-window:focus { outline: none; }

.modal-head {
  position: relative;
  flex: none;
  background: var(--navy);
  padding: 26px 64px 24px 32px;
  border-bottom: 3px solid var(--sage);
}
.modal-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
  margin: 0 0 6px;
}
/* Inter, matching .service-card h3 — this heading is the same service name
   the card shows, and at 1.15rem on a phone the serif's thins break up. */
.modal-head h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--white);
  font-size: 1.4rem;
  margin: 0;
}

.modal-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--sage);
}
.modal-close span, .modal-close span::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 1.5px;
  background: var(--white);
}
.modal-close span { transform: translate(-50%, -50%) rotate(45deg); }
.modal-close span::before {
  top: 0;
  left: 0;
  transform: rotate(90deg);
}

.modal-body {
  padding: 26px 32px 10px;
  overflow-y: auto;
}
.modal-body ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.modal-body li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 14px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.modal-body li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--navy);
}

.modal-foot {
  flex: none;
  padding: 18px 32px 26px;
  border-top: 1px solid var(--line);
}

/* Accordion (FAQ) */
.accordion { display: flex; flex-direction: column; gap: 12px; }
.accordion-item {
  border: 1px solid #e8e4d8;
  border-radius: var(--radius);
  overflow: hidden;
}
.accordion-toggle {
  width: 100%;
  text-align: left;
  background: var(--white);
  border: none;
  padding: 20px 24px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 0;
}
.accordion-toggle::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--navy-wash);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: -1;
}
.accordion-toggle:hover::before { transform: scaleX(1); }

.accordion-icon {
  flex: none;
  width: 22px;
  height: 22px;
  position: relative;
  z-index: 1;
}
.accordion-icon::before, .accordion-icon::after {
  content: '';
  position: absolute;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease;
}
.accordion-icon::before { width: 100%; height: 2px; top: 10px; left: 0; }
.accordion-icon::after { width: 2px; height: 100%; top: 0; left: 10px; }
.accordion-toggle[aria-expanded="true"] .accordion-icon::after { transform: rotate(90deg); }

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  background: var(--surface-tint);
}
.accordion-panel p {
  padding: 0 24px;
  margin: 18px 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.accordion-panel p:first-child { margin-top: 20px; }
.accordion-panel ul {
  margin: 0;
  padding: 4px 24px 20px 46px;
  color: var(--ink-soft);
  font-size: 0.94rem;
}
.accordion-panel li { margin-bottom: 8px; }

/* Contact */
.contact-inner { text-align: center; max-width: 640px; }
.contact-sub { color: var(--ink-soft); margin-bottom: 32px; }
.contact-actions { margin-bottom: 40px; }
.contact-details {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: var(--navy-dark);
  border-top: 1px solid rgba(52, 74, 102, 0.18);
  padding-top: 28px;
}
.contact-details a:hover { color: var(--navy); }
.contact-phone, .contact-email { display: inline-flex; align-items: center; gap: 7px; }
.icon-mail { flex: none; }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #b9c0c9;
  padding: 32px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
/* The logo sits straight on the footer, not in its own panel. The old banner
   PNG baked in a lighter navy plate, which read as a card pasted onto the
   footer rather than part of it. */
.footer-logo {
  display: block;
  width: 100%;
  max-width: 330px;
  height: auto;
  margin: 0 auto 14px;
}
.footer-inner p { margin: 6px 0; font-size: 0.85rem; }

/* Phone and address used to live inside the banner image. As real text they
   are selectable, tappable on mobile, and readable by search engines. */
.footer-contact {
  color: var(--on-navy-soft);
  letter-spacing: 0.02em;
}
.footer-contact a { color: var(--sage); }
.footer-contact a:hover,
.footer-contact a:focus-visible { text-decoration: underline; }
.footer-contact .sep { padding: 0 8px; opacity: 0.5; }

@media (max-width: 420px) {
  .footer-contact .sep { display: block; height: 0; padding: 0; overflow: hidden; }
}

/* CC BY attribution for the hero footage — required by the license, but kept
   folded away behind a tap so it doesn't compete with the real footer content. */
.media-credit { margin-top: 18px; color: #6f7681; }
.media-credit summary {
  display: inline-block;
  list-style: none;
  cursor: pointer;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
}
.media-credit summary::-webkit-details-marker { display: none; }
.media-credit summary:hover,
.media-credit summary:focus-visible { color: var(--sage); }
.media-credit[open] summary { margin-bottom: 4px; }
.media-credit p {
  max-width: 620px;
  margin: 0 auto;
  font-size: 0.7rem;
  line-height: 1.7;
}
.media-credit a { color: inherit; text-decoration: underline; }
.media-credit a:hover { color: var(--sage); }

/* Responsive */

/* Between the full lockup and the collapsed bar there is a band where the nav,
   the phone pill and the CTA together overrun the row (they used to wrap; now
   that buttons don't wrap, they would overflow instead). The pill gives way
   first — the number is still one tap away in Contact and the footer. */
@media (max-width: 1140px) {
  .header-actions .phone-pill { display: none; }
}

@media (max-width: 980px) {
  .approach-steps { grid-template-columns: repeat(2, 1fr); }
  .approach-steps li:nth-child(2n)::after { display: none; }

  /* The bar collapses to logo + call + menu here, not at phone width: the
     full lockup needs ~1000px before the CTA wraps onto two lines (which
     doubled the header's height, and --header-h passed that on to every
     section below it) and the logo gets squeezed out of the row entirely.
     The CTA moves into the menu as .nav-cta; the phone pill stays as an icon
     so calling is still one tap. */
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .logo img { height: 34px; }
  .header-actions { gap: 10px; }
  .header-actions .phone-pill { display: inline-flex; padding: 10px; }
  .phone-label { display: none; }
  .icon-phone { width: 18px; height: 18px; }

  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    color: var(--navy-dark);
    padding: 20px 24px;
    border-bottom: 1px solid #e8e4d8;
    gap: 16px;
  }
  .site-nav.open a:hover { color: var(--navy); }
  .site-nav.open .nav-cta { display: block; text-align: center; }
}

@media (max-width: 860px) {
  .about-inner { grid-template-columns: 1fr; }
  /* Still 2:3, just narrower — the portrait keeps one shape at every width,
     so nothing is ever cropped away by the box. */
  .about-photo { max-width: 240px; }
}

/* One idea below: the desktop type and spacing scale is built for a 1140px
   column, and on a phone it runs each section well past a screenful. Every
   value here is pulled in so a nav tap lands on a whole section, the same way
   it does on a desktop. Applies to the whole handheld band, not just small
   phones — a 700px tablet overran the screen on Services, Approach and About
   with the desktop scale. */
@media (max-width: 760px) {
  .section { padding: 26px 0; }
  .eyebrow { font-size: 0.66rem; letter-spacing: 0.1em; margin-bottom: 5px; }
  /* 600, not the inherited 500: at 1.45rem (and 1.28rem for the About
     heading, which carries this same class) Cormorant's thins drop under a
     pixel. 600 is a loaded weight, so the strokes thicken without faking. */
  .section-title { font-size: 1.45rem; font-weight: 600; }
  .section-title.center { margin-bottom: 16px; }
  .section-lead { font-size: 0.85rem; margin: -8px auto 18px; }
  .btn-lg { padding: 13px 22px; font-size: 0.92rem; }

  .hero { padding-bottom: 40px; }
  .hero h1 { font-size: 1.95rem; }
  .hero-sub { font-size: 0.95rem; margin-bottom: 24px; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .btn { width: 100%; text-align: center; }

  /* Service cards become tappable rows: number, name, arrow. The description
     is the first thing the modal shows, so on a phone it is duplication that
     costs four lines a card. */
  .service-grid { gap: 10px; }
  .service-card {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
  }
  .service-num { margin-bottom: 0; font-size: 0.68rem; }
  .service-card h3 { font-size: 1rem; margin: 0; flex: 1; }
  .service-card p { display: none; }
  .service-more { margin: 0; font-size: 0; gap: 0; }

  .values-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .value-card { padding: 14px 14px 16px; border-left-width: 3px; }
  .value-card h3 { font-size: 0.92rem; margin-bottom: 4px; }
  .value-card p { font-size: 0.78rem; line-height: 1.45; }

  .approach-steps { grid-template-columns: 1fr 1fr; gap: 8px; }
  .approach-steps li { padding: 12px 12px 14px; }
  .approach-steps li::after { display: none; }
  .step-num { width: 26px; height: 26px; font-size: 0.72rem; margin-bottom: 8px; }
  .approach-steps h3 { font-size: 0.9rem; margin-bottom: 4px; }
  .approach-steps p { font-size: 0.76rem; line-height: 1.4; }

  /* The portrait leads the section instead of sitting beside the name as a
     byline thumbnail — at 92px the face was a smudge. It runs the full column
     at the same 2:3 the desktop column uses, so the whole standing figure is
     there and both edges line up with the copy; a narrower box left it sitting
     just short of the right margin, which read as a mistake rather than an
     inset. 400px, not 360: it has to clear the 392px column of the widest
     phones, or those get the short-of-the-margin look back. */
  .about-inner {
    grid-template-columns: 1fr;
    row-gap: 18px;
  }
  .about-photo {
    width: 100%;
    max-width: 400px;
  }
  /* Back up to the size the rest of the page reads at. The byline layout paid
     for its density by setting this copy at 0.84rem, below anything else on a
     phone; the section now runs a little past a screenful, which is the trade. */
  .about-copy h2 { margin: 0 0 4px; }
  .about-role { font-size: 0.95rem; margin-top: 0; margin-bottom: 14px; }
  .about-copy p { font-size: 0.95rem; line-height: 1.65; margin-bottom: 14px; }
  .pull-quote { font-size: 1.4rem; padding-left: 16px; margin: 18px 0 0; }

  .accordion-toggle { padding: 14px 16px; font-size: 0.92rem; }
  .accordion-panel p,
  .accordion-panel li { font-size: 0.88rem; }

  .contact-sub { font-size: 0.92rem; margin-bottom: 24px; }
  .contact-actions { margin-bottom: 28px; }
  .contact-actions .btn { width: 100%; text-align: center; }
  .contact-details { gap: 14px; }
}

@media (max-width: 760px) {
  .who-strip-inner { flex-direction: column; align-items: center; gap: 10px; }
  /* Six audiences wrap to several lines at the desktop gap; tighten it so
     the strip stays a band rather than a block. */
  .who-list { gap: 8px 18px; justify-content: center; font-size: 0.88rem; }

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

  /* The detail sheet is the whole point of tapping a service, so it gets as
     much of the screen as it can take and a tighter list, to keep the shorter
     services off the scrollbar entirely. */
  .modal { padding: 10px; align-items: flex-end; }
  .modal-window {
    max-height: 94vh;
    max-height: 94dvh;
    border-radius: 16px 16px 12px 12px;
  }
  .modal-head { padding: 16px 52px 14px 20px; }
  .modal-head h3 { font-size: 1.15rem; }
  .modal-head .eyebrow { margin-bottom: 3px; }
  .modal-body { padding: 16px 20px 4px; }
  .modal-body li {
    font-size: 0.85rem;
    line-height: 1.45;
    margin-bottom: 9px;
    padding-left: 20px;
  }
  .modal-body li::before { top: 7px; width: 6px; height: 6px; }
  .modal-foot { padding: 12px 20px 16px; }
  .modal-foot .btn { display: block; text-align: center; padding: 12px 20px; }
}
