/* ==========================================================================
   REAL REFORMER — Design System
   Editorial premium meets boutique performance studio.
   ========================================================================== */

:root {
  --cream:        #F4EFE6;
  --cream-deep:   #EAE1D2;
  --paper:        #FBF8F3;
  --ink:          #201C18;
  --ink-soft:     #4A443E;
  --ink-faint:    #7A7268;
  --brass:        #A9814C;
  --brass-light:  #D8B77F;
  --brass-glow:   rgba(216, 183, 127, 0.35);
  --burgundy:     #5C2430;
  --line:         rgba(32, 28, 24, 0.14);
  --line-soft:    rgba(32, 28, 24, 0.08);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1240px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --banner-h: 44px;
}

@media (max-width: 640px) {
  :root { --banner-h: 40px; }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 5.6vw, 5rem); font-weight: 440; }
h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }

p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.1em;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--brass);
  display: inline-block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

section { position: relative; }

.section-pad { padding: 76px 0; }
@media (max-width: 780px) {
  .section-pad { padding: 52px 0; }
}
.section-pad-sm { padding: 48px 0; }
@media (max-width: 780px) {
  .section-pad-sm { padding: 36px 0; }
}

.bg-deep { background: var(--cream-deep); }
.bg-ink { background: var(--ink); color: var(--paper); }
.bg-ink p { color: rgba(251, 248, 243, 0.72); }
.bg-ink h2, .bg-ink h3 { color: var(--paper); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 34px;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.35s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--burgundy); }
.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(251, 248, 243, 0.4);
}
.btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-sm { padding: 12px 24px; font-size: 0.76rem; }

/* ---------- Top offer banner ---------- */
.top-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--banner-h);
  z-index: 601;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 16px;
}
.top-banner p {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--paper);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-banner strong { color: var(--brass-light); }
@media (max-width: 640px) {
  .top-banner p { font-size: 0.66rem; letter-spacing: 0.03em; }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: var(--banner-h); left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: rgba(244, 239, 230, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.01em;
}
.brand img { height: 30px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 34px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 1px;
  background: var(--brass);
  transition: width 0.3s var(--ease);
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--brass); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 600;
}
.nav-toggle span {
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  transition: all 0.3s var(--ease);
}

@media (max-width: 940px) {
  .main-nav {
    position: fixed;
    top: var(--banner-h);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--banner-h));
    height: calc(100dvh - var(--banner-h));
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transform: translateY(-2000px);
    transition: transform 0.45s var(--ease);
    z-index: 550;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; align-items: center; gap: 26px; }
  .main-nav ul a { font-size: 1.1rem; }
  .nav-toggle { display: flex; }
  .main-nav .btn { margin-top: 10px; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--banner-h) + 64px);
}
.hero-media {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-media .hero-img {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
}
.hero-media .hero-img-old { z-index: 1; }
.hero-media .hero-img-new { z-index: 2; }
.hero-media::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 3;
  background: linear-gradient(180deg, rgba(20,17,14,0.35) 0%, rgba(20,17,14,0.15) 35%, rgba(20,17,14,0.78) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  color: var(--paper);
  padding: 0 32px 56px;
  max-width: 900px;
}
.hero-content .eyebrow { color: var(--brass-light); }
.hero-content .eyebrow::before { background: var(--brass-light); }
.hero-content h1 { color: var(--paper); }
.hero-content p.lede {
  font-size: 1.15rem;
  color: rgba(251, 248, 243, 0.86);
  max-width: 620px;
  margin-bottom: 2.1em;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Cards / Grids ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; gap: 28px; }
  .grid-2 { grid-template-columns: 1fr; gap: 28px; }
}

.diff-card { border-top: 1px solid var(--line); padding-top: 20px; }
.diff-card .num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--brass);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  display: block;
}

.audience-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 28px 26px;
  height: 100%;
}
.audience-card h3 { margin-bottom: 0.5em; }

.step {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: none; }
.step .step-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--brass);
  min-width: 48px;
}

/* ---------- Class / pricing cards ---------- */
.class-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.class-card:hover { border-color: var(--brass); transform: translateY(-3px); }
.class-card .meta {
  display: flex;
  gap: 14px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}
.class-card .price {
  font-family: var(--font-display);
  font-size: 1.9rem;
  margin-top: auto;
  padding-top: 10px;
}
.class-card .price small {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 6px;
}
.class-card.is-best { border-color: var(--brass); border-width: 2px; }

/* ---------- Badges ---------- */
.badge-best {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brass);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 2px;
  white-space: nowrap;
}

