/* ══════════════════════════════════════════
   Spirit Tree Ceramics — Design System
   Earthy / Natural palette
   ══════════════════════════════════════════ */

:root {
  /* Core palette — earthy, grounded */
  --void:       #0F0A06;   /* deepest bg — charred wood */
  --cosmos:     #1A110A;   /* dark sections — dark soil */
  --deep:       #241509;   /* card bg — rich earth */
  --violet:     #7A4520;   /* mid accent — burnt sienna */
  --amethyst:   #C1540A;   /* primary accent — terracotta */
  --am-lt:      #E07840;   /* light terracotta */
  --teal:       #4A7A4A;   /* secondary — forest green */
  --teal-lt:    #8FBF6A;   /* light sage */
  --gold:       #C8952A;   /* warm gold */
  --gold-lt:    #E8B84A;   /* light gold */
  --pearl:      #F5EDD8;   /* warm cream — natural light text */
  --mist:       #D4BC8E;   /* warm tan — mid text */
  --smoke:      #8B7355;   /* warm smoke — dim text */
  --earth:      #2A1A10;   /* earthy dark */
  --bark:       #4A3020;   /* earthy mid */

  --font-head: 'Cormorant Garamond', 'Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius:   12px;
  --radius-lg: 20px;
  --shadow:   0 4px 24px rgba(10,5,2,0.4);
  --shadow-lg: 0 16px 56px rgba(10,5,2,0.55);
  --glow-v:   0 0 40px rgba(193,84,10,0.2);
  --glow-t:   0 0 40px rgba(74,122,74,0.18);

  --transition: 0.28s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--void);
  color: var(--pearl);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.045;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Custom scrollbar for earthy look */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--void);
}
::-webkit-scrollbar-thumb {
  background: var(--violet);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--amethyst);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Container ── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Section helpers ── */
.section { padding: 84px 0; position: relative; overflow: hidden; }
.section--dark  { background: var(--cosmos); }
.section--void  { background: var(--void); }
.section--warm  { background: var(--earth); }

.section__eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-lt);
  margin-bottom: 14px;
}
.section__eyebrow--light { color: var(--teal-lt); }

.section__title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.14;
  color: var(--pearl);
  margin-bottom: 16px;
}
.section__title--light { color: var(--pearl); }

/* Centered section header block (used by shop, classes, etc.) */
.section__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}
.section__header .section__eyebrow { margin-bottom: 14px; }
.section__header .section__title  { margin-bottom: 14px; }

.section__sub {
  font-size: 0.98rem;
  color: var(--smoke);
  line-height: 1.7;
  margin-top: 8px;
  margin-bottom: 40px;
}
.section__sub--light { color: var(--mist); }

/* Background geometry for sections */
.section__geo {
  position: absolute;
  top: 50%;
  right: -60px;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  opacity: 0.5;
  pointer-events: none;
  animation: rotateSlow 80s linear infinite;
}
@keyframes rotateSlow {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(360deg); }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.92rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.btn--primary {
  background: linear-gradient(135deg, var(--amethyst), var(--violet));
  color: #fff;
  box-shadow: 0 4px 20px rgba(193,84,10,0.4);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(193,84,10,0.55);
  filter: brightness(1.1);
}
.btn--accent {
  background: rgba(193,84,10,0.18);
  color: var(--mist);
  border: 1px solid rgba(193,84,10,0.35);
}
.btn--accent:hover {
  background: rgba(193,84,10,0.3);
  color: var(--pearl);
  border-color: var(--am-lt);
}
.btn--ghost {
  background: transparent;
  color: var(--mist);
  border: 1.5px solid rgba(196,181,253,0.3);
}
.btn--ghost:hover {
  background: rgba(196,181,253,0.08);
  border-color: var(--mist);
  color: var(--pearl);
}
.btn--clay {
  background: linear-gradient(135deg, var(--teal), #065f6b);
  color: #fff;
  box-shadow: 0 4px 16px rgba(74,122,74,0.35);
}
.btn--clay:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(74,122,74,0.5);
  filter: brightness(1.1);
}
.btn--lg { padding: 16px 38px; font-size: 0.98rem; }


