/* ═══════════════════════════════════════════════════════════
   Human Authority Architecture™ — Site Stylesheet v2
   Brand Standards v2.0 · Locked palette + web-optimized UX
   © 2026 Olive on Main Design Studio, LLC
   ═══════════════════════════════════════════════════════════ */

:root {
  --navy:      #1B2A4A;
  --navy-dk:   #111d33;
  --navy-md:   #233358;
  --navy-soft: #1e3054;
  --emerald:   #1A6B4A;
  --em-lt:     #e6f4ed;
  --em-md:     #2d8a63;
  --gold:      #C89B3C;
  --gold-lt:   #fdf6e3;
  --gold-dk:   #a07828;
  --ink:       #1e2533;
  --muted:     #6b7280;
  --border:    #d4d9e2;
  --bg:        #f7f8fa;
  --bg-warm:   #faf9f7;
  --white:     #ffffff;
  --shadow-sm: 0 1px 3px rgba(27,42,74,0.06);
  --shadow-md: 0 4px 16px rgba(27,42,74,0.08);
  --shadow-lg: 0 12px 40px rgba(27,42,74,0.12);
  --radius:    12px;
  --radius-lg: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg-warm);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.25s ease; }

h1, h2, h3 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
p { font-size: 1.05rem; max-width: 65ch; line-height: 1.8; color: var(--ink); }
p + p { margin-top: 1rem; }

.eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.positioning {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  color: var(--emerald);
  font-size: 1.15rem;
  line-height: 1.7;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 7rem 0; }
.section--navy { background: linear-gradient(175deg, var(--navy) 0%, var(--navy-dk) 100%); color: var(--white); }
.section--navy-dk { background: var(--navy-dk); color: var(--white); }
.section--bg { background: var(--bg); }
.section--warm { background: var(--bg-warm); }
.section--em-lt { background: linear-gradient(175deg, var(--em-lt) 0%, #f0f9f4 100%); }
.section--gold-lt { background: linear-gradient(175deg, var(--gold-lt) 0%, #fef9ee 100%); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(17, 29, 51, 0.95);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(200, 155, 60, 0.1);
  transition: all 0.4s ease;
}
.site-header.scrolled { box-shadow: 0 4px 32px rgba(0,0,0,0.25); background: rgba(17, 29, 51, 0.98); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 1rem 2rem; max-width: 1140px; margin: 0 auto; }
.nav-brand { display: flex; flex-direction: column; gap: 2px; }
.nav-brand-name { font-family: 'DM Serif Display', serif; font-size: 1.05rem; color: var(--white); letter-spacing: 0.3px; line-height: 1.2; }
.nav-brand-sub { font-family: 'DM Sans', sans-serif; font-size: 0.58rem; color: var(--gold); letter-spacing: 2.5px; text-transform: uppercase; font-weight: 600; opacity: 0.85; }
.nav-links { display: flex; align-items: center; gap: 1.8rem; list-style: none; }
.nav-links a { font-family: 'DM Sans', sans-serif; font-size: 0.82rem; font-weight: 500; color: rgba(255,255,255,0.85); letter-spacing: 0.3px; transition: color 0.25s ease; position: relative; padding: 0.25rem 0; }
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: var(--gold); border-radius: 1px; }
.nav-cta { font-family: 'DM Sans', sans-serif; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; color: var(--navy) !important; background: var(--gold); padding: 0.55rem 1.3rem; border-radius: 6px; transition: all 0.25s ease; }
.nav-cta:hover { background: #d4a843; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(200,155,60,0.3); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); margin: 5px 0; transition: 0.3s; border-radius: 1px; }

.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(170deg, var(--navy-dk) 0%, var(--navy) 40%, var(--navy-soft) 100%);
  color: var(--white); position: relative; overflow: hidden; padding-top: 5rem;
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 70% 20%, rgba(200,155,60,0.04) 0%, transparent 50%), radial-gradient(ellipse at 20% 80%, rgba(26,107,74,0.06) 0%, transparent 50%);
  pointer-events: none;
}
.hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 120px; background: linear-gradient(to bottom, transparent, var(--bg-warm)); pointer-events: none; }
.hero-content { position: relative; z-index: 1; padding-bottom: 4rem; }
.hero h1 { font-size: clamp(2.6rem, 5.5vw, 3.6rem); line-height: 1.12; margin-bottom: 1.5rem; max-width: 680px; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,0.8); max-width: 540px; margin-bottom: 2rem; line-height: 1.85; font-weight: 300; }
.hero-marker { font-family: 'DM Serif Display', serif; font-style: italic; color: var(--emerald); font-size: 1rem; margin-bottom: 2.5rem; max-width: 480px; line-height: 1.7; opacity: 0.85; }

