/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --emerald-900: #042f23;
  --emerald-800: #064e3b;
  --emerald-700: #065f46;
  --emerald-600: #047857;
  --emerald-500: #059669;
  --emerald-400: #10b981;
  --cream-50: #fafaf5;
  --cream-100: #f5f5ef;
  --cream-200: #e8e8df;
  --cream-300: #d4d4c8;
  --stone-800: #292524;
  --stone-700: #44403c;
  --stone-600: #57534e;
  --stone-500: #78716c;
  --stone-400: #a8a29e;
  --white: #ffffff;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--stone-800);
  background: var(--cream-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 250, 245, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.nav.scrolled {
  border-bottom-color: var(--cream-200);
  background: rgba(250, 250, 245, 0.95);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--emerald-800);
}

.nav-logo-icon {
  color: var(--emerald-700);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--stone-700);
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--emerald-600);
  transition: width 0.3s var(--ease-out);
}

.nav-links a:hover {
  color: var(--emerald-700);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--emerald-700);
  color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease !important;
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background: var(--emerald-800);
  transform: translateY(-1px);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--stone-700);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}

.nav-toggle.active .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--cream-50);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--stone-700);
  padding: 4px;
}

.mobile-menu ul {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-link {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--stone-800);
  transition: color 0.2s ease;
}

.mobile-link:hover {
  color: var(--emerald-700);
}

.mobile-cta {
  margin-top: 0.5rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  background: var(--emerald-700);
  color: var(--white);
  padding: 0.75rem 2rem;
  border-radius: 100px;
  font-weight: 600;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 1.5rem 4rem;
  overflow: hidden;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #042f23 0%, #065f46 30%, #047857 60%, #064e3b 100%);
  z-index: 0;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: radial-gradient(circle at 25% 25%, rgba(255,255,255,0.4) 1px, transparent 1px),
                    radial-gradient(circle at 75% 75%, rgba(255,255,255,0.3) 1px, transparent 1px);
  background-size: 48px 48px, 32px 32px;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--emerald-400);
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-headline em {
  font-style: italic;
  color: var(--emerald-300);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.hero-stat-num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.hero-stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.4);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  text-decoration: none;
}

.btn-primary {
  background: var(--emerald-600);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--emerald-500);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(4, 120, 87, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

/* ── Section Shared ── */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--emerald-600);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--stone-800);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.125rem;
  color: var(--stone-600);
  max-width: 520px;
  line-height: 1.7;
}

/* ── Classes ── */
.classes {
  padding: 7rem 0;
  background: var(--cream-50);
}

.classes .container {
  text-align: center;
}

.classes .section-sub {
  margin: 0 auto 3.5rem;
}

.classes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: left;
}

.class-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.class-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 20px 40px rgba(0,0,0,0.08);
}

.class-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/2;
}

.class-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

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

.class-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 47, 35, 0.5) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}

.class-tag {
  background: var(--white);
  color: var(--emerald-800);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.375rem 0.75rem;
  border-radius: 100px;
}

.class-card-body {
  padding: 1.75rem;
}

.class-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--stone-800);
  margin-bottom: 0.75rem;
}

.class-card-body > p {
  font-size: 0.9375rem;
  color: var(--stone-600);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.class-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.class-features li {
  font-size: 0.875rem;
  color: var(--stone-700);
  padding-left: 1.25rem;
  position: relative;
}

.class-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  background: var(--emerald-500);
  border-radius: 50%;
}

/* ── About ── */
.about {
  padding: 7rem 0;
  background: var(--cream-100);
}

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

.about-images {
  position: relative;
  min-height: 500px;
}

.about-img-main {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.about-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img-float {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  border: 4px solid var(--cream-100);
}

.about-img-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content .section-sub {
  margin-bottom: 2rem;
}

.about-text {
  font-size: 1rem;
  color: var(--stone-600);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.value-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.value-item svg {
  color: var(--emerald-600);
  flex-shrink: 0;
  margin-top: 2px;
}

.value-item strong {
  display: block;
  font-size: 1rem;
  color: var(--stone-800);
  margin-bottom: 0.25rem;
}

.value-item span {
  font-size: 0.875rem;
  color: var(--stone-600);
  line-height: 1.6;
}

/* ── Why BJJ ── */
.why {
  padding: 7rem 0;
  background: var(--emerald-900);
  color: var(--white);
}

.why-header {
  text-align: center;
  margin-bottom: 4rem;
}

.why-header .section-label {
  color: var(--emerald-400);
}

.why-header .section-title {
  color: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.why-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2.25rem;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.why-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.why-card-num {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.08);
  line-height: 1;
  margin-bottom: 1rem;
}

.why-card h3 {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.why-card p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

/* ── Testimonial ── */
.testimonial {
  padding: 7rem 0;
  background: var(--cream-100);
}

.testimonial-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-quote {
  color: var(--emerald-300);
  margin-bottom: 1.5rem;
}

.testimonial-content blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.6;
  color: var(--stone-800);
  margin-bottom: 2rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.testimonial-author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--emerald-200);
}

.testimonial-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-author strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--stone-800);
}

.testimonial-author span {
  font-size: 0.8125rem;
  color: var(--stone-500);
}

/* ── Contact ── */
.contact {
  padding: 7rem 0;
  background: var(--cream-50);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-intro {
  font-size: 1rem;
  color: var(--stone-600);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 440px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-detail svg {
  color: var(--emerald-600);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-detail strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone-500);
  margin-bottom: 0.25rem;
}

.contact-detail span,
.contact-detail a {
  font-size: 1rem;
  color: var(--stone-800);
  font-weight: 500;
}

.contact-detail a:hover {
  color: var(--emerald-700);
  text-decoration: underline;
}

/* Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--stone-600);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--cream-200);
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--stone-800);
  background: var(--cream-50);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--stone-400);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-success {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  color: var(--emerald-800);
  font-size: 0.9375rem;
  font-weight: 500;
  margin-top: 1rem;
}

.form-success.show {
  display: flex;
}

.form-success svg {
  flex-shrink: 0;
  color: var(--emerald-600);
}

/* ── Footer ── */
.footer {
  background: var(--emerald-900);
  color: var(--white);
  padding: 4rem 0 2rem;
}

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

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  max-width: 280px;
}

.footer-links strong,
.footer-contact strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-links a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

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

.footer-contact p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: 0.25rem;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ── Reveal Animation (progressive enhancement) ── */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .classes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .hero {
    padding: 6rem 1.5rem 3rem;
  }
  
  .hero-stats {
    gap: 1.25rem;
  }
  
  .hero-stat-divider {
    display: none;
  }
  
  .classes {
    padding: 5rem 0;
  }
  
  .classes-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  
  .about {
    padding: 5rem 0;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-images {
    min-height: 350px;
  }
  
  .about-img-float {
    right: -0.5rem;
    bottom: -1.5rem;
  }
  
  .why {
    padding: 5rem 0;
  }
  
  .why-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonial {
    padding: 5rem 0;
  }
  
  .contact {
    padding: 5rem 0;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 2.25rem;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .contact-form-wrap {
    padding: 1.5rem;
  }
}
