/* ===== TIDES YOGA — Styles ===== */

:root {
  --sage: #8a9a7b;
  --sage-light: #b5c4a8;
  --sage-dark: #5e6e52;
  --sand: #d4c5a9;
  --sand-light: #efe6d5;
  --sand-pale: #f7f3ec;
  --terracotta: #c4785b;
  --terracotta-dark: #a5603f;
  --white: #fefdfb;
  --off-white: #f9f7f3;
  --text: #2c2c2c;
  --text-light: #6b6b6b;
  --text-muted: #999;
  --bg: var(--white);
  --bg-alt: var(--off-white);
  --card-bg: #ffffff;
  --card-border: rgba(0,0,0,0.06);
  --nav-bg: rgba(254,253,251,0.92);
  --shadow: 0 2px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.08);
  --radius: 12px;
  --transition: 0.3s ease;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
}

[data-theme="dark"] {
  --bg: #1a1d1a;
  --bg-alt: #222522;
  --text: #e4e2dc;
  --text-light: #a8a69f;
  --text-muted: #6e6c66;
  --card-bg: #262926;
  --card-border: rgba(255,255,255,0.06);
  --nav-bg: rgba(26,29,26,0.94);
  --shadow: 0 2px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.4);
  --sand-pale: #2a2820;
  --off-white: #222522;
  --white: #1a1d1a;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

.centered { text-align: center; }

/* ===== Typography ===== */
.heading {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.75rem;
}

p { margin-bottom: 1rem; color: var(--text-light); max-width: 640px; }
.centered p { margin-left: auto; margin-right: auto; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1.5px solid var(--terracotta);
  background: var(--terracotta);
  color: #fff;
  border-radius: 60px;
  cursor: pointer;
  transition: all var(--transition);
}

.btn:hover {
  background: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--terracotta);
}

.btn-outline:hover {
  background: var(--terracotta);
  color: #fff;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 60px);
  background: transparent;
  transition: all 0.4s ease;
}

.nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px clamp(20px, 5vw, 60px);
  box-shadow: 0 1px 0 var(--card-border);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: #fff;
  transition: color var(--transition);
}

.nav.scrolled .nav-logo { color: var(--text); }

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--terracotta);
  transition: width var(--transition);
}

.nav-links a:hover::after { width: 100%; }
.nav.scrolled .nav-links a { color: var(--text-light); }
.nav.scrolled .nav-links a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 1.5px;
  background: #fff;
  transition: all var(--transition);
}

.nav.scrolled .nav-toggle span { background: var(--text); }

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-parallax {
  position: absolute;
  inset: -60px;
  z-index: 0;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.25) 0%,
    rgba(0,0,0,0.4) 50%,
    rgba(0,0,0,0.55) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  padding: 0 24px;
}

.hero-subtitle {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1.05;
  color: #fff;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  margin: 0 auto 2.5rem;
  max-width: 480px;
  line-height: 1.7;
}

.hero-btn {
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}

.hero-btn:hover {
  background: #fff;
  border-color: #fff;
  color: var(--text);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ===== Sections ===== */
.section {
  padding: clamp(80px, 12vw, 140px) 0;
}

/* ===== Split Layout ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.split.reverse .split-image { order: -1; }

.split-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.split-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.split-image:hover img { transform: scale(1.03); }

/* ===== Breathing Exercise ===== */
.breathing-section {
  background: var(--bg-alt);
}

.breathing-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  margin-top: 48px;
}

.breathing-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 1.5px solid var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 4s ease-in-out, border-color 4s ease-in-out, box-shadow 4s ease-in-out;
}

.breathing-circle.inhale {
  transform: scale(1.6);
  border-color: var(--sage-light);
  box-shadow: 0 0 60px rgba(138,154,123,0.15);
}

.breathing-circle.exhale {
  transform: scale(1);
  border-color: var(--sage);
  box-shadow: none;
}

.breathing-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--sage-dark);
  letter-spacing: 0.06em;
}

[data-theme="dark"] .breathing-text { color: var(--sage-light); }

.breathing-toggle { margin-top: 8px; }

/* ===== Class Filters ===== */
.class-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.centered .class-filters { justify-content: center; }

.filter-btn {
  padding: 8px 24px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-light);
  border-radius: 60px;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--sage);
  border-color: var(--sage);
  color: #fff;
}

/* ===== Class Cards ===== */
.class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.class-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s ease;
}

.class-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.class-card.hidden {
  display: none;
}

.class-card-img {
  overflow: hidden;
  height: 220px;
}

.class-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.class-card:hover .class-card-img img { transform: scale(1.05); }

.class-card-body {
  padding: 28px;
}

.class-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.class-card-body p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.class-meta {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
}

/* ===== Timetable ===== */
.timetable-section {
  background: var(--bg-alt);
}

.timetable-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 32px;
}

