/* ============================================
   VeiledNoir — Design tokens & base styles
   Palette, type, and layout rules confirmed
   with client 2026-08-10. Witchy-luxe-goth
   foundation, anime-cutie as accent moments.
   ============================================ */

:root {
  /* Palette */
  --obsidian: #070609;
  --soft-black: #111014;
  --ink-plum: #190e1d;
  --deep-aubergine: #2d1238;
  --imperial-purple: #511d68;
  --black-cherry: #641331;
  --dark-magenta: #8b1e5a;
  --electric-orchid: #d64a9b;
  --dusty-mauve: #b98bb4;
  --pale-blush: #f2ddeb;
  --cool-silver: #c9c3ce;

  /* Semantic roles */
  --bg: var(--obsidian);
  --bg-raised: var(--soft-black);
  --bg-card: var(--ink-plum);
  --bg-card-alt: var(--deep-aubergine);
  --border: rgba(201, 195, 206, 0.16);
  --border-strong: rgba(201, 195, 206, 0.32);
  --text-primary: var(--pale-blush);
  --text-secondary: var(--cool-silver);
  --text-muted: var(--dusty-mauve);
  --accent: var(--electric-orchid);
  --accent-text-on: var(--obsidian); /* dark text on accent bg, verified WCAG AA */

  /* Type */
  --font-serif: "Bodoni Moda", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --radius: 10px;
  --radius-lg: 16px;
  --max-width: 1180px;
  --gap-page: clamp(20px, 5vw, 64px);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: var(--pale-blush);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--text-primary);
  margin: 0 0 0.5em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  letter-spacing: 0.01em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
}

p {
  margin: 0 0 1em;
  color: var(--text-secondary);
  max-width: 62ch;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dusty-mauve);
  margin: 0 0 0.9em;
  display: block;
}

.lede {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 60ch;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gap-page);
  padding-right: var(--gap-page);
}

.section {
  padding: clamp(48px, 8vw, 110px) 0;
}

.section-tight {
  padding: clamp(32px, 5vw, 64px) 0;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.grid {
  display: grid;
  gap: clamp(16px, 3vw, 32px);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

.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;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-text-on);
  padding: 0.75em 1.2em;
  z-index: 200;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.85em 1.8em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover {
    transform: none;
  }
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-text-on);
}

.btn-primary:hover {
  background: #e267ac;
  color: var(--accent-text-on);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 0.6em 0.2em;
}

.btn-ghost:hover {
  color: var(--accent);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* ---------- Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 6, 9, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--gap-page);
  max-width: var(--max-width);
  margin: 0 auto;
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
  line-height: 1;
}

.wordmark-veiled {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--pale-blush);
}

.wordmark-noir {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.monogram {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--pale-blush);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text-primary);
  padding: 8px 10px;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    height: 100vh;
    width: min(320px, 82vw);
    background: var(--bg-raised);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    padding: 40px var(--gap-page);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    border-left: 1px solid var(--border);
  }
  .nav-links[data-open="true"] {
    transform: translateX(0);
  }
  .nav-toggle {
    display: inline-flex;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-grid h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dusty-mauve);
  margin-bottom: 0.9em;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55em;
}

.footer-grid a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-grid a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 32px);
}

.card-alt {
  background: var(--bg-card-alt);
}

.card h3 {
  margin-bottom: 0.4em;
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark-magenta);
  background: rgba(214, 74, 155, 0.12);
  border: 1px solid rgba(214, 74, 155, 0.35);
  padding: 0.3em 0.7em;
  border-radius: 999px;
  margin-bottom: 0.8em;
}

.tag-future {
  color: var(--dusty-mauve);
  background: rgba(185, 139, 180, 0.1);
  border-color: rgba(185, 139, 180, 0.3);
}

/* ---------- Offering / rate rows ---------- */
.rate-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.rate-row:last-child {
  border-bottom: none;
}

.rate-name {
  color: var(--text-primary);
  font-weight: 500;
}

.rate-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 2px;
}

.rate-price {
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  white-space: nowrap;
}

/* ---------- Accordion (Protocol / FAQ) ---------- */
.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  text-align: left;
  padding: 20px 0;
  cursor: pointer;
}

.accordion-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
}

.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  background: var(--accent);
  transition: transform 0.2s ease;
}

.accordion-icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  transform: translateY(-50%);
}

