/* ============================================================
   Constelaciones Guatemala — Fully Responsive Styling System
   ============================================================ */

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

:root {
  /* Colors */
  --ink:        #0a0617;
  --ink-2:      #14102a;
  --ink-3:      #1f1840;
  --paper:      #faf7f2;
  --paper-2:    #f1ecdf;
  --paper-3:    #e7dfcc;

  --cyan:       #1bb0ce;
  --cyan-deep:  #0f7d92;
  --cyan-glow:  #6fd6e8;
  --purple:     #6d3aa3;
  --purple-deep:#2a1352;
  --amber:      #ff9a44;
  --amber-soft: #ffc88a;
  --magenta:    #c83a8e;
  --gold:       #d6b15a;

  /* Neutrals on ink */
  --text-paper:        #faf7f2;
  --text-paper-dim:    rgba(250, 247, 242, 0.72);
  --text-paper-dimmer: rgba(250, 247, 242, 0.5);

  /* Neutrals on paper */
  --text-ink:          #14102a;
  --text-ink-dim:      rgba(20, 16, 42, 0.7);
  --text-ink-dimmer:   rgba(20, 16, 42, 0.45);

  /* Borders & Rules */
  --rule-paper: rgba(20, 16, 42, 0.12);
  --rule-ink:   rgba(250, 247, 242, 0.12);

  /* Typography */
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans:  "Manrope", system-ui, -apple-system, sans-serif;
  --font-mono:  "JetBrains Mono", monospace;
}

/* Base resets & layouts */
* { box-sizing: border-box; }
body, html {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--text-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 640px) {
  .container, .container-narrow { padding: 0 16px; }
}

/* Typography Primitives */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 300;
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(30px, 5.5vw, 64px); }
h2 { font-size: clamp(24px, 4vw, 44px); }
h3 { font-size: clamp(20px, 2.8vw, 30px); }

h1 em, h2 em, h3 em {
  font-style: italic;
  font-weight: 400;
}

.uppercase-label {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 11px;
  font-weight: 600;
  color: var(--cyan-deep);
  display: block;
}
.uppercase-label.on-ink { color: var(--cyan-glow); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 250ms ease;
  white-space: nowrap;
  touch-action: manipulation;
}
@media (max-width: 480px) {
  .btn { width: 100%; padding: 14px 16px; font-size: 11px; letter-spacing: 0.1em; }
}

.btn-primary {
  background: var(--cyan);
  color: var(--paper);
  box-shadow: 0 10px 24px -8px rgba(27, 176, 206, 0.5);
}
.btn-primary:hover {
  background: var(--cyan-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -6px rgba(27, 176, 206, 0.7);
}
.btn-ghost {
  background: transparent;
  color: var(--text-paper);
  border-color: rgba(255, 255, 255, 0.3);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text-paper);
}
.btn-ink {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 8px 20px -8px rgba(10, 6, 23, 0.4);
}
.btn-ink:hover {
  background: var(--ink-2);
  transform: translateY(-2px);
}
.btn-amber {
  background: var(--amber);
  color: var(--ink);
  box-shadow: 0 8px 20px -8px rgba(255, 154, 68, 0.4);
}
.btn-amber:hover {
  background: var(--amber-soft);
  transform: translateY(-2px);
}
.btn-outline-ink {
  background: transparent;
  color: var(--text-ink);
  border-color: var(--paper-3);
}
.btn-outline-ink:hover {
  background: var(--paper-2);
  border-color: var(--cyan-deep);
}
.btn-netflix {
  background: #E50914;
  color: white !important;
  font-weight: 700;
  border: none;
  box-shadow: 0 8px 20px -6px rgba(229, 9, 20, 0.5);
  width: fit-content;
}
.btn-netflix:hover {
  background: #f40612;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(229, 9, 20, 0.6);
}

/* Header & Nav */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 6, 23, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 0;
  transition: all 300ms ease;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}
