/* ==========================================================================
   Merriweather Capital — design tokens
   ========================================================================== */
:root {
  --navy-950: #0b1420;
  --navy-900: #10192b;
  --navy-800: #182746;
  --navy-700: #24365c;
  --green-700: #1f4620;
  --green-600: #2c5c2e;
  --green-500: #3c7a44;
  --green-100: #e7efe4;
  --bg: #faf8f3;
  --bg-alt: #f2efe6;
  --ink: #171b1f;
  --ink-soft: #454c56;
  --ink-mute: #6b7280;
  --line: rgba(16, 25, 43, 0.12);
  --line-on-dark: rgba(255, 255, 255, 0.16);
  --white: #ffffff;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --max-width: 1280px;
  --gutter: clamp(1.5rem, 5vw, 3rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

:focus-visible {
  outline: 2px solid var(--green-500);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-900);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 200;
}
.skip-link:focus { left: 1rem; top: 1rem; }

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

/* ==========================================================================
   Type scale
   ========================================================================== */
h1, .h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 6.5vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
h3, .h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.25;
}
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-600);
}
.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 46rem;
}
.on-dark .eyebrow { color: var(--green-100); opacity: 0.9; }
.on-dark .lede, .on-dark p { color: rgba(255, 255, 255, 0.78); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--white); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: 2px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn-primary {
  background: var(--green-700);
  color: var(--white);
}
.btn-primary:hover { background: var(--green-600); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--navy-900); }
.on-dark .btn-outline { color: var(--white); border-color: var(--line-on-dark); }
.on-dark .btn-outline:hover { border-color: var(--white); }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(16, 25, 43, 0.08); }
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 88px;
}
.brand { display: flex; align-items: center; height: 100%; flex-shrink: 0; }
.brand img { height: 52px; width: auto; }
@media (max-width: 420px) { .brand img { height: 44px; } }

.nav-links {
  display: none;
}
.nav-links a {
  display: inline-block;
  padding: 0.5rem 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--navy-900); border-color: var(--green-500); }

.nav-cta { display: none; }

.nav-toggle {
  background: none;
  border: 0;
  color: var(--navy-900);
  padding: 0.5rem;
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--line);
}
.mobile-menu.is-open { display: block; }
.mobile-menu a {
  display: block;
  padding: 0.9rem var(--gutter);
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}
.mobile-menu .mobile-cta { padding: 1.25rem var(--gutter) 1.5rem; }
.mobile-menu .mobile-cta .btn { width: 100%; justify-content: center; }

@media (min-width: 900px) {
  .nav-links { display: flex; gap: 1.75rem; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background-image:
    linear-gradient(160deg, rgba(11, 20, 32, 0.94) 0%, rgba(16, 25, 43, 0.91) 55%, rgba(36, 54, 92, 0.86) 100%),
    url("/assets/img/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 120px),
    repeating-linear-gradient(25deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 160px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  padding: clamp(4rem, 12vw, 8.5rem) 0 clamp(3.5rem, 8vw, 6rem);
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  max-width: 52rem;
}
.hero-tagline {
  margin-top: 0.5rem;
  font-size: clamp(0.98rem, 1.3vw, 1.05rem);
  color: rgba(255, 255, 255, 0.78);
  max-width: 40rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

/* Compact header band used on inner pages (not the homepage hero) */
.page-header {
  background-image:
    linear-gradient(160deg, rgba(11, 20, 32, 0.93) 0%, rgba(24, 39, 70, 0.9) 100%),
    url("/assets/img/page-header-bg.jpg");
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
}
.page-header .eyebrow { margin-bottom: 1rem; }
.page-header .lede { margin-top: 1rem; }

/* ==========================================================================
   Sections / layout patterns
   ========================================================================== */
section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-bg-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy-900); color: var(--white); }

.section-head {
  display: grid;
  gap: 1rem;
  max-width: 40rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (min-width: 860px) {
  .split { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
  .split.reverse { grid-template-columns: 1.1fr 0.9fr; }
  .split.reverse > :first-child { order: 2; }
}

.grid {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 2rem;
  height: 100%;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--green-600);
  box-shadow: 0 16px 40px rgba(16, 25, 43, 0.1);
}

/* Sector card with a photo header */
.sector-card { padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.sector-card .sector-img {
  aspect-ratio: 10 / 7;
  overflow: hidden;
}
.sector-card .sector-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.sector-card:hover .sector-img img { transform: scale(1.05); }
.sector-card .sector-body { padding: 1.6rem 1.9rem 1.9rem; }
.card-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--green-600);
  margin-bottom: 0.75rem;
  display: block;
}
.card h3 { margin-bottom: 0.75rem; }
.card p { color: var(--ink-soft); font-size: 0.96rem; }
.card ul { margin-top: 0.9rem; display: grid; gap: 0.5rem; }
.card ul li {
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding-left: 1.1rem;
  position: relative;
}
.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--green-500);
}

.pillar-list { display: grid; gap: 2.25rem; }
.pillar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
}
.pillar:first-child { border-top: 1px solid var(--line); }
.pillar-index {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--green-600);
}

