/* Tokens (theme overrides these via styles/theme.css) */
:root {
  --bg: #fff;
  --surface: #f9fafb;
  --text: #101828;
  --muted: #4a5565;
  --primary: #dcbab2;
  --primary-600: #5a4a45;
  --accent: #b2ff55;
  --border: #f3f4f6;

  /* Responsive scaling
     Baseline: 1280px wide => scale ~ 1
     Uses vw so values upscale on larger screens while staying bounded. */
    --scale: clamp(0.85, calc(100vw / 1280px), 1.8);

    /* Wider layouts on high-res screens */
    --container-max: clamp(1440px, calc(1440px * var(--scale)), 1920px);

  --px-8: calc(8px * var(--scale));
  --px-10: calc(10px * var(--scale));
  --px-12: calc(12px * var(--scale));
  --px-14: calc(14px * var(--scale));
  --px-16: calc(16px * var(--scale));
  --px-18: calc(18px * var(--scale));
  --px-20: calc(20px * var(--scale));
  --px-22: calc(22px * var(--scale));
  --px-24: calc(24px * var(--scale));
  --px-32: calc(32px * var(--scale));
  --px-40: calc(40px * var(--scale));
  --px-64: calc(64px * var(--scale));
  --px-96: calc(96px * var(--scale));

  --btn-py: clamp(12px, calc(14px * var(--scale)), 22px);
  --btn-px: clamp(18px, calc(24px * var(--scale)), 40px);

  --r-8: clamp(6px, calc(8px * var(--scale)), 14px);
  --r-10: clamp(8px, calc(10px * var(--scale)), 16px);
  --r-12: clamp(10px, calc(12px * var(--scale)), 18px);
  --r-14: clamp(12px, calc(14px * var(--scale)), 20px);

  --header-h: calc(56px * var(--scale));
}

/* Base */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  overflow-x: hidden;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--px-16));
}
body {
  margin: 0;
  font-family: var(
    --font-body,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    sans-serif
  );
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
img {
  max-width: 100%;
  display: block;
}

/* Layout */
.container {
  width: 100%;
  max-width: clamp(1120px, 92vw, var(--container-max));
  margin: 0 auto;
  padding-inline: var(--px-16);
}
.section {
  padding: clamp(64px, calc(80px * var(--scale)), 120px) 0;
  min-height: calc(100svh - var(--header-h));
}
.section.alt {
  background: var(--surface);
}

/* Vertically center the Studio section content */
#estudio.section {
  display: flex;
  align-items: center;
}
#estudio.section > .container {
  width: 100%;
}

/* Scroll reveal (fade in once, on first view) */
.section.reveal {
  opacity: 0;
  transform: translateY(clamp(10px, calc(16px * var(--scale)), 22px));
  transition:
    opacity 520ms ease,
    transform 520ms ease;
  will-change: opacity, transform;
}
.section.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Typography */
main h2 {
  margin: 0 0 var(--px-24);
  font-family: var(--font-heading, inherit);
  font-weight: 400;
  font-size: clamp(28px, calc(36px * var(--scale)), 52px);
  line-height: clamp(32px, calc(40px * var(--scale)), 56px);
  text-align: center;
  color: var(--primary);
}

.section-head {
  max-width: min(704px, 92vw);
  margin: 0 auto var(--px-40);
  text-align: center;
}
.subtitle {
  margin: calc(8px * var(--scale)) auto 0;
  max-width: min(672px, 92vw);
  font-size: clamp(16px, calc(16px * var(--scale)), 18px);
  line-height: clamp(24px, calc(24px * var(--scale)), 28px);
  color: var(--muted);
}

/* El estudio */
.studio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  justify-content: center;
  gap: clamp(var(--px-24), 4vw, var(--px-64));
}
.studio-copy {
  max-width: clamp(544px, 42vw, 680px);
  margin-inline: auto;
}
.studio-copy h2 {
  text-align: left;
}
.studio-text {
  display: grid;
  gap: var(--px-16);
  justify-items: center;
}
.studio-text p {
  margin: 0;
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: clamp(24px, calc(26px * var(--scale)), 32px);
  color: var(--muted);
}
.studio-media {
  width: 100%;
  height: clamp(420px, 40vw, 560px);
  border-radius: var(--r-10);
  box-shadow:
    0px 20px 25px -5px rgba(0, 0, 0, 0.1),
    0px 8px 10px -6px rgba(0, 0, 0, 0.1);
  background: url('../assets/images/IMG_9.jpeg') center / cover no-repeat;
}

