/* -webkit-fill-available was an iOS address-bar workaround. In Chrome it
   computes to `stretch`, which on a block resolves against the containing block
   and COLLAPSED these heroes to their content height -- the restaurant hero
   measured 477px on an 800px viewport, so its centred h1 sat at the very top,
   under the fixed nav. 100svh is the modern spelling, does the iOS job properly,
   and falls back to the 100vh above it on anything that does not support it. */
/* ── Animations ──────────────────────────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grids */
.membership-grid [data-animate]:nth-child(2) { transition-delay: 0.08s; }
.membership-grid [data-animate]:nth-child(3) { transition-delay: 0.16s; }
.membership-grid [data-animate]:nth-child(4) { transition-delay: 0.24s; }

.classes-grid [data-animate]:nth-child(2) { transition-delay: 0.08s; }
.classes-grid [data-animate]:nth-child(3) { transition-delay: 0.16s; }
.classes-grid [data-animate]:nth-child(4) { transition-delay: 0.24s; }
.classes-grid [data-animate]:nth-child(5) { transition-delay: 0.32s; }
.classes-grid [data-animate]:nth-child(6) { transition-delay: 0.4s; }

/* Chat mockup staggered appearance */
.chat-demo-msg {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.chat-demo-msg.msg-visible {
  opacity: 1;
  transform: translateY(0);
}
.chat-demo-msg:nth-child(2) { transition-delay: 0.4s; }
.chat-demo-msg:nth-child(3) { transition-delay: 0.8s; }
.chat-demo-msg:nth-child(4) { transition-delay: 1.2s; }

/* Focus styles */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Container ───────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Skip Nav ───────────────────────────────────────────── */
.skip-nav {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 10000;
  padding: 12px 24px;
  background: var(--accent);
  color: var(--dark);
  font-size: 14px;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
}
.skip-nav:focus {
  position: fixed;
  top: 0;
  left: 16px;
  width: auto;
  height: auto;
  overflow: visible;
}

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background: var(--white);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}

/* Nav link colors adapt to hero transparency */
.nav:not(.scrolled) .nav-links a { color: #FFFFFF; }
.nav:not(.scrolled) .nav-hamburger span { background: #FFFFFF; }
.nav:not(.scrolled) .logo { color: #FFFFFF; }
.nav:not(.scrolled) .logo span { color: var(--accent); }

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.nav-links a:hover {
  color: var(--accent);
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  background: var(--accent);
  color: var(--dark) !important;
  border-radius: var(--radius);
  transition: background 0.2s;
}
.btn-nav:hover {
  background: var(--accent-hover);
  color: var(--dark) !important;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius);
  transition: background 0.2s, box-shadow 0.2s;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  padding: 14px 32px;
  font-size: 15px;
  background: var(--accent);
  color: var(--dark);
}
.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-white {
  padding: 14px 32px;
  font-size: 15px;
  background: var(--white);
  color: var(--dark);
}
.btn-white:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.btn-accent {
  padding: 16px 40px;
  font-size: 16px;
  background: var(--accent);
  color: var(--dark);
  font-weight: 700;
}
.btn-accent:hover {
  background: var(--accent-hover);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?w=1600&q=80');
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: 72px;
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: 0.02em;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Stats Marquee ────────────────────────────────────────── */
.marquee-section {
  background: var(--dark);
  border-top: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  overflow: hidden;
  padding: 18px 0;
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee-scroll 60s linear infinite;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  padding-right: 0;
}

.marquee-content span {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0 24px;
}

.marquee-sep {
  color: var(--accent) !important;
  font-size: 14px !important;
  letter-spacing: 0 !important;
  padding: 0 8px !important;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Section Labels (Fit And You style) ───────────────────── */
.section-label {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.section-label-light {
  color: var(--dark-text-muted);
}

/* ── Membership Section ──────────────────────────────────── */
.membership-section {
  background: var(--bg);
  padding: 120px 0;
}

.membership-header {
  margin-bottom: 64px;
}

.membership-header h2 {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 12px;
}

.membership-header p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
}

.membership-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.membership-card {
  background: var(--dark-card);
  padding: 36px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.membership-card-featured {
  border-left: 3px solid var(--accent);
}

.membership-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.membership-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.membership-price {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.02em;
}

.membership-period {
  font-size: 14px;
  color: var(--dark-text-muted);
  margin-top: 4px;
  margin-bottom: 28px;
}

.membership-features {
  list-style: none;
  flex: 1;
  margin-bottom: 28px;
}

.membership-features li {
  font-size: 14px;
  color: var(--dark-text-muted);
  padding: 8px 0;
  border-top: 1px solid var(--border-dark);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.membership-features li::before {
  content: '+';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.membership-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.2s;
  margin-top: auto;
}
.membership-link:hover {
  gap: 12px;
  color: var(--accent);
}
.membership-link svg {
  width: 14px;
  height: 14px;
}

/* ── Classes Section ─────────────────────────────────────── */
.classes-section {
  background: var(--bg-alt);
  padding: 120px 0;
}

.classes-header {
  margin-bottom: 56px;
}

.classes-header h2 {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.classes-header p {
  font-size: 17px;
  color: var(--text-muted);
}

.classes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.class-card {
  position: relative;
  height: 350px;
  overflow: hidden;
  border-radius: 0;
  cursor: pointer;
}

.class-card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

.class-card:hover .class-card-img {
  transform: scale(1.05);
}

.class-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.1) 50%, transparent 100%);
  transition: background 0.4s ease;
}

.class-card:hover .class-card-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.05) 50%, transparent 100%);
}

.class-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px;
  z-index: 1;
}