/* ══════════════════════════════════════════
   NAV
   ══════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 14px 0;
  background: rgba(6,1,15,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(193,84,10,0.18), 0 4px 24px rgba(0,0,0,0.45);
}
.nav__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav__logo {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--pearl);
  letter-spacing: 0.01em;
  margin-right: auto;
  white-space: nowrap;
}
.nav__logo span { color: var(--teal-lt); }

.nav__links {
  display: flex;
  gap: 32px;
}
.nav__links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--smoke);
  letter-spacing: 0.04em;
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--am-lt); }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav__hamburger span {
  width: 24px;
  height: 2px;
  background: var(--pearl);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(6,1,15,0.96);
  border-top: 1px solid rgba(193,84,10,0.2);
}
.nav__mobile a, .nav__mobile button {
  color: var(--mist);
  font-size: 1rem;
  font-weight: 500;
}
.nav__mobile.open { display: flex; }

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
}


/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: heroZoom 16s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.02); }
  to   { transform: scale(1.1); }
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(15,10,6,0.90) 0%,
    rgba(36,21,9,0.75) 45%,
    rgba(74,48,20,0.35) 100%
  );
}

/* Sacred Geometry */
.hero__geometry {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.geo-ring {
  position: absolute;
  animation: rotateSlow 60s linear infinite;
}
.geo-ring--1 {
  width: 580px;
  height: 580px;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  animation-duration: 90s;
}
.geo-ring--2 {
  width: 320px;
  height: 320px;
  left: 5%;
  bottom: 8%;
  animation-direction: reverse;
  animation-duration: 60s;
}
@media (max-width: 700px) {
  .geo-ring--1 { width: 320px; height: 320px; right: -60px; }
  .geo-ring--2 { display: none; }
}

/* Particles — subtle dust motes */
.hero__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.particle {
  position: absolute;
  border-radius: 50%;
  animation: floatPart linear infinite;
  opacity: 0.4;
}
@keyframes floatPart {
  from { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.35; }
  90%  { opacity: 0.15; }
  to   { transform: translateY(-120px) rotate(360deg); opacity: 0; }
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  padding-top: 80px;
}
.hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-lt);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.9s 0.2s forwards;
}
.hero__title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 7.5vw, 6rem);
  font-weight: 600;
  color: var(--pearl);
  line-height: 1.06;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.9s 0.4s forwards;
}
.hero__title em {
  font-style: italic;
  background: linear-gradient(90deg, var(--am-lt), var(--teal-lt));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--mist);
  max-width: 520px;
  margin-bottom: 44px;
  opacity: 0;
  animation: fadeUp 0.9s 0.6s forwards;
  line-height: 1.72;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s 0.8s forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--am-lt), transparent);
  animation: scrollFade 2.2s ease-in-out infinite;
}
@keyframes scrollFade {
  0%, 100% { opacity: 0.6; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}


/* ══════════════════════════════════════════
   ABOUT
   ══════════════════════════════════════════ */
.about.section { background: var(--deep); }

#shop {
  padding-top: 140px;
}
@media (max-width: 768px) {
  #shop {
    padding-top: 110px;
  }
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; gap: 48px; }
  .about__text { order: 1; }
  .about__image-wrap { order: 2; }
}

.about__image-wrap {
  position: relative;
}
.about__img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), var(--glow-v);
  object-fit: cover;
  height: 540px;
  opacity: 0;
  transition: opacity var(--transition);
}
.about__img.loaded {
  opacity: 1;
}
.about__badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: linear-gradient(135deg, var(--amethyst), var(--violet));
  color: #fff;
  border-radius: 50%;
  width: 104px;
  height: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 28px rgba(193,84,10,0.5);
}
.about__badge-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}
.about__badge-label {
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 0 10px;
  color: var(--mist);
}

.about__body {
  color: var(--mist);
  margin-bottom: 18px;
  font-size: 1.02rem;
  line-height: 1.75;
}
.about__body strong { color: var(--pearl); }

