/* ═══════════════════════════════════════════════
   HUIOS — Global Stylesheet
   Sacred · Forged · Rooted · Cinematic · Covenantal
   Brand Colors: Olympic Cedar, Adopted Son Gold,
   Coastal Fog Stone, Redwood Covenant Ember,
   Sea-to-Summit Slate, Rainforest Moss
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600&family=Spectral:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

:root {
  /* ── Brand Colors ─────────────────────────── */
  --cedar:         #142925;   /* Primary Dark – Olympic Cedar */
  --cedar-90:      rgba(20,41,37,0.92);
  --cedar-light:   #1e3d37;
  --cedar-mid:     #1a332d;

  --gold:          #E8B923;   /* Primary Accent – Adopted Son Gold */
  --gold-light:    #f0ca4a;
  --gold-dim:      rgba(232,185,35,0.15);
  --gold-glow:     rgba(232,185,35,0.08);

  --stone:         #E8E3DC;   /* Primary Neutral – Coastal Fog Stone */
  --stone-dark:    #d6d0c7;
  --stone-mid:     #c4bdb4;

  --ember:         #B84E2A;   /* Secondary Fire – Redwood Covenant Ember */
  --ember-light:   #d06038;

  --slate:         #496E6E;   /* Tertiary Cool – Sea-to-Summit Slate */
  --slate-light:   #5a8484;

  --moss:          #5D7A62;   /* Growth – Rainforest Moss */
  --moss-light:    #6e8e74;

  /* ── Semantic Aliases ──────────────────────── */
  --dark:          var(--cedar);
  --dark-warm:     var(--cedar-light);
  --bg-light:      var(--stone);
  --bg-light-alt:  #f0ece4;
  --text-on-dark:  var(--stone);
  --text-on-light: var(--cedar);
  --text-muted:    var(--slate);
  --text-soft:     var(--stone-mid);

  /* ── Typography ────────────────────────────── */
  --font-display:  'Cormorant Garamond', Georgia, serif;
  --font-sub:      'Playfair Display', Georgia, serif;
  --font-body:     'Spectral', Georgia, serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--stone);
  color: var(--cedar);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--gold); color: var(--cedar); }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── TYPOGRAPHY ────────────────────────────── */
.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 24px;
}
.hdl-xl {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 82px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.5px;
}
.hdl-lg {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 300;
  line-height: 1.2;
}
.hdl-md {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 300;
  line-height: 1.3;
}
.hdl-sm {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 400;
  line-height: 1.3;
}
.body-lg {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.85;
  font-weight: 300;
}
.body-md {
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.85;
  font-weight: 300;
}
.italic { font-style: italic; }
.gold { color: var(--gold-light); }
.stone-text { color: var(--slate); }
.taupe-text { color: var(--stone-mid); }
.sand-text { color: var(--stone-dark); }
.cream-text { color: var(--stone); }
.ember-text { color: var(--ember); }

/* ── LAYOUT ────────────────────────────────── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; margin: 0 auto; }
.narrower { max-width: 620px; margin: 0 auto; }
.center { text-align: center; }
.section-pad { padding: clamp(80px, 12vw, 140px) 0; }
.section-pad-sm { padding: clamp(60px, 8vw, 100px) 0; }

.bg-dark { background: var(--cedar); color: var(--stone); }
.bg-dark-warm { background: var(--cedar-light); color: var(--stone); }
.bg-cream { background: var(--stone); color: var(--cedar); }
.bg-cream-light { background: var(--bg-light-alt); color: var(--cedar); }

/* ── GRAIN TEXTURE ─────────────────────────── */
.grain {
  position: relative;
}
.grain::after {
  content: '';
  position: absolute; inset: 0;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
  z-index: 0;
}
.grain > * { position: relative; z-index: 1; }

/* ── BUTTONS ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.35s ease;
  border-radius: 2px;
  text-decoration: none;
}
.btn-primary {
  padding: 16px 36px;
  font-size: 13px;
  background: var(--gold);
  color: var(--cedar);
  border: none;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-secondary {
  padding: 14px 32px;
  font-size: 12px;
  background: transparent;
  border: 1px solid currentColor;
  color: inherit;
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }
.btn-ember {
  padding: 16px 36px;
  font-size: 13px;
  background: var(--ember);
  color: var(--stone);
  border: none;
}
.btn-ember:hover { background: var(--ember-light); }
.btn-sm {
  padding: 10px 24px;
  font-size: 11px;
}
.btn-group { display: flex; flex-wrap: wrap; gap: 16px; }
.btn-group.center { justify-content: center; }

/* ── DIVIDER ───────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  width: fit-content;
  margin: 40px auto;
}
.divider::before, .divider::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0.4;
}
.divider span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.5;
}

/* ── GOLD LINE ─────────────────────────────── */
.gold-line {
  width: 60px; height: 1px;
  background: var(--gold);
  margin: 0 auto 32px;
}