.btn { display: inline-flex; align-items: center; font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 0.82rem; letter-spacing: 0.8px; text-transform: uppercase; padding: 0.85rem 1.8rem; border-radius: 8px; transition: all 0.3s ease; cursor: pointer; border: none; }
.btn--gold { background: var(--gold); color: var(--navy); box-shadow: 0 2px 8px rgba(200,155,60,0.2); }
.btn--gold:hover { background: #d4a843; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(200,155,60,0.3); }
.btn--outline { background: transparent; color: rgba(255,255,255,0.8); border: 1px solid rgba(255,255,255,0.25); }
.btn--outline:hover { border-color: var(--gold); color: var(--gold); background: rgba(200,155,60,0.05); }
.btn--navy { background: var(--navy); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--navy:hover { background: var(--navy-md); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--emerald { background: var(--emerald); color: var(--white); box-shadow: 0 2px 8px rgba(26,107,74,0.2); }
.btn--emerald:hover { background: var(--em-md); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,107,74,0.25); }
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }

.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; transition: all 0.35s ease; box-shadow: var(--shadow-sm); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card--accent { border-left: 4px solid var(--gold); }
.card--emerald { border-left: 4px solid var(--emerald); }
.card--navy { background: rgba(255,255,255,0.04); color: var(--white); border-color: rgba(255,255,255,0.08); box-shadow: none; }
.card--navy:hover { background: rgba(255,255,255,0.07); border-color: rgba(200,155,60,0.2); box-shadow: 0 8px 32px rgba(0,0,0,0.2); }
.card h3 { margin-bottom: 0.6rem; color: var(--navy); }
.card p { color: var(--muted); font-size: 0.95rem; line-height: 1.7; }

.sas-bar { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.sas-pill { font-family: 'DM Sans', sans-serif; font-size: 0.68rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; padding: 0.4rem 1rem; border-radius: 20px; border: 1px solid; transition: all 0.25s ease; }
.sas-pill--stability { background: rgba(26,107,74,0.06); color: var(--emerald); border-color: rgba(26,107,74,0.15); }
.sas-pill--authority { background: rgba(200,155,60,0.06); color: var(--gold-dk); border-color: rgba(200,155,60,0.15); }
.sas-pill--stewardship { background: rgba(27,42,74,0.04); color: var(--navy); border-color: rgba(27,42,74,0.1); }

.phase-bar { display: flex; align-items: center; gap: 0.75rem; padding: 1.5rem 0; }
.phase-badge { font-family: 'DM Sans', sans-serif; font-size: 0.82rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 0.5rem 1.4rem; border-radius: 8px; background: var(--navy-md); color: rgba(255,255,255,0.55); border: 1px solid rgba(255,255,255,0.08); transition: all 0.3s ease; }
.phase-badge--active { background: var(--emerald); color: var(--white); border-color: var(--emerald); box-shadow: 0 2px 12px rgba(26,107,74,0.3); }
.phase-arrow { color: var(--gold); font-size: 1.1rem; font-weight: 300; opacity: 0.6; }

.gold-rule { width: 50px; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-dk)); margin: 1.25rem 0 1.5rem; border: none; border-radius: 2px; }
.gold-rule--center { margin-left: auto; margin-right: auto; }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 4rem; }
.section-header h2 { margin-bottom: 0.75rem; color: var(--navy); }
.section-header p { margin: 0 auto; color: var(--muted); font-size: 1rem; }