.about__features {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.about__features li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.about__feat-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(193,84,10,0.12);
  border: 1px solid rgba(193,84,10,0.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about__features li div { display: flex; flex-direction: column; gap: 3px; }
.about__features li strong { font-size: 0.95rem; color: var(--pearl); }
.about__features li span { font-size: 0.87rem; color: var(--smoke); }


/* ══════════════════════════════════════════
   CLASSES
   ══════════════════════════════════════════ */
.classes__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.class-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(196,181,253,0.12);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.class-card:hover {
  transform: translateY(-8px);
  border-color: rgba(193,84,10,0.45);
  background: rgba(193,84,10,0.07);
  box-shadow: var(--glow-v);
}
.class-card__icon { font-size: 2rem; }
.class-card__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(90deg, var(--gold), #e8c840);
  color: var(--void);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
}
.class-card__title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--pearl);
  line-height: 1.2;
}
.class-card__subtitle {
  font-size: 0.78rem;
  color: var(--teal-lt);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.class-card__meta {
  font-size: 0.82rem;
  color: var(--mist);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.class-card__meta span::after { content: ' ·'; }
.class-card__meta span:last-child::after { content: ''; }
.class-card__desc {
  font-size: 0.88rem;
  color: var(--smoke);
  flex: 1;
  line-height: 1.65;
}
.class-card__price {
  font-size: 0.9rem;
  color: var(--mist);
  margin-top: 6px;
}
.class-card__price strong {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--pearl);
}
.class-card__btn { margin-top: 10px; align-self: flex-start; }


/* ══════════════════════════════════════════
   HOW IT WORKS
   ══════════════════════════════════════════ */
.how.section { background: var(--deep); }

.how__steps {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 8px;
}
.how__step {
  flex: 1;
  min-width: 180px;
  max-width: 240px;
  text-align: center;
  padding: 0 20px;
}
.how__step-num {
  font-family: var(--font-head);
  font-size: 4rem;
  font-weight: 700;
  color: var(--amethyst);
  opacity: 0.18;
  line-height: 1;
  margin-bottom: -10px;
}
.how__step-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  display: block;
}
.how__step h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--pearl);
}
.how__step p {
  font-size: 0.87rem;
  color: var(--smoke);
  line-height: 1.65;
}
.how__connector {
  flex-shrink: 0;
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, rgba(193,84,10,0.4), rgba(74,122,74,0.4));
  margin-top: 82px;
}
@media (max-width: 700px) {
  .how__connector { display: none; }
  .how__step { min-width: 130px; }
}


/* ══════════════════════════════════════════
   GALLERY
   ══════════════════════════════════════════ */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(193,84,10,0.12);
}
.gallery__item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease, filter 0.4s ease;
  filter: brightness(0.85) saturate(1.1);
}
.gallery__item:hover img {
  transform: scale(1.06);
  filter: brightness(1) saturate(1.3);
}
.gallery__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(6,1,15,0.9), transparent);
  color: var(--mist);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 24px 16px 14px;
  transform: translateY(100%);
  transition: transform var(--transition);
}
.gallery__item:hover .gallery__caption { transform: translateY(0); }

@media (max-width: 900px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__item img { height: 240px; }
}
@media (max-width: 480px) {
  .gallery__grid { grid-template-columns: 1fr 1fr; }
  .gallery__item img { height: 180px; }
  .gallery__caption { transform: translateY(0); }
}


/* ══════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════ */
.contact.section { background: var(--cosmos); }

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 700px) { .contact__inner { grid-template-columns: 1fr; gap: 40px; } }

.contact__text p { color: var(--smoke); margin-bottom: 24px; }
.contact__details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--mist);
}
.contact__details a { color: var(--teal-lt); transition: color var(--transition); }
.contact__details a:hover { color: var(--am-lt); }