.timetable {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.timetable th {
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 14px 12px;
  border-bottom: 1px solid var(--card-border);
  text-align: center;
}

.timetable th.today-col {
  color: var(--terracotta);
}

.timetable td {
  padding: 16px 12px;
  text-align: center;
  border-bottom: 1px solid var(--card-border);
  color: var(--text-light);
  font-weight: 400;
  vertical-align: middle;
  transition: background var(--transition);
}

.timetable td.today-col {
  background: rgba(196,120,91,0.06);
}

[data-theme="dark"] .timetable td.today-col {
  background: rgba(196,120,91,0.1);
}

.time-cell {
  font-weight: 500;
  color: var(--text);
  text-align: left !important;
  white-space: nowrap;
}

.tt-vinyasa { color: var(--terracotta) !important; font-weight: 500 !important; }
.tt-yin { color: var(--sage-dark) !important; font-weight: 500 !important; }
.tt-hot { color: #c46b5b !important; font-weight: 500 !important; }
.tt-beginners { color: #7b8e9a !important; font-weight: 500 !important; }
.tt-prenatal { color: #a87ba5 !important; font-weight: 500 !important; }
.tt-beach { color: #5b8fa8 !important; font-weight: 500 !important; }

[data-theme="dark"] .tt-yin { color: var(--sage-light) !important; }
[data-theme="dark"] .tt-hot { color: #d4887a !important; }
[data-theme="dark"] .tt-beginners { color: #9ab0bd !important; }
[data-theme="dark"] .tt-prenatal { color: #c49ac1 !important; }
[data-theme="dark"] .tt-beach { color: #7bb5ce !important; }

/* ===== Instructors ===== */
.instructor-grid {
  display: flex;
  flex-direction: column;
  gap: 80px;
  margin-top: 48px;
}

.instructor-card {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.instructor-card.reverse { grid-template-columns: 1.3fr 1fr; }
.instructor-card.reverse .instructor-img { order: 1; }

.instructor-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.instructor-img img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.instructor-body h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.instructor-role {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  display: block;
  margin-bottom: 1.25rem;
}

.instructor-body p {
  font-size: 0.92rem;
}

/* ===== Parallax Break ===== */
.parallax-break {
  position: relative;
  height: 50vh;
  min-height: 360px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax-break-img {
  position: absolute;
  inset: -60px;
}

.parallax-break-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.parallax-break-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.parallax-break-text {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 600px;
}

.parallax-break-text p {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic;
  font-weight: 300;
  color: #fff;
  line-height: 1.5;
  max-width: none;
}

.parallax-break-text span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-top: 8px;
  display: block;
}

/* ===== Pricing ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 48px 36px;
  text-align: center;
  position: relative;
  transition: all 0.4s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border-color: var(--terracotta);
  box-shadow: var(--shadow);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--terracotta);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 20px;
  border-radius: 60px;
}

.pricing-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 8px;
  color: var(--text);
}

.price {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1.1;
}

.price-per {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.pricing-card ul {
  text-align: left;
  margin: 0 auto 2rem;
  max-width: 220px;
}

.pricing-card li {
  font-size: 0.88rem;
  color: var(--text-light);
  padding: 8px 0;
  border-bottom: 1px solid var(--card-border);
  padding-left: 16px;
  position: relative;
}

.pricing-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage-light);
  transform: translateY(-50%);
}

/* ===== Retreats ===== */
.retreats { background: var(--bg-alt); }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  margin-top: 48px;
  text-align: left;
}

.contact-item { margin-bottom: 28px; }

.contact-item h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 6px;
  color: var(--text);
}

.contact-item p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.92rem;
  padding: 12px 16px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--text);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--sage);
}

.form-group textarea { resize: vertical; }

/* ===== Footer ===== */
.footer {
  background: var(--bg-alt);
  padding: 60px 0 40px;
  border-top: 1px solid var(--card-border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--text);
}

.footer-brand { text-align: center; }
.footer-brand p { font-size: 0.85rem; color: var(--text-muted); text-align: center; }

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--terracotta); }

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

/* ===== Theme Toggle ===== */
.theme-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.theme-toggle:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-lg);
}

.theme-icon {
  width: 18px;
  height: 18px;
  color: var(--text-light);
}

.theme-icon.moon { display: none; }
[data-theme="dark"] .theme-icon.sun { display: none; }
[data-theme="dark"] .theme-icon.moon { display: block; }

/* ===== Floating Decorations ===== */
.floating-lotus,
.floating-wave {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  opacity: 0.04;
}

.floating-lotus {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sage) 0%, transparent 70%);
}

.lotus-1 { top: 20%; right: -60px; animation: floatSlow 20s ease-in-out infinite; }
.lotus-2 { bottom: 30%; left: -80px; animation: floatSlow 25s ease-in-out infinite reverse; }

.floating-wave {
  width: 400px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--sage), transparent);
}

.wave-1 { top: 40%; right: 5%; animation: waveDrift 15s ease-in-out infinite; transform: rotate(-5deg); }
.wave-2 { bottom: 20%; left: 3%; animation: waveDrift 18s ease-in-out infinite reverse; transform: rotate(3deg); }

@keyframes floatSlow {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

@keyframes waveDrift {
  0%, 100% { transform: translateX(0) rotate(-5deg); opacity: 0.04; }
  50% { transform: translateX(30px) rotate(-2deg); opacity: 0.07; }
}

/* ===== Reveal Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ===== Mobile ===== */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--card-bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    transition: right 0.4s ease;
    box-shadow: var(--shadow-lg);
  }
  
  .nav-links.open { right: 0; }
  .nav-links a { color: var(--text) !important; font-size: 0.9rem; }
  
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-image { order: 0; }
  .split-image img { aspect-ratio: 16/10; }
  
  .instructor-card,
  .instructor-card.reverse { grid-template-columns: 1fr; }
  .instructor-card.reverse .instructor-img { order: 0; }
  
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
  
  .contact-grid { grid-template-columns: 1fr; }
  
  .class-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero-title { font-size: clamp(2.5rem, 10vw, 4rem); }
  .class-filters { justify-content: center; }
}
