/* ═══════════════════════════════════════════
   WYNWOOD YOGA — STYLES
   Palette: Terracotta + Sand
   ═══════════════════════════════════════════ */

/* ── Custom Properties ── */
:root {
  --terra-950: #3D1F14;
  --terra-900: #5C2E1E;
  --terra-800: #7A3B26;
  --terra-700: #964D32;
  --terra-600: #B05F3E;
  --terra-500: #C4724E;
  --terra-400: #D4896A;
  --terra-300: #E0A48E;
  --terra-200: #EDC4B2;
  --terra-100: #F5DED5;
  --terra-50:  #FBF0EC;

  --sand-950: #1A1714;
  --sand-900: #2A2420;
  --sand-800: #3D352F;
  --sand-700: #544B44;
  --sand-600: #6E635A;
  --sand-500: #8A7E74;
  --sand-400: #A89B90;
  --sand-300: #C8BFB6;
  --sand-200: #E0D8D0;
  --sand-100: #EFE9E3;
  --sand-50:  #F7F3EF;
  --sand-25:  #FBF8F6;
  --sand-0:   #FDFCFA;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-sm: 0 1px 2px rgba(61,31,20,.06);
  --shadow-md: 0 4px 12px rgba(61,31,20,.08);
  --shadow-lg: 0 12px 32px rgba(61,31,20,.12);
  --shadow-xl: 0 20px 48px rgba(61,31,20,.14);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --transition: 250ms cubic-bezier(.4,0,.2,1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--sand-900);
  background: var(--sand-0);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a {
  color: var(--terra-600);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--terra-500); }

strong { font-weight: 600; }

ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ── */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--sand-950);
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--terra-500);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 48px);
  margin-bottom: 20px;
}

.section-title.light { color: #fff; }

.section-desc {
  font-size: 17px;
  color: var(--sand-700);
  max-width: 560px;
  line-height: 1.7;
}

.section-desc.light { color: var(--terra-200); }

.section-header.center { text-align: center; }
.section-header.center .section-desc { margin: 0 auto; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  white-space: nowrap;
}

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

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.45);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
  color: #fff;
}

.btn-outline-terra {
  background: transparent;
  color: var(--terra-600);
  border-color: var(--terra-400);
}
.btn-outline-terra:hover {
  background: var(--terra-50);
  border-color: var(--terra-600);
  color: var(--terra-700);
}

.btn-ghost {
  background: transparent;
  color: var(--terra-600);
  border-color: var(--terra-200);
}
.btn-ghost:hover {
  background: var(--terra-50);
  border-color: var(--terra-400);
}

.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; }

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(253,252,250,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sand-100);
  transition: box-shadow var(--transition);
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--sand-950);
  text-decoration: none;
}
.logo:hover { color: var(--terra-600); }

.logo-mark {
  color: var(--terra-600);
  flex-shrink: 0;
}

/* Nav */
.nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--sand-700);
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
}
.nav a:not(.btn):hover { color: var(--terra-600); }
.nav a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--terra-500);
  transition: width var(--transition);
}
.nav a:not(.btn):hover::after { width: 100%; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  width: 40px;
  height: 40px;
}
.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--sand-800);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger { position: relative; }
.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--sand-950);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .55;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(61,31,20,.82) 0%,
    rgba(92,46,30,.70) 50%,
    rgba(61,31,20,.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 120px 0 80px;
  max-width: 720px;
}

.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--terra-300);
  background: rgba(196,114,78,.18);
  border: 1px solid rgba(196,114,78,.35);
  padding: 7px 16px;
  border-radius: 50px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(36px, 5.5vw, 68px);
  color: #fff;
  line-height: 1.1;
  margin-bottom: 24px;
  font-weight: 700;
}

.hero h1 .accent {
  color: var(--terra-300);
  font-style: italic;
  font-weight: 400;
}

.hero-desc {
  font-size: 18px;
  color: rgba(255,255,255,.78);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 540px;
}

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

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