.contact__form {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact__form .form__group label { color: var(--mist); }
.contact__form .form__group input,
.contact__form .form__group textarea {
  border-color: rgba(196,181,253,0.18);
  background: rgba(255,255,255,0.04);
  color: var(--pearl);
}
.contact__form .form__group input:focus,
.contact__form .form__group textarea:focus {
  border-color: var(--amethyst);
  background: rgba(193,84,10,0.05);
}
.contact__form .form__group input::placeholder,
.contact__form .form__group textarea::placeholder { color: var(--smoke); }
.contact__form-success {
  font-size: 0.88rem;
  color: var(--teal-lt);
  margin-top: 4px;
}

.contact__cta-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(193,84,10,0.25);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  color: var(--pearl);
  position: relative;
  overflow: hidden;
  box-shadow: var(--glow-v);
}
.cta-box__geo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  animation: rotateSlow 70s linear infinite;
}
.cta-box__geo svg { width: 320px; height: 320px; }
.contact__cta-box h3 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 12px;
  position: relative;
}
.contact__cta-box p {
  font-size: 0.92rem;
  color: var(--mist);
  margin-bottom: 28px;
  position: relative;
}
.contact__cta-box .btn { position: relative; }


/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
.footer {
  background: var(--void);
  border-top: 1px solid rgba(193,84,10,0.15);
  padding: 52px 0;
  text-align: center;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.footer__logo {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--pearl);
}
.footer__logo span { color: var(--teal-lt); }
.footer__tagline {
  font-size: 0.88rem;
  color: var(--smoke);
  font-style: italic;
}
.footer__socials { display: flex; gap: 22px; }
.footer__socials a {
  color: var(--smoke);
  transition: color var(--transition);
}
.footer__socials a:hover { color: var(--am-lt); }
.footer__copy {
  font-size: 0.75rem;
  color: rgba(123,111,160,0.5);
}
.footer__admin-link {
  font-size: 0.68rem;
  color: rgba(123,111,160,0.25);
  letter-spacing: 0.08em;
  transition: color var(--transition);
}
.footer__admin-link:hover { color: var(--smoke); }


/* ══════════════════════════════════════════
   MODAL
   ══════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6,1,15,0.8);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
  background: var(--deep);
  border: 1px solid rgba(193,84,10,0.25);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg), var(--glow-v);
  transform: scale(0.94) translateY(16px);
  transition: transform 0.32s cubic-bezier(0.34,1.56,0.64,1);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }

.modal__progress {
  height: 3px;
  background: rgba(196,181,253,0.1);
  border-radius: 4px 4px 0 0;
}
.modal__progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--amethyst), var(--teal-lt));
  border-radius: 4px;
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 0 10px rgba(193,84,10,0.5);
}

.modal__steps-label {
  display: flex;
  justify-content: space-between;
  padding: 14px 32px 0;
}
.step-label {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--smoke);
  transition: color var(--transition);
}
.step-label.active { color: var(--am-lt); }

.modal__close {
  position: absolute;
  top: 20px; right: 20px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(193,84,10,0.12);
  border: 1px solid rgba(193,84,10,0.25);
  color: var(--mist);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  z-index: 1;
}
.modal__close:hover { background: rgba(193,84,10,0.25); color: var(--pearl); }

.modal__step {
  padding: 28px 32px 32px;
  display: none;
  animation: stepIn 0.36s ease forwards;
}
.modal__step.active { display: block; }
@keyframes stepIn {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: translateX(0); }
}

.modal__title {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--pearl);
  margin-bottom: 6px;
}
.modal__sub { font-size: 0.88rem; color: var(--smoke); margin-bottom: 24px; }

/* Class Options */
.modal__class-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.modal__class-opt input { display: none; }
.modal__class-opt-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1.5px solid rgba(196,181,253,0.15);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  background: rgba(255,255,255,0.03);
}
.modal__class-opt input:checked + .modal__class-opt-inner {
  border-color: var(--amethyst);
  background: rgba(193,84,10,0.1);
}
.modal__class-opt-inner:hover { border-color: rgba(193,84,10,0.4); background: rgba(193,84,10,0.06); }
.modal__class-opt-icon { font-size: 1.4rem; flex-shrink: 0; }
.modal__class-opt-inner div { display: flex; flex-direction: column; gap: 2px; }
.modal__class-opt-inner strong { font-size: 0.92rem; color: var(--pearl); }
.modal__class-opt-inner span { font-size: 0.78rem; color: var(--smoke); }

