/* ===========================
   EROTIC ALCHEMY — Design System
   Art Direction: Dark, jewel-toned, sacred geometry
   Palette: Deep black surfaces, gold accents, rose/magenta highlights,
            jewel emerald, amethyst purple, chakra spectrum
   Typography: Zodiak (display) + Satoshi (body) from Fontshare
   =========================== */

/* --- TYPE SCALE --- */
:root {
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);
}

/* --- SPACING (4px base) --- */
:root {
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
}

/* --- FONTS --- */
:root {
  --font-display: 'Zodiak', 'Georgia', serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;
}

/* --- EROTIC ALCHEMY PALETTE — Dark-first, jewel-toned --- */
/* Primary mode: dark. Light mode available via toggle. */

:root, [data-theme="dark"] {
  /* Surfaces — deep blacks with warm undertone */
  --color-bg:              #0a0a0a;
  --color-surface:         #111111;
  --color-surface-2:       #181818;
  --color-surface-offset:  #141414;
  --color-surface-offset-2: #1e1e1e;
  --color-surface-dynamic: #252525;
  --color-divider:         #2a2a2a;
  --color-border:          #333333;

  /* Text */
  --color-text:            #e8e4df;
  --color-text-muted:      #9a9590;
  --color-text-faint:      #5c5955;
  --color-text-inverse:    #0a0a0a;

  /* Primary — Gold (sacred, alchemical) */
  --color-primary:         #c9a84c;
  --color-primary-hover:   #dabb62;
  --color-primary-active:  #b89535;
  --color-primary-highlight: #2a2520;

  /* Accent — Rose/Magenta (divine feminine, heart energy) */
  --color-accent:          #c45e8a;
  --color-accent-hover:    #d4739c;
  --color-accent-active:   #a84a74;
  --color-accent-highlight: #2a1f25;

  /* Jewel tones for chakra imagery */
  --color-emerald:         #3d9970;
  --color-amethyst:        #8b5fbf;
  --color-ruby:            #c0392b;
  --color-sapphire:        #2c6fbb;
  --color-topaz:           #d4a12a;

  /* Warning / Error / Success (semantic) */
  --color-warning:         #d4a12a;
  --color-error:           #c0392b;
  --color-success:         #3d9970;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows — warm-tinted for dark surfaces */
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.5);
  --shadow-glow: 0 0 30px oklch(from var(--color-primary) l c h / 0.15);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;
}

/* LIGHT MODE */
[data-theme="light"] {
  --color-bg:              #faf8f5;
  --color-surface:         #f5f2ed;
  --color-surface-2:       #ede9e3;
  --color-surface-offset:  #f0ece6;
  --color-surface-offset-2: #e8e3dc;
  --color-surface-dynamic: #ddd8d1;
  --color-divider:         #d5cfc7;
  --color-border:          #c8c1b8;

  --color-text:            #1a1714;
  --color-text-muted:      #6b665f;
  --color-text-faint:      #a09a93;
  --color-text-inverse:    #faf8f5;

  --color-primary:         #9a7b2e;
  --color-primary-hover:   #836621;
  --color-primary-active:  #6d5519;
  --color-primary-highlight: #f0e8d4;

  --color-accent:          #a84a74;
  --color-accent-hover:    #933c64;
  --color-accent-active:   #7d3055;
  --color-accent-highlight: #f5e3ec;

  --color-emerald:         #2d7a59;
  --color-amethyst:        #6f49a0;
  --color-ruby:            #a02d22;
  --color-sapphire:        #205a9e;
  --color-topaz:           #b08820;

  --color-warning:         #b08820;
  --color-error:           #a02d22;
  --color-success:         #2d7a59;

  --shadow-sm: 0 1px 2px oklch(0.2 0.01 60 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.2 0.01 60 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.2 0.01 60 / 0.12);
  --shadow-glow: 0 0 30px oklch(from var(--color-primary) l c h / 0.08);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --color-bg:              #faf8f5;
    --color-surface:         #f5f2ed;
    --color-surface-2:       #ede9e3;
    --color-surface-offset:  #f0ece6;
    --color-surface-offset-2: #e8e3dc;
    --color-surface-dynamic: #ddd8d1;
    --color-divider:         #d5cfc7;
    --color-border:          #c8c1b8;
    --color-text:            #1a1714;
    --color-text-muted:      #6b665f;
    --color-text-faint:      #a09a93;
    --color-text-inverse:    #faf8f5;
    --color-primary:         #9a7b2e;
    --color-primary-hover:   #836621;
    --color-primary-active:  #6d5519;
    --color-primary-highlight: #f0e8d4;
    --color-accent:          #a84a74;
    --color-accent-hover:    #933c64;
    --color-accent-active:   #7d3055;
    --color-accent-highlight: #f5e3ec;
    --color-emerald:         #2d7a59;
    --color-amethyst:        #6f49a0;
    --color-ruby:            #a02d22;
    --color-sapphire:        #205a9e;
    --color-topaz:           #b08820;
    --color-warning:         #b08820;
    --color-error:           #a02d22;
    --color-success:         #2d7a59;
    --shadow-sm: 0 1px 2px oklch(0.2 0.01 60 / 0.06);
    --shadow-md: 0 4px 12px oklch(0.2 0.01 60 / 0.08);
    --shadow-lg: 0 12px 32px oklch(0.2 0.01 60 / 0.12);
    --shadow-glow: 0 0 30px oklch(from var(--color-primary) l c h / 0.08);
  }
}

