/* ============================================================
   Bloom Yoga Studio — style.css
   Concept by De Villa Design
   Warm Byron Bay editorial: bronze gradient, gold accent,
   Cormorant Garamond (display) + Jost (body).
   ============================================================ */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/cormorant.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/cormorant-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("assets/jost.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --bg1: #3a2a1d;
  --bg2: #5a4330;
  --bg3: #8a6843;
  --gold: #d8b86a;
  --gold-bright: #e3c87f;
  --cream: #f3eeda;
  --cream-2: #efe9d6;
  --ink: #3a2a1c;

  --panel-a: rgba(42, 30, 20, 0.78);
  --panel-b: rgba(58, 42, 28, 0.72);
  --line: rgba(216, 184, 106, 0.26);
  --line-soft: rgba(216, 184, 106, 0.18);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max-w: 1180px;
  --radius: 6px;
  --pill: 100px;
}

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

html { scroll-behavior: smooth; background: var(--bg1); }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--cream-2);
  background: linear-gradient(145deg, #3a2a1d 0%, #5a4330 46%, #8a6843 100%) no-repeat;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }

::selection { background: rgba(216, 184, 106, 0.3); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -120%;
  left: 16px;
  z-index: 9999;
  background: var(--gold);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 0 0 8px 8px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 26px;
}

#home, #classes, #schedule, #pricing, #studio, #contact { scroll-margin-top: 76px; }

.eyebrow {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.h-serif {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--cream);
  line-height: 1.02;
  letter-spacing: 0.005em;
}

.guides { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--pill);
  padding: 15px 28px;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.btn:active { transform: translateY(0) scale(0.98); }

.btn-gold { color: var(--ink); background: var(--gold); }
.btn-gold:hover, .btn-gold:focus-visible { transform: translateY(-2px); background: var(--gold-bright); color: var(--ink); }

.btn-outline { color: var(--cream); background: transparent; border: 1px solid rgba(243, 238, 218, 0.45); }
.btn-outline:hover, .btn-outline:focus-visible { border-color: var(--gold); color: var(--cream); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding: 18px 26px;
  background: rgba(40, 28, 18, 0.5);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(216, 184, 106, 0.18);
}
.nav-inner {
  width: 100%;
  max-width: var(--max-w);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--gold);
  flex: none;
}
.brand span { color: var(--cream-2); }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  color: var(--cream-2);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
  transition: color 0.25s ease, opacity 0.25s ease;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--gold); opacity: 1; }
.nav-links .nav-book { display: none; }

.nav-cta { flex: none; font-size: 12.5px; padding: 12px 22px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gold);
  padding: 6px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero { max-width: var(--max-w); margin-inline: auto; padding: 14px 26px 0; }
.hero-panel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(216, 184, 106, 0.34);
  min-height: clamp(460px, 76vh, 720px);
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("assets/hero.webp") center 32% / cover no-repeat;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(40, 28, 18, 0.82) 0%, rgba(58, 42, 26, 0.5) 42%, rgba(58, 42, 26, 0.12) 70%);
}
.hero-content {
  position: relative;
  z-index: 3;
  padding: clamp(34px, 5vw, 72px);
  max-width: 640px;
}
.hero-content .eyebrow { letter-spacing: 0.32em; margin-bottom: 24px; display: block; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(52px, 8vw, 104px);
  line-height: 0.95;
  letter-spacing: 0.005em;
  color: var(--cream);
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-sub {
  margin-top: 26px;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.66;
  color: rgba(239, 233, 214, 0.82);
  max-width: 430px;
}
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
.section { max-width: var(--max-w); margin-inline: auto; }
.section-pad { padding: clamp(70px, 9vw, 120px) 26px; }

.offer-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.offer-head .eyebrow { display: block; margin-bottom: 16px; }
.offer-head h2 { font-size: clamp(34px, 5vw, 62px); }
.offer-head p {
  max-width: 340px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(239, 233, 214, 0.7);
}

/* ============================================================
   CLASSES
   ============================================================ */
.classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1px;
  background: rgba(216, 184, 106, 0.22);
  border: 1px solid rgba(216, 184, 106, 0.22);
}
.class-card {
  position: relative;
  background: linear-gradient(165deg, rgba(58, 42, 28, 0.72), rgba(42, 30, 20, 0.72));
  padding: 32px 30px 34px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  transition: background 0.35s ease;
}
.class-card:hover { background: linear-gradient(165deg, rgba(70, 52, 34, 0.82), rgba(50, 37, 24, 0.82)); }
.class-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.class-card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 27px;
  line-height: 1.1;
  color: var(--cream);
}
.class-tag {
  flex: none;
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(216, 184, 106, 0.4);
  padding: 5px 11px;
  border-radius: var(--pill);
}
.class-card p {
  font-size: 14.5px;
  line-height: 1.62;
  color: rgba(239, 233, 214, 0.72);
}
.class-photo { margin-top: auto; padding-top: 20px; }
.class-photo img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  filter: saturate(0.9);
}