.nav-brand img {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}
.nav-brand > div {
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-brand-title {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--text-paper);
  line-height: 1.1;
  display: block;
  white-space: nowrap;
}
.nav-brand-sub {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--cyan-glow);
  display: block;
  margin-top: 1px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 20px);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-link {
  color: var(--text-paper-dim);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  white-space: nowrap;
  transition: color 200ms ease;
}
.nav-link:hover, .nav-link.active {
  color: var(--cyan-glow);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-paper);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 200ms ease;
}
.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}
@media (max-width: 1040px) {
  .nav-links { display: none !important; }
  .nav-toggle { display: flex !important; align-items: center; justify-content: center; }
}
@media (min-width: 1041px) {
  .nav-toggle { display: none !important; }
  .nav-links { display: flex !important; }
}

/* Mobile Drawer Overlay */
.nav-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 6, 23, 0.7);
  backdrop-filter: blur(8px);
  z-index: 110;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}
.nav-mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.nav-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 320px;
  background: rgba(20, 14, 42, 0.98);
  backdrop-filter: blur(24px);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 120;
  transform: translateX(100%);
  transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.nav-mobile-drawer.open { transform: translateX(0); }

.nav-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-drawer-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 200ms ease;
}
.nav-drawer-close:hover {
  background: rgba(255, 255, 255, 0.18);
}
.nav-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.nav-drawer-links .nav-link {
  font-size: 13px;
  letter-spacing: 0.15em;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* Facilitator Grid */
.facilitator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) {
  .facilitator-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .facilitator-grid img {
    max-width: 280px;
    margin: 0 auto;
  }
}

/* Event Detail Grid */
.event-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
}
@media (max-width: 860px) {
  .event-detail-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Package Promo Card */
.package-promo-card {
  background: linear-gradient(135deg, #1f1840 0%, #0a0617 100%);
  color: var(--text-paper);
  border-radius: 24px;
  padding: 40px;
  margin-top: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
@media (max-width: 640px) {
  .package-promo-card {
    padding: 24px;
    text-align: center;
    justify-content: center;
  }
  .package-promo-card > div:last-child {
    text-align: center !important;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .nav-bar { padding: 10px 0; }
  .nav-brand img { height: 32px; }
  .nav-brand-title { font-size: 17px; }
  .nav-brand-sub { font-size: 8px; }
  .nav-toggle { padding: 4px; }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 85vh;
  background: var(--ink);
  color: var(--text-paper);
  padding: 130px 0 70px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: -30px 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  opacity: 0.42;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(109, 58, 163, 0.45) 0%, transparent 70%),
    radial-gradient(circle at 15% 15%, rgba(27, 176, 206, 0.28) 0%, transparent 60%),
    linear-gradient(180deg, rgba(10, 6, 23, 0.35) 0%, rgba(10, 6, 23, 0.88) 90%, var(--ink) 100%);
}
.hero-event-detail .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  opacity: 0.35;
}
.hero-event-detail .hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(109, 58, 163, 0.5) 0%, transparent 75%),
    linear-gradient(180deg, rgba(10, 6, 23, 0.4) 0%, rgba(10, 6, 23, 0.92) 100%);
}
.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(27, 176, 206, 0.18) 0%, rgba(109, 58, 163, 0.12) 40%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(27, 176, 206, 0.12);
  border: 1px solid rgba(27, 176, 206, 0.3);
  color: var(--cyan-glow);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 20px;
  max-width: 100%;
  box-sizing: border-box;
}
@media (max-width: 400px) {
  .hero-badge { font-size: 10px; padding: 6px 12px; }
}
.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-glow);
  box-shadow: 0 0 10px var(--cyan-glow);
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0% { transform: scale(0.8); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.8); opacity: 0.6; }
}

