/* ============================================================
   BLUE MANTLE STAGING — SHARED DESIGN SYSTEM
   Palette sampled from the approved master brand graphic.
   Do not introduce colors outside this system.
   ============================================================ */

:root {
  /* Primary */
  --navy: #1C3A5A;          /* Deep Mantle Blue */
  --navy-dark: #12283F;
  --navy-light: #2E4F73;

  /* Secondary */
  --warm-white: #FAF7F1;    /* Warm White */
  --ivory: #F4EFE6;

  /* Accent */
  --gold: #C6A15B;          /* Soft Gold */
  --gold-light: #E4D3AC;

  /* Supporting */
  --greige: #DAD3C4;        /* Warm Greige */
  --wood: #A9805A;          /* Natural Wood */
  --sage: #93A585;          /* Soft Sage Green */

  /* Text */
  --ink: #23282E;
  --ink-muted: #565F66;
  --border: #E4DDCC;

  /* Type */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing / layout */
  --content-width: 1160px;
  --radius: 4px;
  --shadow-soft: 0 8px 24px rgba(28, 58, 90, 0.08);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--warm-white);
  line-height: 1.65;
  -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 {
  font-family: var(--font-serif);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; color: var(--ink-muted); }
.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ---------- Skip link (accessibility) ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--navy);
  color: var(--warm-white);
  padding: 12px 20px;
  z-index: 1000;
  border-radius: var(--radius);
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ---------- Focus states (accessibility) ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--content-width);
  margin: 0 auto;
}
.brand-wordmark {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand-wordmark span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  font-weight: 600;
  margin-top: 2px;
}
.main-nav ul {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  border-bottom-color: var(--gold);
}
.nav-cta {
  background: var(--navy);
  color: var(--warm-white) !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--navy-light); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 0.9rem;
  color: var(--navy);
}

@media (max-width: 880px) {
  .main-nav {
    display: none;
    width: 100%;
    order: 3;
  }
  .main-nav.open { display: block; }
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 0 8px;
  }
  .main-nav a { display: block; padding: 10px 0; width: 100%; }
  .nav-wrap { flex-wrap: wrap; }
  .nav-toggle { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--navy);
  color: var(--warm-white);
}
.btn-primary:hover { background: var(--navy-light); }
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover { background: var(--navy); color: var(--warm-white); }
.btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
}
.btn-gold:hover { background: var(--gold-light); }

/* ---------- Hero / brand graphic ---------- */
.hero-graphic-wrap {
  background: var(--navy-dark);
  padding: 0;
}
.hero-graphic-wrap img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-graphic-placeholder {
  width: 100%;
  aspect-ratio: 2035 / 773;
  background: repeating-linear-gradient(45deg, var(--ivory), var(--ivory) 12px, var(--greige) 12px, var(--greige) 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: var(--navy);
  font-family: var(--font-sans);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.hero-graphic-mobile-note {
  display: none;
}

@media (max-width: 640px) {
  /* On small screens, keep the full graphic but allow horizontal scroll
     rather than shrinking it into illegibility, per brand guidance. */
  .hero-graphic-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .hero-graphic-scroll img,
  .hero-graphic-scroll .hero-graphic-placeholder {
    width: 1400px;
    max-width: none;
  }
  .hero-graphic-mobile-note {
    display: block;
    font-size: 0.8rem;
    color: var(--ink-muted);
    text-align: center;
    padding: 6px 12px;
    background: var(--ivory);
  }
}

.intro-section {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 32px;
}
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* ---------- Section rhythm ---------- */
section { padding: 72px 0; }
.section-alt { background: var(--ivory); }
.section-navy {
  background: var(--navy);
  color: var(--warm-white);
}
.section-navy h2, .section-navy h3 { color: var(--warm-white); }
.section-navy p { color: rgba(250, 247, 241, 0.82); }
.section-header {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}
hr.divider {
  border: none;
  border-top: 1px solid var(--gold);
  width: 64px;
  margin: 20px auto;
}

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 32px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}
.card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-soft);
}
.card .icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ivory);
  border: 1px solid var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--gold);
  font-size: 1.1rem;
}
.card a.card-link {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 2px solid var(--gold);
}

.placeholder-box {
  background: repeating-linear-gradient(45deg, var(--ivory), var(--ivory) 10px, var(--greige) 10px, var(--greige) 20px);
  border: 1px dashed var(--wood);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--ink-muted);
  font-size: 0.85rem;
  text-align: center;
}

/* ---------- FAQ / accordion ---------- */
.accordion-item {
  border-bottom: 1px solid var(--border);
}
.accordion-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  padding: 18px 4px;
  font-family: var(--font-sans);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--gold);
}
.accordion-item[open] summary::after { content: "\2212"; }
.accordion-item p { padding-bottom: 18px; }

/* ---------- Forms ---------- */
form { max-width: 640px; }
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-hint {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-top: 4px;
}
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: var(--warm-white);
  color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; }
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.checkbox-row input { width: auto; margin-top: 4px; }
.form-error {
  color: #A3332A;
  font-size: 0.82rem;
  margin-top: 4px;
}
.form-success {
  background: var(--ivory);
  border: 1px solid var(--sage);
  border-radius: var(--radius);
  padding: 20px;
  color: var(--navy);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(250, 247, 241, 0.85);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.site-footer h4 {
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  margin-bottom: 14px;
}
.site-footer a {
  display: block;
  color: rgba(250, 247, 241, 0.75);
  font-size: 0.9rem;
  padding: 4px 0;
}
.site-footer a:hover { color: var(--warm-white); }
.footer-bottom {
  border-top: 1px solid rgba(250, 247, 241, 0.15);
  padding-top: 20px;
  font-size: 0.8rem;
  color: rgba(250, 247, 241, 0.6);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Breadcrumb / eyebrow bar ---------- */
.page-banner {
  background: var(--ivory);
  padding: 40px 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

/* ---------- 404 ---------- */
.error-page {
  text-align: center;
  padding: 120px 24px;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