/* ── HEADER ────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.4s ease;
}
.site-header.scrolled {
  padding: 14px 32px;
  background: var(--cedar-90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gold-dim);
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--stone);
}
.header-logo img {
  height: 42px;
  width: auto;
  transition: height 0.4s;
}
.scrolled .header-logo img { height: 34px; }
.header-logo span {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--stone);
}

/* Nav */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-link {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.75;
  transition: opacity 0.3s;
  color: var(--stone);
  position: relative;
}
.nav-link:hover { opacity: 1; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: right;
}
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* Mobile menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.mobile-toggle .bar {
  height: 1.5px;
  background: var(--stone);
  transition: all 0.3s;
}
.mobile-toggle .bar:first-child { width: 24px; }
.mobile-toggle .bar:last-child { width: 16px; margin-left: auto; }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--cedar);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 300;
  letter-spacing: 2px;
  color: var(--stone);
  opacity: 0.8;
  transition: all 0.3s;
}
.mobile-menu a:hover { opacity: 1; color: var(--gold); }
.menu-close {
  position: absolute;
  top: 24px; right: 28px;
  background: none;
  border: none;
  color: var(--stone);
  font-size: 28px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 300;
}

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .mobile-toggle { display: flex; }
  .site-header { padding: 16px 20px; }
}

/* ── HERO ──────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  background:
    radial-gradient(ellipse 70% 60% at 50% 55%, rgba(232,185,35,0.06) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 30% 40%, rgba(93,122,98,0.05) 0%, transparent 60%),
    linear-gradient(175deg, #0f1f1b 0%, #142925 40%, #1a332d 70%, #142925 100%);
  color: var(--stone);
}
.hero-light {
  position: absolute;
  top: 18%;
  left: 50%;
  width: 400px; height: 400px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(232,185,35,0.07) 0%, transparent 70%);
  animation: breathe 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.hero-content { position: relative; z-index: 1; }

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.35;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 500;
  z-index: 1;
}
.hero-scroll .line {
  width: 1px; height: 32px;
  background: linear-gradient(to bottom, var(--stone-dark), transparent);
}

/* ── CARDS ─────────────────────────────────── */
.pillar-card {
  padding: 36px 30px;
  border: 1px solid var(--gold-dim);
  background: rgba(20,41,37,0.5);
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(.22,1,.36,1);
  position: relative;
  overflow: hidden;
}
.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.pillar-card:hover {
  border-color: rgba(232,185,35,0.35);
  transform: translateY(-4px);
}
.pillar-card:hover::before { opacity: 1; }
.pillar-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 300;
  color: var(--gold);
  opacity: 0.35;
  margin-bottom: 12px;
}
.pillar-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}
.pillar-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--stone-mid);
  font-weight: 300;
}

.info-card {
  padding: 48px 32px;
  border: 1px solid var(--gold-dim);
  background: rgba(232,227,220,0.03);
  text-align: center;
  transition: border-color 0.3s;
}
.info-card:hover { border-color: rgba(232,185,35,0.35); }
.info-card .icon {
  font-size: 28px;
  margin-bottom: 20px;
  opacity: 0.7;
}
.info-card h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 14px;
}
.info-card p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--stone-mid);
  font-weight: 300;
  margin-bottom: 28px;
}

/* ── GRID LAYOUTS ──────────────────────────── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
.grid-7 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

/* ── STAT BLOCK ────────────────────────────── */
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 8px;
  font-weight: 500;
}

/* ── PULL QUOTE ────────────────────────────── */
.pull-quote-mark {
  font-family: var(--font-display);
  font-size: 52px;
  color: var(--gold);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 12px;
}
.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 300;
  line-height: 1.5;
  font-style: italic;
}

/* ── VALUE TAGS ────────────────────────────── */
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.tag {
  padding: 10px 20px;
  border: 1px solid rgba(232,185,35,0.2);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold);
}

