/* extras.css — additions for the home page and the content pages.
   Loaded AFTER styles.css. NOT loaded by the Mariana booking pages
   (schedule.html, pricing.html, login.html), so nothing here can affect them. */

/* ---------- Home hero photo: the arched studio interior (replaces the exterior set in styles.css) ---------- */
.hero-photo{background-image:url('img/img04.jpg');background-position:center 34%}

/* ---------- Home hero: primary booking button ---------- */
.hero-book{background:var(--clay);color:#23231E;box-shadow:0 14px 34px -14px rgba(0,0,0,.6)}
.hero-book:hover{background:var(--cream);color:var(--bark);transform:translateY(-2px)}

/* ---------- Home: team photo links to the instructor videos on the About page ---------- */
.figure-link{display:block}
.figure-pill{position:absolute;left:50%;bottom:1.5rem;transform:translateX(-50%);display:inline-flex;align-items:center;gap:.6rem;white-space:nowrap;background:rgba(35,35,30,.84);color:#FAFAFA;font-size:.62rem;font-weight:600;letter-spacing:.18em;text-transform:uppercase;padding:.85rem 1.4rem;border-radius:100px;transition:background .3s,color .3s}
.figure-pill svg{width:13px;height:13px;fill:currentColor;flex:none}
.figure-link:hover .figure-pill{background:var(--clay);color:#23231E}
#team{scroll-margin-top:calc(var(--bar-h,40px) + 70px)}

/* ---------- Home: intro offers ---------- */
.intro-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem;max-width:820px;margin:2.8rem auto 0}
.intro-card{display:flex;flex-direction:column;align-items:center;text-align:center;background:var(--linen);border:1px solid rgba(35,35,30,.28);border-radius:clamp(28px,4vw,44px) clamp(28px,4vw,44px) 8px 8px;padding:2.4rem 2rem 2.1rem;transition:transform .35s cubic-bezier(.16,1,.3,1),box-shadow .35s,border-color .35s}
.intro-card:hover{transform:translateY(-4px);box-shadow:var(--shadow);border-color:var(--clay)}
.intro-card-feat{border-color:var(--clay)}
.intro-tag{font-size:.6rem;font-weight:700;letter-spacing:.22em;text-transform:uppercase;color:var(--clay);margin-bottom:.9rem}
.intro-card h3{font-size:clamp(1.6rem,2.6vw,2rem);margin:0}
.intro-price{font-family:'Manrope','Nunito Sans',system-ui,sans-serif;font-size:2.6rem;font-weight:600;letter-spacing:-.01em;color:var(--bark);line-height:1;margin:.9rem 0 1rem}
.intro-card p{font-size:.92rem;font-weight:300;color:var(--bark-soft);max-width:30ch;margin:0 0 1.5rem}
.intro-card .link-arrow{margin-top:auto}
.intro-note{margin-top:1.8rem;font-size:.86rem}
.intro-note a{color:var(--clay);font-weight:600;white-space:nowrap}

/* ---------- Home: class formats teaser ---------- */
.fmt-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin-top:2.8rem}
.fmt-card{display:flex;flex-direction:column;justify-content:space-between;gap:1.6rem;min-height:132px;background:var(--cream);border:1px solid rgba(35,35,30,.28);border-radius:6px;padding:1.4rem 1.3rem;transition:transform .3s ease,border-color .3s ease,box-shadow .3s ease}
.fmt-card:hover{transform:translateY(-3px);border-color:var(--clay);box-shadow:var(--shadow-sm)}
.fmt-name{font-family:'Saol Display','Cormorant Garamond',serif;font-size:clamp(1.35rem,2vw,1.7rem);font-weight:300;line-height:1;letter-spacing:.04em;text-transform:uppercase;color:var(--clay)}
.fmt-name em{font-style:italic;color:var(--bark-soft)}
.fmt-tag{font-size:.6rem;font-weight:600;letter-spacing:.18em;text-transform:uppercase;color:var(--bark-soft)}
.fmt-all{background:var(--bark);border-color:var(--bark);justify-content:center;align-items:center;text-align:center;font-size:.7rem;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--cream)}
.fmt-all:hover{background:var(--clay);border-color:var(--clay);color:#23231E}

/* ---------- Home: find us ---------- */
.findus-grid{display:grid;grid-template-columns:1fr 1.05fr;gap:4rem;align-items:center}
.findus-grid .map-wrap{margin-top:0}
.findus-grid .map-wrap iframe{height:440px}
.findus-grid .info-block a{color:var(--clay);font-weight:500}
.findus-actions{display:flex;flex-wrap:wrap;align-items:center;gap:1.6rem;margin-top:2.2rem}

/* ---------- Email sign-up + waitlist forms ---------- */
.signup-form{display:flex;gap:.7rem;max-width:520px;margin:2rem auto 0}
.signup-form input[type=email]{flex:1;min-width:0;background:var(--cream);border:1px solid rgba(35,35,30,.4);border-radius:50px;padding:.9rem 1.4rem;font-family:'Manrope','Nunito Sans',system-ui,sans-serif;font-size:.95rem;color:var(--bark)}
.signup-form input[type=email]:focus{outline:none;border-color:var(--clay)}
.signup .form-msg,.waitlist .form-msg{max-width:520px;margin:1.6rem auto 0;text-align:center}
.form-msg.show{background:var(--cream);border-color:var(--clay);color:var(--bark)}
.waitlist-form{max-width:520px;margin:2.2rem auto 0;text-align:left}
.waitlist-form select{width:100%;background:var(--cream);border:1px solid rgba(35,35,30,.4);border-radius:4px;padding:.9rem 1rem;font-family:'Manrope','Nunito Sans',system-ui,sans-serif;font-size:.95rem;color:var(--bark);-webkit-appearance:none;appearance:none}
.waitlist-form select:focus{outline:none;border-color:var(--clay)}
.halo-form button[disabled]{opacity:.6;cursor:default}
#waitlist{scroll-margin-top:calc(var(--bar-h,40px) + 64px)}

/* ---------- Responsive ---------- */
@media(max-width:980px){
  .fmt-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .findus-grid{grid-template-columns:1fr;gap:2.6rem}
  .findus-grid .map-wrap iframe{height:340px}
}
@media(max-width:760px){
  /* phones already have the fixed "Book a class" bar, so the hero button would be a duplicate;
     lift the hero text clear of that bar instead */
  .hero-book{display:none}
  .hero-content{padding-bottom:calc(5.8rem + env(safe-area-inset-bottom,0px))}
}
@media(max-width:640px){
  .figure-pill{font-size:.56rem;letter-spacing:.14em;padding:.75rem 1.1rem;bottom:1.1rem}
  .intro-grid{grid-template-columns:1fr;max-width:420px}
  .fmt-card{min-height:112px;padding:1.2rem 1rem}
  .signup-form{flex-direction:column}
  .signup-form .btn{width:100%}
}

/* ---------- Soft cross-fade when moving between pages (home + content pages; the booking pages do not load this file) ---------- */
@view-transition{navigation:auto}
::view-transition-old(root),::view-transition-new(root){animation-duration:.36s;animation-timing-function:ease}
@media(prefers-reduced-motion:reduce){
  ::view-transition-old(root),::view-transition-new(root){animation:none}
}

/* ---------- The logo intro plays once per visit (class set by a small script in index.html) ---------- */
.no-intro .loader{display:none}

/* ---------- "Page not found" buttons ---------- */
.nf-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:1.4rem 2rem;margin-top:2.4rem}