.accordion-icon::after {
  left: 50%;
  top: 0;
  width: 1.5px;
  height: 100%;
  transform: translateX(-50%);
}

.accordion-trigger[aria-expanded="true"] .accordion-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.accordion-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease;
}

.accordion-panel[data-open="true"] {
  max-height: 800px;
}

.accordion-panel p,
.accordion-panel ul {
  padding-bottom: 22px;
}

/* ---------- Forms ---------- */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-field label {
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
}

.form-field .required {
  color: var(--accent);
}

.form-field input,
.form-field select,
.form-field textarea {
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.98rem;
  padding: 0.75em 0.9em;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
}

.form-field textarea {
  resize: vertical;
  min-height: 110px;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-error {
  font-size: 0.82rem;
  color: #ff9ecb;
  display: none;
}

.form-field[data-invalid="true"] input,
.form-field[data-invalid="true"] select,
.form-field[data-invalid="true"] textarea {
  border-color: #ff6fa8;
}

.form-field[data-invalid="true"] .form-error {
  display: block;
}

.form-success {
  background: rgba(214, 74, 155, 0.1);
  border: 1px solid rgba(214, 74, 155, 0.4);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.checkbox-field input {
  margin-top: 4px;
}

.checkbox-field label {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* ---------- Age gate ---------- */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(7, 6, 9, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.age-gate[hidden] {
  display: none;
}

.age-gate-panel {
  max-width: 480px;
  text-align: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 48px);
  background: var(--bg-raised);
}

.age-gate-panel p {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Hero ---------- */
.hero-compact {
  min-height: 52vh !important;
}

.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(150deg, var(--black-cherry) 0%, var(--imperial-purple) 45%, var(--obsidian) 100%);
}

.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 6, 9, 0.92) 0%, rgba(7, 6, 9, 0.35) 55%, rgba(7, 6, 9, 0.55) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(32px, 6vw, 72px) var(--gap-page) clamp(48px, 8vw, 90px);
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero-content h1 {
  max-width: 14ch;
}

.hero-note {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  font-size: 0.7rem;
  color: var(--text-muted);
  background: rgba(7, 6, 9, 0.6);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--imperial-purple);
  color: var(--pale-blush);
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  padding: 10px var(--gap-page);
  position: relative;
}

.announce a {
  color: var(--pale-blush);
  text-decoration: underline;
}

.announce-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--pale-blush);
  cursor: pointer;
  font-size: 1rem;
  padding: 4px 8px;
  line-height: 1;
}

.announce[hidden] {
  display: none;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: linear-gradient(0deg, rgba(7, 6, 9, 0.85), transparent);
  text-align: left;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(7, 6, 9, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-figure {
  max-width: 90vw;
  max-height: 82vh;
  text-align: center;
}

.lightbox-figure img {
  max-height: 78vh;
  margin: 0 auto;
  border-radius: 8px;
}

.lightbox-controls {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 10px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(242, 221, 235, 0.08);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
}

.lightbox-nav.prev {
  left: 16px;
}

.lightbox-nav.next {
  right: 16px;
}

/* ---------- Platform icon badges (IWC, Premium Chat, X) ---------- */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid currentColor;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-right: 0.5em;
}

.icon-link-row {
  display: inline-flex;
  align-items: center;
}

.icon-btn {
  background: rgba(242, 221, 235, 0.08);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Journal ---------- */
.journal-card .eyebrow {
  margin-bottom: 0.6em;
}

/* ---------- Path cards (choose your path) ---------- */
.path-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  height: 100%;
}

.path-card h3 {
  color: var(--text-primary);
}

.path-card:hover {
  border-color: var(--accent);
}

/* ---------- Pull quote ---------- */
.pull-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--pale-blush);
  line-height: 1.4;
  max-width: 46ch;
  border-left: 2px solid var(--accent);
  padding: 0.2em 0 0.2em 1.1em;
  margin: 0 auto;
}

/* ---------- Fact list (at a glance) ---------- */
.fact-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.fact-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.fact-row:last-child {
  border-bottom: none;
}

.fact-label {
  color: var(--text-muted);
}

.fact-value {
  color: var(--text-primary);
  text-align: right;
}

/* ---------- Utility ---------- */
.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mt-lg {
  margin-top: 48px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.small-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .rate-row {
    flex-direction: column;
    gap: 4px;
  }
}
