/* ==========================================================================
   Sandra Maiworm Pilates & Gyrotonic Studio — below-the-fold styles
   Reset, variables, buttons, header and hero live ONLY in the critical
   <style> block in index.html (they're needed for first paint); don't
   re-declare them here or the two copies drift and the hero jumps on load.
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.is-visible { opacity: 1; transform: translateY(0); }
}

.section { padding: 56px 0; }
@media (min-width: 768px) { .section { padding: 80px 0; } }
@media (min-width: 1280px) { .section { padding: 96px 0; } .container { padding-inline: 32px; } }
.section-head { max-width: 640px; margin-bottom: 40px; }
.eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: .08em;
  color: var(--accent-dark); font-weight: 600; margin-bottom: 10px;
}
.section-title { font-size: clamp(26px, 4vw, 36px); font-weight: 700; margin-bottom: 12px; }
.section-lead { color: var(--muted); font-size: 17px; }
.section-alt { background: var(--surface); }
.btn-block { width: 100%; }

/* ---------- About instructor (main weight section) ---------- */
.about-grid { display: grid; gap: 40px; }
.about-portrait { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/5; }
.about-portrait picture { display: block; width: 100%; height: 100%; }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
/* Background-removed portrait: keep the photo's own proportions, no frame */
.about-portrait--cutout { aspect-ratio: auto; box-shadow: none; border-radius: 0; max-width: 420px; margin-inline: auto; }
.about-portrait--cutout img { height: auto; object-fit: contain; }
.about-role { color: var(--accent-dark); font-weight: 600; margin-bottom: 18px; }
.about-bio p { color: var(--text); margin-bottom: 16px; }
.cred-list { display: grid; gap: 12px; margin-top: 24px; }
.cred-item {
  display: flex; gap: 12px; align-items: flex-start; background: var(--surface);
  padding: 16px 18px;
}
.cred-icon { flex: none; width: 22px; height: 22px; color: var(--accent-dark); margin-top: 2px; }
.cred-text strong { display: block; font-size: 15px; }
.cred-text span { color: var(--muted); font-size: 14px; }
.cred-text .cred-en { direction: ltr; unicode-bidi: isolate; color: inherit; font-size: inherit; }
.cred-subhead {
  margin: 14px 0 4px; font-size: 13px; font-weight: 600; letter-spacing: .04em;
  color: var(--accent-dark);
}
.cred-specs { display: grid; }
.cred-specs li { padding: 12px 0; border-top: 1px solid var(--line); }
.cred-specs li:last-child { padding-bottom: 0; }
.cred-text .cred-spec-name { display: block; color: var(--text); font-size: 14.5px; font-weight: 500; line-height: 1.5; }
.cred-text .cred-spec-desc { display: block; margin-top: 2px; line-height: 1.65; }

@media (min-width: 1024px) {
  /* Intro spans the full width; below it, text on the right (start, RTL)
     and the portrait on the left, top-aligned with the second paragraph */
  .about-grid { grid-template-columns: 1.2fr .8fr; align-items: start; row-gap: 8px; }
  .about-intro { grid-column: 1 / -1; }
  .about-main { grid-column: 1; grid-row: 2; }
  .about-grid .about-portrait { grid-column: 2; grid-row: 2; }
}

