/* ==========================================================================
   CREATIVE SOUNDHOUSE STUDIO — V2 DESIGN SYSTEM
   "Studio Console" Identity
   ========================================================================== */

/* --- Tokens --- */
:root {
  --bg: #F5F1EC;
  --surface: #FBFAF8;
  --ink: #121212;
  --ink-2: #6B6660;
  --red: #E22227;
  --red-dark: #B81B20;
  --dark: #17181A;
  --wa: #25D366;
  --r-card: 16px;
  --r-pill: 999px;
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, .12);
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --transition: .25s cubic-bezier(.4, 0, .2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 78px;
  overflow-x: hidden;
}
@media (min-width: 768px) { body { padding-bottom: 0; } }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea {
  font: inherit;
  border: 1.5px solid #D4D0CB;
  background: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 15px;
  color: var(--ink);
  width: 100%;
  transition: border-color var(--transition);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--red);
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--ink);
}
h1 { font-size: clamp(3.5rem, 9vw, 7rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
}

/* --- Utility --- */
.hide { display: none !important; }

/* --- Icon System --- */
.icon { display: inline-block; vertical-align: middle; flex-shrink: 0; color: inherit; }
.icon-xs { width: 13px; height: 13px; }
.icon-sm { width: 14px; height: 14px; }
.icon-md { width: 16px; height: 16px; }
.icon-lg { width: 20px; height: 20px; }
.icon-xl { width: 24px; height: 24px; }
.icon-info { width: 16px; height: 16px; margin-right: 4px; vertical-align: -2px; }
.icon-faq { width: 20px; height: 20px; flex-shrink: 0; color: var(--ink-2); transition: transform var(--transition); }
.faq-item.open .icon-faq { transform: rotate(180deg); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--red); color: #fff; padding: 10px 16px; z-index: 99; }
.skip:focus { left: 0; }

/* --- Container --- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* --- Section Spacing --- */
.section { padding-block: clamp(64px, 10vw, 112px); }

/* --- Selection --- */
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 8px; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  font: 700 14px var(--font-body);
  text-transform: uppercase;
  letter-spacing: .04em;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid #D4D0CB; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #1ebe57; transform: translateY(-2px); }
.btn-sm { padding: 8px 18px; font-size: 12px; }

/* --- Pill Tags --- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font: 600 12px var(--font-body);
  border: 1px solid #D4D0CB;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: all var(--transition);
}
.pill:hover { border-color: var(--ink); }
.pill-red { background: var(--red); color: #fff; border-color: var(--red); }
.pill-red:hover { background: var(--red-dark); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 241, 236, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #E5E0DA;
  height: 72px;
  display: flex;
  align-items: center;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.brand-text { font: 700 16px var(--font-display); text-transform: uppercase; color: var(--ink); letter-spacing: .02em; white-space: nowrap; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font: 600 14px var(--font-body);
  color: var(--ink-2);
  text-decoration: none;
  position: relative;
  transition: color var(--transition);
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: all var(--transition);
  transform: translateX(-50%);
  border-radius: 1px;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.header-actions { display: flex; gap: 12px; align-items: center; }
.header-phone {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: all var(--transition);
}
.header-phone:hover { background: var(--red-dark); transform: scale(1.05); }
.header-phone svg { width: 18px; height: 18px; }
.mobile-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid #D4D0CB;
  background: #fff;
  place-items: center;
}
.mobile-menu-btn svg { width: 20px; height: 20px; }
@media (max-width: 920px) {
  .nav-links, .header-actions .btn { display: none; }
  .mobile-menu-btn { display: grid; }
}

/* ==========================================================================
   PAGE HERO — Unified for Services & Classes
   ========================================================================== */
.page-hero {
  background: var(--dark);
  color: #fff;
  padding: clamp(48px, 8vw, 80px) 0;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .kicker { color: var(--red); margin-bottom: 16px; }
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero .subtitle { color: #A1A1AA; font-size: 18px; max-width: 50ch; }

/* Waveform decoration */
.waveform-deco {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  opacity: .15;
}

/* ==========================================================================
   HOME — Hero Panel
   ========================================================================== */
.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 24px; padding-block: 32px 0; }
.hero-panel {
  background: var(--dark);
  border-radius: 24px 24px 8px 24px;
  padding: clamp(32px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  color: #fff;
}
.hero-panel h1 { color: #fff; }
.hero-panel .hero-sub { font-size: 16px; color: #A1A1AA; max-width: 40ch; line-height: 1.6; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-photo {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 1 / .92;
  background: #2A2A2E;
}
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-photo .overlay-chip {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: #fff;
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.hero-photo .overlay-chip b { font: 700 11px var(--font-body); display: block; color: var(--ink); }
.hero-photo .overlay-chip small { font: 400 10px var(--font-body); color: var(--ink-2); }
@media (max-width: 920px) { .hero { grid-template-columns: 1fr; } }

/* ==========================================================================
   MARQUEE STRIP
   ========================================================================== */
.marquee-spacer { margin-top: clamp(24px, 4vw, 48px); }
.marquee-strip {
  overflow: hidden;
  white-space: nowrap;
  background: var(--dark);
  color: #fff;
  padding: 14px 0;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
}
.marquee-track {
  display: inline-flex;
  gap: 48px;
  animation: marquee 20s linear infinite;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 24px; }
.marquee-track .dot { width: 8px; height: 8px; background: var(--red); border-radius: 50%; flex-shrink: 0; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ==========================================================================
   SERVICES TABLE (Home)
   ========================================================================== */
.tbl-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 20px; }
.tbl-head h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.tbl-head p { font-size: 13px; color: var(--ink-2); max-width: 30ch; text-align: right; }
.thead, .trow {
  display: grid;
  grid-template-columns: 1.3fr 1fr .5fr 48px;
  gap: 16px;
  align-items: center;
}
.thead small { font: 700 11px var(--font-mono); color: var(--ink-2); padding-block: 10px; letter-spacing: .08em; text-transform: uppercase; }
.trow { padding: 18px 0; border-top: 1px solid #E5E0DA; transition: background var(--transition); }
.trow:last-child { border-bottom: 1px solid #E5E0DA; }
.trow:hover { background: rgba(226, 34, 39, .03); }
.trow h3 { font-size: clamp(1rem, 1.8vw, 1.25rem); }
.trow h3 a { text-decoration: none; }
.trow h3 a:hover { color: var(--red); }
.ttags { display: flex; gap: 6px; flex-wrap: wrap; }
.ttag { border: 1px solid #E5E0DA; background: #fff; border-radius: var(--r-pill); padding: 4px 12px; font: 600 11px var(--font-mono); color: var(--ink-2); }
.trow .hrs { font: 400 12px var(--font-mono); color: var(--ink-2); }
.tarrow {
  width: 44px;
  height: 44px;
  border: 1.5px solid #E5E0DA;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: all var(--transition);
}
.tarrow:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: rotate(45deg); }
.tarrow svg { width: 16px; height: 16px; }
@media (max-width: 860px) { .thead, .trow { grid-template-columns: 1.3fr 1fr 48px; } .trow .hrs, .thead .h-h { display: none; } }

/* ==========================================================================
   ACCORDION (Service Preview on Home)
   ========================================================================== */
.svc-accordion { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: start; }
.svc-list-side { display: grid; gap: 6px; }
.svc-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--r-card);
  border: 1.5px solid #E5E0DA;
  background: #fff;
  cursor: pointer;
  transition: all var(--transition);
}
.svc-row:hover, .svc-row.active { border-color: var(--red); background: #fff; box-shadow: var(--shadow); }
.svc-row h3 { font-size: 1rem; margin: 0; }
.svc-row .sr-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 4px; }
.svc-row .sr-tag { font: 600 10px var(--font-mono); color: var(--ink-2); letter-spacing: .04em; }
.svc-row .sr-arrow { margin-left: auto; color: var(--red); flex-shrink: 0; transition: transform var(--transition); }
.svc-row:hover .sr-arrow, .svc-row.active .sr-arrow { transform: translateX(4px); }
.svc-row .sr-arrow svg { width: 18px; height: 18px; }
.svc-preview {
  position: sticky;
  top: 96px;
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #2A2A2E;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.svc-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc-preview .svc-p-info {
  position: relative;
  z-index: 1;
  padding: 28px;
  background: linear-gradient(0deg, rgba(23, 24, 26, .85) 0%, transparent 100%);
}
.svc-preview .svc-p-info h2 { color: #fff; font-size: clamp(1.3rem, 2.5vw, 2rem); margin-bottom: 8px; }
.svc-preview .svc-p-info p { color: #A1A1AA; font-size: 14px; max-width: 40ch; }
.svc-preview .svc-p-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 16px; }
.svc-preview .svc-p-chips span {
  border: 1.5px solid rgba(226, 34, 39, .4);
  color: #FFD9D9;
  background: rgba(23, 24, 26, .5);
  border-radius: var(--r-pill);
  padding: 5px 12px;
  font: 600 11px var(--font-mono);
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.svc-preview .svc-p-chips span i { width: 6px; height: 6px; background: var(--red); border-radius: 50%; font-style: normal; }
@media (max-width: 860px) {
  .svc-accordion { grid-template-columns: 1fr; }
  .svc-preview { position: relative; top: auto; aspect-ratio: 16 / 9; }
}

/* ==========================================================================
   STORY
   ========================================================================== */
.story { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: center; }
.story img { border-radius: var(--r-card); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.story h2 { margin-bottom: 12px; }
.story p { color: var(--ink-2); line-height: 1.7; }
.fchips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.fchip {
  background: #fff;
  border: 1px solid #E5E0DA;
  border-radius: var(--r-pill);
  padding: 8px 16px;
  font: 600 12px var(--font-body);
  color: var(--ink);
}
.fchip.l { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }

/* ==========================================================================
   GALLERY GRID
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.gallery-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--r-card);
  display: block;
  transition: transform var(--transition);
}
.gallery-grid img:hover { transform: scale(1.03); }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   REVIEWS
   ========================================================================== */
.rev { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; }
.rev-l {
  background: var(--red);
  border-radius: var(--r-card);
  padding: clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  color: #fff;
}
.rev-r {
  background: #fff;
  border: 1px solid #E5E0DA;
  border-radius: var(--r-card);
  padding: clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
@media (max-width: 860px) { .rev { grid-template-columns: 1fr; } }

/* ==========================================================================
   INFO BAND
   ========================================================================== */
.info {
  background: #fff;
  border: 1px solid #E5E0DA;
  border-radius: var(--r-card);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: clamp(20px, 3vw, 32px);
}
.info h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--red);
  margin-bottom: 8px;
  text-transform: uppercase;
  font-weight: 700;
}
.info p { color: var(--ink-2); font-size: 14px; }
.info a { font-weight: 700; color: var(--ink); }
.info a:hover { color: var(--red); }
@media (max-width: 820px) { .info { grid-template-columns: 1fr; } }

/* ==========================================================================
   NEWSLETTER
   ========================================================================== */
.news {
  background: var(--surface);
  border: 1px solid #E5E0DA;
  border-radius: var(--r-card);
  padding: clamp(24px, 3vw, 40px);
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 24px;
  align-items: center;
}
.news .nchip { border: 1px solid #E5E0DA; background: #fff; border-radius: var(--r-pill); padding: 8px 16px; font: 600 12px var(--font-mono); justify-self: start; color: var(--red); letter-spacing: .08em; }
.news p { font-size: clamp(1rem, 1.6vw, 1.2rem); font-weight: 600; margin-bottom: 12px; }
.news .subform { background: #fff; border: 1.5px solid #D4D0CB; border-radius: var(--r-pill); padding: 5px; max-width: 460px; display: flex; gap: 6px; align-items: center; }
.news .subform input { border: 0; background: none; padding: 10px 16px; color: var(--ink); }
.news .subform input::placeholder { color: var(--ink-2); }
.news .subform button { background: var(--ink); color: #fff; border-radius: var(--r-pill); padding: 10px 20px; font: 700 13px var(--font-body); white-space: nowrap; }
@media (max-width: 860px) { .news { grid-template-columns: 1fr; } }

/* ==========================================================================
   SECTION HEADER
   ========================================================================== */
.sec-h { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; }
.sec-h h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }

/* ==========================================================================
   LIST GRID (Services & Classes pages)
   ========================================================================== */
.list-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.lcard {
  background: #fff;
  border: 1px solid #E5E0DA;
  border-radius: var(--r-card);
  overflow: hidden;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  transition: all var(--transition);
}
.lcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.lcard > img { width: 100%; height: 100%; object-fit: cover; background: #EEEAE5; }
.lcard .lc { padding: 20px; display: grid; gap: 8px; align-content: start; }
.lcard h3 { font-size: 1.15rem; }
.lcard h3 a:hover { color: var(--red); }
.lcard p { color: var(--ink-2); font-size: 14px; }
.lcard .lk { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { .list-grid { grid-template-columns: 1fr; } .lcard { grid-template-columns: 1fr; } .lcard > img { aspect-ratio: 16 / 7; } }

/* ==========================================================================
   DETAIL PAGES — Service & Class
   ========================================================================== */
.backlink {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font: 700 13px var(--font-body);
  text-decoration: none;
  margin: 20px 0;
  color: var(--ink-2);
  transition: color var(--transition);
}
.backlink:hover { color: var(--red); }
.backlink svg { width: 16px; height: 16px; }

/* Detail Layout */
.detail-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; margin-top: 32px; }
.detail-header-card {
  background: var(--dark);
  color: #fff;
  border-radius: var(--r-card);
  overflow: hidden;
  padding: clamp(28px, 4vw, 48px);
  margin-bottom: 24px;
}
.detail-header-card h1 { color: #fff; font-size: clamp(28px, 4vw, 48px); margin-bottom: 12px; }
.detail-header-card p { color: #A1A1AA; font-size: 16px; max-width: 70ch; }
.detail-main-img { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--r-card); display: block; margin-bottom: 24px; }

/* Spec Sheet */
.spec-sheet-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 24px 0; }
.spec-sheet-item {
  background: var(--surface);
  border: 1px solid #E5E0DA;
  padding: 18px 22px;
  border-radius: var(--r-card);
  transition: all var(--transition);
}
.spec-sheet-item:hover { border-color: var(--red); }
.spec-sheet-item label {
  display: block;
  font: 700 11px var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.spec-sheet-item strong { font-size: 16px; color: var(--ink); }

/* Sticky Booking Box */
.sticky-booking-box {
  background: #fff;
  border: 1px solid #E5E0DA;
  border-radius: var(--r-card);
  padding: 32px;
  position: sticky;
  top: 96px;
  box-shadow: var(--shadow);
}

/* What's Included / House Rules */
.rules-list { display: grid; gap: 12px; margin: 20px 0; }
.rules-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--surface);
  border-radius: 12px;
  font-size: 14px;
  list-style: none;
}
.rules-list li::before {
  content: '✓';
  width: 24px;
  height: 24px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
@media (max-width: 860px) { .detail-layout { grid-template-columns: 1fr; } }

/* ==========================================================================
   CLASS DETAIL — Syllabus
   ========================================================================== */
.syllabus-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #E5E0DA;
  transition: background var(--transition);
}
.syllabus-row:hover { background: rgba(226, 34, 39, .03); }
.syllabus-num {
  font: 700 20px var(--font-display);
  color: var(--red);
}
.syllabus-title { font: 600 15px var(--font-body); color: var(--ink); }
.syllabus-meta { font: 600 12px var(--font-mono); color: var(--ink-2); white-space: nowrap; }

/* Related Course Cards */
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.related-card {
  background: #fff;
  border: 1px solid #E5E0DA;
  border-radius: var(--r-card);
  overflow: hidden;
  transition: all var(--transition);
}
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.related-card .rc-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform var(--transition);
}
.related-card:hover .rc-img { transform: scale(1.05); }
.related-card .rc-body { padding: 18px; }
.related-card h4 { font-size: 18px; margin-bottom: 6px; }
.related-card h4 a:hover { color: var(--red); }
.related-card .rc-meta { font: 600 12px var(--font-mono); color: var(--ink-2); margin-bottom: 12px; }

/* Enroll Card */
.enroll-card {
  background: #fff;
  border: 1px solid #E5E0DA;
  border-radius: var(--r-card);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.enroll-info { display: grid; gap: 16px; }
.enroll-info .ei-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #E5E0DA;
  font-size: 14px;
}
.enroll-info .ei-row span:first-child { color: var(--ink-2); }
.enroll-info .ei-row span:last-child { font-weight: 700; }
.enroll-ctas { display: grid; gap: 12px; align-content: center; }
@media (max-width: 640px) { .enroll-card { grid-template-columns: 1fr; } }

/* ==========================================================================
   BLOG
   ========================================================================== */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.article-card {
  background: #fff;
  border: 1px solid #E5E0DA;
  border-radius: var(--r-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.article-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article-card-content { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.article-card-content h3 { font-size: 20px; margin-bottom: 8px; }
.article-card-content p { color: var(--ink-2); font-size: 15px; margin-bottom: 16px; flex-grow: 1; }

/* ==========================================================================
   FORMS
   ========================================================================== */
.form-card {
  background: #fff;
  border: 1px solid #E5E0DA;
  border-radius: var(--r-card);
  padding: clamp(20px, 3vw, 36px);
  display: grid;
  gap: 16px;
}
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .f2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font: 700 11px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.field.bad input, .field.bad textarea, .field.bad select { border-color: var(--red); }
.errm { color: var(--red); font-size: 12px; display: none; }
.field.bad .errm { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.split { display: grid; grid-template-columns: 1.4fr .6fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ==========================================================================
   MENTOR CARD
   ========================================================================== */
.mentor-card {
  background: var(--dark);
  color: #fff;
  border-radius: var(--r-card);
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
}
.mentor-photo {
  width: 160px;
  height: 160px;
  border-radius: var(--r-card);
  object-fit: cover;
  border: 3px solid var(--red);
}
.mentor-name { font-size: 24px; margin-bottom: 4px; display: inline-block; background: #E22227; color: #fff; padding: 4px 16px; border-radius: 999px; }
.mentor-role { font: 600 13px var(--font-mono); color: var(--red); margin-bottom: 12px; letter-spacing: .06em; }
.mentor-quote { font-style: italic; color: #A1A1AA; font-size: 15px; line-height: 1.7; border-left: 3px solid var(--red); padding-left: 16px; margin-top: 16px; }
@media (max-width: 640px) { .mentor-card { grid-template-columns: 1fr; text-align: center; } .mentor-photo { margin: 0 auto; } .mentor-quote { border-left: none; border-top: 3px solid var(--red); padding-left: 0; padding-top: 16px; } }

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.testimonial-card {
  background: #fff;
  border: 1px solid #E5E0DA;
  border-radius: var(--r-card);
  padding: 28px;
  transition: all var(--transition);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.testimonial-card .tc-stars { color: #F59E0B; font-size: 16px; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-card .tc-text { font-size: 15px; color: var(--ink); line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.testimonial-card .tc-author { font: 700 14px var(--font-body); color: var(--ink); }
.testimonial-card .tc-role { font: 600 11px var(--font-mono); color: var(--ink-2); letter-spacing: .06em; margin-top: 2px; }

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-list { display: grid; gap: 8px; }
.faq-item {
  background: #fff;
  border: 1px solid #E5E0DA;
  border-radius: var(--r-card);
  overflow: hidden;
  transition: all var(--transition);
}
.faq-item:hover { border-color: var(--red); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  cursor: pointer;
  font: 700 15px var(--font-body);
  color: var(--ink);
  gap: 12px;
}
.faq-q svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--ink-2); transition: transform var(--transition); }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
}
.faq-item.open .faq-a { max-height: 300px; }
.faq-a-inner { padding: 0 22px 18px; color: var(--ink-2); font-size: 15px; line-height: 1.7; }

/* ==========================================================================
   ADMIN
   ========================================================================== */
.adm { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; padding-bottom: 64px; }
.adm-tabs { display: grid; gap: 4px; position: sticky; top: 92px; }
.adm-tabs button {
  text-align: left;
  border-radius: 12px;
  padding: 12px 16px;
  font: 700 13px var(--font-body);
  color: var(--ink-2);
  transition: all var(--transition);
}
.adm-tabs button[aria-current] { background: var(--ink); color: #fff; }
.adm-panel {
  background: #fff;
  border: 1px solid #E5E0DA;
  border-radius: var(--r-card);
  padding: clamp(18px, 2.6vw, 28px);
  display: grid;
  gap: 16px;
}
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { background: var(--surface); border-radius: 14px; padding: 16px; }
.stat b { font-family: var(--font-display); font-size: 2rem; display: block; color: var(--red); }
.stat span { font: 700 11px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.atb { width: 100%; border-collapse: collapse; font-size: 13px; }
.atb th { font: 700 10px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); text-align: left; padding: 8px 10px; }
.atb td { padding: 10px; border-top: 1px solid #E5E0DA; vertical-align: top; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 2px solid #E5E0DA; padding-bottom: 12px; margin-bottom: 24px; }
.admin-tab-btn {
  padding: 8px 18px;
  border-radius: var(--r-pill);
  background: #FFFFFF;
  border: 1px solid #E5E0DA;
  color: #6B6660;
  font: 700 13px var(--font-body);
  cursor: pointer;
  transition: all var(--transition);
}
.admin-tab-btn:hover { border-color: #121212; color: #121212; }
.admin-tab-btn.active { background: #E22227; color: #fff; border-color: #E22227; }
.admin-form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.admin-form-group label { font: 600 14px var(--font-body); color: #121212; text-transform: none; letter-spacing: 0; }
.admin-form-group input, .admin-form-group textarea, .admin-form-group select { background: #FFFFFF; border: 1px solid #E5E0DA; border-radius: 8px; padding: 12px 16px; font-family: var(--font-body); font-size: 14px; color: #121212; }
.admin-form-group input:focus, .admin-form-group textarea:focus, .admin-form-group select:focus { outline: none; border-color: #E22227; box-shadow: 0 0 0 2px rgba(226,34,39,.15); }
.admin-form-group textarea { min-height: 90px; resize: vertical; }
.adm-pane.hide { display: none; }
@media (max-width: 860px) { .adm { grid-template-columns: 1fr; } .adm-tabs { position: static; grid-template-columns: repeat(3, 1fr); } }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--dark);
  color: #A1A1AA;
  padding: 64px 0 24px;
  font-size: 14px;
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--red-dark), var(--red));
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.footer-grid h4 {
  font-family: var(--font-display);
  font-size: 16px;
  color: #fff;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.footer-grid a { color: #D4D4D8; transition: color var(--transition); }
.footer-grid a:hover { color: #fff; }
.footer-grid p { margin-bottom: 8px; }
.footer-credit {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 20px;
  margin-top: 40px;
  text-align: center;
  color: #71717A;
  font-size: 13px;
}
.footer-credit a { color: var(--red); }

/* ==========================================================================
   MOBILE BOTTOM BAR
   ========================================================================== */
.bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--ink);
  color: #fff;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
}
.bar a {
  display: grid;
  place-items: center;
  gap: 3px;
  min-height: 58px;
  font: 700 10px var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--transition);
}
.bar a:hover { background: rgba(255, 255, 255, .08); }
.bar a + a { border-left: 1px solid rgba(255, 255, 255, .1); }
.bar svg { width: 18px; height: 18px; color: var(--red); }
@media (min-width: 768px) { .bar { display: none; } }

/* ==========================================================================
   DIALOGS
   ========================================================================== */
dialog {
  border: 0;
  border-radius: var(--r-card);
  padding: 32px;
  background: var(--bg);
  color: var(--ink);
  width: min(92vw, 440px);
}
dialog::backdrop { background: rgba(23, 24, 26, .6); }
dialog h3 { font-size: 1.3rem; margin-bottom: 8px; }
.btnw { width: 100%; margin-top: 12px; }

/* Full-screen centered mobile menu */
#menu:not([open]) { display: none; }
#menu[open] {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  border-radius: 0;
  padding: 80px 32px 32px;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--dark);
  color: #fff;
  overflow-y: auto;
  z-index: 200;
}
#menu::backdrop { background: var(--dark); opacity: .95; z-index: 199; }
#menu .menu-close {
  position: fixed;
  top: 16px;
  right: 16px;
  color: #fff;
  background: none;
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 201;
  transition: border-color var(--transition);
}
#menu .menu-close:hover { border-color: #fff; }
.mnav {
  display: grid;
  gap: 0;
  width: 100%;
  max-width: 360px;
  text-align: center;
}
.mnav a {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.5rem;
  letter-spacing: .06em;
  text-decoration: none;
  padding: 18px 4px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #fff;
  transition: color var(--transition);
}
.mnav a:hover { color: var(--red); }
#menu .btn-primary {
  margin-top: 32px;
  max-width: 360px;
  width: 100%;
  font-size: 15px;
}

/* ==========================================================================
   TOAST
   ========================================================================== */
#toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  transform: translate(-50%, 14px);
  opacity: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--r-pill);
  font: 700 13px var(--font-body);
  z-index: 70;
  pointer-events: none;
  transition: .3s;
}
#toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ==========================================================================
   EQUALIZER ANIMATION
   ========================================================================== */
.equalizer {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
}
.equalizer .bar {
  width: 4px;
  background: var(--red);
  border-radius: 2px;
  animation: eq 1.2s ease-in-out infinite;
}
.equalizer .bar:nth-child(1) { height: 40%; animation-delay: 0s; }
.equalizer .bar:nth-child(2) { height: 70%; animation-delay: .15s; }
.equalizer .bar:nth-child(3) { height: 100%; animation-delay: .3s; }
.equalizer .bar:nth-child(4) { height: 60%; animation-delay: .45s; }
.equalizer .bar:nth-child(5) { height: 80%; animation-delay: .6s; }
@keyframes eq {
  0%, 100% { transform: scaleY(.3); }
  50% { transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) { .equalizer .bar { animation: none; height: 60%; } }

/* ==========================================================================
   INTERSECTION OBSERVER REVEAL ANIMATIONS
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

/* ==========================================================================
   COUNTER ANIMATION
   ========================================================================== */
.counter-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; padding-block: 40px; }
.counter-item {}
.counter-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--red);
  font-weight: 700;
  display: block;
}
.counter-label {
  font: 600 12px var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-top: 4px;
}
@media (max-width: 640px) { .counter-row { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   TILES (Home decorative)
   ========================================================================== */
.sq { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile {
  border-radius: 24px;
  height: clamp(120px, 14vw, 180px);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--surface);
}
.tile .w { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.2rem, 2vw, 1.8rem); }
.tile.img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile.img .w { position: relative; color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .5); }
.tile.arrow { background: var(--red); }
.tile.arrow svg { width: clamp(44px, 5vw, 64px); height: auto; color: #fff; }
@media (max-width: 760px) { .sq { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   HOME HERO — v1 Composition Restored
   ========================================================================== */
.home-hero {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 24px;
  padding-block: 24px 0;
}
.hh-left {
  background: var(--dark);
  border-radius: 24px 24px 8px 24px;
  padding: clamp(32px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  color: #fff;
}
.hh-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 12px var(--font-mono);
  color: #FFD9D9;
  letter-spacing: .04em;
}
.hh-title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  line-height: 1.05;
  color: #fff;
}
.hh-circ {
  display: inline-grid;
  place-items: center;
  width: 1.15em;
  height: 1.15em;
  border: 2px solid #fff;
  border-radius: 50%;
  vertical-align: -.15em;
}
.hh-circ svg { width: .55em; height: .55em; }
.hh-u { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.hh-sub { font-size: 15px; color: #A1A1AA; max-width: 42ch; line-height: 1.65; }
.hh-subform {
  display: flex;
  gap: 6px;
  align-items: center;
  background: rgba(255,255,255,.12);
  border-radius: var(--r-pill);
  padding: 5px;
  width: 100%;
  max-width: 400px;
}
.hh-subform input {
  flex: 1;
  border: 0;
  background: none;
  padding: 10px 14px;
  font: 400 14px var(--font-body);
  color: #fff;
  min-width: 0;
}
.hh-subform input::placeholder { color: rgba(255,255,255,.5); }
.hh-subform button {
  background: #fff;
  color: var(--dark);
  border-radius: var(--r-pill);
  padding: 10px 18px;
  font: 700 13px var(--font-body);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.hh-avatars {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 400 12px var(--font-body);
  color: #D4D4D8;
}
.hh-avimgs { display: flex; }
.hh-avimgs img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--red);
  margin-right: -9px;
  object-fit: cover;
}
/* Right: Photo */
.hh-right {
  position: relative;
}
.hh-photo {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 1 / .92;
  background: #2A2A2E;
}
.hh-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hh-vol {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #fff;
  border-radius: 14px;
  padding: 8px 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  z-index: 2;
}
.hh-vol img { width: 38px; height: 38px; object-fit: contain; border-radius: 8px; position: static; }
.hh-vol b { font: 700 11px var(--font-body); display: block; color: var(--ink); }
.hh-vol small { font: 400 10px var(--font-body); color: var(--ink-2); }
.hh-pin {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--red);
  color: #FFD9D9;
  background: rgba(23,24,26,.45);
  backdrop-filter: blur(4px);
  border-radius: var(--r-pill);
  padding: 5px 12px;
  font: 600 10px var(--font-mono);
  z-index: 2;
}
.hh-pin i { width: 6px; height: 6px; border-radius: 50%; background: var(--red); font-style: normal; }
.hh-p1 { top: 16%; right: 8%; }
.hh-p2 { top: 42%; left: 9%; }
.hh-p3 { top: 60%; right: 16%; }
.hh-join {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 14px;
  padding: 8px 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  white-space: nowrap;
  z-index: 2;
}
.hh-join img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; position: static; }
.hh-join b { font: 700 10px var(--font-body); display: block; color: var(--ink); }
.hh-join small { font: 400 9px var(--font-body); color: var(--ink-2); }
.hh-soc {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: var(--red);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  font: 700 10px var(--font-body);
  color: var(--ink);
  text-decoration: none;
  z-index: 2;
  transition: all var(--transition);
}
.hh-soc:hover { background: var(--red-dark); color: #fff; }
.hh-cap {
  font: 400 11px var(--font-body);
  color: var(--ink-2);
  text-align: right;
  margin-top: 10px;
}
@media (max-width: 920px) {
  .home-hero { grid-template-columns: 1fr; }
  .hh-photo { aspect-ratio: 16/10; }
  .hh-cap { text-align: left; }
}
@media (max-width: 480px) {
  .hh-left { padding: 24px 20px; }
  .hh-title { font-size: 1.6rem; }
  .hh-pin { display: none; }
  .hh-join { display: none; }
  .hh-photo { aspect-ratio: 16/9; }
}

/* ==========================================================================
   DETAIL PAGE LAYOUT PATCH — Zone A + Zone B
   ========================================================================== */
.detail-zone-a {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 48px;
}
.detail-zone-b {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (max-width: 1024px) {
  .detail-zone-a { grid-template-columns: 1fr; }
  .detail-zone-a .detail-sticky-card { position: static; }
}

/* Module Row — no clip at edge */
.module-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  column-gap: 16px;
  padding-right: 20px;
  padding: 16px 20px 16px 0;
  border-bottom: 1px solid #E5E0DA;
  transition: background var(--transition);
}
.module-row:hover { background: rgba(226,34,39,.03); }
.module-row .meta {
  white-space: nowrap;
  font: 600 12px var(--font-mono);
  color: var(--ink-2);
}
@media (max-width: 480px) {
  .module-row { grid-template-columns: auto 1fr; padding-right: 0; }
  .module-row .meta { grid-column: 2; }
}

/* Enroll DL — label/value don't collide */
.enroll dl {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px 16px;
}
.enroll dl dt {
  font: 600 12px var(--font-mono);
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.enroll dl dd {
  font: 600 15px var(--font-body);
  color: var(--ink);
}
.enroll-ctas {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

/* Mobile sticky CTA bar on detail pages */
.detail-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 55;
  background: #fff;
  border-top: 1px solid #E5E0DA;
  padding: 10px var(--gutter);
  gap: 10px;
}
.detail-mobile-cta .btn { flex: 1; }
@media (max-width: 1024px) {
  .detail-mobile-cta { display: flex; }
  body { padding-bottom: 140px; }
}

/* ==========================================================================
   ADMIN SHELL — Solid backgrounds, no decorative textures
   ========================================================================== */
.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 72px);
  background: #FBFAF8;
}
.admin-shell.no-chrome .site-header ~ * { display: none; }
.admin-topbar {
  grid-column: 1 / -1;
  height: 56px;
  background: #FFFFFF;
  border-bottom: 1px solid #E5E0DA;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  position: sticky;
  top: 72px;
  z-index: 50;
}
.admin-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-topbar-left img { height: 28px; }
.admin-topbar-left span {
  font: 700 14px var(--font-body);
  color: #121212;
}
.admin-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.admin-topbar-right a, .admin-topbar-right button {
  font: 600 13px var(--font-body);
  color: #6B6660;
  transition: color var(--transition);
}
.admin-topbar-right a:hover, .admin-topbar-right button:hover { color: #E22227; }
.admin-sidebar {
  background: #FFFFFF;
  border-right: 1px solid #E5E0DA;
  padding: 16px 0;
  position: sticky;
  top: 128px;
  height: calc(100vh - 128px);
  overflow-y: auto;
}
.admin-sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  font: 600 14px var(--font-body);
  color: #6B6660;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.admin-sidebar-item:hover { color: #121212; background: rgba(0,0,0,.04); }
.admin-sidebar-item.active { color: #E22227; background: rgba(226,34,39,.06); font-weight: 700; }
.admin-sidebar-item svg { width: 20px; height: 20px; flex-shrink: 0; }
.admin-sidebar-badge {
  margin-left: auto;
  background: #E22227;
  color: #fff;
  font: 700 10px var(--font-body);
  padding: 2px 8px;
  border-radius: var(--r-pill);
  min-width: 20px;
  text-align: center;
}
.admin-content {
  padding: clamp(20px, 3vw, 32px);
  max-width: 960px;
  background: #FBFAF8;
}
.admin-content h2 {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 700;
  text-transform: none;
  color: #121212;
  margin-bottom: 24px;
}
@media (max-width: 1024px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: static;
    height: auto;
    display: flex;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid #E5E0DA;
    padding: 0;
    gap: 0;
  }
  .admin-sidebar-item {
    padding: 12px 16px;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
  }
  .admin-sidebar-item.active { border-bottom-color: #E22227; }
}

/* Admin Stat Cards */
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.admin-stat-card {
  background: #FFFFFF;
  border: 1px solid #E5E0DA;
  border-radius: 12px;
  padding: 24px;
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.admin-stat-card .asc-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 600;
  color: #121212;
  display: block;
}
.admin-stat-card .asc-label {
  font: 600 12px var(--font-body);
  color: #6B6660;
  margin-top: 4px;
}
.admin-stat-card .asc-dot {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 10px;
  height: 10px;
  background: #E22227;
  border-radius: 50%;
}
@media (max-width: 768px) { .admin-stats { grid-template-columns: repeat(2, 1fr); } }

/* Admin Tables */
.admin-table {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #E5E0DA;
  border-radius: 12px;
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
}
.admin-table th {
  background: #F5F1EC;
  font: 600 13px var(--font-body);
  color: #6B6660;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid #E5E0DA;
}
.admin-table td {
  padding: 16px;
  border-bottom: 1px solid #E5E0DA;
  font-size: 14px;
  color: #121212;
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(0,0,0,.02); }

/* Status Chips — high contrast, solid backgrounds */
.status-chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}
.status-chip.new, .status-chip.status-new { background: #FEE2E2; color: #991B1B; }
.status-chip.confirmed, .status-chip.status-confirmed { background: #D1FAE5; color: #065F46; }
.status-chip.handled, .status-chip.status-handled { background: #D1FAE5; color: #065F46; }
.status-chip.closed, .status-chip.status-closed { background: #F3F4F6; color: #4B5563; }
.status-chip.draft, .status-chip.status-draft { background: #FEF3C7; color: #92400E; }
.status-chip.published, .status-chip.status-published { background: #D1FAE5; color: #065F46; }

/* Admin Form Fields — solid white, clear borders */
.admin-field { display: grid; gap: 8px; margin-bottom: 20px; }
.admin-field label {
  font: 600 14px var(--font-body);
  color: #121212;
  text-transform: none;
  letter-spacing: 0;
}
.admin-field .admin-help {
  font: 400 13px var(--font-body);
  color: #6B6660;
  margin-top: 0;
}
.admin-field input, .admin-field textarea, .admin-field select {
  background: #FFFFFF;
  border: 1px solid #E5E0DA;
  border-radius: 8px;
  padding: 12px 16px;
  font: 400 14px var(--font-body);
  color: #121212;
  width: 100%;
  transition: border-color var(--transition);
}
.admin-field input:focus, .admin-field textarea:focus, .admin-field select:focus {
  outline: none;
  border-color: #E22227;
  box-shadow: 0 0 0 2px rgba(226,34,39,.15);
}
.admin-field textarea { min-height: 100px; resize: vertical; }

/* Admin Save Bar */
.admin-save-bar {
  position: sticky;
  bottom: 0;
  background: #FFFFFF;
  border-top: 1px solid #E5E0DA;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
}
.admin-save-bar .last-saved {
  font: 400 12px var(--font-mono);
  color: #6B6660;
}

/* Admin Getting Started — solid white, no orange tint */
.admin-getting-started {
  background: #FFFFFF;
  border: 1px solid #E5E0DA;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.admin-getting-started h3 {
  font-family: var(--font-body);
  font-size: 16px;
  text-transform: none;
  color: #121212;
  margin-bottom: 16px;
}
.admin-steps { display: grid; gap: 16px; }
.admin-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #121212;
  line-height: 1.5;
}
.admin-step-num {
  width: 28px;
  height: 28px;
  background: #E22227;
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 13px var(--font-body);
  flex-shrink: 0;
}

/* Admin Empty State */
.admin-empty {
  text-align: center;
  padding: 48px 24px;
  color: #6B6660;
  font-size: 15px;
  background: #FFFFFF;
  border: 1px solid #E5E0DA;
  border-radius: 12px;
}

/* Confirm Dialog */
.confirm-dialog {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(23,24,26,.5);
}
.confirm-dialog .cd-box {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 28px;
  max-width: 400px;
  width: 90vw;
  box-shadow: 0 20px 50px rgba(0,0,0,.12);
}
.confirm-dialog h4 { font-family: var(--font-body); font-size: 18px; text-transform: none; margin-bottom: 8px; color: #121212; }
.confirm-dialog p { color: #6B6660; font-size: 14px; margin-bottom: 20px; }
.confirm-dialog .cd-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ==========================================================================
   ADMIN LIST ITEMS (Services, Classes, Blog)
   ========================================================================== */
.admin-list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #FFFFFF;
  border: 1px solid #E5E0DA;
  border-radius: 12px;
  margin-bottom: 8px;
  transition: border-color var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.admin-list-item:hover { border-color: #E22227; }
.admin-list-thumb {
  width: 80px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #F5F1EC;
}
.admin-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-list-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.admin-list-info strong {
  font: 700 15px var(--font-body);
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-list-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .admin-list-item { flex-wrap: wrap; }
  .admin-list-thumb { width: 100%; height: 140px; }
}

/* Repeater rows */
.repeater-row input {
  background: #FFFFFF;
  border: 1px solid #E5E0DA;
  border-radius: 8px;
  padding: 10px 14px;
  font: 400 14px var(--font-body);
  color: #121212;
}
.repeater-row input:focus {
  outline: none;
  border-color: #E22227;
  box-shadow: 0 0 0 2px rgba(226,34,39,.15);
}

/* Upload button & preview */
.upload-btn {
  position: relative;
  overflow: hidden;
}
.upload-btn:hover { background: #F5F1EC; border-color: #E22227; }
.upload-preview { margin-top: 4px; }
.upload-preview img { border: 1px solid #E5E0DA; }

/* Filter bar */
.admin-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.admin-search {
  font-family: var(--font-body);
}
.admin-search:focus {
  outline: none;
  border-color: var(--red);
}
@media (max-width: 640px) {
  .admin-filter-bar { flex-direction: column; align-items: stretch; }
  .admin-search { max-width: 100% !important; }
}

/* 404 Page */
.not-found-page .equalizer .bar {
  background: var(--red);
}

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