/* Form */
.modal__form { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .form__row { grid-template-columns: 1fr; } }
.form__group { display: flex; flex-direction: column; gap: 6px; }
.form__group label { font-size: 0.76rem; font-weight: 600; color: var(--mist); letter-spacing: 0.04em; }
.form__group input,
.form__group select,
.form__group textarea {
  border: 1.5px solid rgba(196,181,253,0.18);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--pearl);
  background: rgba(255,255,255,0.04);
  transition: border-color var(--transition);
  outline: none;
}
.form__group select option { background: var(--deep); color: var(--pearl); }
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus { border-color: var(--amethyst); background: rgba(193,84,10,0.05); }
.form__group input.error,
.form__group select.error { border-color: #f87171; }
.form__group textarea { resize: vertical; min-height: 80px; }

/* Address Autocomplete */
.form__group--ac { position: relative; }
.ac-wrap { position: relative; }
.ac-spinner {
  position: absolute;
  top: 50%; right: 14px;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  border: 2px solid rgba(193,84,10,0.2);
  border-top-color: var(--amethyst);
  border-radius: 50%;
  display: none;
  animation: spin 0.7s linear infinite;
}
.ac-spinner.active { display: block; }
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

.ac-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: #1A0B38;
  border: 1.5px solid rgba(193,84,10,0.35);
  border-radius: var(--radius);
  max-height: 220px;
  overflow-y: auto;
  z-index: 500;
  display: none;
  box-shadow: 0 8px 32px rgba(6,1,15,0.6);
  padding: 4px 0;
  list-style: none;
}
.ac-dropdown.open { display: block; }
.ac-item {
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--mist);
  cursor: pointer;
  border-bottom: 1px solid rgba(193,84,10,0.08);
  transition: background var(--transition);
  line-height: 1.4;
}
.ac-item:last-child { border-bottom: none; }
.ac-item:hover, .ac-item.highlighted { background: rgba(193,84,10,0.18); color: var(--pearl); }
.ac-item__primary { font-weight: 600; color: var(--pearl); margin-bottom: 2px; }
.ac-item__secondary { font-size: 0.76rem; color: var(--smoke); }
.ac-item--info {
  color: var(--smoke);
  font-size: 0.78rem;
  font-style: italic;
  cursor: default;
  padding: 8px 14px;
}
.ac-item--info:hover { background: transparent; }
.form__group input::placeholder,
.form__group textarea::placeholder { color: var(--smoke); }

/* Modal Actions */
.modal__actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 8px; }
.modal__actions .btn--ghost { color: var(--smoke); border-color: rgba(196,181,253,0.2); }
.modal__actions .btn--ghost:hover { color: var(--mist); border-color: var(--smoke); background: rgba(255,255,255,0.04); }

/* Calendar */
.calendar-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; }
@media (max-width: 540px) { .calendar-wrap { grid-template-columns: 1fr; } }