.hero-dates {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--amber-soft);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.hero-title {
  font-size: clamp(28px, 5vw, 60px);
  margin-bottom: 16px;
}
.hero-title em { color: var(--cyan-glow); }
.hero-subtitle {
  font-size: 16px;
  color: var(--text-paper-dim);
  max-width: 520px;
  margin-bottom: 32px;
}
@media (max-width: 960px) {
  .hero-subtitle { margin-left: auto; margin-right: auto; }
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Video Thumbnail Card in Hero */
.hero-video-preview {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.7);
  cursor: pointer;
}
.hero-video-preview img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  transition: transform 500ms ease;
}
@media (max-width: 640px) {
  .hero-video-preview img { height: 220px; }
}
.hero-video-preview:hover img {
  transform: scale(1.04);
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 6, 23, 0.2) 0%, rgba(10, 6, 23, 0.75) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px;
  text-align: center;
}
.play-btn-pulse {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--cyan);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 28px var(--cyan);
  transition: transform 300ms ease, background 300ms ease;
}
.hero-video-preview:hover .play-btn-pulse {
  transform: scale(1.1);
  background: var(--cyan-glow);
  color: var(--ink);
}

/* Lightbox Video Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10, 6, 23, 0.94);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}
.lightbox-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-content {
  position: relative;
  width: 100%;
  max-width: 860px;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0,0,0,0.8);
  border: 1px solid rgba(255,255,255,0.15);
}
.lightbox-content video {
  width: 100%;
  height: 100%;
  display: block;
}
.lightbox-close {
  position: absolute;
  top: -42px;
  right: 0;
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
}

/* Netflix Card in-page */
.section-netflix {
  background: var(--paper);
  padding: 80px 0;
  border-top: 1px solid var(--paper-3);
}
.netflix-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 480px;
  background: #0a0617 url('/assets/images/another_self.webp') no-repeat right center / cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
}

.netflix-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, 
    rgba(10, 6, 23, 0.92) 0%, 
    rgba(10, 6, 23, 0.92) 35%, 
    rgba(10, 6, 23, 0.78) 48%, 
    rgba(10, 6, 23, 0.2) 68%, 
    rgba(10, 6, 23, 0) 85%
  );
  z-index: 1;
}

.netflix-card-content {
  position: relative;
  z-index: 2;
  max-width: 50%;
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.netflix-brand-logo {
  color: #e50914;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 4px;
}

.netflix-series-title {
  font-family: var(--font-serif);
  font-size: clamp(34px, 4.5vw, 52px);
  color: var(--text-paper);
  line-height: 1;
  margin: 0;
  font-weight: 300;
  font-style: italic;
}

.netflix-series-subtitle {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-paper-dimmer);
  margin-top: -8px;
  display: block;
}

.netflix-series-description {
  font-size: 14.5px;
  color: var(--text-paper-dim);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 850px) {
  .netflix-card {
    flex-direction: column;
    align-items: stretch;
    background: none;
    min-height: auto;
  }
  
  .netflix-card-mobile-image {
    width: 100%;
    height: 280px;
    background: url('/assets/images/another_self.webp') no-repeat center center / cover;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  .netflix-card-mobile-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 6, 23, 0) 60%, #0a0617 100%);
  }

  .netflix-card-overlay {
    display: none;
  }

  .netflix-card-content {
    max-width: 100%;
    padding: 32px 24px;
    background: var(--ink-2);
  }
}

/* Sections & Cards */
.section { padding: 80px 0; overflow-x: hidden; }
@media (max-width: 640px) {
  .section { padding: 56px 0; }
}

.section-dark {
  background: var(--ink);
  color: var(--text-paper);
  overflow-x: hidden;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--cyan);
  margin-bottom: 12px;
}
.ornament .line {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor);
}
.ornament .line.right { background: linear-gradient(90deg, currentColor, transparent); }
.ornament .glyph { font-size: 11px; letter-spacing: 0.25em; }