/* ============================================================
   SCHEDULE
   ============================================================ */
.schedule { max-width: var(--max-w); margin-inline: auto; padding: 0 26px clamp(40px, 6vw, 80px); }
.schedule-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(42, 30, 20, 0.78), rgba(58, 42, 28, 0.72));
  padding: clamp(34px, 5vw, 60px);
}
.schedule-panel .inner { position: relative; }
.schedule-panel h2 { font-size: clamp(32px, 4.6vw, 56px); margin-bottom: 10px; }
.schedule-panel .eyebrow { display: block; margin-bottom: 16px; }
.schedule-intro { font-size: 14.5px; color: rgba(239, 233, 214, 0.66); margin-bottom: 34px; }

.sch-grid { font-size: 14px; }
.sch-row { display: grid; grid-template-columns: 90px 1.4fr 1fr 1.2fr; }
.sch-row.head > * {
  padding: 0 0 14px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.sch-row.head > *:not(:first-child),
.sch-row > .slot { padding-left: 16px; }
.sch-row .day {
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
  font-family: var(--serif);
  font-size: 22px;
  color: var(--gold);
}
.sch-row .slot {
  padding: 16px;
  border-top: 1px solid var(--line-soft);
  color: rgba(239, 233, 214, 0.82);
  line-height: 1.5;
}
.slot .label { display: none; }

/* ============================================================
   PRICING
   ============================================================ */
.pricing-head { text-align: center; max-width: 560px; margin: 0 auto 50px; }
.pricing-head .eyebrow { display: block; margin-bottom: 16px; }
.pricing-head h2 { font-size: clamp(34px, 5vw, 62px); }
.pricing-head p { margin-top: 14px; font-size: 15px; color: rgba(239, 233, 214, 0.7); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.price-card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid rgba(216, 184, 106, 0.22);
  background: linear-gradient(160deg, rgba(42, 30, 20, 0.6), rgba(58, 42, 28, 0.55));
  padding: 32px 28px 34px;
  display: flex;
  flex-direction: column;
}
.price-card.feature {
  border-color: rgba(216, 184, 106, 0.6);
  background: linear-gradient(160deg, rgba(216, 184, 106, 0.22), rgba(216, 184, 106, 0.08));
}
.price-tag {
  position: absolute;
  top: -11px;
  left: 28px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  padding: 5px 12px;
  border-radius: var(--pill);
}
.price-name { font-family: var(--serif); font-size: 23px; color: var(--cream); margin-bottom: 14px; }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.price-amount { font-family: var(--serif); font-size: 48px; font-weight: 600; color: var(--gold); line-height: 1; }
.price-unit { font-size: 13px; color: rgba(239, 233, 214, 0.6); }
.price-card p { font-size: 14px; line-height: 1.6; color: rgba(239, 233, 214, 0.7); margin-top: 10px; }
.price-card .btn {
  margin-top: 24px;
  width: 100%;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  padding: 13px;
  border: 1px solid rgba(216, 184, 106, 0.5);
  background: transparent;
  color: var(--cream);
}
.price-card .btn:hover { transform: translateY(-2px); border-color: var(--gold); }
.price-card.feature .btn { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.price-card.feature .btn:hover { background: var(--gold-bright); }

/* ============================================================
   STUDIO
   ============================================================ */
.studio { max-width: var(--max-w); margin-inline: auto; padding: clamp(40px, 6vw, 80px) 26px; }
.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.studio-img {
  position: relative;
  min-height: 440px;
  background: url("assets/studio.webp") center / cover no-repeat;
}
.studio-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(40, 28, 18, 0.3), transparent 60%);
}
.studio-copy {
  position: relative;
  background: linear-gradient(160deg, rgba(42, 30, 20, 0.85), rgba(58, 42, 28, 0.8));
  padding: clamp(34px, 4vw, 56px);
}
.studio-copy .inner { position: relative; }
.studio-copy .eyebrow { display: block; margin-bottom: 16px; }
.studio-copy h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.04; margin-bottom: 18px; }
.studio-copy > .inner > p {
  font-size: 15px;
  line-height: 1.64;
  color: rgba(239, 233, 214, 0.74);
  margin-bottom: 26px;
}
.features { display: flex; flex-direction: column; gap: 15px; }
.feature-row { display: flex; gap: 13px; align-items: flex-start; }
.feature-row .mark { flex: none; color: var(--gold); font-size: 15px; line-height: 1.5; }
.feature-row p { font-size: 14px; line-height: 1.55; color: rgba(239, 233, 214, 0.82); }

/* ============================================================
   TESTIMONIAL
   ============================================================ */
