:root {
  --bg: #050505;
  --bg-soft: #101010;
  --card: #171717;
  --text: #f3f0ea;
  --muted: #c9c1b7;
  --line: rgba(255,255,255,0.12);
  --accent: #fa8d00;
  --accent-hover: #fed400;
  --accent-dark: #b96a00;
  --max: 1120px;
  --radius: 22px;
  --shadow: 0 22px 60px rgba(0,0,0,0.35);
--font-primary: 'Roboto', sans-serif;
--font-accent: 'Kaushan Script', cursive;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
}

.title-accent {
    font-family: var(--font-accent);
}

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

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

a:hover { color: var(--accent-hover); }

p { margin: 0 0 1.2rem; color: var(--muted); }

h1, h2, h3 {
  margin: 0 0 1rem;
  color: var(--text);
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

h1 {
  max-width: 14ch;
  font-size: clamp(2.45rem, 6vw, 4.8rem);
}

h2 {
  max-width: 18ch;
  font-size: clamp(1.85rem, 3.6vw, 3rem);
}

h3 {
  font-size: clamp(1.15rem, 1.7vw, 1.35rem);
  letter-spacing: -0.01em;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  padding: 18px clamp(20px, 5vw, 56px);
  background: linear-gradient(to bottom, rgba(0,0,0,0.78), rgba(0,0,0,0));
}

.brand img {
  width: 130px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-toggle,
.nav-button {
  display: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.95rem 1.65rem;
  border: 2px solid rgba(250,141,0,0.95);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #111;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 14px 34px rgba(250,141,0,0.28);
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.button:hover {
  background: linear-gradient(135deg, var(--accent-hover), #ffb800);
  border-color: var(--accent-hover);
  color: #111;
  box-shadow: 0 16px 38px rgba(254,212,0,0.28);
}

.button-secondary {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border-color: rgba(250,141,0,0.9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 12px 30px rgba(0,0,0,0.24);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.button-secondary:hover {
  color: #111;
  background: linear-gradient(135deg, var(--accent-hover), #ffb800);
  border-color: var(--accent-hover);
}

.button-small {
  min-height: 42px;
  padding: 0.6rem 1rem;
  font-size: .8rem;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay,
.page-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(0,0,0,0.88), rgba(0,0,0,0.45)),
    radial-gradient(circle at 70% 20%, rgba(250,141,0,0.18), transparent 30%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
  padding-top: 90px;
}

.lead {
  max-width: 720px;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: #eee4d4;
}

.eyebrow {
  margin-bottom: .65rem;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .82rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2rem;
}

.page-hero {
  position: relative;
  min-height: 55vh;
  display: grid;
  align-items: end;
  padding: 160px 0 80px;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
}

.page-hero > .container {
  position: relative;
  z-index: 2;
}

.section {
  padding: clamp(70px, 9vw, 120px) 0;
}

.section-muted {
  background: var(--bg-soft);
}

.intro-grid,
.schedule-preview,
.cta-grid,
.footer-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
}

.cards {
  display: grid;
  gap: 28px;
}

.cards.three {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.cards.two {
  grid-template-columns: repeat(2, 1fr);
}

.card,
.contact-card,
.schedule-grid article {
  background: rgba(23,23,23,0.78);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.card > div,
.contact-card,
.schedule-grid article {
  padding: 28px;
}

.image-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.profile-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: stretch;
}

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

.text-link {
  color: var(--accent);
  font-weight: 800;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 22px;
  margin-top: 32px;
}

.schedule-grid article p,
.schedule-list p {
  margin-bottom: .45rem;
}

.schedule-list {
  border-left: 3px solid var(--accent);
  padding-left: 28px;
}

.schedule-card {
  position: relative;
}

.schedule-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
}

.schedule-card h3 {
  margin-bottom: 1.1rem;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.schedule-item {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: .75rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.schedule-item:first-of-type {
  border-top: 0;
}

.schedule-time {
  display: inline-flex;
  align-self: flex-start;
  padding: .25rem .6rem;
  border: 1px solid rgba(250,141,0,0.55);
  border-radius: 999px;
  color: var(--accent-hover);
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
  background: rgba(250,141,0,0.08);
}

.schedule-course {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  overflow-wrap: break-word;
  word-break: break-word;
}

.schedule-note {
  margin-top: 1.75rem;
  color: var(--muted);
}

.gallery-grid {
  columns: 3 260px;
  column-gap: 18px;
}

.gallery-grid img {
  width: 100%;
  margin: 0 0 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  break-inside: avoid;
}

.contact-card h2 {
  font-size: 1.55rem;
}

.small {
  font-size: .95rem;
}

.cta-section {
  padding: 70px 0;
  background: linear-gradient(135deg, #251300, #070707);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cta-section.is-hidden {
  display: none;
}

.site-footer {
  padding: 56px 0 26px;
  background: #000;
}

.footer-grid {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.site-footer strong {
  display: block;
  margin-bottom: .7rem;
}

.copyright {
  margin-top: 40px;
  color: #8f8a80;
  font-size: .9rem;
}

@media (max-width: 900px) {
  body { font-size: 16px; }

  .nav-button {
    display: grid;
    gap: 5px;
    cursor: pointer;
  }

  .nav-button span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--text);
  }

  .main-nav {
    position: fixed;
    inset: 86px 18px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(0,0,0,0.94);
  }

  .main-nav a {
    padding: 14px 10px;
  }

  .nav-toggle:checked ~ .main-nav {
    display: flex;
  }

  .intro-grid,
  .schedule-preview,
  .cta-grid,
  .footer-grid,
  .contact-grid,
  .cards.three,
  .cards.two {
    grid-template-columns: 1fr;
  }

  .profile-card {
    grid-template-columns: 1fr;
  }

  .profile-card img {
    max-height: 360px;
  }

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

  .hero {
    min-height: 780px;
  }

  .hero-content {
    padding-top: 120px;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(var(--max), calc(100% - 28px));
  }

  .site-header {
    min-height: 74px;
    padding: 14px 18px;
  }

  .brand img {
    width: 104px;
  }

  .main-nav {
    inset: 74px 14px auto;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  h1 {
    font-size: clamp(2rem, 9vw, 3.1rem);
  }

  .page-hero {
    padding-top: 130px;
  }
}

/* Responsive refinements */
html, body {
  overflow-x: hidden;
}

.hero-content {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.hero h1,
.page-hero h1 {
  max-width: 13ch;
  overflow-wrap: normal;
  hyphens: none;
}

.button {
  max-width: 100%;
  text-align: center;
  white-space: normal;
  line-height: 1.25;
}

@media (max-width: 900px) {
  .hero-overlay,
  .page-hero::before {
    background:
      linear-gradient(180deg, rgba(0,0,0,0.74), rgba(0,0,0,0.66)),
      radial-gradient(circle at 60% 18%, rgba(250,141,0,0.16), transparent 38%);
  }

  .hero {
    min-height: 100svh;
    padding: 110px 0 56px;
    align-items: end;
  }

  .hero-content {
    padding-top: 0;
  }

  .hero h1 {
    max-width: 13ch;
    font-size: clamp(2.2rem, 8.5vw, 3.7rem);
    line-height: 1.12;
  }

  .lead {
    max-width: 34rem;
    font-size: clamp(1.05rem, 4vw, 1.35rem);
  }

  .hero-actions {
    max-width: 520px;
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: 100svh;
    padding: 96px 0 42px;
  }

  .eyebrow {
    font-size: .74rem;
    letter-spacing: .1em;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2rem, 8.8vw, 2.7rem);
    line-height: 1.14;
  }

  .page-hero h1 {
    max-width: 100%;
    font-size: clamp(2rem, 8.2vw, 2.7rem);
  }

  h2 {
    max-width: 100%;
    font-size: clamp(1.55rem, 7vw, 2.1rem);
  }

  .lead {
    font-size: 1.02rem;
    line-height: 1.55;
  }

  .hero-actions {
    gap: 12px;
    margin-top: 1.5rem;
    padding-inline: 10px;
  }

  .schedule-item {
    gap: .3rem;
  }

  .button {
    min-height: 54px;
    padding: .85rem 1rem;
    font-size: .86rem;
    letter-spacing: .035em;
  }
}

@media (max-width: 380px) {
  .brand img {
    width: 92px;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 8.5vw, 2.4rem);
  }

  .hero {
    padding-top: 88px;
  }
}


/* --- FINAL MOBILE SPACING FIX --- */
/* The hero-content element is also a .container.
   It must keep the same side margins as all other containers. */
.hero-content.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

@media (max-width: 520px) {
  .hero-content.container,
  .page-hero > .container,
  .section > .container,
  .cta-section > .container {
    width: calc(100% - 36px);
    margin-inline: auto;
  }

  .hero {
    padding: 96px 0 48px;
  }

  .hero-title,
  .page-hero h1,
  h1,
  h2,
  h3 {
    margin-top: 0;
    margin-bottom: 1rem;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(1.85rem, 8vw, 2.45rem);
    line-height: 1.18;
  }

  .lead {
    margin-top: .35rem;
    margin-bottom: 1.25rem;
  }

  .hero-actions {
    width: 100%;
    padding-inline: 0;
    margin-top: 1.4rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .button {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .page-hero {
    padding: 128px 0 56px;
  }
}

@media (max-width: 380px) {
  .hero-content.container,
  .page-hero > .container,
  .section > .container,
  .cta-section > .container {
    width: calc(100% - 30px);
  }

  .hero h1 {
    font-size: clamp(1.75rem, 7.6vw, 2.2rem);
  }
}