.class-card-name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.class-card-duration {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

/* ── About Section ───────────────────────────────────────── */
.about-section {
  background: var(--bg);
  padding: 120px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 0;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12);
}

.about-text h2 {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 24px;
}

.about-text p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 8px;
  transition: gap 0.2s;
}
.about-link:hover {
  gap: 12px;
}
.about-link svg {
  width: 14px;
  height: 14px;
}

/* ── AI Chat Section (Dark) ──────────────────────────────── */
.ai-section {
  background: var(--dark);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.ai-text h2 {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--dark-text);
  margin-bottom: 20px;
}

.ai-text-desc {
  font-size: 17px;
  color: var(--dark-text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.ai-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.ai-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 400;
  color: var(--dark-text);
}

.ai-feature svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

/* Chat mockup -- dark card */
.chat-mockup {
  background: var(--dark-card);
  border: 1px solid var(--border-dark);
  overflow: hidden;
  border-radius: var(--radius);
}

.chat-mockup-header {
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.chat-mockup-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

.chat-mockup-status {
  font-size: 12px;
  color: var(--dark-text-muted);
  margin-left: auto;
}

.chat-mockup-body {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 300px;
}

.chat-demo-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.55;
}

.chat-demo-msg.msg-user {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  align-self: flex-end;
}

.chat-demo-msg.msg-bot {
  background: transparent;
  color: var(--dark-text-muted);
  align-self: flex-start;
  border: 1px solid var(--border-dark);
}

/* ── Schedule Section ────────────────────────────────────── */
.schedule-section {
  background: var(--bg);
  padding: 120px 0;
}

.schedule-header {
  margin-bottom: 56px;
}

.schedule-header h2 {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--text);
  text-transform: uppercase;
}

.schedule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.schedule-card {
  background: var(--bg-alt);
  padding: 40px 36px;
  border: 1px solid var(--border);
}