/* Yoga / Pilates practice sections */
.practice-section {
  display: flex;
  align-items: center;
}
.practice-section > .container {
  width: 100%;
}
.practice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(var(--px-24), 4vw, var(--px-64));
}
.practice-info {
  max-width: clamp(560px, 48vw, 720px);
}
.practice-info h2 {
  text-align: left;
  margin-bottom: var(--px-24);
}

.practice-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--px-12);
}

.practice-list--two {
  grid-template-columns: 1fr 1fr;
}

.practice-panel {
  border: 1px solid rgba(90, 74, 69, 0.18);
  border-radius: var(--r-14);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.practice-panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}

.practice-panel > summary,
.practice-row {
  display: flex;
  align-items: center;
  padding: var(--px-14) var(--px-16);
  font-weight: 700;
  color: var(--text);
}

.practice-panel > summary {
  cursor: pointer;
}

.practice-panel > summary::-webkit-details-marker {
  display: none;
}

.practice-panel[open] > summary {
  border-bottom: 1px solid rgba(90, 74, 69, 0.14);
}

.practice-panel > summary .service-arrow {
  transition: transform 180ms ease;
}

.practice-panel[open] > summary .service-arrow {
  transform: rotate(90deg);
}

.practice-content {
  padding: 0 var(--px-16) var(--px-14) var(--px-16);
  color: var(--muted);
  line-height: 1.55;
}

.practice-content p {
  margin: calc(8px * var(--scale)) 0 0;
}

.practice-content p:first-child {
  margin-top: 0;
}

/* Links */
a {
  color: inherit;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 0.8px solid var(--border);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--px-24);
  padding: var(--px-16) var(--px-24);
  flex-wrap: wrap;
  min-height: var(--header-h);
}

.brand {
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--primary);
}

.nav {
  margin-left: auto;
  position: relative;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  padding: calc(10px * var(--scale)) calc(12px * var(--scale));
  border-radius: var(--r-10);
  border: 1px solid var(--border);
  background: var(--bg);
  font: inherit;
  cursor: pointer;
}

.nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--px-16);
}

.nav-menu a {
  text-decoration: none;
  font-size: clamp(12px, calc(14px * var(--scale)), 16px);
  color: var(--muted);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--px-10);
  padding: var(--btn-py) var(--btn-px);
  border-radius: 999px;
  border: 1px solid rgba(220, 186, 178, 0.35);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 220ms ease,
    transform 180ms ease;
}

.btn:hover {
  border-color: rgba(220, 186, 178, 0.55);
  background: rgba(220, 186, 178, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(16, 24, 40, 0.08);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 10px 18px rgba(16, 24, 40, 0.08);
}

.btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(178, 255, 85, 0.35),
    0 14px 30px rgba(16, 24, 40, 0.08);
}

.btn.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.btn.primary:hover {
  background: var(--primary-600);
  border-color: var(--primary-600);
  box-shadow: 0 18px 36px rgba(16, 24, 40, 0.14);
}

/* Hero */
.hero {
  padding: var(--px-64) 0;
  min-height: 100svh;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  gap: var(--px-32);
}
.hero-content {
  max-width: clamp(720px, 56vw, 920px);
  margin: 0 auto;
}
.hero-content h1 {
  font-family: var(--font-heading, inherit);
  font-weight: 400;
  font-size: clamp(40px, calc(64px * var(--scale)), 104px);
  line-height: clamp(48px, calc(72px * var(--scale)), 120px);
  letter-spacing: 1.8px;
  text-align: center;
  margin-inline: auto;
}
.hero-content p {
  margin: 0 auto;
  max-width: clamp(520px, 50vw, 760px);
  font-size: clamp(16px, calc(24px * var(--scale)), 32px);
  line-height: clamp(24px, calc(32px * var(--scale)), 44px);
  text-align: center;
  color: var(--muted);
}

.bold {
  font-weight: 700;
}
.cta-row {
  display: flex;
  justify-content: center;
  gap: var(--px-16);
  margin-top: var(--px-22);
  flex-wrap: wrap;
}