.stat-band {
  border-top: 1px solid var(--line-on-dark);
  border-bottom: 1px solid var(--line-on-dark);
}
.stat-band .grid { padding-block: 2rem; }
.stat-item h3 { font-size: 1.05rem; color: rgba(255,255,255,0.92); font-weight: 500; }

/* Full-bleed photographic divider between sections */
.image-break {
  height: clamp(220px, 32vw, 400px);
  background-size: cover;
  background-position: center;
  padding: 0;
}

.cta-band {
  background: var(--green-700);
  color: var(--white);
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band .lede { color: rgba(255,255,255,0.85); margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; }
.cta-band .btn-outline { color: var(--white); border-color: rgba(255,255,255,0.4); }
.cta-band .btn-outline:hover { border-color: var(--white); }
.cta-band .btn-primary { background: var(--navy-900); }
.cta-band .btn-primary:hover { background: var(--navy-800); }

/* Placeholder notice for content pending client-supplied brief material */
.pending-notice {
  border: 1px dashed var(--line);
  background: var(--bg-alt);
  padding: 2rem;
  display: grid;
  gap: 0.6rem;
  max-width: 42rem;
}
.pending-notice .eyebrow { color: var(--ink-mute); }
.pending-notice p { color: var(--ink-soft); font-size: 0.95rem; }

/* Timeline (Our Process) */
.timeline { display: grid; gap: 0; counter-reset: step; }
.timeline-step {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.25rem;
  position: relative;
  padding-bottom: 2.25rem;
}
.timeline-step:last-child { padding-bottom: 0; }
.timeline-marker {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--green-600);
  color: var(--green-700);
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  background: var(--bg);
  position: relative;
  z-index: 1;
}
.timeline-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  top: 3rem;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.timeline-body h3 { margin-bottom: 0.4rem; }
.timeline-body p { color: var(--ink-soft); font-size: 0.95rem; }
@media (min-width: 760px) {
  .timeline { display: flex; gap: 0; overflow-x: auto; padding-bottom: 1rem; }
  .timeline-step {
    grid-template-columns: 1fr;
    text-align: center;
    min-width: 190px;
    padding-inline: 0.75rem;
  }
  .timeline-marker { margin-inline: auto; margin-bottom: 1rem; }
  .timeline-step:not(:last-child)::before {
    left: calc(50% + 1.5rem);
    right: -50%;
    top: 1.5rem;
    bottom: auto;
    width: auto;
    height: 1px;
  }
}

/* FAQ */
.faq-item {
  border-top: 1px solid var(--line);
  padding-block: 1.5rem;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--green-600);
  flex-shrink: 0;
  transition: transform 0.25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer { margin-top: 1rem; color: var(--ink-soft); max-width: 44rem; }

/* Contact */
.contact-paths { display: grid; gap: 1.5rem; }
@media (min-width: 720px) { .contact-paths { grid-template-columns: 1fr 1fr; } }
.path-toggle {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 1.5rem;
  text-align: left;
  display: grid;
  gap: 0.5rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.path-toggle h3 { font-size: 1.1rem; }
.path-toggle p { color: var(--ink-soft); font-size: 0.9rem; }
.path-toggle[aria-pressed="true"] {
  border-color: var(--green-600);
  box-shadow: 0 0 0 1px var(--green-600);
}

.form-grid { display: grid; gap: 1.25rem; margin-top: 2rem; }
@media (min-width: 640px) { .form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea, .field select {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--green-600); }
.field-hint { font-size: 0.8rem; color: var(--ink-mute); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.contact-info { display: grid; gap: 1.25rem; }
.contact-info-item { display: grid; gap: 0.25rem; }
.contact-info-item .eyebrow { color: var(--ink-mute); }

.form-alert {
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
}
.form-alert.success { border-color: var(--green-600); background: var(--green-100); color: var(--green-700); }
.form-alert.error { border-color: #b3261e; background: #fbe9e7; color: #7d1610; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,0.72); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-top {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-on-dark);
}
@media (min-width: 780px) { .footer-top { grid-template-columns: 1.2fr 1fr 1fr; } }
.footer-brand img {
  height: 42px;
  width: auto;
  margin-bottom: 1rem;
  background: var(--white);
  padding: 0.7rem 1rem;
  display: inline-block;
  box-sizing: content-box;
}
.footer-brand p { font-size: 0.88rem; max-width: 26rem; }
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul { display: grid; gap: 0.65rem; }
.footer-col a, .footer-col address { font-size: 0.92rem; font-style: normal; color: rgba(255,255,255,0.72); }
.footer-col a:hover { color: var(--white); }
.footer-legal { padding-top: 2rem; display: grid; gap: 1.25rem; }
.footer-disclaimer { font-size: 0.78rem; line-height: 1.7; color: rgba(255,255,255,0.55); max-width: 68rem; }
.footer-bottom-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: 0.8rem; color: rgba(255,255,255,0.5); }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
