/* ==========================================================================
   YotS Design System - Yoga of the Soul
   Based on: Rational Mystic aesthetic (lp-design skill)
   Fonts: Fraunces (headings) + DM Sans (body) via Google Fonts
   Colors: OKLCH with hex fallbacks
   ========================================================================== */

/* --- CSS Reset (minimal) --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* --- Custom Properties --- */
:root {
  /* YotS Corporate Identity Colors */
  --gold: #C8A144;              /* Gold Line-work: logo, headings, key icons */
  --gold-dark: #A07D2E;         /* Gold hover state */
  --indigo: #1B2540;            /* Midnight Indigo: body text, links */
  --sea-foam: #6FBFAF;          /* Sea Foam: secondary buttons, accents */
  --sea-foam-dark: #4FA08F;     /* Sea Foam hover */
  --coral: #E2745B;             /* Coral Heart: alerts, quote highlights */
  --sandstone: #EADAC6;         /* Sandstone: card backgrounds */
  --cream: #F5F2EA;             /* Sacred Cream: primary page background */

  /* Neutrals (indigo-tinted) */
  --neutral-50: #F5F2EA;        /* = Sacred Cream */
  --neutral-100: #EADAC6;       /* = Sandstone */
  --neutral-200: #DDD3C2;
  --neutral-300: #C4B8A6;
  --neutral-400: #8E8576;
  --neutral-500: #60584E;
  --neutral-600: #3D3A35;
  --neutral-700: #2A2D3A;
  --neutral-800: #1B2540;       /* = Midnight Indigo */
  --neutral-900: #111827;

  /* Semantic */
  --text-primary: var(--indigo);
  --text-secondary: var(--neutral-600);
  --text-tertiary: var(--neutral-500);
  --bg-page: var(--cream);
  --bg-section-alt: #F0EDE5;    /* Slightly warmer than cream for alternation */
  --bg-section-warm: var(--sandstone);
  --border-light: var(--neutral-200);
  --border-medium: var(--neutral-300);

  /* CTA Colors (contrast-safe) */
  --cta-primary-bg: var(--gold);
  --cta-primary-text: var(--indigo);
  --cta-primary-hover: var(--gold-dark);
  --cta-secondary-bg: var(--indigo);
  --cta-secondary-text: var(--cream);
  --cta-secondary-hover: var(--neutral-900);

  /* Typography */
  --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;

  /* Type Scale (fluid) */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: clamp(1.5rem, 2.5vw, 2rem);
  --text-4xl: clamp(2rem, 4vw, 3rem);
  --text-hero: clamp(2.25rem, 5vw, 3.75rem);

  /* Line Heights */
  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-normal: 1.6;
  --leading-relaxed: 1.7;

  /* Spacing (4px base) */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --space-3xl: 48px;
  --space-4xl: 64px;
  --space-5xl: 96px;
  --space-6xl: 128px;

  /* Section Spacing */
  --section-gap: clamp(64px, 8vw, 112px);
  --section-padding-y: clamp(48px, 6vw, 80px);
  --section-padding-x: clamp(20px, 5vw, 40px);

  /* Layout */
  --content-max: 1200px;
  --text-max: 680px;
  --narrow-max: 560px;

  /* Borders */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);

  /* Motion */
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-soft: cubic-bezier(0.39, 0.575, 0.565, 1);
}

/* --- Base Styles --- */
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-light);
  line-height: var(--leading-snug);
  color: var(--text-primary);
}

h1 { font-size: var(--text-hero); letter-spacing: -0.02em; }
h2 { font-size: var(--text-4xl); letter-spacing: -0.01em; }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }

p {
  max-width: var(--text-max);
  text-align: left;
}

p + p { margin-top: 1.2em; }

.text-center { text-align: center; }
.text-center p { margin-left: auto; margin-right: auto; }

blockquote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  max-width: var(--text-max);
  padding-left: var(--space-xl);
  border-left: 3px solid var(--gold);
}

.subheading {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-normal);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
  max-width: var(--text-max);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--section-padding-x);
  padding-right: var(--section-padding-x);
}

.narrow { max-width: var(--narrow-max); }

section {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

section + section {
  border-top: 1px solid var(--border-light);
}

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

.section-warm {
  background-color: var(--bg-section-warm);
}

.section-dark {
  background-color: var(--indigo);
  color: var(--neutral-100);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--neutral-100);
}

.section-dark .subheading,
.section-dark p {
  color: var(--neutral-300);
}

/* Stack spacing utility */
.stack > * + * { margin-top: var(--space-xl); }
.stack-sm > * + * { margin-top: var(--space-lg); }
.stack-lg > * + * { margin-top: var(--space-3xl); }
.stack-xl > * + * { margin-top: var(--space-4xl); }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-5xl) var(--section-padding-x);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(39, 36, 32, 0.45) 0%,
    rgba(39, 36, 32, 0.65) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero h1 {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero .subheading {
  color: rgba(255,255,255,0.9);
  margin: var(--space-xl) auto 0;
}

.hero .eyebrow {
  color: var(--gold);
  margin-bottom: var(--space-lg);
}

.hero-meta {
  display: flex;
  gap: var(--space-xl);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-2xl);
  color: rgba(255,255,255,0.85);
  font-size: var(--text-sm);
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  min-height: 48px;
  padding: var(--space-md) var(--space-2xl);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  border-radius: var(--radius-md);
  transition: all var(--duration-normal) var(--ease-out);
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--cta-primary-bg);
  color: var(--cta-primary-text);
}

