/* ==========================================================================
   SAN MARCOS WILD THERAPY STYLES
   Supports Light Mode (Default) & Dark Mode Toggle
   ========================================================================== */

:root {
  /* LIGHT MODE (Serene Sky Blue) */
  --bg-main: linear-gradient(180deg, #e0f2fe 0%, #bae6fd 50%, #f0f9ff 100%);
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-alt: rgba(240, 249, 255, 0.85);
  --text-main: #1e293b;
  --text-muted: #475569;
  --accent-gold: #d97706;
  --accent-emerald: #0d9488;
  --border-color: rgba(13, 148, 136, 0.2);
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --font-heading: 'Cinzel', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

[data-theme="dark"] {
  /* DARK MODE (Cosmic Night) */
  --bg-main: #0c100e;
  --bg-card: #151d18;
  --bg-alt: #101713;
  --text-main: #e6eae7;
  --text-muted: #9db0a3;
  --accent-gold: #e2bd56;
  --accent-emerald: #3a7a5c;
  --border-color: rgba(226, 189, 86, 0.2);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Ensure background gradient applies nicely across the body */
body {
  background: var(--bg-main);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background 0.5s ease, color 0.4s ease;
}

/* CANVAS BACKDROP */
#energyCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.95;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(248, 246, 240, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
  transition: var(--transition);
}

[data-theme="dark"] .navbar {
  background: rgba(12, 16, 14, 0.9);
}

.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
}

.logo-img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent-gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* THEME TOGGLE BUTTON */
.theme-toggle {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--accent-gold);
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.theme-toggle:hover {
  transform: rotate(20deg) scale(1.1);
}

[data-theme="light"] .icon-moon { display: block; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: block; }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
}

/* HERO */
.therapy-hero {
  position: relative;
  padding: 150px 24px 80px;
  text-align: center;
}

.trailhead-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 30px;
  background: rgba(197, 155, 39, 0.12);
  border: 1px solid var(--border-color);
  color: var(--accent-gold);
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.therapy-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.15;
  margin-bottom: 16px;
}

.therapy-hero-title em {
  color: var(--accent-gold);
  font-style: italic;
}

.therapy-hero-subtitle {
  max-width: 680px;
  margin: 0 auto 30px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--accent-emerald);
  color: #ffffff;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(30, 77, 56, 0.3);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.btn-glow {
  background: linear-gradient(135deg, var(--accent-gold), #a27a18);
  color: #ffffff;
}

.btn-glow:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(197, 155, 39, 0.4);
}

.btn-full { width: 100%; }

/* SECTIONS */
.section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.section-alt {
  background-color: var(--bg-alt);
}

.treatment-category-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}

.waypoint-marker {
  display: inline-flex;
  padding: 12px;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--accent-gold);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}

.treatment-category-tag {
  color: var(--accent-gold);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 2px;
}

.treatment-category-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  margin: 8px 0;
}

.treatment-category-desc {
  color: var(--text-muted);
}

/* INTEGRATIVE LAYOUT */
.integrative-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  font-size: 1.1rem;
}

.integrative-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 36px;
}

.integrative-row {
  display: flex;
  gap: 20px;
  background: var(--bg-card);
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.integrative-icon {
  color: var(--accent-gold);
  font-size: 1.5rem;
}

.integrative-side {
  background: var(--bg-card);
  padding: 30px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
}

.integrative-side-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 24px;
  color: var(--accent-gold);
}

.integrative-side-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.integrative-side-item i {
  color: var(--accent-emerald);
}

/* 3D FLIP CARDS */
.flip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.flip-card {
  background-color: transparent;
  height: 480px;
  perspective: 1000px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: left;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-img-wrap {
  position: relative;
  height: 200px;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-flip-hint {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-front-body {
  padding: 20px;
}

.card-front-body h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-front-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.flip-card-back {
  transform: rotateY(180deg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.flip-card-back h3 {
  font-family: var(--font-heading);
  color: var(--accent-gold);
}

.feature-box {
  background: var(--bg-alt);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-top: 10px;
}

.benefits-mini h4 {
  font-size: 0.9rem;
  margin: 12px 0 6px;
}

.benefits-mini ul {
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.benefits-mini li::before {
  content: "✓ ";
  color: var(--accent-gold);
}

/* HIGHLIGHT BANNER */
.therapy-highlight {
  background: linear-gradient(135deg, var(--accent-emerald), #0f2c1f);
  color: #ffffff;
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  box-shadow: var(--shadow);
}

.therapy-highlight-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 12px;
}

.therapy-highlight-text {
  max-width: 700px;
  margin: 0 auto 20px;
  opacity: 0.9;
}




/* WORKSHOP BLOCK */

.workshop-block {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.workshop-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
}

.workshop-eyebrow {
  color: var(--accent-gold);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 2px;
}

.workshop-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin: 8px 0 16px;
}

.workshop-meta {
  display: flex;
  gap: 20px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.workshop-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-gold);
  font-size: 0.9rem;
}

.workshop-releases {
  margin: 20px 0;
}

.workshop-release-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.workshop-panel {
  background: var(--bg-alt);
  padding: 30px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.workshop-price {
  margin-bottom: 16px;
}

.workshop-price-amount {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--accent-gold);
}

.workshop-questions {
  list-style: none;
  margin: 16px 0 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.workshop-questions li {
  margin-bottom: 8px;
}

/* VERTICAL WORKSHOP IMAGE STYLING */
.workshop-image-wrap {
  width: 100%;
  height: 260px; /* Adjust height as desired for your vertical photo */
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.workshop-vertical-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Keeps image nicely framed without stretching */
  object-position: center;
  transition: transform 0.5s ease;
}

.workshop-panel:hover .workshop-vertical-img {
  transform: scale(1.04); /* Gentle zoom effect on hover */
}







/* BOOKING FORM */
.book-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-card);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.book-split-image {
  position: relative;
  min-height: 400px;
}

.book-split-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-split-image-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 20px;
  border-radius: 6px;
}

.book-split-form {
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-main);
  font-family: var(--font-body);
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 20px;
  color: var(--text-muted);
}

.faq-item.open .faq-answer {
  padding-bottom: 20px;
  max-height: 200px;
}

/* FOOTER & WHATSAPP */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo-icon {
  color: var(--accent-gold);
}

.footer-links-col ul {
  list-style: none;
}

.footer-links-col a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 99;
}

/* ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.hover-lift:hover {
  transform: translateY(-5px);
}

.spin-slow {
  animation: spin 12s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-main);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links.active { display: flex; }
  .mobile-toggle { display: block; }
  .integrative-layout, .workshop-grid, .book-split, .footer-grid {
    grid-template-columns: 1fr;
  }
  .form-row { grid-template-columns: 1fr; }
}