:root {
  --bg: #f8f4eb;
  --surface: #fffdf8;
  --surface-2: #f2ebda;
  --text: #1f1b14;
  --muted: #5e5547;
  --brand: #a87b2d;
  --brand-deep: #7f5b1a;
  --line: #decfb3;
  --dark: #111111;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Outfit", sans-serif;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(circle at 7% 15%, #efe2c2 0%, transparent 33%),
    radial-gradient(circle at 93% 20%, #efe2c2 0%, transparent 28%),
    var(--bg);
}

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

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 244, 235, 0.94);
  backdrop-filter: blur(10px);
}

.header-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  text-decoration: none;
  color: var(--dark);
  font-family: "Cinzel", serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.nav {
  display: flex;
  gap: 1.4rem;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  position: relative;
}

.nav a.active,
.nav a:hover {
  color: var(--brand-deep);
}

.nav a.active::after,
.nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.3rem;
  height: 2px;
  background: var(--brand);
}

.menu-btn {
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  background: var(--surface);
  font-size: 1.2rem;
}

.hero,
.page-hero {
  padding: 5rem 0 3.5rem;
}

.hero {
  position: relative;
}

.hero-video {
  overflow: hidden;
}

.hero-video-bg,
.hero-video-overlay {
  position: absolute;
  inset: 0;
}

.hero-video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: saturate(0.95) brightness(0.56);
}

.hero-video-overlay {
  background:
    linear-gradient(120deg, rgba(18, 14, 9, 0.84) 0%, rgba(18, 14, 9, 0.52) 55%, rgba(18, 14, 9, 0.7) 100%);
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero .eyebrow,
.hero h1 {
  color: #fffaf1;
}

.hero .lead {
  color: #f4e8d2;
}

.eyebrow {
  margin-bottom: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-deep);
  font-weight: 700;
  font-size: 0.77rem;
}

h1,
h2,
h3 {
  font-family: "Cinzel", serif;
  line-height: 1.18;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.35rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.15rem;
}

.lead {
  color: var(--muted);
  max-width: 60ch;
}

.hero-actions {
  margin-top: 1.35rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  display: inline-block;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: var(--brand);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--brand-deep);
}

.hero .btn-primary {
  background: #d39d3f;
  color: #201406;
}

.hero .btn-primary:hover {
  background: #e6b255;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}

.hero .btn-secondary {
  background: rgba(255, 251, 242, 0.14);
  color: #fffaf1;
  border-color: rgba(255, 243, 220, 0.45);
}

.hero .btn-secondary:hover {
  background: rgba(255, 251, 242, 0.22);
}

.slideshow {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(78, 53, 18, 0.18);
  aspect-ratio: 4 / 3;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.slide.active {
  opacity: 1;
}

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

.slide-dots {
  position: absolute;
  bottom: 0.9rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  z-index: 10;
}

.dot {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}

.dot.active {
  background: #ffffff;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
}

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

.card,
.review-card,
.coach-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 1rem;
}

.review-card img,
.coach-card img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #f4ebd6;
  margin-bottom: 0.7rem;
}

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

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 1rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem;
  margin-top: 0.3rem;
  font: inherit;
  background: #fffefb;
}

.site-footer {
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.hidden {
  display: none !important;
}

.portal-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 1rem;
  align-items: start;
}

.portal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
}

#dashboardCard {
  display: none;
}

#dashboardCard.active {
  display: block;
}

.portal-note {
  margin-top: -0.45rem;
  color: var(--muted);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin: 0.8rem 0 1rem;
}

.tab-btn {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffefb;
  font: inherit;
  font-weight: 600;
  padding: 0.6rem 0.4rem;
  cursor: pointer;
}

.tab-btn.active {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
}

.auth-form {
  display: grid;
  gap: 0.7rem;
}

.dashboard-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin: 1rem 0;
}

.stat-box {
  background: #fcf7eb;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem;
}

.stat-box span {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
}

.stat-box strong {
  font-size: 1.15rem;
}

.puzzle-wrap {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
}

.puzzle-board {
  width: min(100%, 460px);
  margin: 0.65rem 0 0.2rem;
}

.status-text {
  min-height: 24px;
  font-weight: 600;
  color: #2e7d32;
}

.status-text.error {
  color: #b3261e;
}

.portal-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .hero-grid,
  .section-grid,
  .contact-wrap,
  .portal-layout,
  .cards,
  .reviews-grid,
  .coaches-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }

  .nav a {
    width: 100%;
    padding: 0.9rem 4%;
    border-top: 1px solid var(--line);
  }

  .nav a::after,
  .nav a.active::after,
  .nav a:hover::after {
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .menu-btn {
    display: inline-block;
  }

  .hero,
  .page-hero {
    padding-top: 3.5rem;
  }

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

  .puzzle-board {
    width: 100%;
  }
}