.calendar {
  background: rgba(255,255,255,0.03);
  border: 1.5px solid rgba(196,181,253,0.14);
  border-radius: var(--radius);
  padding: 16px;
  user-select: none;
}
.calendar__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.calendar__header button {
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  color: var(--mist);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.calendar__header button:hover { background: rgba(193,84,10,0.2); }
.calendar__header span { font-weight: 600; font-size: 0.88rem; color: var(--pearl); }
.calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--smoke);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.calendar__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-day {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--mist);
}
.cal-day:hover:not(.disabled):not(.empty) { background: rgba(193,84,10,0.2); color: var(--pearl); }
.cal-day.today { color: var(--am-lt); font-weight: 700; }
.cal-day.selected { background: var(--amethyst); color: #fff; box-shadow: 0 0 12px rgba(193,84,10,0.5); }
.cal-day.disabled, .cal-day.empty { color: rgba(123,111,160,0.3); cursor: default; pointer-events: none; }

.timeslots-wrap { display: flex; flex-direction: column; }
.timeslots__label { font-size: 0.8rem; font-weight: 600; color: var(--mist); margin-bottom: 10px; letter-spacing: 0.04em; }
.timeslots { display: flex; flex-direction: column; gap: 7px; }
.timeslot {
  padding: 9px 14px;
  border: 1.5px solid rgba(196,181,253,0.15);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  background: rgba(255,255,255,0.02);
  color: var(--mist);
  text-align: left;
}
.timeslot:hover { border-color: rgba(193,84,10,0.4); background: rgba(193,84,10,0.08); color: var(--pearl); }
.timeslot.selected { border-color: var(--amethyst); background: rgba(193,84,10,0.15); color: var(--am-lt); }

/* Confirm Card */
.confirm__card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(196,181,253,0.15);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 24px;
  display: grid;
  gap: 10px;
}
.confirm__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; font-size: 0.88rem; }
.confirm__row span:first-child { font-weight: 600; color: var(--smoke); flex-shrink: 0; }
.confirm__row span:last-child { color: var(--pearl); text-align: right; }
.confirm__divider { height: 1px; background: rgba(196,181,253,0.1); margin: 2px 0; }

/* Success */
.success {
  text-align: center;
  padding: 12px 0 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.success__icon { font-size: 4rem; animation: popIn 0.7s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes popIn {
  from { transform: scale(0) rotate(-30deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg); opacity: 1; }
}
.success h2 {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--pearl);
}
.success p { font-size: 0.92rem; color: var(--smoke); max-width: 380px; line-height: 1.65; }
.success__detail {
  background: rgba(193,84,10,0.1);
  border: 1px solid rgba(193,84,10,0.25);
  border-radius: var(--radius);
  padding: 14px 20px;
  font-size: 0.88rem;
  color: var(--am-lt);
  font-weight: 500;
  width: 100%;
  max-width: 380px;
}

body.modal-open { overflow: hidden; }

/* ── Shop Section ── */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.shop-card {
  background: var(--deep);
  border: 1px solid rgba(193,84,10,0.14);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.shop-card:hover {
  transform: translateY(-4px);
  border-color: rgba(193,84,10,0.4);
  box-shadow: 0 12px 40px rgba(10,5,2,0.5);
}
.shop-card__img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #0f0a07;
  border-bottom: 1px solid rgba(193,84,10,0.08);
}
.shop-card__img-vignette {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  background: radial-gradient(circle, transparent 50%, rgba(15,10,7,0.5) 100%);
}

.shop-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 12px;
  transition: transform 0.4s ease;
}
.shop-card:hover .shop-card__img {
  transform: scale(1.05);
}
.shop-card__img-ph {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: #0f0a07;
  color: var(--smoke);
  border-bottom: 1px solid rgba(193,84,10,0.08);
}
.shop-card__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}
.shop-card__title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--pearl);
  margin-bottom: 4px;
}
.shop-card__desc {
  font-size: 0.82rem;
  color: var(--smoke);
  line-height: 1.55;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.shop-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.shop-card__price {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
}
.shop-card__cta {
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--amethyst), #8B3008);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: filter 0.2s;
}
.shop-card__cta:hover { filter: brightness(1.15); }


/* Purchase delivery options */
.purchase-delivery-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1.5px solid rgba(212,188,142,0.15);
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--mist);
  transition: border-color 0.2s;
}
.purchase-delivery-opt:has(input:checked) {
  border-color: var(--amethyst);
  background: rgba(193,84,10,0.08);
  color: var(--pearl);
}
.purchase-delivery-opt input { accent-color: var(--amethyst); }