.testimonial { max-width: var(--max-w); margin-inline: auto; padding: clamp(30px, 5vw, 70px) 26px; }
.testimonial-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  min-height: 420px;
  display: flex;
  align-items: center;
}
.testimonial-bg {
  position: absolute;
  inset: 0;
  background: url("assets/beach.webp") center 40% / cover no-repeat;
  opacity: 0.5;
}
.testimonial-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(40, 28, 18, 0.9) 0%, rgba(58, 42, 28, 0.7) 50%, rgba(58, 42, 28, 0.5) 100%);
}
.testimonial-content { position: relative; z-index: 3; padding: clamp(36px, 5vw, 72px); max-width: 760px; }
.testimonial-mark { font-family: var(--serif); font-size: 90px; line-height: 0.4; color: var(--gold); height: 40px; }
.testimonial-content blockquote {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.3;
  color: var(--cream);
}
.testimonial-by {
  margin-top: 26px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact { max-width: var(--max-w); margin-inline: auto; padding: clamp(60px, 8vw, 110px) 26px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.contact-copy .eyebrow { display: block; margin-bottom: 16px; }
.contact-copy h2 { font-size: clamp(34px, 5vw, 60px); }
.contact-copy > p {
  margin-top: 18px;
  font-size: 15.5px;
  line-height: 1.64;
  color: rgba(239, 233, 214, 0.74);
  max-width: 430px;
}
.contact-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }
.contact-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(42, 30, 20, 0.7), rgba(58, 42, 28, 0.66));
  padding: 8px;
}
.contact-item { padding: 20px 24px; border-bottom: 1px solid rgba(216, 184, 106, 0.14); }
.contact-item:last-child { border-bottom: none; }
.contact-item .k {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 7px;
}
.contact-item .v { font-size: 15.5px; color: var(--cream); line-height: 1.5; }
.contact-item .v a:hover { color: var(--gold); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { border-top: 1px solid rgba(216, 184, 106, 0.2); margin-top: 20px; }
.footer-top {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 54px 26px 30px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand { max-width: 320px; }
.footer-brand .name { font-family: var(--serif); font-size: 34px; font-weight: 600; color: var(--gold); margin-bottom: 12px; }
.footer-brand .name span { color: var(--cream-2); }
.footer-brand p { font-size: 14px; line-height: 1.6; color: rgba(239, 233, 214, 0.62); }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-nav { display: flex; flex-direction: column; gap: 11px; }
.footer-nav a {
  color: rgba(239, 233, 214, 0.8);
  font-size: 13.5px;
  font-weight: 300;
  transition: color 0.2s ease;
}
.footer-nav a:hover { color: var(--gold); }
.footer-meta { font-size: 13.5px; line-height: 1.9; color: rgba(239, 233, 214, 0.7); }
.footer-meta a:hover { color: var(--gold); }
.footer-bottom {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 20px 26px 40px;
  border-top: 1px solid rgba(216, 184, 106, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(239, 233, 214, 0.45);
}
.footer-bottom a { color: rgba(239, 233, 214, 0.6); }
.footer-bottom a:hover { color: var(--gold); }

/* ============================================================
   DEMO BADGE
   ============================================================ */
.demo-badge {
  position: fixed;
  bottom: 1.1rem;
  left: 1.1rem;
  z-index: 200;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  padding: 0.5rem 1rem;
  border-radius: var(--pill);
  box-shadow: 0 6px 20px rgba(20, 12, 6, 0.4);
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease;
}
.demo-badge:hover, .demo-badge:focus-visible { transform: translateY(-2px); background: var(--gold-bright); color: var(--ink); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 880px) {
  .studio-grid { grid-template-columns: 1fr; }
  .studio-img { min-height: 280px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 16px; right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px;
    background: rgba(40, 28, 18, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(216, 184, 106, 0.2);
    border-radius: 10px;
    box-shadow: 0 20px 44px rgba(20, 12, 6, 0.5);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 12px; opacity: 0.92; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-cta { display: none; }
  .nav-links .nav-book {
    display: block;
    margin-top: 8px;
    text-align: center;
    color: var(--ink);
    background: var(--gold);
    border-radius: var(--pill);
    padding: 13px;
    opacity: 1;
  }
}

@media (max-width: 680px) {
  .offer-head { display: block; }
  .offer-head p { margin-top: 16px; }

  /* Schedule -> stacked day blocks */
  .sch-row.head { display: none; }
  .sch-grid { display: flex; flex-direction: column; gap: 0; }
  .sch-row {
    display: block;
    padding: 18px 0 4px;
    border-top: 1px solid var(--line-soft);
  }
  .sch-row .day { border-top: none; padding: 0 0 10px; }
  .sch-row .slot {
    border-top: none;
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .slot .label {
    display: block;
    font-size: 10.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0.85;
  }
}

@media (max-width: 560px) {
  .hero { padding: 12px 12px 0; }
  .contact-actions .btn, .hero-actions .btn { width: 100%; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
