/* ═══════════════════════════════════════════════
   DAKA — Shared design system
   Tokens · Typography · Layout · Components
   ═══════════════════════════════════════════════ */

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

/* ─── TOKENS · DARK (default) ─── */
:root {
  --ink: #0d0b09;
  --surface: #161310;
  --surface-2: #110f0c;
  --border: rgba(201,169,110,.10);
  --border-md: rgba(201,169,110,.22);
  --text-h: #f5f0e8;
  --text-body: #d8cdb9;
  --text-dim: #9a8e78;
  --gold: #c9a96e;
  --gold-light: #e0c690;
  --gold-dim: rgba(201,169,110,.45);
  --img-filter: brightness(.78) sepia(.35) hue-rotate(-8deg) saturate(1.05) contrast(1.02);
}

/* ─── TOKENS · LIGHT ─── */
body.light {
  --ink: #e9dfcc;
  --surface: #e6dcc8;
  --surface-2: #e0d6be;
  --border: rgba(154,117,64,.18);
  --border-md: rgba(154,117,64,.32);
  --text-h: #1d1611;
  --text-body: #3a2e22;
  --text-dim: #7a6849;
  --gold: #9a7540;
  --gold-light: #745828;
  --gold-dim: rgba(154,117,64,.30);
  --img-filter: brightness(.92) sepia(.25) hue-rotate(-8deg) saturate(1.05) contrast(1);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  background: var(--ink);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  transition: background .5s ease, color .5s ease;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { background: none; border: 0; font: inherit; color: inherit; cursor: pointer; }

/* ─── TYPOGRAPHY ─── */
.h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(3.2rem, 6vw, 5.8rem);
  line-height: .98;
  letter-spacing: -.01em;
  color: var(--text-h);
  transition: color .5s;
}
.h1 em { font-style: italic; color: var(--gold); }
.h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 1.05;
  color: var(--text-h);
  transition: color .5s;
  margin-bottom: 16px;
}
.h2 em { font-style: italic; color: var(--gold); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: 'Cinzel', serif;
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .4em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: '';
  width: 26px; height: 1px;
  background: var(--gold);
}
.caption {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-dim);
}
.body-text {
  font-size: .98rem;
  line-height: 1.85;
  color: var(--text-body);
}
.body-text strong { color: var(--gold-light); font-weight: 400; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  font-family: 'Cinzel', serif;
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .35em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .35s ease;
  position: relative;
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold);
  color: var(--ink);
  border: 1px solid var(--gold);
}
.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--text-h);
  border: 1px solid var(--border-md);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
  background: rgba(13,11,9,.55);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--border);
  transition: background .5s, border-color .5s;
}
body.light .nav { background: rgba(233,223,204,.65); }
.nav.scrolled { padding: 14px 48px; }
.nav-logo {
  font-family: Cinzel, serif;
  font-size: 1.1rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-links {
  display: flex;
  gap: 34px;
}
.nav-links a {
  font-family: 'Cinzel', serif;
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color .3s;
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 22px;
}
.theme-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.theme-switch-icon {
  font-size: .85rem;
  color: var(--text-dim);
  transition: color .3s;
}
.theme-switch-track {
  width: 36px; height: 18px;
  border: 1px solid var(--border-md);
  border-radius: 10px;
  position: relative;
  transition: border-color .3s;
}
.theme-switch-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold);
  transition: transform .35s ease;
}
body.light .theme-switch-thumb { transform: translateX(18px); }
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 6px;
}
.nav-burger span {
  display: block;
  width: 22px; height: 1px;
  background: var(--gold);
  transition: transform .3s, opacity .3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1100px) {
  .nav { padding: 18px 24px; }
  .nav-links {
    position: fixed;
    top: 56px; left: 0; right: 0;
    flex-direction: column;
    background: var(--ink);
    padding: 32px 24px;
    border-bottom: 1px solid var(--border);
    gap: 22px;
    transform: translateY(-120%);
    transition: transform .4s ease;
    pointer-events: none;
  }
  .nav-links.open { transform: translateY(0); pointer-events: auto; }
  .nav-burger { display: flex; }
}

/* ─── DIVIDER ─── */
.divider {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px 80px;
  background: var(--ink);
  transition: background .5s;
}
.divider span {
  font-family: 'Cinzel', serif;
  font-size: .55rem;
  letter-spacing: .4em;
  color: var(--text-dim);
  text-transform: uppercase;
  white-space: nowrap;
}
.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-md), transparent);
}
@media (max-width: 1100px) {
  .divider { padding: 24px 32px; }
}

/* ─── FOOTER ─── */
.footer {
  padding: 60px 80px 40px;
  background: var(--ink);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  gap: 32px;
  transition: background .5s, border-color .5s;
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.6rem;
  letter-spacing: .25em;
  color: var(--gold);
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-links a {
  font-family: 'Cinzel', serif;
  font-size: .55rem;
  letter-spacing: .35em;
  color: var(--text-dim);
  text-transform: uppercase;
  transition: color .3s;
}
.footer-links a:hover { color: var(--gold); }
.footer p {
  text-align: right;
  font-size: .72rem;
  color: var(--text-dim);
  letter-spacing: .1em;
}
@media (max-width: 1100px) {
  .footer {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 48px 24px 32px;
    gap: 24px;
  }
  .footer p { text-align: center; }
}

/* ─── REVEAL ON SCROLL ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s ease, transform .9s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .15s; }
.reveal-delay-2 { transition-delay: .3s; }
.reveal-delay-3 { transition-delay: .45s; }

/* ─── CUSTOM CURSOR (desktop only) ─── */
.cursor, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  mix-blend-mode: difference;
}
.cursor {
  width: 6px; height: 6px;
  background: var(--gold);
  transform: translate(-50%, -50%);
  transition: width .25s, height .25s, background .25s;
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 1px solid var(--gold);
  transform: translate(-50%, -50%);
  transition: width .35s ease, height .35s ease, opacity .25s;
  opacity: .55;
}
.cursor.hover { width: 14px; height: 14px; }
.cursor-ring.hover { width: 56px; height: 56px; opacity: .9; }
@media (max-width: 1100px), (pointer: coarse) {
  .cursor, .cursor-ring { display: none; }
  * { cursor: auto !important; }
}
@media (min-width: 1101px) and (pointer: fine) {
  body { cursor: none; }
  a, button, .theme-switch, [role="button"] { cursor: none; }
}

/* ─── SELECTION ─── */
::selection { background: var(--gold); color: var(--ink); }

/* ─── LIGHT MODE: text on top of images stays white ─── */
@media (max-width: 1100px) {
  body.light .hero-content,
  body.light .hero-right {
    --text-h: #f5f0e8;
    --text-body: rgba(245,240,232,.85);
    --text-dim: rgba(245,240,232,.6);
    --gold: #c9a96e;
    --gold-light: #e0c690;
  }
}

/* ─── THEME SWITCH: hide from nav-right on mobile, show inside menu ─── */
.nav-theme-item { display: none; list-style: none; }
@media (max-width: 1100px) {
  .nav-right .theme-switch { display: none; }
  .nav-theme-item {
    display: flex;
    padding-top: 16px;
    margin-top: 4px;
    border-top: 1px solid var(--border);
  }
}

/* ─── MOBILE S (≤425px) ─── */
@media (max-width: 425px) {
  .nav { padding: 14px 16px; }
  .nav.scrolled { padding: 12px 16px; }
  .divider { padding: 18px 16px; gap: 12px; }
  .footer { padding: 40px 16px 28px; }
  .footer-links { gap: 14px; flex-wrap: wrap; justify-content: center; }
}