/* ---------- Brand strap (recurring tagline device) ---------- */
.brand-strap {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  font-weight: 440;
  color: var(--ink);
  letter-spacing: 0.005em;
  margin: 0;
}
.bg-ink .brand-strap, .bg-deep .brand-strap { color: inherit; }
.brand-strap .accent { color: var(--brass); }
.bg-ink .brand-strap .accent { color: var(--brass-light); }

/* ---------- Offer band (beginner entry offer) ---------- */
.offer-band {
  background: var(--burgundy);
  color: var(--paper);
  padding: 40px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.offer-band .offer-copy .eyebrow { color: var(--brass-light); }
.offer-band .offer-copy .eyebrow::before { background: var(--brass-light); }
.offer-band .offer-copy h3 { color: var(--paper); margin-bottom: 0.2em; }
.offer-band .offer-copy p { color: rgba(251, 248, 243, 0.8); margin-bottom: 0; }
.offer-band .offer-price {
  text-align: center;
  flex-shrink: 0;
}
.offer-band .offer-price .amount {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1;
  color: var(--paper);
}
.offer-band .offer-price .save {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass-light);
}
@media (max-width: 720px) {
  .offer-band { padding: 32px 26px; flex-direction: column; text-align: center; }
}

/* ---------- Pricing comparison table ---------- */
.price-table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.price-table { width: 100%; border-collapse: collapse; min-width: 560px; background: var(--paper); }
.price-table th, .price-table td {
  padding: 20px 24px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.price-table th {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  background: var(--cream-deep);
}
.price-table td { font-size: 0.98rem; }
.price-table td .term { font-family: var(--font-display); font-size: 1.15rem; }
.price-table td .per-class { display: block; font-size: 0.78rem; color: var(--ink-faint); margin-top: 4px; }
.price-table tr:last-child td { border-bottom: none; }
.price-table td.is-best { background: rgba(169, 129, 76, 0.09); position: relative; }
.price-table .badge-best { position: static; transform: none; display: inline-block; margin-bottom: 6px; }

/* ---------- Quote / testimonial ---------- */
.quote-block {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.quote-block .mark {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--brass);
  line-height: 1;
  margin-bottom: 0.1em;
}
.quote-block blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 0.7em;
  line-height: 1.35;
}
.quote-block cite {
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- Image + text feature ---------- */
.feature-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
}
.feature-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Trust strip ---------- */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 30px 0;
}
.trust-strip .item {
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}
.trust-strip .item::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brass);
  display: inline-block;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(251, 248, 243, 0.7);
  padding: 56px 0 28px;
}
.footer-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  color: var(--paper);
  margin-bottom: 14px;
}
.footer-tagline .accent { color: var(--brass-light); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(251, 248, 243, 0.14);
}
.footer-grid h4 {
  color: var(--paper);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 22px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 12px; }
.footer-grid a:hover { color: var(--brass-light); }
.footer-brand img { height: 32px; margin-bottom: 18px; }
.footer-brand p { max-width: 320px; font-size: 0.92rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: 0.78rem;
  color: rgba(251, 248, 243, 0.45);
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: calc(var(--banner-h) + 128px) 0 56px;
  background: var(--cream-deep);
  border-bottom: 1px solid var(--line);
}
.page-hero .lede { max-width: 640px; font-size: 1.08rem; }
@media (max-width: 780px) {
  .page-hero { padding: calc(var(--banner-h) + 96px) 0 40px; }
}

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-0 { margin-bottom: 0 !important; }
.small-caps {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.divider {
  height: 1px;
  background: var(--line);
  border: none;
  margin: 0;
}
.tag {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--line);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- FAQ accordion ---------- */
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
}
.faq-q .plus {
  font-family: var(--font-body);
  font-size: 1.4rem;
  color: var(--brass);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.faq-a p { padding-bottom: 26px; max-width: 700px; }

/* ---------- Contact form ---------- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  border-radius: var(--radius);
  transition: border-color 0.3s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--brass);
}
.map-embed {
  border: 1px solid var(--line);
  overflow: hidden;
  filter: grayscale(0.35) contrast(1.05);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- 404 ---------- */
.error-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--banner-h) + 96px) 32px 64px;
}
.error-page .big {
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 10rem);
  color: var(--brass);
  line-height: 1;
  margin-bottom: 0.2em;
}

/* ---------- Cookie Notice ---------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 999;
  max-width: 560px;
  margin: 0 auto;
  background: var(--ink);
  color: var(--cream);
  border-radius: 10px;
  padding: 20px 22px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.28);
  display: none;
  gap: 14px;
  flex-direction: column;
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(244, 239, 230, 0.88);
}
.cookie-banner a { text-decoration: underline; color: var(--cream); }
.cookie-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner .btn { padding: 10px 18px; font-size: 0.85rem; }