.stat {
  display: flex;
  flex-direction: column;
}
.stat strong {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}
.stat span {
  font-size: 13px;
  color: var(--terra-300);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.2);
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.5);
  animation: bobble 2s ease-in-out infinite;
  z-index: 1;
}
@keyframes bobble {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ── Sections ── */
.section {
  padding: 100px 0;
}
.section-alt {
  background: var(--sand-50);
}

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-images {
  position: relative;
  height: 600px;
}

.about-img-main {
  position: absolute;
  top: 0;
  left: 0;
  width: 72%;
  height: 80%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.about-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img-secondary {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 58%;
  height: 55%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 5px solid var(--sand-0);
}
.about-img-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-accent {
  position: absolute;
  top: 40px;
  right: 60px;
  width: 120px;
  height: 120px;
  background: var(--terra-200);
  border-radius: 50%;
  opacity: .35;
  filter: blur(40px);
  z-index: -1;
}

.about-text p {
  color: var(--sand-700);
  margin-bottom: 16px;
  line-height: 1.75;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.value {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.value-icon {
  color: var(--terra-500);
  flex-shrink: 0;
  margin-top: 2px;
}

.value strong {
  display: block;
  font-size: 15px;
  color: var(--sand-950);
  margin-bottom: 2px;
}

.value span {
  font-size: 14px;
  color: var(--sand-600);
  line-height: 1.5;
}

/* ── Classes ── */
.classes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.class-card {
  background: var(--sand-0);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--sand-100);
  transition: all var(--transition);
}
.class-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.class-card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.class-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}
.class-card:hover .class-card-img img {
  transform: scale(1.05);
}

.class-level {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sand-950);
  background: rgba(253,252,250,.92);
  backdrop-filter: blur(6px);
  padding: 5px 12px;
  border-radius: 50px;
}

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

.class-card-body h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--sand-950);
}

.class-card-body p {
  font-size: 14px;
  color: var(--sand-600);
  line-height: 1.65;
  margin-bottom: 16px;
}

.class-details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.class-details li {
  font-size: 13px;
  color: var(--sand-700);
  background: var(--sand-50);
  border: 1px solid var(--sand-200);
  padding: 5px 12px;
  border-radius: 50px;
}
.class-details li strong {
  color: var(--terra-600);
}

/* ── Scheduling ── */
.schedule-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}

.schedule-text .section-desc {
  margin-bottom: 28px;
}

.schedule-table-wrap {
  background: var(--sand-0);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--sand-100);
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.schedule-table thead {
  background: var(--terra-600);
  color: #fff;
}

.schedule-table th {
  padding: 14px 20px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: left;
}

.schedule-table td {
  padding: 14px 20px;
  color: var(--sand-800);
  border-bottom: 1px solid var(--sand-100);
  vertical-align: middle;
}

.schedule-table tbody tr:last-child td {
  border-bottom: none;
}

.schedule-table tbody tr:hover {
  background: var(--terra-50);
}

.schedule-table td:first-child {
  font-weight: 600;
  color: var(--sand-950);
  white-space: nowrap;
}

/* ── Studio ── */
.studio-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 56px;
}