/* ── FAQ ACCORDION ─────────────────────────── */
.faq-item {
  border-bottom: 1px solid rgba(232,185,35,0.1);
  padding: 28px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-question {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 400;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.3s;
}
.faq-question:hover { color: var(--gold); }
.faq-question .faq-toggle {
  font-size: 24px;
  font-weight: 300;
  color: var(--gold);
  opacity: 0.5;
  transition: transform 0.3s;
  flex-shrink: 0;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.open .faq-answer {
  max-height: 600px;
  padding-top: 16px;
}

/* ── FOOTER ────────────────────────────────── */
.site-footer {
  background: var(--cedar);
  color: var(--stone);
  border-top: 1px solid var(--gold-dim);
  padding: 64px 24px 40px;
}
.footer-grid {
  max-width: 1100px;
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 48px;
}
.footer-brand img {
  height: 48px;
  width: auto;
  margin-bottom: 16px;
}
.footer-brand .wordmark {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-heading {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: 600;
}
.footer-links a {
  display: block;
  font-size: 14px;
  color: var(--stone-mid);
  margin-bottom: 12px;
  font-weight: 300;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--stone); }
.footer-bottom {
  border-top: 1px solid rgba(232,185,35,0.08);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.footer-bottom p {
  font-size: 12px;
  color: var(--slate);
  font-weight: 300;
}

/* ── PAGE HERO (Interior) ──────────────────── */
.page-hero {
  padding: 180px 24px 100px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 60%, rgba(232,185,35,0.06) 0%, transparent 70%),
    linear-gradient(175deg, #0f1f1b 0%, #142925 60%, #1a332d 100%);
  color: var(--stone);
  position: relative;
}

/* ── FORM ──────────────────────────────────── */
.form-group { margin-bottom: 24px; }
.form-label {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--slate);
  margin-bottom: 8px;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  background: rgba(232,227,220,0.06);
  border: 1px solid rgba(232,185,35,0.15);
  color: var(--stone);
  outline: none;
  transition: border-color 0.3s;
  border-radius: 2px;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--gold);
}
.form-textarea { min-height: 140px; resize: vertical; }
.form-select option { background: var(--cedar); color: var(--stone); }

/* ── SCROLL REVEAL ─────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.85s cubic-bezier(.22,1,.36,1), transform 0.85s cubic-bezier(.22,1,.36,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── ANIMATIONS ────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes breathe {
  0%, 100% { opacity: 0.12; }
  50% { opacity: 0.28; }
}
@keyframes lineGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.anim-fade-up { animation: fadeUp 0.9s cubic-bezier(.22,1,.36,1) both; }
.anim-delay-1 { animation-delay: 0.15s; }
.anim-delay-2 { animation-delay: 0.3s; }
.anim-delay-3 { animation-delay: 0.45s; }
.anim-delay-4 { animation-delay: 0.6s; }
.anim-delay-5 { animation-delay: 0.75s; }
.anim-line-grow { animation: lineGrow 1s ease 0.5s both; transform-origin: center; }

/* ── PILLAR DEEP-DIVE ──────────────────────── */
.pillar-deep {
  padding: 48px 0;
  border-bottom: 1px solid rgba(232,185,35,0.08);
}
.pillar-deep:last-child { border-bottom: none; }
.pillar-deep-num {
  font-family: var(--font-display);
  font-size: clamp(64px, 8vw, 96px);
  font-weight: 300;
  color: var(--gold);
  opacity: 0.15;
  line-height: 1;
}
.pillar-deep-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  margin: 8px 0 20px;
}
.pillar-deep-verse {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--gold);
  margin-bottom: 20px;
  opacity: 0.8;
}

/* ── RESPONSIVE ────────────────────────────── */
@media (max-width: 600px) {
  .grid-3, .grid-4, .grid-7 { grid-template-columns: 1fr; }
  .btn-group { flex-direction: column; align-items: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 100px 20px 60px; }
  .page-hero { padding: 140px 20px 80px; }
  .mission-grid { grid-template-columns: 1fr !important; }
  .mission-grid > div { border-left: none !important; border-right: none !important; border-bottom: 1px solid rgba(232,185,35,0.1); padding-bottom: 32px !important; }
  .mission-grid > div:last-child { border-bottom: none; }
}