/* ===========================
   COMPONENT STYLES
   =========================== */

/* --- CONTAINER --- */
.container {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
.container--wide { max-width: var(--content-wide); }
.container--narrow { max-width: var(--content-narrow); }

/* --- SECTION SPACING --- */
.section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-32));
}

/* --- HEADER / NAV --- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.header--scrolled { box-shadow: var(--shadow-sm); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-4);
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}
.header__logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.header__nav a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color var(--transition-interactive);
}
.header__nav a:hover { color: var(--color-primary); }
.header__nav a.active { color: var(--color-primary); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: var(--space-2);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Theme toggle */
.theme-toggle {
  padding: var(--space-2);
  color: var(--color-text-muted);
  transition: color var(--transition-interactive);
  cursor: pointer;
}
.theme-toggle:hover { color: var(--color-primary); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100dvh;
    flex-direction: column;
    align-items: flex-start;
    background: var(--color-surface);
    padding: var(--space-20) var(--space-8);
    gap: var(--space-6);
    transition: right 0.35s var(--ease-out);
    z-index: 100;
    box-shadow: var(--shadow-lg);
  }
  .header__nav.open { right: 0; }
  .header__nav a {
    font-size: var(--text-base);
  }
  .mobile-overlay {
    position: fixed;
    inset: 0;
    background: oklch(0 0 0 / 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s;
    z-index: 99;
  }
  .mobile-overlay.open {
    opacity: 1;
    pointer-events: auto;
  }
}

/* --- HERO --- */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, oklch(from var(--color-bg) l c h / 0.4), var(--color-bg));
}
.hero__content {
  position: relative;
  z-index: 1;
  padding: var(--space-8);
  max-width: 800px;
}
.hero__eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: var(--space-6);
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-8);
  max-width: 60ch;
  margin-inline: auto;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background var(--transition-interactive),
              color var(--transition-interactive),
              transform var(--transition-interactive),
              box-shadow var(--transition-interactive);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--color-primary);
  color: var(--color-bg);
}
.btn--primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-glow);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}
.btn--outline:hover {
  background: oklch(from var(--color-primary) l c h / 0.1);
}

.btn--accent {
  background: var(--color-accent);
  color: #fff;
}
.btn--accent:hover {
  background: var(--color-accent-hover);
}

/* --- SACRED GEOMETRY DIVIDER --- */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding-block: var(--space-8);
  color: var(--color-primary);
  opacity: 0.5;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-primary), transparent);
}