.btn-primary:hover {
  background-color: var(--cta-primary-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--cta-secondary-bg);
  color: var(--cta-secondary-text);
}

.btn-secondary:hover {
  background-color: var(--cta-secondary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
}

.btn-ghost:hover {
  background-color: var(--gold);
  color: var(--indigo);
}

.btn-hero {
  min-height: 56px;
  padding: var(--space-lg) var(--space-3xl);
  font-size: var(--text-lg);
}

.btn-whatsapp {
  background-color: var(--sea-foam);
  color: #fff;
}

.btn-whatsapp:hover {
  background-color: var(--sea-foam-dark);
  color: #fff;
}

/* --- Cards --- */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.card-highlight {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

/* --- Testimonial --- */
.testimonial {
  padding: var(--space-3xl) 0;
  max-width: var(--text-max);
  margin: 0 auto;
  text-align: center;
}

.testimonial-quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
  color: var(--text-primary);
  margin-bottom: var(--space-xl);
}

.testimonial-quote::before { content: '\201C'; }
.testimonial-quote::after { content: '\201D'; }

.testimonial-author {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
}

.testimonial-role {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

/* --- Grid --- */
.grid {
  display: grid;
  gap: var(--space-2xl);
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* --- Two-Column Split --- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

@media (min-width: 768px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split-reverse > :first-child { order: 2; }
  .split-reverse > :last-child { order: 1; }
}

/* --- Image Placeholder (until real images added) --- */
.img-placeholder {
  background: linear-gradient(135deg, var(--warm-sand) 0%, var(--neutral-200) 100%);
  border-radius: var(--radius-lg);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: var(--text-sm);
}

.img-placeholder-portrait { aspect-ratio: 3/4; }
.img-placeholder-square { aspect-ratio: 1/1; }

/* Real images */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* --- Video Embed --- */
.video-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.video-responsive {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Pricing Cards --- */
.pricing-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  text-align: center;
  border: 1px solid var(--border-light);
  transition: box-shadow var(--duration-normal) var(--ease-out);
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
}

.pricing-card-featured {
  border-color: var(--gold);
  position: relative;
}

.pricing-card-featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--indigo);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  padding: var(--space-xs) var(--space-lg);
  border-radius: 100px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.price {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.price-period {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.pricing-features {
  text-align: left;
  margin: var(--space-2xl) 0;
}

.pricing-features li {
  padding: var(--space-sm) 0;
  padding-left: var(--space-xl);
  position: relative;
  color: var(--text-secondary);
}

.pricing-features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--sea-foam);
  font-weight: var(--font-weight-semibold);
}

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

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: var(--space-xl) 0;
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  min-height: 56px;
  background: none;
  border: none;
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-left: var(--space-lg);
  transition: transform var(--duration-normal) var(--ease-out);
  color: var(--text-tertiary);
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding-bottom: var(--space-xl);
  color: var(--text-secondary);
  max-width: var(--text-max);
}

/* --- Sticky Mobile CTA --- */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: var(--space-md) var(--section-padding-x);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.1);
  border-top: 1px solid var(--border-light);
}

.sticky-cta .btn {
  width: 100%;
}

.sticky-cta-price {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  text-align: center;
  margin-top: var(--space-xs);
}

@media (max-width: 767px) {
  .sticky-cta.is-visible {
    display: block;
  }
}

/* --- Checklist --- */
.checklist li {
  padding: var(--space-md) 0;
  padding-left: var(--space-2xl);
  position: relative;
  font-size: var(--text-lg);
  color: var(--text-secondary);
}

.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--gold);
}

/* --- Divider --- */
.divider {
  width: 60px;
  height: 2px;
  background-color: var(--gold);
  border: none;
  margin: var(--space-2xl) 0;
}

.divider-center {
  margin-left: auto;
  margin-right: auto;
}

/* --- Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
  transition: transform var(--duration-normal) var(--ease-out);
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--section-padding-x);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
}

.nav-links {
  display: none;
  gap: var(--space-2xl);
  align-items: center;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
  transition: color var(--duration-fast);
}

.nav-links a:hover { color: var(--text-primary); }

/* --- Footer --- */
.site-footer {
  padding: var(--space-4xl) 0 var(--space-2xl);
  background-color: var(--indigo);
  color: var(--neutral-400);
  font-size: var(--text-sm);
}

.site-footer a {
  color: var(--neutral-300);
  transition: color var(--duration-fast);
}

.site-footer a:hover { color: #fff; }

/* --- Scroll Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-slow) var(--ease-out-soft),
              transform var(--duration-slow) var(--ease-out-soft);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 767px) {
  .hero {
    min-height: 60vh;
    padding: var(--space-4xl) var(--section-padding-x);
  }

  h1 { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  h2 { font-size: clamp(1.5rem, 5vw, 2rem); }

  .btn-hero {
    width: 100%;
    justify-content: center;
  }

  .pricing-card { padding: var(--space-2xl); }

  /* Add bottom padding for sticky CTA */
  body.has-sticky-cta { padding-bottom: 80px; }
}

@media (min-width: 1440px) {
  :root {
    --section-padding-x: 60px;
  }
}
