/* css/variant-d.css */

/* ── COLOUR TOKENS ── */
body.variant-d {
  --ink:    #0A0A0A;
  --paper:  #F2EFE9;
  --red:    #E8190C;
  --blue:   #E8190C; /* override shared: btn-primary, focus */
  background: #F2EFE9;
  color: #0A0A0A;
}

/* ── HEADER ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 0;
  transition: background var(--transition), padding var(--transition), backdrop-filter var(--transition);
}
body.variant-d .site-header:not(.scrolled) .nav-menu a { color: rgba(255,255,255,0.65); }
body.variant-d .site-header:not(.scrolled) .nav-menu a:hover { color: #fff; }
body.variant-d .site-header:not(.scrolled) .burger span { background: #fff; }
body.variant-d .site-header:not(.scrolled) .header-cta { background: rgba(255,255,255,0.12); }
body.variant-d .site-header.scrolled {
  background: rgba(242,239,233,0.96);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  border-bottom: 1px solid rgba(10,10,10,0.1);
}
body.variant-d .site-header.scrolled .nav-menu a { color: rgba(10,10,10,0.5); }
body.variant-d .site-header.scrolled .nav-menu a:hover { color: #0A0A0A; }
body.variant-d .site-header.scrolled .burger span { background: #0A0A0A; }
.header-inner { display: flex; align-items: center; gap: 32px; }
.logo img { height: 40px; width: auto; }
.nav { margin-left: auto; }
.nav-menu { display: flex; gap: 28px; }
.nav-menu a { font-size: 0.9rem; font-weight: 500; transition: color var(--transition); }
.header-cta { padding: 10px 24px; font-size: 0.9rem; }
.burger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.burger span { display: block; width: 24px; height: 2px; border-radius: 2px; transition: all var(--transition); }

/* ── HERO ── */
.hero-d {
  min-height: 100svh;
  background: #0A0A0A;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 96px 20px 48px;
  overflow: hidden;
}
.hero-d-tag {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: #E8190C;
}
.hero-d-title {
  font-size: clamp(5rem, 30vw, 16rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: #fff;
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-d-bottom { display: flex; flex-direction: column; gap: 20px; }
.hero-d-claim { font-size: 1rem; color: rgba(255,255,255,0.5); line-height: 1.65; }
.hero-d-cta { align-self: flex-start; }

/* ── SPREAD SECTIONS ── */
.spread-d {
  min-height: 100svh;
  display: flex;
  align-items: center;
}
.spread-d-inner { width: 100%; padding: 64px 0; }

.spread-d--paper { background: #F2EFE9; color: #0A0A0A; }
.spread-d--ink   { background: #0A0A0A; color: #fff; }
.spread-d--red   { background: #E8190C; color: #fff; }

.spread-d-eyebrow {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; margin-bottom: 8px;
}
.spread-d--paper .spread-d-eyebrow { color: rgba(10,10,10,0.45); }
.spread-d--ink   .spread-d-eyebrow { color: rgba(255,255,255,0.45); }
.spread-d--red   .spread-d-eyebrow { color: rgba(255,255,255,0.65); }

.spread-d-num {
  display: block;
  font-size: clamp(5rem, 28vw, 15rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}
.spread-d-num em { font-style: normal; }
.spread-d--paper .spread-d-num em { color: #E8190C; }
.spread-d--ink   .spread-d-num em { color: #E8190C; }
.spread-d--red   .spread-d-num em { color: rgba(255,255,255,0.55); }

.spread-d-note {
  font-size: 1rem; opacity: 0.55; line-height: 1.6;
}

/* ── ABOUT ── */
.about-d { background: #0A0A0A; color: #fff; padding: 80px 0 0; }
.about-d-eyebrow {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: #E8190C; margin-bottom: 20px;
}
.about-d-title {
  font-size: clamp(2.6rem, 10vw, 6rem);
  font-weight: 900; line-height: 0.95; letter-spacing: -0.03em;
  color: #fff; margin-bottom: 24px;
}
.about-d-title em { font-style: normal; color: #E8190C; }
.about-d-body {
  color: rgba(255,255,255,0.5); font-size: 1rem; line-height: 1.75;
  margin-bottom: 32px; max-width: 520px;
}
.btn-d-outline {
  display: inline-block;
  border: 1.5px solid #E8190C; color: #E8190C;
  padding: 14px 28px; border-radius: var(--radius);
  font-weight: 700; font-size: 0.9rem;
  transition: background var(--transition), color var(--transition);
}
.btn-d-outline:hover { background: #E8190C; color: #fff; }

.about-d-strip {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 4px;
  margin-top: 56px;
  cursor: grab;
}
.about-d-strip::-webkit-scrollbar { display: none; }
.about-d-strip img {
  flex: 0 0 74vw;
  height: 50vw;
  max-width: none;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* ── TRAINERS ── */
.trainers-d { background: #F2EFE9; padding: 64px 0 0; }
.trainers-d-eyebrow {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: #E8190C; margin-bottom: 32px;
}
.trainers-d-cards { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.trainer-d-card {
  position: relative;
  height: 88vw; max-height: 560px;
  overflow: hidden;
}
.trainer-d-card > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block; max-width: none;
  transition: transform 0.6s ease;
}
.trainer-d-card:hover > img { transform: scale(1.04); }
.trainer-d-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.2) 55%, transparent 100%);
}
.trainer-d-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 32px 24px; }
.trainer-d-num {
  display: block;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: #E8190C; margin-bottom: 6px;
}
.trainer-d-name {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 900; line-height: 1.0; color: #fff; margin-bottom: 6px;
}
.trainer-d-since { color: rgba(255,255,255,0.4); font-size: 0.78rem; margin-bottom: 8px; }
.trainer-d-desc { color: rgba(255,255,255,0.65); font-size: 0.9rem; line-height: 1.55; }

/* ── RESULTS ── */
.results-d { background: #F2EFE9; padding: 64px 0; }
.results-d-header { margin-bottom: 28px; }
.results-d-title {
  font-size: clamp(3.2rem, 16vw, 9rem);
  font-weight: 900; line-height: 0.88; letter-spacing: -0.04em;
  color: #0A0A0A; margin-bottom: 12px;
}
.results-d-title em { font-style: normal; color: #E8190C; }
.results-d-sub { color: rgba(10,10,10,0.45); font-size: 0.95rem; line-height: 1.55; }

.results-d-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.result-d { overflow: hidden; }
.result-d img { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; transition: transform 0.4s ease; }
.result-d:hover img { transform: scale(1.05); }

/* ── PRICES ── */
.prices-d { background: #fff; padding: 64px 0; }
.prices-d-title {
  font-size: clamp(2.2rem, 8vw, 4rem);
  font-weight: 900; letter-spacing: -0.03em;
  color: #0A0A0A; margin-bottom: 32px;
}
.prices-d-list { border-top: 1.5px solid rgba(10,10,10,0.1); margin-bottom: 24px; }
.price-d-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1.5px solid rgba(10,10,10,0.1);
  gap: 16px;
}
.price-d-row--featured {
  background: #0A0A0A; color: #fff;
  padding: 20px 20px;
  border-radius: 10px;
  border-bottom: none;
  margin: 8px 0;
}
.price-d-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.price-d-tag {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: #E8190C;
}
.price-d-name { font-size: 1rem; font-weight: 700; }
.price-d-detail { font-size: 0.8rem; color: rgba(10,10,10,0.45); line-height: 1.4; }
.price-d-row--featured .price-d-detail { color: rgba(255,255,255,0.4); }
.price-d-amount {
  font-size: 1.05rem; font-weight: 900;
  white-space: nowrap; flex-shrink: 0;
}
.prices-d-note { font-size: 0.85rem; color: rgba(10,10,10,0.4); margin-bottom: 28px; }

/* ── FORM ── */
.form-d { background: #0A0A0A; color: #fff; padding: 64px 0; }
.form-d-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.form-d-title {
  font-size: clamp(3.5rem, 16vw, 9rem);
  font-weight: 900; line-height: 0.88; letter-spacing: -0.04em;
  color: #fff;
}
.form-d-claim { color: rgba(255,255,255,0.45); font-size: 0.95rem; line-height: 1.75; margin-bottom: 28px; }
.form-d .form-group input {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12); color: #fff;
}
.form-d .form-group input::placeholder { color: rgba(255,255,255,0.3); }
.form-d .form-group input:focus { border-color: #E8190C; }
.form-d .form-privacy { color: rgba(255,255,255,0.25); }

/* ── FOOTER ── */
.footer-d { background: #0A0A0A; color: #fff; border-top: 1px solid rgba(255,255,255,0.06); padding: 56px 0 0; }
.footer-d-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-d .footer-logo { margin-bottom: 20px; display: block; }
.footer-d address { font-style: normal; color: rgba(255,255,255,0.45); font-size: 0.9rem; line-height: 1.75; margin-bottom: 12px; }
.footer-d address a { color: #fff; }
.footer-d-hours { color: rgba(255,255,255,0.45); font-size: 0.88rem; margin-bottom: 20px; }
.footer-d .footer-messengers { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-d .messenger-btn {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; padding: 8px 14px; font-size: 0.85rem; color: #fff;
  transition: border-color var(--transition), color var(--transition);
}
.footer-d .messenger-btn:hover { border-color: #E8190C; color: #E8190C; }
.footer-d-map iframe { border-radius: var(--radius); display: block; }
.footer-d-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding: 20px; text-align: center; color: rgba(255,255,255,0.25); font-size: 0.8rem; }

/* ── STICKY CTA ── */
body.variant-d .sticky-cta-mobile { background: #0A0A0A; border-top: 1px solid rgba(255,255,255,0.1); }

/* ── SCROLL MARGIN ── */
section[id], footer[id] { scroll-margin-top: 80px; }

/* ── RESPONSIVE: 900px ── */
@media (max-width: 900px) {
  .form-d-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-d-inner { grid-template-columns: 1fr; }
  .trainers-d-cards { flex-direction: row; flex-wrap: wrap; }
  .trainer-d-card { flex: 1 1 300px; height: 460px; max-height: none; }
}

/* ── RESPONSIVE: 600px ── */
@media (max-width: 600px) {
  /* Navigation: header expands to fullscreen; nav-menu is absolute below the bar */
  .site-header.menu-open { bottom: 0; background: #0A0A0A; backdrop-filter: none; }
  .nav-menu { display: none; }
  .nav-menu.open { display: flex; flex-direction: column; position: absolute; top: 80px; left: 0; right: 0; bottom: 0; padding: 24px 20px 40px; gap: 28px; overflow-y: auto; }
  .nav-menu a { font-size: 1.4rem; font-weight: 700; color: #fff; }
  .burger { display: flex; }
  .header-cta { display: none; }

  /* Hero */
  .hero-d { padding: 80px 20px 40px; }
  .hero-d-title { font-size: clamp(4.5rem, 30vw, 8rem); }

  /* Spreads */
  .spread-d-num { font-size: clamp(4.5rem, 26vw, 10rem); }

  /* About */
  .about-d-strip img { flex: 0 0 82vw; height: 56vw; }

  /* Trainers */
  .trainers-d-cards { flex-direction: column; }
  .trainer-d-card { flex: none; width: 100%; height: 82vw; max-height: none; }

  /* Results */
  .results-d-grid { gap: 3px; }

  /* Prices */
  .price-d-row { flex-wrap: wrap; }
  .price-d-row--featured { flex-wrap: nowrap; }

  /* Form */
  .form-d-inner { grid-template-columns: 1fr; gap: 24px; }
  .form-d-title { font-size: clamp(3rem, 18vw, 6rem); }

  /* Footer */
  .footer-d-inner { grid-template-columns: 1fr; }
  .footer-d-map iframe { height: 220px; }

  /* Sticky CTA */
  body.variant-d .sticky-cta-mobile { display: block; }
  body.variant-d { padding-bottom: 76px; }
}