/* ---------- Method sections (Gyrotonic / Pilates) ---------- */
.method-logo { width: 56px; height: auto; display: block; margin-bottom: 16px; }
.method-grid { display: grid; gap: 36px; align-items: start; }
.method-block { margin-top: 24px; }
.method-grid > .method-block { margin-top: 0; }
.method-block h3 { font-size: 15px; font-weight: 600; letter-spacing: .02em; margin-bottom: 10px; }
.method-block p { color: var(--muted); font-size: 15px; line-height: 1.7; max-width: 52ch; }
.method-block p + p { margin-top: 14px; }
.benefit-list { display: grid; gap: 14px; list-style: none; padding: 0; margin: 0; max-width: 58ch; }
.benefit-list li {
  position: relative; padding-inline-start: 18px; color: var(--muted); font-size: 15px; line-height: 1.7;
}
.benefit-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .6em; width: 6px; height: 6px;
  background: var(--accent-dark);
}
.benefit-list li strong { color: var(--text); font-weight: 600; }
.method-more { margin-top: 28px; font-size: 15px; color: var(--muted); }
.method-more a { color: var(--accent-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.method-cta { margin-top: 24px; }

/* Gyrotonic + Pilates: sequence of full-width text blocks (.studio-copy) and
   two-column text+photo rows (.method-grid); spaced consistently top-to-bottom
   so the same order also reads correctly stacked on mobile. */
#gyrotonic .container > * + *, #pilates .container > * + * { margin-top: 40px; }
#gyrotonic .method-grid { align-items: center; }
.carousel-credit { font-size: 12px; color: var(--muted); text-align: center; }
.stacked-photo { flex: none; aspect-ratio: 1/1; overflow: hidden; }
.stacked-photo picture { display: block; width: 100%; height: 100%; }
.stacked-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pilates-photo-col { display: flex; flex-direction: column; gap: 12px; align-self: end; }
.pilates-equipment-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

/* Arrow buttons for the media-strip carousel (Studio section) */
.carousel-arrow {
  flex: none; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: none; background: transparent; color: var(--text); cursor: pointer;
  transition: color .2s ease;
}
.carousel-arrow svg { width: 18px; height: 18px; }
.carousel-arrow:hover { color: var(--accent-dark); }

@media (min-width: 1024px) { .method-grid { grid-template-columns: 1.1fr .9fr; } }

/* ---------- Studio (intro copy + equipment-carousel pattern, image side) ---------- */
.studio-copy { text-align: right; }
.studio-copy p { color: var(--muted); font-size: 15.5px; line-height: 1.75; margin-bottom: 16px; }
.studio-copy h3 { font-size: 17px; font-weight: 700; color: var(--text); margin: 32px 0 10px; }
.studio-copy h3:first-child { margin-top: 0; }
.studio-methods { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 16px; }
.studio-methods li {
  position: relative; padding-inline-start: 18px; color: var(--muted); font-size: 15.5px; line-height: 1.75;
}
.studio-methods li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .6em; width: 6px; height: 6px;
  background: var(--accent-dark);
}
.studio-methods li strong { color: var(--text); font-weight: 600; }
.studio-methods li a {
  display: inline-block; margin-inline-start: 4px; color: var(--accent-dark); font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px; white-space: nowrap;
}

/* Studio media strip — shows as many photos as fit the viewport width; arrows
   page through the rest (one item-width per click). Native touch/trackpad
   scrolling still works underneath as a bonus. */
.media-carousel { display: flex; align-items: center; gap: 6px; margin-top: 40px; }
.strip-viewport {
  flex: 1; min-width: 0; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity;
  scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.strip-viewport::-webkit-scrollbar { display: none; }
.strip-item {
  position: relative; overflow: hidden; flex: 0 0 68vw; max-width: 260px; aspect-ratio: 1/1;
  scroll-snap-align: start; background: var(--surface);
}
.strip-item img { width: 100%; height: 100%; object-fit: cover; }
/* Background-removed photos: show the whole figure, centered on the tile */
.strip-item--cutout picture { display: block; width: 100%; height: 100%; padding: 14px; }
.strip-item--cutout img { object-fit: contain; }
.strip-item a { position: relative; display: block; width: 100%; height: 100%; }
.strip-item a::after {
  content: "▶"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff; background: rgba(20,16,12,.28);
}
@media (min-width: 480px) { .strip-item { flex-basis: 45vw; } }
@media (min-width: 768px) { .strip-item { flex-basis: 30vw; } }
@media (min-width: 1024px) { .strip-item { flex-basis: 22vw; } }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.price-card {
  background: var(--surface); padding: 32px 26px 28px; display: flex; flex-direction: column;
  gap: 12px; position: relative; border-top: 1px solid var(--line);
}
.price-card.is-recommended { border-top-color: var(--accent-2); }
.price-badge {
  position: absolute; top: 0; right: 0; background: var(--accent-2-dark); color: #fff;
  font-size: 10px; font-weight: 600; letter-spacing: .05em; padding: 6px 12px;
}
.price-name { font-size: 16px; font-weight: 600; color: var(--text); }
.price-amount { font-size: 21px; font-weight: 500; color: var(--text); }
.price-amount span { font-size: 13px; font-weight: 400; color: var(--muted); }
.price-desc { color: var(--muted); font-size: 14px; line-height: 1.6; flex-grow: 1; }
.price-card.is-recommended .btn-primary {
  background: var(--accent-2-dark); border-color: var(--accent-2-dark);
}
.price-card.is-recommended .btn-primary:hover { background: #4a5a60; }
@media (min-width: 768px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pricing-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Contact / Booking ---------- */
.contact-grid { display: grid; gap: 32px; }
.contact-card {
  background: var(--surface); padding: 28px;
}
.whatsapp-cta { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.whatsapp-cta strong { display: block; font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.whatsapp-cta p { color: var(--muted); font-size: 14px; margin: 0; }
.whatsapp-icon-btn {
  display: inline-flex; flex: none; align-items: center; justify-content: center;
  width: 52px; height: 52px; border: 1.5px solid var(--accent-2); color: var(--accent-2);
  transition: background-color .2s ease, color .2s ease;
}
.whatsapp-icon-btn svg { width: 24px; height: 24px; }
.whatsapp-icon-btn:hover { background: var(--accent-2-dark); border-color: var(--accent-2-dark); color: #fff; }

.form-field { margin-bottom: 22px; }
.form-field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.required-mark { color: var(--accent-dark); }
.form-field input, .form-field textarea {
  width: 100%; padding: 10px 2px; border: none; border-bottom: 1px solid var(--line);
  background: transparent; font: inherit; color: var(--text); border-radius: 0;
}
.form-field input:focus, .form-field textarea:focus { border-bottom-color: var(--accent-dark); }
.form-field input:focus:not(:focus-visible), .form-field textarea:focus:not(:focus-visible) { outline: none; }
.form-field input:focus-visible, .form-field textarea:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 2px; }
.form-error { color: #B3261E; font-size: 13px; margin-top: 4px; display: none; }
.form-field.has-error input, .form-field.has-error textarea { border-bottom-color: #B3261E; }
.form-field.has-error .form-error { display: block; }
.form-consent { margin: 18px 0 0; }
.form-consent-row { display: flex; align-items: flex-start; gap: 10px; }
.form-consent input[type="checkbox"] {
  flex: none; width: 20px; height: 20px; margin: 2px 0 0; padding: 0;
  border: none; accent-color: var(--accent-dark); cursor: pointer;
}
.form-consent label { display: inline; font-weight: 400; font-size: 14px; margin: 0; cursor: pointer; }
.form-consent label a { color: var(--accent-dark); text-decoration: underline; }
.form-consent-hint { font-size: 13px; color: var(--muted); margin: 6px 30px 0 0; }
.form-consent .form-error { margin-right: 30px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 12px; }
.form-status { margin-top: 14px; font-size: 14.5px; font-weight: 600; display: none; }
.form-status.is-success { display: block; color: #1C6E3B; }
.form-status.is-error { display: block; color: #B3261E; }
/* honeypot field — hidden from real users, left in tab order trap for simple bots */
.hp-field { position: absolute; left: -9999px; top: -9999px; }

.contact-info { display: grid; gap: 14px; }
.contact-info a { text-decoration: none; }
.contact-address { font-style: normal; }
.map-frame { border: 0; width: 100%; aspect-ratio: 16/9; margin-top: 6px; }

@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* ---------- Footer ---------- */
.site-footer { padding: 36px 0; border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { text-decoration: none; color: var(--muted); font-size: 14px; }
.footer-note { color: var(--muted); font-size: 13px; }

/* ---------- Floating WhatsApp button (mobile) ---------- */
.wa-float {
  position: fixed; bottom: 20px; left: 20px; z-index: 90; width: 48px; height: 48px;
  background: transparent; border: 2px solid #1DA851; border-radius: 50%; color: #1DA851;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.wa-float svg { width: 26px; height: 26px; }
@media (min-width: 1024px) { .wa-float { display: none; } }
