/* Hava Pilates public site — mobile-first on purpose. Every rule below is
   written for a ~320px phone first; wider layouts are additions via
   min-width media queries, never the other way round. Headings use fixed
   rem sizes per breakpoint tier rather than fluid clamp(), so there is no
   risk of a "floor" that's still too large on the narrowest phones. */

:root {
  --green: #2A4124; --cream: #F7F3EC; --sand: #EFE8DC;
  --clay: #A4553A; --clay-dark: #8C4630; --ink: #1C2A1A; --muted: #5A6856;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  line-height: 1.6; font-size: 16px; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--clay); }
a:hover { color: var(--clay-dark); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; }

h1, h2, h3 { font-family: 'Cormorant Garamond', Georgia, serif; color: var(--green); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
@media (min-width: 640px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.35rem; }
}
@media (min-width: 1024px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.25rem; }
}

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .wrap { padding: 0 1.5rem; } }
.section { padding: 2.5rem 0; }
@media (min-width: 768px) { .section { padding: 4rem 0; } }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; font-weight: 700; color: var(--clay); }
.muted { color: var(--muted); }
.text-clay { color: var(--clay); }
.center { text-align: center; }
.bg-sand { background: var(--sand); }
.bg-green { background: var(--green); color: var(--cream); }
.bg-green h1, .bg-green h2, .bg-green h3 { color: var(--cream); }