.site-footer { background: var(--navy-dk); color: rgba(255,255,255,0.8); padding: 5rem 0 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3.5rem; }
.footer-brand-name { font-family: 'DM Serif Display', serif; font-size: 1.05rem; color: var(--white); margin-bottom: 0.4rem; }
.footer-brand-sub { font-size: 0.68rem; color: var(--gold); letter-spacing: 2px; text-transform: uppercase; font-weight: 600; margin-bottom: 1.2rem; opacity: 0.8; }
.footer-brand-text { font-size: 0.85rem; line-height: 1.75; max-width: 300px; color: rgba(255,255,255,0.85); }
.footer-col h4 { font-family: 'DM Sans', sans-serif; font-size: 0.68rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; opacity: 0.8; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.7rem; }
.footer-col a { font-size: 0.85rem; color: rgba(255,255,255,0.8); transition: color 0.25s ease; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 2rem; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 1.5rem; }
.footer-legal { font-size: 0.72rem; line-height: 1.9; max-width: 600px; color: rgba(255,255,255,0.7); }
.footer-ip { font-size: 0.62rem; color: rgba(255,255,255,0.55); line-height: 1.8; max-width: 440px; text-align: right; }

.sector-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.5rem 2rem; text-align: center; transition: all 0.35s ease; box-shadow: var(--shadow-sm); }
.sector-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.sector-icon { width: 60px; height: 60px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.2rem; font-size: 1.5rem; background: var(--em-lt); }
.sector-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.sector-card p { font-size: 0.9rem; color: var(--muted); margin: 0 auto; }

.cta-banner { text-align: center; padding: 6rem 2rem; }
.cta-banner h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-banner p { color: rgba(255,255,255,0.6); margin: 0 auto 2.5rem; font-size: 1rem; }

.timeline { display: flex; gap: 0; position: relative; }
.timeline::before { content: ''; position: absolute; top: 2.5rem; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, var(--gold), var(--emerald)); opacity: 0.3; }
.timeline-step { flex: 1; text-align: center; position: relative; padding: 0 1.2rem; }
.timeline-dot { width: 52px; height: 52px; border-radius: 50%; background: var(--navy); border: 3px solid var(--gold); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; position: relative; z-index: 1; font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 0.78rem; letter-spacing: 1px; color: var(--gold); box-shadow: 0 4px 16px rgba(27,42,74,0.2); transition: all 0.3s ease; }
.timeline-step:hover .timeline-dot { transform: scale(1.08); box-shadow: 0 6px 24px rgba(200,155,60,0.3); }
.timeline-step h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.timeline-step p { font-size: 0.9rem; color: var(--muted); max-width: 280px; margin: 0 auto; line-height: 1.7; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.calendly-wrap { min-height: 660px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--white); box-shadow: var(--shadow-md); }

.article-full { max-width: 720px; margin: 0 auto; }
.article-full h2 { margin-top: 2.5rem; margin-bottom: 1rem; font-size: 1.6rem; }
.article-full h3 { margin-top: 2rem; margin-bottom: 0.75rem; font-size: 1.2rem; }
.article-full p { margin-bottom: 1.3rem; line-height: 1.85; }
.article-meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 2.5rem; letter-spacing: 0.3px; }
.article-divider { border: none; border-top: 2px solid var(--gold); width: 50px; margin: 5rem auto; opacity: 0.4; }
.featured-tag { display: inline-block; font-size: 0.62rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-dk); background: var(--gold-lt); padding: 0.3rem 0.9rem; border-radius: 4px; margin-bottom: 1rem; }