/* Full-bleed hero background */
.hero--bg {
  /* +header height so the negative margin doesn't shorten the visible section */
  min-height: calc(100svh + var(--header-h));
  display: flex;
  align-items: center;
  margin-top: calc(var(--header-h) * -1);
  padding: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    url('../assets/images/IMG_10.jpeg') center / cover no-repeat;
}
.hero.hero--bg {
  padding: 0;
}
.hero--bg .hero-inner {
  width: 100%;
  padding-block: var(--header-h);
}
.hero--bg .hero-content h1,
.hero--bg .hero-content p {
  color: #fff;
}
.hero--bg .btn {
  border-color: #fff;
  color: #fff;
}
.hero--bg .btn.primary {
  background: var(--primary);
  border-color: var(--primary);
}

/* Cards */
.grid.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--px-20);
}
.grid.cards.pricing {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card {
  border: 1px solid var(--border);
  border-radius: var(--r-14);
  padding: var(--px-18);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: var(--px-8);
}
.card h3 {
  margin: 0;
  font-weight: 400;
  font-size: clamp(16px, calc(18px * var(--scale)), 22px);
  line-height: clamp(22px, calc(27px * var(--scale)), 34px);
}
.card p {
  margin: 0;
  color: var(--muted);
}
.card .price {
  font-size: clamp(22px, calc(28px * var(--scale)), 36px);
  font-weight: 600;
  color: var(--text);
}
.card .link {
  margin-top: var(--px-8);
  text-decoration: none;
  color: var(--primary);
}
.card .link:hover {
  color: var(--primary-600);
}
.card.highlight {
  border-color: var(--primary);
  box-shadow: 0 10px 24px rgba(220, 186, 178, 0.25);
}

/* Schedule */
.muted {
  color: var(--muted);
}

.section-cta {
  margin-top: var(--px-32);
  text-align: center;
  display: grid;
  gap: var(--px-14);
  justify-items: center;
}

/* Services tiles */
.service-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(520px, 100%), 1fr));
  gap: clamp(var(--px-16), 2vw, var(--px-24));
}
.service-tile {
  position: relative;
  height: clamp(420px, 50vw, 641px);
  border-radius: var(--r-14);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  align-items: flex-end;
  padding: var(--px-24);
  width: 100%;
  border: 0;
  cursor: pointer;
  text-align: left;
  box-shadow:
    0px 20px 25px -5px rgba(0, 0, 0, 0.1),
    0px 8px 10px -6px rgba(0, 0, 0, 0.08);
}
.service-tile:focus-visible {
  outline: none;
  box-shadow:
    0px 20px 25px -5px rgba(0, 0, 0, 0.1),
    0px 8px 10px -6px rgba(0, 0, 0, 0.08),
    0 0 0 4px rgba(220, 186, 178, 0.35);
}
.service-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.55)),
    var(--tile-image) center / cover no-repeat;
  transform: scale(1.01);
}
.service-tile[data-tile='yoga'] {
  --tile-image: url('../assets/images/IMG_8.jpeg');
}
.service-tile[data-tile='terapias'] {
  --tile-image: url('../assets/images/IMG_11.jpeg');
}
.service-tile[data-tile='pilates'] {
  --tile-image: url('../assets/images/IMG_7.jpeg');
}
.service-tile h3 {
  position: relative;
  margin: 0;
  font-family: var(--font-heading, inherit);
  font-weight: 400;
  font-size: clamp(28px, calc(44px * var(--scale)), 64px);
  line-height: clamp(32px, calc(48px * var(--scale)), 72px);
  color: #fff;
  white-space: normal;
}
.service-nowrap {
  display: inline-flex;
  gap: 0.35em;
  align-items: baseline;
  white-space: nowrap;
}
.service-tile .amp {
  opacity: 0.95;
  display: inline;
}
.accent {
  color: var(--accent);
}

.service-arrow {
  width: 22px;
  height: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.95;
  flex: 0 0 auto;
}
.service-arrow::before {
  content: '';
  width: 6px;
  height: 10px;
  display: block;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%, 18% 50%);
}

