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

:root {
  --navy: #344a66;
  --navy-dark: #344a66;
  /* 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;

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

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

* { 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;
  -webkit-font-smoothing: antialiased;
}

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;
}
.btn-lg { padding: 15px 32px; font-size: 1rem; }

.btn-primary {
  background: var(--sage);
  color: var(--navy-dark);
}
.btn-primary:hover { background: var(--near-black); color: var(--white); }

/* 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; }
.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%; }

.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(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  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(--near-black); color: var(--white); border-color: var(--near-black); }
.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;
}

/* Media layer: still photo underneath, crossfading flyover clips on top */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('../images/waco-bridge-hero.jpg') center 65% / 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); }

/* 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(--white);
  border: 1px solid rgba(52, 74, 102, 0.16);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius);
}
.value-card h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--navy-dark); font-weight: 700; }
.value-card p { color: var(--ink-soft); font-size: 0.94rem; margin: 0; }

/* About */
.about-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: start;
}
.about-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  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% 20%;
}
.about-role {
  color: var(--navy);
  font-weight: 600;
  margin-top: -10px;
  margin-bottom: 20px;
}
.pull-quote {
  font-family: var(--font-serif);
  font-style: italic;
  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(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 28px 26px;
  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: rgba(52, 74, 102, 0.35);
  box-shadow: 0 14px 30px rgba(52, 74, 102, 0.13);
  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;
}
.service-card h3 { font-size: 1.3rem; margin: 0 0 10px; }
.service-card p {
  color: var(--ink-soft);
  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;
}
.modal-head h3 {
  color: var(--white);
  font-size: 1.55rem;
  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-dark);
  color: #b9c0c9;
  padding: 32px 0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-banner {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto 18px;
  border-radius: 6px;
}
.footer-inner p { margin: 6px 0; font-size: 0.85rem; }

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

@media (max-width: 860px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-photo { max-width: 240px; }
}

@media (max-width: 560px) {
  .approach-steps { grid-template-columns: 1fr; gap: 16px; }
  .approach-steps li { padding: 24px 22px 26px; }
  .approach-steps li::after { display: none; }
  .step-num { width: 40px; height: 40px; margin-bottom: 16px; }
}

@media (max-width: 760px) {
  .site-nav, .header-actions .phone-pill { display: none; }
  .header-actions { gap: 10px; }
  .nav-toggle { display: flex; }

  .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); }

  .who-strip-inner { flex-direction: column; align-items: center; gap: 12px; }

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

  .modal { padding: 16px; align-items: flex-end; }
  .modal-window { max-height: 88vh; border-radius: 16px 16px 12px 12px; }
  .modal-head { padding: 22px 56px 20px 24px; }
  .modal-head h3 { font-size: 1.3rem; }
  .modal-body { padding: 22px 24px 6px; }
  .modal-foot { padding: 16px 24px 22px; }
  .modal-foot .btn { display: block; text-align: center; }
}