.sector-deep { padding: 4rem 0; border-bottom: 1px solid var(--border); }
.sector-deep:last-child { border-bottom: none; }
.risk-item { display: flex; gap: 0.85rem; margin-bottom: 1.1rem; align-items: flex-start; }
.risk-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-top: 0.55rem; flex-shrink: 0; }
.risk-text { font-size: 0.95rem; color: var(--muted); line-height: 1.7; }

.disclaimer { font-size: 0.78rem; color: var(--muted); line-height: 1.7; padding: 1rem 1.5rem; background: var(--bg); border-radius: 8px; border-left: 3px solid var(--border); margin-top: 2rem; max-width: 680px; }
.disclaimer--center { margin-left: auto; margin-right: auto; }

@media (max-width: 960px) {
  .grid-2 { grid-template-columns: 1fr; gap: 3rem; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .timeline { flex-direction: column; gap: 2.5rem; }
  .timeline::before { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  html { font-size: 15px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 5rem 0; }
  .hero { min-height: auto; padding: 8rem 0 5rem; }
  .container { padding: 0 1.5rem; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy-dk); padding: 1.5rem 2rem 2rem; gap: 0.8rem; border-top: 1px solid rgba(200,155,60,0.1); box-shadow: 0 12px 32px rgba(0,0,0,0.3); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-ip { text-align: center; }
  .card { padding: 1.5rem; }
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { opacity: 0; animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.fade-up-d1 { animation-delay: 0.12s; }
.fade-up-d2 { animation-delay: 0.24s; }
.fade-up-d3 { animation-delay: 0.36s; }
.fade-up-d4 { animation-delay: 0.48s; }
.fade-up-d5 { animation-delay: 0.6s; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media print {
  .site-header, .nav-toggle { display: none !important; }
  body { background: white; }
  .hero { min-height: auto !important; padding: 2rem 0; }
  .section { padding: 2rem 0; }
}

/* ── ACCESSIBILITY ── */

/* Skip-to-content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  background: var(--gold);
  color: var(--navy);
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 8px 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
  outline: none;
}

/* Visible focus indicators */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-cta:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.nav-links a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.card:focus-within {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Improved contrast for muted text */
.card p,
.risk-text,
.timeline-step p,
.sector-card p {
  color: #4b5563;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .fade-up { opacity: 1; transform: none; animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover { transform: none; }
  .sector-card:hover { transform: none; }
  .btn:hover { transform: none; }
}

/* High contrast mode support */
@media (forced-colors: active) {
  .btn { border: 2px solid ButtonText; }
  .card { border: 1px solid ButtonText; }
  .gold-rule { background: ButtonText; }
  .nav-links a.active::after { background: Highlight; }
}

/* ── COOKIE CONSENT BANNER ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--navy-dk);
  color: rgba(255,255,255,0.75);
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.85rem;
  line-height: 1.6;
  border-top: 1px solid rgba(200,155,60,0.15);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.3);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner p { max-width: 700px; margin: 0; font-size: 0.82rem; color: rgba(255,255,255,0.8); }
.cookie-banner a { color: var(--gold); text-decoration: underline; }
.cookie-btn-group { display: flex; gap: 0.75rem; flex-shrink: 0; }
.cookie-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.cookie-btn--accept { background: var(--gold); color: var(--navy); }
.cookie-btn--accept:hover { background: #d4a843; }
.cookie-btn--decline { background: transparent; color: rgba(255,255,255,0.5); border: 1px solid rgba(255,255,255,0.2); }
.cookie-btn--decline:hover { border-color: rgba(255,255,255,0.55); color: rgba(255,255,255,0.85); }

@media (max-width: 640px) {
  .cookie-banner { flex-direction: column; text-align: center; padding: 1.5rem; }
  .cookie-btn-group { width: 100%; justify-content: center; }
}