/* Visually-hidden helper */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .section.reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn {
    transition: none;
  }
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(var(--px-16), 2vw, var(--px-24));
}
.team-card {
  border: 1px solid var(--border);
  border-radius: var(--r-14);
  background: var(--bg);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.06);
}
.team-photo {
  height: clamp(220px, 26vw, 280px);
  background: center / cover no-repeat;
}
.team-body {
  padding: var(--px-18);
}
.team-body h3 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(18px, calc(20px * var(--scale)), 24px);
  line-height: clamp(24px, calc(27px * var(--scale)), 32px);
}
.team-body .role {
  margin: calc(4px * var(--scale)) 0 0;
  color: var(--muted);
  font-size: clamp(14px, calc(16px * var(--scale)), 18px);
}
.team-body p {
  margin: var(--px-10) 0 0;
  color: var(--muted);
}

/* Schedule grid */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(var(--px-12), 1.2vw, var(--px-20));
  align-items: start;
}
.day {
  border: 1px solid var(--border);
  border-radius: var(--r-14);
  background: var(--bg);
  padding: var(--px-14);
}
.day h3 {
  margin: 0 0 var(--px-12);
  font-weight: 500;
  font-size: clamp(16px, calc(18px * var(--scale)), 22px);
}
.slots {
  display: grid;
  gap: var(--px-10);
}
.slot {
  border: 1px solid var(--border);
  border-radius: var(--r-12);
  padding: var(--px-12);
  background: #fff;
  display: grid;
  gap: calc(4px * var(--scale));
}
.slot .time {
  font-size: clamp(12px, calc(14px * var(--scale)), 16px);
  line-height: clamp(18px, calc(20px * var(--scale)), 22px);
  color: var(--muted);
}
.slot .name {
  font-size: clamp(14px, calc(16px * var(--scale)), 18px);
  line-height: clamp(18px, calc(23px * var(--scale)), 28px);
  color: var(--text);
}
.tag {
  justify-self: start;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 8px;
  border-radius: 999px;
}
.tag.surya {
  background: rgba(178, 255, 85, 0.25);
  color: #2f6b00;
}
.tag.chandra {
  background: rgba(220, 186, 178, 0.28);
  color: var(--primary-600);
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(var(--px-16), 3vw, var(--px-40));
  align-items: start;
}
.contact-form {
  display: grid;
  gap: var(--px-14);
  max-width: none;
}
.form-row {
  display: grid;
  gap: var(--px-8);
}
label {
  font-weight: 400;
  color: #364153;
}
input,
textarea {
  padding: var(--px-12) var(--px-14);
  border: 1px solid var(--border);
  border-radius: var(--r-10);
  font: inherit;
  background: #fff;
}
input:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(220, 186, 178, 0.25);
}
.form-actions {
  margin-top: calc(6px * var(--scale));
}

.contact-info {
  display: grid;
  gap: var(--px-20);
}
.info-block {
  border: 1px solid var(--border);
  border-radius: var(--r-14);
  background: var(--bg);
  padding: var(--px-18);
}
.info-block h3 {
  margin: 0 0 var(--px-12);
  font-weight: 500;
  font-size: clamp(16px, calc(18px * var(--scale)), 22px);
}
.info-title {
  margin: var(--px-12) 0 0;
  font-weight: 500;
  color: var(--text);
}
.info-text {
  margin: calc(4px * var(--scale)) 0 0;
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  padding: var(--px-40) 0;
  text-align: center;
  display: grid;
  gap: calc(8px * var(--scale));
}
.footer-brand {
  margin: 0;
  color: var(--muted);
  font-size: clamp(12px, calc(14px * var(--scale)), 16px);
  letter-spacing: 0.04em;
}
.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: clamp(12px, calc(14px * var(--scale)), 16px);
}

/* Responsive */
@media (max-width: 960px) {
  .grid.cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid.cards.pricing {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .schedule-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .studio {
    grid-template-columns: 1fr;
  }
  .practice {
    grid-template-columns: 1fr;
  }
  .studio-copy h2 {
    text-align: center;
  }
}
@media (max-width: 640px) {
  .grid.cards,
  .grid.cards.pricing {
    grid-template-columns: 1fr;
  }
  .service-tiles {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .schedule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav-menu {
    position: absolute;
    right: 0;
    top: calc(100% + var(--px-8));
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-12);
    padding: var(--px-10);
    flex-direction: column;
    gap: var(--px-8);
    min-width: clamp(200px, calc(200px * var(--scale)), 280px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    display: none;
  }
  .nav-menu.open {
    display: flex;
  }
}
