:root {
  --primary: #dc143c;
  --primary-dark: #b01030;
  --primary-soft: #ffe8ec;
  --bg: #f0f3f7;
  --surface: #ffffff;
  --text: #1a1d24;
  --muted: #5c6570;
  --border: #e2e6ed;
  --border-strong: #d0d5de;
  --shadow: 0 8px 24px rgba(26, 29, 36, 0.06);
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1080px;
  --font: "DM Sans", system-ui, sans-serif;
  --font-brand: "Syne", "DM Sans", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
}

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

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(240, 243, 247, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s;
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(255, 255, 255, 0.92);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  min-height: 56px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  text-decoration: none;
  line-height: 1;
  color: var(--text);
}

.brand:hover {
  color: var(--text);
}

.brand-logo {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.brand-sub {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
}

.brand-footer {
  gap: 0.35rem;
}

.brand-footer .brand-logo {
  width: 60px;
  height: 60px;
  border-radius: 12px;
}

.nav {
  min-height: 108px;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links .nav-cta {
  margin-left: 0.25rem;
}

.menu-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  padding: 0;
}

.menu-toggle-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.menu-toggle-inner span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-inner span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-inner span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-inner span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(26, 29, 36, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.nav-drawer.open {
  opacity: 1;
  visibility: visible;
}

.nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 300px);
  height: 100%;
  background: var(--surface);
  padding: 4.5rem 1.35rem 1.5rem;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.08);
}

.nav-drawer.open .nav-panel {
  transform: translateX(0);
}

.nav-panel a {
  display: block;
  padding: 0.85rem 0.15rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

.nav-panel a:hover,
.nav-panel a.active {
  color: var(--primary);
}

.nav-panel .nav-meta {
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--muted);
}

body.menu-open {
  overflow: hidden;
}

@media (min-width: 860px) {
  .nav-links {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .nav-drawer {
    display: none !important;
  }
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.65rem 1.05rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  line-height: 1.2;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: var(--surface);
  border-color: #b8bfca;
  color: var(--text);
}

.btn-soft {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: transparent;
}

.btn-soft:hover {
  background: #ffd6de;
  color: var(--primary-dark);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.5rem 0.85rem;
  font-size: 0.8125rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.btn-row.stack {
  flex-direction: column;
}

.btn-row.stack .btn {
  width: 100%;
}

/* ——— Hero ——— */
.hero {
  padding: 1.25rem 0 2rem;
}

.hero-banner {
  position: relative;
  height: clamp(220px, 42vw, 340px);
  border-radius: 18px;
  overflow: hidden;
  background: #1a1d24;
  box-shadow: var(--shadow);
}

.hero-track {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 12, 16, 0.72) 0%,
    rgba(10, 12, 16, 0.2) 55%,
    rgba(10, 12, 16, 0.15) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.35rem 1.35rem 1.5rem;
}

.hero-line {
  margin: 0 0 0.9rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.hero-dots {
  position: absolute;
  bottom: 0.85rem;
  right: 1.1rem;
  z-index: 3;
  display: flex;
  gap: 0.35rem;
}

.hero-dots button {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  padding: 0;
  cursor: pointer;
}

.hero-dots button.active {
  width: 14px;
  background: #fff;
}

/* ——— Sections ——— */
.section {
  padding: 2rem 0;
}

.section-tight {
  padding: 1.25rem 0 2rem;
}

.section-title {
  margin: 0 0 0.3rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-sub {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 34rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-blush {
  background: var(--primary-soft);
  border-color: #ffd4dc;
  box-shadow: none;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.stat-card {
  padding: 1rem 1.05rem;
}

.stat-card strong {
  display: block;
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 0.15rem;
  font-weight: 700;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.82rem;
}

.feature-list {
  display: grid;
  gap: 0.65rem;
}

.feature-item {
  display: flex;
  gap: 0.85rem;
  padding: 1rem 1.05rem;
  align-items: flex-start;
}

.feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.feature-item h3 {
  margin: 0 0 0.15rem;
  font-size: 0.95rem;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ——— Branch tabs ——— */
.branch-tabs {
  display: flex;
  gap: 0.4rem;
  padding: 0.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 1rem;
  width: fit-content;
  max-width: 100%;
}

.branch-tab {
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.5rem 1rem;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.branch-tab:hover {
  color: var(--text);
}

.branch-tab.active {
  background: var(--primary-soft);
  color: var(--primary);
}

.branch-info {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  margin-bottom: 1.15rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.branch-info a {
  font-weight: 600;
}

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: #fff3cd;
  color: #8a6d00;
}

/* ——— Classes ——— */
.page-head {
  padding: 1.5rem 0 0.5rem;
}

.classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.85rem;
  padding-bottom: 2.5rem;
}

.class-card {
  padding: 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: var(--primary-soft);
  border: 1px solid #ffd4dc;
  border-radius: var(--radius);
  box-shadow: none;
  transition: border-color 0.2s, transform 0.2s;
}

.class-card:hover {
  border-color: #ffb3c0;
  transform: translateY(-1px);
}

.class-style {
  display: inline-block;
  align-self: flex-start;
  background: #fff;
  color: var(--primary);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.class-card h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.015em;
}

.class-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.class-fee {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  margin: 0.1rem 0 0.25rem;
}

.class-actions {
  display: grid;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.35rem;
}

.empty-state {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ——— Info / contact strips ——— */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.info-card {
  padding: 1.05rem 1.1rem;
}

.info-card label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.info-card .value,
.info-card a.value {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
}

.branch-info a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.branch-info a svg {
  width: 14px;
  height: 14px;
}

.info-card a.value:hover {
  color: var(--primary);
}

.note-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  margin-top: 0.75rem;
}

.note-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

/* ——— FAQ ——— */
.faq-list {
  display: grid;
  gap: 0.5rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 0.9rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0;
  padding: 0 1rem 0.95rem;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ——— Prose ——— */
.prose {
  padding: 1.35rem 1.25rem;
}

.prose h1 {
  margin: 0 0 0.4rem;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.prose h2 {
  margin: 1.25rem 0 0.4rem;
  font-size: 1rem;
}

.prose p,
.prose li {
  color: var(--muted);
  font-size: 0.9rem;
}

.prose strong {
  color: var(--text);
}

.prose .meta {
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.prose a {
  color: var(--primary);
}

/* ——— Footer ——— */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 1.35rem;
  margin-top: 1rem;
  background: #e8ecf2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1.5rem;
}

.site-footer p {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0.45rem 0 0;
  max-width: 20rem;
}

.site-footer h4 {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
}

.site-footer a {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted);
}

@media (max-width: 800px) {
  .grid-3,
  .info-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