.studio-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.studio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.studio-features {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.studio-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.studio-feature svg {
  color: var(--terra-500);
  flex-shrink: 0;
  margin-top: 2px;
}

.studio-feature strong {
  display: block;
  font-size: 16px;
  color: var(--sand-950);
  margin-bottom: 4px;
}

.studio-feature span {
  font-size: 14px;
  color: var(--sand-600);
  line-height: 1.6;
}

/* ── CTA ── */
.cta {
  background: linear-gradient(135deg, var(--terra-900) 0%, var(--terra-700) 100%);
  padding: 100px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.cta-content {
  flex: 1;
  max-width: 520px;
}

.cta-content .section-label.light {
  color: var(--terra-300);
}

.cta-content p {
  font-size: 17px;
  color: var(--terra-200);
  line-height: 1.75;
}

.cta-actions {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  gap: 14px;
}

.cta-actions .btn-primary {
  background: #fff;
  color: var(--terra-700);
  border-color: #fff;
}
.cta-actions .btn-primary:hover {
  background: var(--sand-50);
  border-color: var(--sand-50);
  color: var(--terra-800);
}

/* ── Contact ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 36px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-item svg {
  color: var(--terra-500);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item strong {
  display: block;
  font-size: 15px;
  color: var(--sand-950);
  margin-bottom: 4px;
}

.contact-item span,
.contact-item a {
  font-size: 14px;
  color: var(--sand-600);
  line-height: 1.6;
}
.contact-item a:hover { color: var(--terra-600); }

/* Form */
.contact-form-wrap {
  background: var(--sand-0);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--sand-100);
}

.contact-form h3,
.form-success h3 {
  font-size: 24px;
  margin-bottom: 24px;
  color: var(--sand-950);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--sand-800);
  margin-bottom: 6px;
  letter-spacing: .03em;
}

.optional {
  font-weight: 400;
  color: var(--sand-400);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--sand-900);
  background: var(--sand-50);
  border: 1.5px solid var(--sand-200);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--terra-400);
  box-shadow: 0 0 0 3px rgba(196,114,78,.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--sand-400);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-note {
  font-size: 13px;
  color: var(--sand-500);
  margin-top: 12px;
  text-align: center;
}

.form-success {
  text-align: center;
  padding: 20px 0;
}
.form-success svg {
  color: var(--terra-500);
  margin: 0 auto 16px;
}
.form-success h3 {
  margin-bottom: 8px;
}
.form-success p {
  color: var(--sand-600);
  margin-bottom: 20px;
}

/* ── Map ── */
.map-section {
  height: 320px;
  background: var(--sand-200);
}
.map-section iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* ── Footer ── */
.site-footer {
  background: var(--sand-950);
  color: var(--sand-300);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.logo-light {
  color: #fff;
}
.logo-light:hover { color: var(--terra-300); }

.footer-brand p {
  font-size: 14px;
  color: var(--sand-500);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}

.footer-links strong,
.footer-contact strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sand-200);
  margin-bottom: 18px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--sand-500);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--terra-300); }

.footer-contact address {
  font-style: normal;
  font-size: 14px;
  color: var(--sand-500);
  line-height: 1.7;
  margin-bottom: 10px;
}

.footer-contact a {
  font-size: 15px;
  color: var(--terra-400);
}
.footer-contact a:hover { color: var(--terra-300); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 0;
  font-size: 13px;
  color: var(--sand-600);
}

.footer-bottom a {
  color: var(--sand-500);
  text-decoration: none;
}
.footer-bottom a:hover { color: var(--terra-300); }

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 600ms ease, transform 600ms ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .about-grid,
  .schedule-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-images {
    height: 420px;
    max-width: 500px;
  }

  .classes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .studio-grid {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  /* Mobile nav */
  .nav-toggle { display: block; }

  .nav ul {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--sand-0);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--sand-100);
    box-shadow: var(--shadow-md);
  }
  .nav ul.open { display: flex; }

  .nav a:not(.btn) { font-size: 16px; }
  .nav a:not(.btn)::after { display: none; }

  .hero-content { padding: 100px 0 80px; }
  .hero h1 { font-size: clamp(32px, 8vw, 52px); }
  .hero-stats { gap: 20px; }
  .stat strong { font-size: 22px; }

  .classes-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .schedule-layout {
    gap: 32px;
  }

  .schedule-table-wrap { overflow-x: auto; }
  .schedule-table { min-width: 500px; }

  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .hero-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .stat-divider { display: none; }

  .about-images { height: 320px; }
  .about-img-main { width: 80%; height: 85%; }
  .about-img-secondary { width: 65%; height: 55%; }

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