/* ═══════════════════════════════════════════
   EROTIC GATEWAY — Design System
   Warm-Cool Mix palette, editorial dark theme
   ═══════════════════════════════════════════ */

/* ── Tokens ── */
:root {
  --bg: #151516;
  --surface: #1d1d1f;
  --card: #272728;
  --text: #e0ddd8;
  --muted: #9b98a0;
  --accent: #a88a6f;
  --highlight: #c4a88a;
  --dim: #383838;
  --faint: #918e96;
  --accent-soft: rgba(168,138,111,0.12);

  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'DM Sans', -apple-system, sans-serif;

  --max-w: 1200px;
  --px: 40px;
  --section-py: 120px;
}

@media (max-width: 768px) {
  :root {
    --px: 20px;
    --section-py: 80px;
  }
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* ── Skip Link ── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  z-index: 10000;
  font-size: 14px;
  border-radius: 2px;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* ── Container ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--px);
  padding-right: var(--px);
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.heading-hero {
  font-size: 72px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.heading-section {
  font-size: 46px;
  font-weight: 500;
  line-height: 1.1;
}

.heading-card {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
}

.heading-sub {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
}

.text-lead {
  font-size: 19px;
  line-height: 1.8;
  font-weight: 300;
  color: var(--text);
}

.text-body {
  font-size: 16px;
  line-height: 1.8;
  font-weight: 300;
  color: var(--muted);
}

.text-small {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  font-weight: 300;
}

.label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--faint);
}

.italic-highlight {
  font-style: italic;
  font-weight: 300;
  color: var(--highlight);
}

.accent-line {
  width: 48px;
  height: 2px;
  background: var(--accent);
  opacity: 0.5;
}

/* ── Logo ── */
.logo {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.logo em {
  font-style: italic;
  font-weight: 400;
  color: var(--highlight);
}

.logo-footer { font-size: 17px; }
.logo-subtitle {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--faint);
  margin-top: 4px;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(21,21,22,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: var(--dim);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px var(--px);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  list-style: none;
}
.nav-links a {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--highlight); }

.nav-book {
  display: inline-block;
  padding: 9px 20px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  border-radius: 2px;
  transition: background 0.3s;
  border: none;
}
.nav-book:hover { background: var(--highlight); }

/* ── Hamburger ── */
.hamburger {
  display: none;
  background: none;
  border: none;
  width: 32px;
  height: 24px;
  position: relative;
  z-index: 200;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text);
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }

.hamburger.open span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: var(--bg);
  z-index: 150;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
}
.mobile-menu.open { right: 0; }
.mobile-menu a {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 400;
  color: var(--text);
  transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--highlight); }
.mobile-menu .nav-book {
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 14px 32px;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
}

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  padding: 15px 32px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 2px;
  transition: background 0.4s ease;
}
.btn-primary:hover { background: var(--highlight); }

.btn-ghost {
  display: inline-block;
  padding: 15px 32px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--dim);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--muted);
}

/* ── Sections ── */
.section {
  padding: var(--section-py) 0;
}
.section--surface {
  background: var(--surface);
}

.hairline {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--dim), transparent);
  margin: 0 8%;
}

/* ── Grid Layouts ── */
.grid-sidebar {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 80px;
}
.grid-half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.grid-events {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 80px;
  align-items: start;
}

@media (max-width: 768px) {
  .grid-sidebar,
  .grid-half,
  .grid-events {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.sticky-aside {
  position: sticky;
  top: 120px;
}

@media (max-width: 768px) {
  .sticky-aside { position: static; }
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 120px 0 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(21,21,22,0.6) 40%, var(--bg) 100%);
}
.hero-glow {
  position: absolute;
  top: 20%;
  right: 5%;
  width: 35%;
  height: 60%;
  background: radial-gradient(ellipse, var(--accent-soft) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: opacity 0.4s;
}
.hero-scroll-line {
  width: 1px;
  height: 28px;
  background: var(--dim);
}
.hero-scroll-text {
  font-size: 9px;
  color: var(--faint);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .heading-hero { font-size: 44px; }
  .heading-section { font-size: 34px; }
  .hero-glow { right: -30%; width: 80%; }
  .hero-scroll { display: none; }
}

/* ── Full Bleed Image ── */
.bleed-image {
  width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.bleed-image::before,
.bleed-image::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 35%;
}
.bleed-image::before {
  top: 0;
  background: linear-gradient(180deg, var(--bg), transparent);
}
.bleed-image::after {
  bottom: 0;
}
.bleed-image--to-bg::after { background: linear-gradient(0deg, var(--bg), transparent); }
.bleed-image--to-surface::after { background: linear-gradient(0deg, var(--surface), transparent); }

@media (max-width: 768px) {
  .bleed-image { height: 240px; }
}

/* ── The Day (split columns) ── */
.day-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0;
}
.day-divider {
  background: var(--dim);
  opacity: 0.4;
}
.day-col { padding: 0 52px; }
.day-col:first-child { padding-left: 0; }
.day-col:last-child { padding-right: 0; }

.day-list-item {
  display: flex;
  gap: 14px;
  align-items: baseline;
  margin-bottom: 16px;
}
.day-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
  flex-shrink: 0;
  margin-top: 6px;
}
.day-dot--highlight { background: var(--highlight); }

.day-list-item span {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 400;
}

@media (max-width: 768px) {
  .day-grid { grid-template-columns: 1fr; gap: 0; }
  .day-divider { display: none; }
  .day-col { padding: 0; }
  .day-col + .day-divider + .day-col { margin-top: 40px; }
  .day-mobile-divider {
    display: block !important;
    height: 1px;
    background: var(--dim);
    opacity: 0.3;
    margin: 8px 0 40px;
  }
}