.glass-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 28px;
  transition: all 300ms ease;
}
.glass-card:hover {
  border-color: rgba(27, 176, 206, 0.3);
  transform: translateY(-2px);
}

/* Past Events Page Layout - Mobile First Overhaul */
.past-events-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.past-event-card {
  background: var(--paper);
  border: 1px solid var(--paper-3);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 10px 30px -10px rgba(10,6,23,0.06);
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 32px;
  align-items: center;
}
@media (max-width: 960px) {
  .past-event-card {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 24px;
  }
}

.past-event-image-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  min-height: 200px;
  max-height: 320px;
}
.past-event-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.past-event-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(15, 125, 146, 0.1);
  color: var(--cyan-deep);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.past-event-speech-box {
  background: var(--paper-2);
  padding: 18px 20px;
  border-radius: 14px;
  border-left: 4px solid var(--purple);
  margin: 16px 0 20px;
}

/* Target Audience Checklist */
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 36px;
}
.checklist-item {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--text-paper);
}
.checklist-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cyan-glow);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
  font-size: 12px;
}

/* Workshop Grid */
.workshop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.workshop-card {
  background: var(--paper-2);
  border: 1px solid var(--paper-3);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 24px -8px rgba(10, 6, 23, 0.06);
  transition: transform 300ms ease;
}
.workshop-card.workshop-card-single {
  padding: 36px;
}
.workshop-card:hover { transform: translateY(-3px); }

.price-tag {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 600;
  color: var(--cyan-deep);
}

/* Workshop Card Footer & Pricing */
.workshop-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--paper-3);
  padding-top: 18px;
  gap: 16px;
}
.workshop-card-price .price-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-ink-dimmer);
  display: block;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

/* Medium Devices / Tablets: <= 640px */
@media (max-width: 640px) {
  .workshop-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 28px;
  }
  .workshop-card {
    padding: 24px 20px;
    border-radius: 20px;
  }
  .workshop-card.workshop-card-single {
    padding: 24px 20px;
  }
  .card-date-badge {
    font-size: 10px;
    letter-spacing: 0.04em;
    padding: 5px 12px;
    line-height: 1.35;
    max-width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
  }
  .workshop-card h3 {
    font-size: 22px;
    margin-top: 10px;
    margin-bottom: 10px;
  }
  .workshop-card p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
  }
}

/* Actual Mobile Devices Breakpoint (Dedicated Card Optimization): <= 540px */
@media (max-width: 540px) {
  .workshop-grid {
    gap: 16px;
    margin-top: 24px;
  }
  .workshop-card {
    padding: 20px 16px !important;
    border-radius: 18px;
  }
  .workshop-card.workshop-card-single {
    padding: 20px 16px !important;
  }
  .card-date-badge {
    font-size: 9.5px !important;
    letter-spacing: 0.025em !important;
    padding: 4px 10px !important;
    white-space: nowrap !important;
  }
  .workshop-card-footer {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding-top: 15px !important;
  }
  .workshop-card-price {
    display: flex !important;
    justify-content: space-between !important;
    align-items: baseline !important;
    width: 100% !important;
  }
  .workshop-card-price .price-tag {
    font-size: 24px !important;
  }
  .workshop-card-footer .btn {
    width: 100% !important;
    padding: 13px 18px !important;
    font-size: 12px !important;
    letter-spacing: 0.1em !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }
}

/* Extra small mobile screens (e.g. 320px - 360px) */
@media (max-width: 360px) {
  .workshop-card {
    padding: 16px 14px !important;
  }
  .card-date-badge {
    font-size: 8.5px !important;
    letter-spacing: 0.015em !important;
    padding: 4px 8px !important;
  }
}

/* Reservation Modal & Form */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 6, 23, 0.78);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-box {
  background: var(--paper);
  border-radius: 20px;
  width: 100%;
  max-width: 540px;
  padding: 28px;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.4);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(20, 16, 42, 0.06);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  color: var(--text-ink);
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--paper-3);
  background: var(--paper-2);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-ink);
  outline: none;
  transition: border-color 200ms ease;
}
.form-control:focus {
  border-color: var(--cyan);
  background: #fff;
}