/* --- CARDS --- */
.card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: transform var(--transition-interactive),
              box-shadow var(--transition-interactive),
              border-color var(--transition-interactive);
}
a.card, .card[href] {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
a.card:hover, .card[href]:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: oklch(from var(--color-primary) l c h / 0.2);
}

/* --- SECTION HEADINGS --- */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: var(--space-4);
}
.section-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 60ch;
  line-height: 1.7;
}

/* --- GRID LAYOUTS --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: var(--space-6);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--space-6);
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: var(--space-4);
}

/* --- FOOTER --- */
.footer {
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-12);
  color: var(--color-text-muted);
}
.footer__inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
}
.footer__brand p {
  font-size: var(--text-sm);
  margin-top: var(--space-3);
  line-height: 1.6;
  max-width: 36ch;
}
.footer__col h4 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: var(--space-2); }
.footer__col a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
.footer__col a:hover { color: var(--color-primary); }

.footer__bottom {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
  padding-top: var(--space-8);
  margin-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.footer__bottom a {
  color: var(--color-text-faint);
  text-decoration: none;
}
.footer__bottom a:hover { color: var(--color-primary); }

@media (max-width: 768px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer__bottom {
    flex-direction: column;
    gap: var(--space-2);
    text-align: center;
  }
}
@media (max-width: 480px) {
  .footer__inner {
    grid-template-columns: 1fr;
  }
}

/* --- SCROLL ANIMATIONS --- */
.fade-in { opacity: 1; }
@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 80%;
  }
}
@keyframes reveal-fade { to { opacity: 1; } }

.reveal-up { opacity: 1; }
@supports (animation-timeline: scroll()) {
  .reveal-up {
    clip-path: inset(100% 0 0 0);
    animation: reveal-clip linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 80%;
  }
}
@keyframes reveal-clip { to { clip-path: inset(0 0 0 0); } }

/* --- IMAGE STYLES --- */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-rounded { border-radius: var(--radius-lg); }
.img-glow { box-shadow: var(--shadow-glow); }

/* --- PAGE HERO (interior pages) --- */
.page-hero {
  padding-block: clamp(var(--space-16), 10vw, var(--space-32));
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, oklch(from var(--color-primary) l c h / 0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* --- TESTIMONIAL CARD --- */
.testimonial {
  padding: var(--space-8);
  position: relative;
}
.testimonial__quote {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: var(--space-6);
}
.testimonial__author {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.testimonial__author strong {
  color: var(--color-text);
  font-weight: 600;
}

/* --- GALLERY --- */
.gallery-grid {
  columns: 3 280px;
  column-gap: var(--space-4);
}
.gallery-grid > * {
  break-inside: avoid;
  margin-bottom: var(--space-4);
}
.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.6s var(--ease-out);
}
.gallery-item:hover img {
  transform: scale(1.03);
}

/* --- BLOG CARD --- */
.blog-card {
  display: flex;
  flex-direction: column;
}
.blog-card__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  margin-bottom: var(--space-4);
}
.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.blog-card:hover .blog-card__image img {
  transform: scale(1.03);
}
.blog-card__category {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}
.blog-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.blog-card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-3);
}
.blog-card__meta {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: auto;
}

/* --- CONTACT FORM --- */
.form-group {
  margin-bottom: var(--space-6);
}
.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--color-text);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.15);
}
.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* --- BOOKING SLOTS --- */
.booking-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-interactive);
}
.booking-slot:hover {
  border-color: var(--color-primary);
}
.booking-slot__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.booking-slot__title {
  font-weight: 600;
  font-size: var(--text-base);
}
.booking-slot__meta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* --- SKIP LINK --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-primary);
  color: var(--color-bg);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  z-index: 200;
  font-size: var(--text-sm);
  text-decoration: none;
}
.skip-link:focus { top: var(--space-4); }

/* --- SACRED GEOMETRY BACKGROUND ELEMENTS --- */
.sacred-geo-bg {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.sacred-geo-bg svg {
  color: var(--color-primary);
  opacity: 0.04;
}