/* ── Video Card Styles ── */
.video-card {
  position: relative;
}
.video-play-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(193,84,10,0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  opacity: 0.8;
  transition: transform 0.2s, opacity 0.2s;
  pointer-events: none;
  z-index: 2;
}
.video-card:hover .video-play-indicator {
  transform: translate(-50%, -50%) scale(1.1);
  opacity: 1;
  background: var(--amethyst);
}
.video-lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,10,6,0.75);
  backdrop-filter: blur(3px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 1;
  transition: background 0.2s;
  z-index: 3;
}
.video-lock-badge {
  background: linear-gradient(135deg, var(--gold), #e8c840);
  color: var(--void);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.video-lock-text {
  font-size: 0.8rem;
  color: var(--mist);
  font-weight: 500;
}
#memberships .classes__grid {
  max-width: 800px;
  margin: 0 auto;
}

/* ── Product Showcase Detail View ── */
.showcase-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: start;
  text-align: left;
}
@media (max-width: 768px) {
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
.showcase-media {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  cursor: zoom-in;
}
.showcase-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.15s ease-out;
  transform-origin: center center;
}
.showcase-media:hover .showcase-img {
  transform: scale(2.2);
}
.showcase-details {
  display: flex;
  flex-direction: column;
}
.showcase-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-lt);
  margin-bottom: 8px;
  display: inline-block;
}
.showcase-title {
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--pearl);
  margin-bottom: 8px;
}
.showcase-price {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 16px;
}
.showcase-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--mist);
  margin-bottom: 20px;
}
.gallery-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.gallery-thumb {
  width: 62px;
  height: 62px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, opacity 0.2s;
  opacity: 0.7;
}
.gallery-thumb:hover {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}
.gallery-thumb.active {
  opacity: 1;
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(193, 84, 10, 0.35);
  transform: scale(1.05);
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.showcase-actions {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
}

/* ── Lightbox Overlay ── */
#lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.94);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: fadeIn 0.2s ease-out;
}
#lightbox-overlay.open {
  display: flex;
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: var(--pearl);
  font-size: 2.8rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.75;
  transition: opacity 0.2s, transform 0.2s;
  outline: none;
}
.lightbox-close:hover {
  opacity: 1;
  transform: scale(1.1);
}
.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  user-select: none;
  transition: transform 0.3s ease;
}
@media (max-width: 768px) {
  .lightbox-img {
    max-width: 95%;
    max-height: 85%;
  }
  .lightbox-close {
    top: 16px;
    right: 16px;
    font-size: 2.4rem;
  }
}

@media (max-width: 768px) {
  /* Prevent iOS Form Auto-Zoom (Font-Size 16px) */
  .form__group input,
  .form__group select,
  .form__group textarea,
  .form__input,
  .contact__form .form__group input,
  .contact__form .form__group textarea {
    font-size: 16px !important;
  }

  /* Details Modal Mobile Above-the-Fold (Sizing max-height: 48vh) */
  .showcase-media {
    max-height: 48vh;
  }

  /* Sticky Action Buttons Footer inside Details Modal */
  .showcase-details {
    padding-bottom: 90px;
  }
  .showcase-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 10, 7, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(193, 84, 10, 0.2);
    padding: 16px 24px;
    z-index: 100;
    box-shadow: 0 -8px 24px rgba(0,0,0,0.5);
    margin: 0;
    border-radius: 0;
  }

  /* Horizontal Touch Scroll Swipe for Gallery Thumbnails */
  .gallery-thumbs {
    display: flex !important;
    gap: 10px !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    padding-bottom: 10px !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    margin-bottom: 8px !important;
  }
  .gallery-thumb {
    flex-shrink: 0;
    scroll-snap-align: start;
    width: 58px;
    height: 58px;
  }

  /* Enlarged Touch Target Areas for Close Buttons */
  .modal__close {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    top: 8px;
    right: 8px;
    border-radius: 50%;
  }

  /* Smooth Slide-down/Fade Transition for Hamburger Dropdown */
  .nav__mobile {
    display: flex !important;
    flex-direction: column;
    max-height: 0;
    padding: 0 24px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.25s ease, transform 0.25s ease;
    border-top: none;
  }
  .nav__mobile.open {
    max-height: 300px;
    padding: 20px 24px;
    opacity: 1;
    transform: translateY(0);
    border-top: 1px solid rgba(193, 84, 10, 0.2);
  }
}