/* ---------- Small labels, a touch larger for easier reading (same brand colours) ---------- */
.eyebrow{font-size:.74rem}
.hero-eyebrow,.promo-eyebrow,.i-role,.gallery-cue,.intro-tag{font-size:.7rem}
.footer-col h5,.i-hint-top,.recog-cap,.member .role{font-size:.72rem}
.form-field label{font-size:.74rem}
.acc-tag-sm,.fmt-tag,.figure-pill{font-size:.66rem}
@media(max-width:640px){
  .figure-pill{font-size:.6rem}
}

/* ---------- Home: sections on the dark brand colour (intro offers, reviews) ---------- */
.on-dark .h-lg{color:var(--cream)}
.on-dark .h-lg em{color:var(--clay)}
.on-dark .eyebrow{color:var(--clay)}
.on-dark .lead,.on-dark .muted{color:rgba(250,250,250,.82)}
.on-dark .divider{background:var(--clay)}
.intro.on-dark .intro-note a{color:var(--clay)}
.reviews.on-dark .rail-nav button{border-color:rgba(250,250,250,.4);color:var(--cream)}
.reviews.on-dark .rail-nav button:hover{background:var(--clay);border-color:var(--clay);color:#23231E}
.reviews.on-dark .review-rail::-webkit-scrollbar-thumb{background:rgba(145,128,83,.7)}
/* reviews and "Recognized" are now different colours, so each needs its own breathing room */
.section.reviews.on-dark{padding-bottom:clamp(3.5rem,7vw,5rem)}
.section.recognized{padding-top:clamp(3.5rem,7vw,5.5rem)}

/* ================= Movement & flow (home + content pages; the booking pages do not load this file) ================= */

/* Home hero: sized to the phone's small-screen height, so it no longer grows and shrinks while the
   browser's address bar slides away (that made the whole page jump as you started to scroll) */
.hero{height:100vh;height:100svh}

/* First visit: the hero headline waits under the logo intro, then rises in as the logo lifts
   (before, it played hidden underneath the logo and was already finished) */
html:not(.no-intro):not(.intro-done) .hero-eyebrow,
html:not(.no-intro):not(.intro-done) .hero-title,
html:not(.no-intro):not(.intro-done) .hero-actions{animation-play-state:paused}

/* Scroll-in reveal, played as an animation instead of a transition so it never fights an element's
   own hover effect (cards used to pop in without fading, and buttons answered hover slowly) */
.reveal{transform:none}
.reveal.visible{animation:haloRise .9s cubic-bezier(.16,1,.3,1) backwards}
@keyframes haloRise{from{opacity:0;translate:0 26px}to{opacity:1;translate:0 0}}
.d1,.d2,.d3,.d4,.d5,.d6{transition-delay:0s}
.reveal.visible.d1{animation-delay:.08s}.reveal.visible.d2{animation-delay:.16s}.reveal.visible.d3{animation-delay:.24s}
.reveal.visible.d4{animation-delay:.32s}.reveal.visible.d5{animation-delay:.4s}.reveal.visible.d6{animation-delay:.48s}
.btn.reveal{transition:transform .25s ease,background .25s ease,color .25s ease,border-color .25s ease,box-shadow .25s ease}
/* page titles keep their own unfurl */
.page-head .h-xl.reveal.visible{animation:none}
.page-head .h-xl.reveal.d1{transition-delay:.08s}

@media(max-width:760px){
  /* phones: a shorter, quicker rise, and stacked items no longer wait on a side-by-side stagger */
  .reveal.visible{animation-name:haloRiseSm;animation-duration:.7s}
  .reveal.visible.d1,.reveal.visible.d2,.reveal.visible.d3,.reveal.visible.d4,.reveal.visible.d5,.reveal.visible.d6{animation-delay:.05s}
  /* the phone booking bar is almost solid, so the costly blur behind it was invisible but slowed scrolling */
  .mobile-bar{-webkit-backdrop-filter:none;backdrop-filter:none}
}
@keyframes haloRiseSm{from{opacity:0;translate:0 16px}to{opacity:1;translate:0 0}}

@media(prefers-reduced-motion:reduce){
  .reveal.visible{animation:none}
  html:not(.no-intro):not(.intro-done) .hero-eyebrow,
  html:not(.no-intro):not(.intro-done) .hero-title,
  html:not(.no-intro):not(.intro-done) .hero-actions{animation-play-state:running}
}