/* Buttons: 44px minimum touch target everywhere, no exceptions */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: .6rem 1.35rem; border-radius: 999px;
  font-weight: 600; font-size: .92rem; text-decoration: none; border: 2px solid transparent;
  line-height: 1.2;
}
.btn-primary { background: var(--clay); color: #fff; }
.btn-primary:hover { background: var(--clay-dark); color: #fff; }
.btn-outline { border-color: var(--green); color: var(--green); }
.btn-outline:hover { background: var(--green); color: var(--cream); }
.btn-small { min-height: 38px; padding: .4rem 1rem; font-size: .85rem; }
.btn-block { width: 100%; }
@media (min-width: 480px) { .btn-block { width: auto; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247,243,236,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--sand); }
.site-header .bar { display: flex; align-items: center; gap: .75rem; padding: .5rem 0; }
.site-header .logo img { width: 42px; height: 42px; border-radius: 50%; }
.site-header nav.primary-nav { display: none; }
@media (min-width: 860px) {
  .site-header nav.primary-nav { display: flex; gap: 1.25rem; margin-left: 1rem; font-size: .92rem; font-weight: 500; }
}
.site-header .actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.lang-switch { display: flex; gap: .25rem; font-size: .8rem; font-weight: 700; }
.lang-switch a { padding: .3rem .55rem; border-radius: 999px; color: var(--green); }
.lang-switch a.active { background: var(--green); color: var(--cream); }
.header-book { display: none; }
@media (min-width: 480px) { .header-book { display: inline-flex; } }
.mobile-menu-toggle { display: inline-flex; }
@media (min-width: 860px) { .mobile-menu-toggle { display: none; } }
.mobile-menu-toggle summary { list-style: none; }
.mobile-menu-toggle summary::-webkit-details-marker { display: none; }
.mobile-menu-panel {
  position: absolute; right: 1rem; top: calc(100% + .4rem); background: #fff;
  border-radius: 12px; box-shadow: 0 8px 24px rgba(28,42,26,.18); padding: .5rem;
  width: 15rem; max-width: calc(100vw - 2rem);
}
.mobile-menu-panel a { display: block; padding: .7rem .75rem; border-radius: 8px; font-weight: 500; color: var(--ink); text-decoration: none; }
.mobile-menu-panel a:hover { background: var(--sand); }

/* Hero */
.hero { display: flex; flex-direction: column; gap: 2rem; align-items: center; }
@media (min-width: 860px) { .hero { flex-direction: row; align-items: center; } }
.hero-copy { text-align: center; }
@media (min-width: 860px) { .hero-copy { text-align: left; flex: 1.2; } }
.hero-copy p { max-width: 34rem; margin: 1.1rem auto; color: var(--muted); font-size: 1.05rem; }
@media (min-width: 860px) { .hero-copy p { margin: 1.1rem 0; } }
.hero-actions { display: flex; flex-direction: column; gap: .75rem; align-items: stretch; margin-top: 1.5rem; }
@media (min-width: 480px) { .hero-actions { flex-direction: row; align-items: center; justify-content: center; } }
@media (min-width: 860px) { .hero-actions { justify-content: flex-start; } }
.hero-image { width: 100%; max-width: 20rem; margin: 0 auto; }
@media (min-width: 860px) { .hero-image { flex: 1; max-width: 24rem; } }
.hero-image img { border-radius: 50%; }

/* Card grids */
.grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border-radius: 12px; padding: 1.35rem; box-shadow: 0 1px 3px rgba(28,42,26,.1); }
.card h3 { margin-bottom: .4rem; }

/* Numbered steps */
.steps { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.steps li { display: flex; gap: 1rem; align-items: flex-start; }
.step-num {
  flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--green); color: var(--cream);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}

/* Packages */
.package-price { font-size: 1.7rem; font-weight: 700; color: var(--clay); margin: .25rem 0; }
.package-meta { font-size: .85rem; color: var(--muted); margin-bottom: .75rem; }

/* Schedule — mobile-first STACKED layout; only becomes a row at wider widths,
   so nothing has to wrap awkwardly on a narrow phone. */
.day-group { margin-bottom: 1.5rem; }
.day-group h3 { margin-bottom: .5rem; }
.class-list { list-style: none; margin: 0; padding: 0; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 1px 3px rgba(28,42,26,.1); }
.class-item {
  display: flex; flex-direction: column; gap: .35rem;
  padding: .9rem 1rem; border-bottom: 1px solid var(--sand);
}
.class-item:last-child { border-bottom: none; }
.class-item .time { font-weight: 700; }
.class-item .what { color: var(--ink); }
.class-item .who { display: block; font-size: .85rem; color: var(--muted); }
.class-item .status { font-size: .85rem; font-weight: 700; }
.class-item .status.full { color: var(--clay); }
.class-item .status.open { color: var(--green); }
.class-item .book-btn { align-self: flex-start; }
@media (min-width: 560px) {
  .class-item {
    flex-direction: row; align-items: center; gap: 1rem;
  }
  .class-item .time { width: 4.5rem; flex: none; }
  .class-item .what { flex: 1; min-width: 0; }
  .class-item .status { flex: none; }
  .class-item .book-btn { align-self: auto; flex: none; }
}

/* Instructors */
.instructor-avatar { width: 4.5rem; height: 4.5rem; border-radius: 50%; object-fit: cover; background: var(--green); color: var(--cream); display: flex; align-items: center; justify-content: center; font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; }
.instructor-level { font-size: .85rem; font-weight: 700; color: var(--clay); }

/* FAQ */
.faq-list { border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 1px 3px rgba(28,42,26,.1); }
.faq-list details { border-bottom: 1px solid var(--sand); padding: 1rem; }
.faq-list details:last-child { border-bottom: none; }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; cursor: pointer; font-weight: 600; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; color: var(--clay); font-size: 1.3rem; flex: none; transition: transform .15s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p { margin: .75rem 0 0; color: var(--muted); }

/* Footer */
.site-footer { background: var(--green); color: var(--cream); }
.footer-grid { display: grid; gap: 2rem; padding: 3rem 0; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-grid a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 1rem 0; text-align: center; font-size: .85rem; opacity: .75; }

/* Forms (member login / booking) */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.form-input, select.form-input {
  width: 100%; padding: .65rem .8rem; border: 2px solid var(--sand); border-radius: 8px;
  font-size: 1rem; font-family: inherit; background: #fff; color: var(--ink); min-height: 44px;
}
.form-input:focus { outline: none; border-color: var(--green); }
.field-error { color: var(--clay); font-size: .85rem; margin-top: .3rem; }
.checkbox-field { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.1rem; font-size: .92rem; }
.checkbox-field input { width: 1.1rem; height: 1.1rem; }
.alert { padding: .85rem 1rem; border-radius: 8px; margin-bottom: 1.25rem; font-size: .92rem; }
.alert-success { background: #e8f0e6; color: var(--green); border: 1px solid #c9dbc5; }
.alert-error { background: #f6e9e5; color: var(--clay-dark); border: 1px solid #e8cfc6; }

/* Member area */
.account-bar { display: flex; align-items: center; gap: .5rem; }
.credit-list { list-style: none; margin: 0; padding: 0; }
.credit-list li { display: flex; justify-content: space-between; padding: .6rem 0; border-bottom: 1px solid var(--sand); }
.credit-list li:last-child { border-bottom: none; }
.booking-list { list-style: none; margin: 0; padding: 0; }
.booking-item {
  display: flex; flex-direction: column; gap: .5rem; padding: .9rem 0; border-bottom: 1px solid var(--sand);
}
.booking-item:last-child { border-bottom: none; }
.booking-item .when { font-weight: 700; }
.booking-item .who { color: var(--muted); font-size: .9rem; }
.book-row { display: flex; flex-direction: column; gap: .6rem; padding: 1rem 0; border-bottom: 1px solid var(--sand); }
.book-row:last-child { border-bottom: none; }
.book-row .what { font-weight: 600; }
.book-row .meta { color: var(--muted); font-size: .9rem; }
.inline-form { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.inline-form .form-input { width: auto; min-width: 9rem; }

/* Contact page */
.contact-block { margin-bottom: 1.5rem; }
.contact-block:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* Select2 on the public site: make it look like .form-input */
.select2-container { max-width: 100%; }
.select2-container--default .select2-selection--single {
  height: auto; min-height: 44px; border: 2px solid var(--sand); border-radius: 8px; background: #fff;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--ink); font-family: inherit; font-size: 1rem; line-height: 40px; padding-left: .8rem; padding-right: 2rem;
}
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 40px; right: .4rem; }
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single { border-color: var(--green); }
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background: var(--green); color: #fff; }
.select2-dropdown { border: 2px solid var(--green); border-radius: 8px; font-family: inherit; }
