/* ============================================================
   HOUSE OF KANADA — SHARED STYLESHEET
   ============================================================ */

:root {
  --obsidian: #0d0d0b;
  --obsidian-2: #111310;
  --birch: #fbf9f4;
  --cedar: #8b4a2b;
  --gold: #d4a445;
  --gold-dim: #a5813a;
  --sage: #6b7c5a;
  --smoke: #2a2a26;
  --mist: #f2eee6;
  --line: rgba(251,249,244,0.12);
  --line-soft: rgba(251,249,244,0.07);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--obsidian);
  color: var(--birch);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

h1, h2, h3 { font-family: 'Cormorant Garamond', serif; font-weight: 400; }
.serif-italic { font-style: italic; font-weight: 300; }

/* ── NOISE TEXTURE ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
  opacity: 0.35;
}

/* ══════════════════ NAV ══════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 3rem;
  background: linear-gradient(180deg, rgba(13,13,11,0.92), rgba(13,13,11,0));
  backdrop-filter: blur(6px);
  transition: background 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(13,13,11,0.86);
  border-bottom: 1px solid var(--line-soft);
  padding: 1rem 3rem;
}
.nav-wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.nav-wordmark span { color: var(--gold); }
.nav-wordmark small {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  color: rgba(251,249,244,0.45);
  font-weight: 400;
  margin-top: 2px;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}
.nav-menu a {
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: rgba(251,249,244,0.72);
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.25s ease;
}
.nav-menu a:hover { color: var(--birch); }
.nav-menu a.active { color: var(--gold); }
.nav-menu a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--gold);
}
.nav-cta {
  border: 1px solid var(--gold);
  color: var(--gold) !important;
  padding: 0.55rem 1.3rem;
  border-radius: 2px;
  font-size: 0.76rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease;
}
.nav-cta:hover { background: var(--gold); color: var(--obsidian) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  z-index: 600;
}
.nav-toggle span {
  width: 24px; height: 1px;
  background: var(--birch);
  display: block;
}

@media (max-width: 920px) {
  .site-header { padding: 1.1rem 1.5rem; }
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    inset: 0;
    background: var(--obsidian);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s ease, opacity 0.3s ease;
  }
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-menu a { font-size: 1.3rem; }
}

/* ══════════════════ BUTTONS ══════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  border-radius: 2px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-gold { background: var(--gold); color: var(--obsidian); }
.btn-gold:hover { background: #e3b558; transform: translateY(-1px); }
.btn-outline { border-color: rgba(251,249,244,0.3); color: var(--birch); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ══════════════════ PAGE HERO (interior pages) ══════════════════ */
.page-hero {
  padding: 11rem 3rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(107,124,90,0.14), transparent 55%),
    radial-gradient(ellipse at 85% 20%, rgba(212,164,69,0.10), transparent 50%);
  z-index: -1;
}
.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.08;
  margin: 1rem 0 1.4rem;
  max-width: 850px;
}
.page-hero .lede {
  font-size: 1.15rem;
  color: rgba(251,249,244,0.68);
  max-width: 640px;
  font-weight: 300;
}

/* ══════════════════ SECTIONS ══════════════════ */
.section {
  padding: 6rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}
.section-tight { padding: 4rem 3rem; }
.section-alt {
  background: var(--obsidian-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.section-head { max-width: 680px; margin-bottom: 3rem; }
.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  margin-top: 0.7rem;
}
.section-head h2 strong { color: var(--gold); font-weight: 500; }

.divider {
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  width: 64px;
  margin: 0.9rem 0 0;
}

/* ══════════════════ CARDS ══════════════════ */
.card {
  background: rgba(251,249,244,0.03);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2rem;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.card:hover {
  border-color: rgba(212,164,69,0.45);
  transform: translateY(-3px);
  background: rgba(251,249,244,0.045);
}
.card h3 { font-size: 1.3rem; margin: 0.6rem 0 0.7rem; }
.card p { color: rgba(251,249,244,0.62); font-size: 0.92rem; }
.card .tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  border: 1px solid rgba(107,124,90,0.4);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  margin-top: 1rem;
}

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

/* ══════════════════ VIDEO PLACEHOLDER ══════════════════ */
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 30% 30%, rgba(212,164,69,0.16), transparent 55%),
    radial-gradient(ellipse at 75% 70%, rgba(107,124,90,0.16), transparent 55%),
    linear-gradient(160deg, #17170f 0%, #0d0d0b 60%);
}
.video-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 2px, transparent 2px, transparent 90px);
  mix-blend-mode: overlay;
}
.video-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 78px; height: 78px;
  border-radius: 50%;
  border: 1px solid rgba(251,249,244,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  background: rgba(13,13,11,0.35);
}
.video-play-btn:hover { transform: translate(-50%,-50%) scale(1.08); border-color: var(--gold); background: rgba(212,164,69,0.12); }
.video-play-btn svg { width: 22px; height: 22px; fill: var(--birch); margin-left: 4px; }
.video-caption {
  position: absolute;
  left: 1.6rem; bottom: 1.4rem;
  z-index: 3;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(251,249,244,0.55);
}
.video-caption strong { color: var(--gold); font-weight: 500; }