/* ── Blockquote ── */
.blockquote {
  padding: 20px 24px;
  background: var(--card);
  border-radius: 4px;
  border-left: 2px solid var(--accent);
  margin-top: 24px;
}
.blockquote p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 400;
  font-style: italic;
}

/* ── Facilitator Cards ── */
.facilitator-card {
  background: var(--surface);
  border: 1px solid var(--dim);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.4s ease;
}
.facilitator-card:hover { border-color: var(--accent); }

.facilitator-photo {
  width: 100%;
  height: 340px;
  background-size: cover;
  background-position: center top;
  position: relative;
}
.facilitator-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, var(--surface) 100%);
}

.facilitator-body {
  padding: 24px 32px 36px;
}

.facilitator-readmore {
  font-size: 13px;
  color: var(--highlight);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  transition: color 0.3s;
}
.facilitator-readmore:hover { color: var(--accent); }

@media (max-width: 768px) {
  .facilitator-photo { height: 280px; }
}

/* ── Testimonial Carousel ── */
.carousel { position: relative; overflow: hidden; padding-bottom: 48px; }
.carousel-track { position: relative; min-height: 140px; }

.carousel-slide {
  position: absolute;
  top: 0; left: 0; right: 0;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}
.carousel-slide.active {
  position: relative;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.carousel-slide.prev {
  transform: translateX(-40px);
}

.carousel-quote {
  font-family: var(--font-sans);
  font-size: 19px;
  line-height: 1.7;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 20px;
}
.carousel-author {
  font-size: 12px;
  color: var(--faint);
  letter-spacing: 0.06em;
}

.carousel-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  position: absolute;
  bottom: 0;
  left: 0;
}
.carousel-btn {
  background: none;
  border: 1px solid var(--dim);
  color: var(--muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: border-color 0.3s, color 0.3s;
}
.carousel-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}
.carousel-dots { display: flex; gap: 8px; }
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--dim);
  border: none;
  transition: all 0.4s ease;
  cursor: pointer;
}
.carousel-dot.active {
  width: 24px;
  background: var(--accent);
}

/* ── Event Rows ── */
.event-row {
  padding: 22px 0;
  border-bottom: 1px solid var(--dim);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: padding-left 0.3s ease;
}
.event-row:hover { padding-left: 8px; }

.event-row-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.event-badge {
  font-size: 9px;
  padding: 3px 10px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 2px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.event-date {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
}
.event-date--muted { color: var(--muted); }

.event-row-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.event-price {
  font-size: 14px;
  color: var(--faint);
  font-weight: 400;
}
.event-arrow {
  font-size: 16px;
  color: var(--accent);
}

@media (max-width: 768px) {
  .event-date { font-size: 18px; }
}

/* ── CTA Band ── */
.cta-band {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--bg) 100%);
  text-align: center;
}

/* ── FAQ Accordion ── */
.faq-item {
  background: var(--card);
  border: 1px solid var(--dim);
  border-radius: 4px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-align: left;
  cursor: pointer;
}
.faq-question {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}
.faq-arrow {
  font-size: 16px;
  color: var(--muted);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-item.open .faq-question { color: var(--highlight); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  font-weight: 300;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--dim);
  padding: 48px 0 40px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 40px;
}
.footer-cols {
  display: flex;
  gap: 48px;
}
.footer-col-title {
  margin-bottom: 12px;
}
.footer-link {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
  transition: color 0.3s;
}
.footer-link:hover { color: var(--text); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 28px auto 0;
  padding: 20px var(--px) 0;
  border-top: 1px solid rgba(56,56,56,0.4);
  text-align: center;
}
.footer-copyright {
  font-size: 11px;
  color: var(--faint);
}

@media (max-width: 768px) {
  .footer-grid { flex-direction: column; gap: 28px; }
  .footer-cols { gap: 32px; }
}

/* ── Newsletter ── */
.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 420px;
}
.newsletter-input {
  flex: 1;
  padding: 14px 20px;
  background: var(--card);
  border: 1px solid var(--dim);
  border-radius: 2px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 300;
  outline: none;
  transition: border-color 0.3s;
}
.newsletter-input::placeholder { color: var(--faint); }
.newsletter-input:focus { border-color: var(--accent); }

.newsletter-btn {
  padding: 14px 24px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 2px;
  transition: background 0.3s;
  white-space: nowrap;
}
.newsletter-btn:hover { background: var(--highlight); }

/* ── Grain Overlay ── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Page Hero (inner pages) ── */
.page-hero {
  padding: 160px 0 80px;
  position: relative;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--dim), transparent);
}

/* ── About: facilitator bio sections ── */
.bio-section {
  padding: var(--section-py) 0;
}
.bio-photo {
  width: 200px;
  height: 200px;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--dim);
  flex-shrink: 0;
}
.bio-layout {
  display: flex;
  gap: 48px;
  align-items: start;
}

@media (max-width: 768px) {
  .bio-layout { flex-direction: column; gap: 28px; }
  .bio-photo { width: 160px; height: 160px; }
}

/* ── Events page: event cards ── */
.event-card-full {
  background: var(--surface);
  border: 1px solid var(--dim);
  border-radius: 4px;
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.3s;
  margin-bottom: 16px;
}
.event-card-full:hover { border-color: var(--accent); }

@media (max-width: 768px) {
  .event-card-full { flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* ── Utility ── */
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-14 { margin-bottom: 14px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-28 { margin-bottom: 28px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.mb-48 { margin-bottom: 48px; }
.mb-64 { margin-bottom: 64px; }
.mt-24 { margin-top: 24px; }
.mt-28 { margin-top: 28px; }
.text-center { text-align: center; }