.schedule-card h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.schedule-card-days {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.schedule-card-hours {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
}

.schedule-slots {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.schedule-slot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  font-size: 14px;
}

.schedule-slot-time {
  font-weight: 500;
  color: var(--text);
}

.schedule-slot-class {
  color: var(--text-muted);
}

/* ── CTA Section ─────────────────────────────────────────── */
.cta-section {
  position: relative;
  padding: 160px 0;
  text-align: center;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1517836357463-d25dfeac3438?w=1600&q=80');
  background-size: cover;
  background-position: center;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.cta-section h2 {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.0;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.cta-section .cta-desc {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  padding: 72px 0 36px;
  border-top: 2px solid var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-dark);
}

.footer-brand .footer-logo {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  display: block;
}

.footer-brand .footer-logo span {
  color: var(--accent);
}

.footer-brand p {
  font-size: 14px;
  color: var(--dark-text-muted);
  line-height: 1.6;
  max-width: 280px;
  margin-top: 12px;
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.footer-social a {
  color: var(--dark-text-muted);
  transition: color 0.2s;
}
.footer-social a:hover {
  color: var(--white);
}
.footer-social svg {
  width: 20px;
  height: 20px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.footer-col a,
.footer-col p {
  display: block;
  font-size: 14px;
  color: var(--dark-text-muted);
  margin-bottom: 10px;
  transition: color 0.2s;
  line-height: 1.5;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-phone {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  display: block;
  margin-bottom: 12px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.25);
}

.footer-copy a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-copy a:hover {
  color: var(--white);
}

/* ── Chat Widget (functional) ────────────────────────────── */
.chat-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 16px rgba(232, 148, 58, 0.3);
  transition: background 0.2s;
  border: none;
}
.chat-toggle:hover {
  background: var(--accent-hover);
}

.chat-widget {
  position: fixed;
  bottom: 92px;
  right: 24px;
  width: 400px;
  height: 520px;
  background: var(--dark-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.chat-header {
  padding: 16px 20px;
  background: var(--dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-dark);
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-header-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.chat-header-name {
  font-size: 15px;
  font-weight: 600;
}

.chat-close {
  color: var(--white);
  font-size: 22px;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  padding: 4px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--dark-card);
}

.chat-msg {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.55;
  max-width: 85%;
}

.chat-msg.bot {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  align-self: flex-start;
  border: 1px solid var(--border-dark);
}

.chat-msg.user {
  background: var(--accent);
  color: var(--dark);
  align-self: flex-end;
}

.chat-input-wrap {
  display: flex;
  padding: 14px;
  border-top: 1px solid var(--border-dark);
  gap: 10px;
  background: var(--dark);
}

.chat-input-wrap input {
  flex: 1;
  padding: 10px 14px;
  background: var(--dark-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.chat-input-wrap input:focus {
  border-color: var(--accent);
}

.chat-input-wrap input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.chat-input-wrap button {
  padding: 10px 18px;
  background: var(--accent);
  color: var(--dark);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.chat-input-wrap button:hover {
  background: var(--accent-hover);
}

/* ── Hamburger ───────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  z-index: 101;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Responsive: 1024px ──────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-headline { font-size: 52px; }
  .membership-grid { grid-template-columns: repeat(2, 1fr); }
  .classes-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 48px; }
  .ai-grid { gap: 48px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .cta-section h2 { font-size: 44px; }
}

/* ── Responsive: 768px ───────────────────────────────────── */
@media (max-width: 768px) {
  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  }
  .nav-links.mobile-open { display: flex; }
  .nav-links a { font-size: 16px; color: var(--text) !important; }

  /* Force scrolled nav on mobile when menu is open */
  .nav.mobile-menu-open {
    background: var(--white);
  }
  .nav.mobile-menu-open .logo {
    color: var(--text) !important;
  }
  .nav.mobile-menu-open .nav-hamburger span {
    background: var(--text) !important;
  }

  .hero { height: 100vh; height: 100svh; }
  .hero-headline { font-size: 40px; }
  .hero-sub { font-size: 16px; }

  .membership-section,
  .classes-section,
  .about-section,
  .ai-section,
  .schedule-section { padding: 80px 0; }

  .membership-header h2,
  .classes-header h2,
  .about-text h2,
  .ai-text h2,
  .schedule-header h2 { font-size: 32px; }

  .membership-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .classes-grid { grid-template-columns: 1fr; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-image {
    aspect-ratio: 16 / 10;
  }

  .ai-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .schedule-grid { grid-template-columns: 1fr; }

  .cta-section { padding: 100px 0; }
  .cta-section h2 { font-size: 36px; }
  .cta-section .btn { width: 100%; max-width: 320px; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .chat-widget {
    width: calc(100vw - 32px);
    right: 16px;
    bottom: 88px;
    height: 460px;
  }
}


/* ── Loader ─────────────────────────────────────────────── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg, #FFFFFF);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease, ease), visibility 0.8s;
}
.loader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.loader-icon {
  width: clamp(64px, 12vw, 96px);
  height: auto;
}
.loader-draw {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawPath 1.4s var(--ease, cubic-bezier(0.16, 1, 0.3, 1)) forwards;
  fill: none;
}
.loader-draw-2 { animation-delay: 0.2s; }
.loader-draw-3 { animation-delay: 0.4s; }
@keyframes drawPath {
  to { stroke-dashoffset: 0; }
}
.loader-text {
  font-family: var(--font-heading, system-ui);
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--accent, #2E86AB);
  opacity: 0;
  animation: fadeInText 0.6s ease 0.8s forwards;
}
@keyframes fadeInText {
  to { opacity: 1; }
}

/* ── Scroll Progress ────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--accent, #2E86AB);
  z-index: 9999;
  transition: none;
}

/* ── Emergency Bar ──────────────────────────────────────── */
.emergency-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark, #1a1a2e);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 24px;
  z-index: 900;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease, cubic-bezier(0.16, 1, 0.3, 1));
}
.emergency-bar.visible {
  transform: translateY(0);
}
.emergency-bar-link {
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 24px;
  background: var(--accent, #2E86AB);
  border-radius: 6px;
  transition: background 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.emergency-bar-link:hover {
  filter: brightness(0.9);
  color: #FFFFFF;
}
.emergency-bar-close {
  color: rgba(255, 255, 255, 0.5);
  font-size: 22px;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.2s;
}
.emergency-bar-close:hover {
  color: #FFFFFF;
}
@media (min-width: 769px) {
  .emergency-bar { display: none; }
}

/* ── Card Hover ─────────────────────────────────────────── */
.card-hover {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.card-hover:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}