/* ══════════════════ MEDIA TILE (gallery) ══════════════════ */
.media-tile {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, #171712 0%, #0d0d0b 65%);
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
}
.media-tile.video::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(251,249,244,0.4);
}
.media-tile.video::after {
  content: '';
  position: absolute;
  top: 50%; left: calc(50% + 3px);
  transform: translate(-50%,-50%);
  width: 0; height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent rgba(251,249,244,0.75);
}
.media-tile-label {
  position: relative; z-index: 2;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: rgba(251,249,244,0.8);
}
.media-tile-label small {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.media-tile-tag {
  position: absolute;
  top: 1rem; right: 1rem;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(251,249,244,0.45);
  border: 1px solid var(--line);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
}

/* ══════════════════ STAT ROW ══════════════════ */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 2.4rem 0;
}
.stat { text-align: left; }
.stat .num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.6rem;
  color: var(--gold);
  line-height: 1;
}
.stat .label {
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: rgba(251,249,244,0.55);
  margin-top: 0.5rem;
}
@media (max-width: 900px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════ FLOW DIAGRAM (AkweOS hub) ══════════════════ */
.flow-wrap { text-align: center; padding: 2rem 0 1rem; }
.flow-hub {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 168px; height: 168px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: radial-gradient(circle, rgba(212,164,69,0.14), transparent 70%);
  margin-bottom: 2.4rem;
}
.flow-hub .eyebrow { margin-bottom: 0.3rem; }
.flow-hub strong { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; }
.flow-spokes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.flow-spoke {
  border-top: 1px solid var(--gold);
  padding-top: 1rem;
  text-align: left;
}
.flow-spoke .n { font-size: 0.7rem; color: var(--gold); letter-spacing: 0.1em; }
.flow-spoke p { font-size: 0.88rem; color: rgba(251,249,244,0.6); margin-top: 0.4rem; }
@media (max-width: 900px) {
  .flow-spokes { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════ TEAM ══════════════════ */
.team-card { display: flex; flex-direction: column; gap: 0.2rem; }
.team-portrait {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 3px;
  margin-bottom: 1.2rem;
  background: linear-gradient(155deg, #1c1c15, #0d0d0b);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.6rem;
  color: rgba(212,164,69,0.55);
}
.team-card h3 { font-size: 1.25rem; margin-top: 0.2rem; }
.team-card .role { color: var(--gold); font-size: 0.8rem; letter-spacing: 0.04em; margin: 0.2rem 0 0.8rem; }
.team-card p { color: rgba(251,249,244,0.6); font-size: 0.88rem; }

/* ══════════════════ CONTACT / FORM ══════════════════ */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-detail { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.6rem; }
.contact-detail .k { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(251,249,244,0.45); min-width: 90px; }
.contact-detail .v { color: var(--birch); font-size: 1rem; }
.contact-detail a:hover { color: var(--gold); }

.field { margin-bottom: 1.4rem; }
.field label { display: block; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(251,249,244,0.55); margin-bottom: 0.5rem; }
.field input, .field select, .field textarea {
  width: 100%;
  background: rgba(251,249,244,0.04);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.85rem 1rem;
  color: var(--birch);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
}
.field textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-error { color: #d97757; font-size: 0.85rem; margin-bottom: 1rem; display: none; }
.form-success {
  display: none;
  flex-direction: column;
  gap: 0.6rem;
  padding: 2rem;
  border: 1px solid rgba(212,164,69,0.35);
  border-radius: 3px;
  background: rgba(212,164,69,0.05);
}
.form-success h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; color: var(--gold); }
.form-success p { color: rgba(251,249,244,0.65); font-size: 0.9rem; }

/* ══════════════════ CTA BAND ══════════════════ */
.cta-band {
  padding: 6rem 3rem;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0.8rem 0 2rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ══════════════════ FOOTER ══════════════════ */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 3.5rem 3rem 2.2rem;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.2rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand .nav-wordmark { margin-bottom: 0.8rem; }
.footer-brand p { color: rgba(251,249,244,0.5); font-size: 0.85rem; max-width: 280px; }
.footer-col h4 { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(251,249,244,0.45); margin-bottom: 1rem; }
.footer-col a, .footer-col span { display: block; font-size: 0.86rem; color: rgba(251,249,244,0.68); margin-bottom: 0.6rem; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--line-soft);
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.76rem;
  color: rgba(251,249,244,0.4);
}

/* ══════════════════ REVEAL ANIM ══════════════════ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition: none !important; }
}

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ══════════════════ SINGLE-PAGE ANCHOR OFFSET ══════════════════ */
section[id] { scroll-margin-top: 84px; }