/* Card Date & Meta Badges (High Contrast for Light Paper Cards) */
.card-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(109, 58, 163, 0.12);
  color: #4a1d77;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid rgba(109, 58, 163, 0.22);
}

/* Custom Select Dropdown UI (Reservation Modal) */
.xSelect {
  position: relative;
  width: 100%;
}
.xSelect-btn {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--paper-3);
  background: var(--paper-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  color: var(--text-ink);
  transition: all 200ms ease;
}
.xSelect.open .xSelect-btn,
.xSelect-btn:focus {
  outline: none;
  border-color: var(--cyan);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(27, 176, 206, 0.15);
}
.xSelect-val {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  min-width: 0;
}
.xSelect-val.placeholder {
  color: var(--text-ink-dimmer);
}
.xSelect-tag {
  background: rgba(109, 58, 163, 0.12);
  color: #502779;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.xSelect-label {
  font-weight: 600;
  color: var(--text-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.xSelect-chev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-ink-dim);
  transition: transform 200ms ease;
  flex-shrink: 0;
  margin-left: 8px;
}
.xSelect.open .xSelect-chev {
  transform: rotate(180deg);
}
.xSelect-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 6px;
  background: #ffffff;
  border: 1px solid var(--paper-3);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(20, 16, 42, 0.16), 0 4px 12px rgba(0, 0, 0, 0.05);
  z-index: 50;
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
.xSelect.open .xSelect-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.xSelect-opt {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  color: var(--text-ink);
  transition: background 150ms ease;
  user-select: none;
}
.xSelect-opt:hover,
.xSelect-opt.hi {
  background: var(--paper-2);
}
.xSelect-opt.active {
  background: rgba(27, 176, 206, 0.08);
}
.xSelect-opt-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.xSelect-opt-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-ink);
}
.xSelect-opt-sub {
  font-size: 11px;
  color: var(--text-ink-dim);
  margin-top: 2px;
}
.xSelect-check {
  color: #0b7a8f;
  margin-left: auto;
  font-weight: bold;
  font-size: 14px;
}

/* Footer */
.footer {
  background: var(--ink);
  color: var(--text-paper-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px 0 28px;
  text-align: center;
  font-size: 12px;
}

/* ==========================================================================
   Scroll-Driven Reveal & Ambient Motion Animations
   ========================================================================== */

/* Base hidden state for scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Revealed state when element scrolls into view */
.reveal.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Directional and transform variants */
.reveal-fade {
  opacity: 0;
  transform: none;
  transition: opacity 0.8s ease-out;
  will-change: opacity;
}
.reveal-fade.revealed {
  opacity: 1;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-35px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(35px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.94) translateY(20px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Stagger Delays */
.delay-100 { transition-delay: 100ms; }
.delay-150 { transition-delay: 150ms; }
.delay-200 { transition-delay: 200ms; }
.delay-250 { transition-delay: 250ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Subtle floating ambient breathing glow for Hero & Dark sections */
@keyframes ambientGlowFloat {
  0% { transform: scale(1) translate(0, 0); opacity: 0.65; }
  50% { transform: scale(1.1) translate(15px, -12px); opacity: 0.95; }
  100% { transform: scale(1) translate(0, 0); opacity: 0.65; }
}

.hero-glow {
  animation: ambientGlowFloat 11s ease-in-out infinite;
}

/* Micro-interactions & Card Lift */
.workshop-card {
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 320ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 300ms ease;
}
.workshop-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(109, 58, 163, 0.16);
}

.checklist-item {
  transition: transform 250ms ease, background-color 250ms ease;
}
.checklist-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.05);
}

/* Accessibility: Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-fade,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero-glow {
    animation: none !important;
  }
}
