:root {
  --leaf: #84bd35;
  --leaf-dark: #446f24;
  --maroon: #8f2336;
  --maroon-dark: #551422;
  --gold: #b88a2e;
  --gold-soft: #efe0b8;
  --ivory: #fffaf1;
  --paper: #ffffff;
  --mist: #f5f8ed;
  --ink: #221f1b;
  --muted: #655d55;
  --line: rgba(34, 31, 27, 0.12);
  --shadow: 0 18px 46px rgba(82, 52, 26, 0.12);
  --radius: 8px;
  --container: 1160px;
  --header-height: 82px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, rgba(132, 189, 53, 0.08), transparent 360px),
    var(--ivory);
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  color: var(--paper);
  background: var(--maroon);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-height);
  background: rgba(255, 250, 241, 0.96);
  border-bottom: 1px solid rgba(184, 138, 46, 0.24);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: min(100% - 2rem, var(--container));
  min-height: var(--header-height);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 238px;
  min-width: 182px;
}

.brand img {
  width: 100%;
  height: auto;
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.site-menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.45rem 0.72rem;
  color: #463d37;
  font-size: 0.94rem;
  font-weight: 800;
  border-radius: var(--radius);
}

.site-menu a::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.3rem;
  height: 2px;
  background: var(--leaf);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.site-menu a:hover,
.site-menu a:focus-visible {
  color: var(--maroon);
  outline: none;
}

.site-menu a:hover::after,
.site-menu a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--maroon);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero {
  position: relative;
  min-height: min(720px, calc(100svh - 92px));
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--ink);
  background: var(--ivory);
}

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

.hero-carousel {
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  filter: saturate(1.08) contrast(1.02);
  opacity: 0;
  transition: opacity 0.9s ease;
}

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

.hero-overlay {
  background:
    linear-gradient(
      90deg,
      rgba(255, 250, 241, 0.96) 0%,
      rgba(255, 250, 241, 0.86) 36%,
      rgba(255, 250, 241, 0.54) 54%,
      rgba(255, 250, 241, 0.12) 74%,
      rgba(255, 250, 241, 0) 100%
    ),
    linear-gradient(180deg, rgba(85, 20, 34, 0.03), rgba(68, 111, 36, 0.1));
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
  padding: 5.4rem 0 5.8rem;
}

.hero-name {
  margin: 0 0 0.55rem;
  color: var(--maroon);
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 2px;
  background: currentColor;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.12;
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 0;
}

h1 {
  max-width: 850px;
  color: var(--maroon-dark);
  font-size: clamp(2.65rem, 7vw, 5.95rem);
}

h2 {
  color: var(--maroon-dark);
  font-size: clamp(2rem, 4vw, 3.3rem);
}

h3 {
  color: var(--maroon-dark);
  font-size: 1.4rem;
}

.hero-copy {
  max-width: 710px;
  margin: 1.2rem 0 0;
  color: #504640;
  font-size: clamp(1.02rem, 2vw, 1.2rem);
}

.hero-points {
  display: grid;
  gap: 0.45rem;
  max-width: 690px;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  position: relative;
  padding-left: 1.35rem;
  color: #4f463f;
  font-weight: 700;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 0.52rem;
  height: 0.52rem;
  background: var(--leaf);
  border-radius: 50%;
}

.hero-actions,
.section-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  gap: 0.5rem;
  padding: 0.68rem 1rem;
  font-weight: 900;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button.primary {
  color: var(--paper);
  background: #1f9d55;
  border-color: rgba(255, 255, 255, 0.16);
}

.button.secondary {
  color: var(--paper);
  background: var(--maroon);
  border-color: rgba(255, 255, 255, 0.18);
}

.button.ghost {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.36);
}

.hero .button.ghost {
  color: var(--maroon-dark);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(143, 35, 54, 0.2);
}

.button.ghost.dark {
  color: var(--maroon-dark);
  background: var(--paper);
  border-color: var(--line);
}

.intro-band {
  background: var(--paper);
  border-bottom: 1px solid rgba(184, 138, 46, 0.22);
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(184, 138, 46, 0.22);
}

.highlight-grid > div {
  min-height: 106px;
  padding: 1.25rem;
  background: var(--paper);
}

.highlight-grid strong {
  display: block;
  color: var(--maroon);
  font-size: 0.84rem;
  text-transform: uppercase;
}

.highlight-grid span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-weight: 650;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.about-section,
.gallery-section,
.faq-section {
  background: var(--ivory);
}

.two-column,
.mission-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.84fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.two-column.reverse {
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1fr);
}

.section-copy p,
.section-heading p,
.mission-list p,
.contact-copy p,
.event-archive p,
.faq-list p {
  color: var(--muted);
  font-size: 1.02rem;
}

.section-copy p:last-child,
.section-heading p:last-child {
  margin-bottom: 0;
}

.value-panel {
  position: relative;
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--paper);
  border: 1px solid rgba(184, 138, 46, 0.28);
  border-top: 5px solid var(--leaf);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.check-list {
  display: grid;
  gap: 0.8rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.45rem;
  color: var(--muted);
  font-weight: 600;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 0.56rem;
  height: 0.56rem;
  background: var(--leaf);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(132, 189, 53, 0.15);
}

.split-band {
  color: var(--paper);
  background:
    linear-gradient(135deg, rgba(143, 35, 54, 0.92), rgba(85, 20, 34, 0.98)),
    var(--maroon-dark);
}

.split-band h2,
.split-band .eyebrow {
  color: var(--paper);
}

.split-band .eyebrow {
  color: var(--gold-soft);
}

.mission-list {
  display: grid;
  gap: 1rem;
}

.mission-list p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.guru-section,
.classes-section {
  background: var(--paper);
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--mist);
  border: 1px solid rgba(132, 189, 53, 0.22);
  box-shadow: var(--shadow);
}

.portrait-frame::before {
  content: "";
  position: absolute;
  inset: 1rem;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: calc(var(--radius) - 2px);
  pointer-events: none;
}

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

.section-heading {
  max-width: 850px;
  margin-bottom: 2rem;
}

.section-heading.compact {
  max-width: 780px;
}

.training-grid,
.milestone-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.milestone-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.training-card,
.milestone-grid article {
  min-height: 236px;
  padding: 1.35rem;
  background: var(--paper);
  border: 1px solid rgba(184, 138, 46, 0.24);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(66, 49, 28, 0.07);
}

.training-card {
  position: relative;
  border-top: 4px solid var(--leaf);
}

.training-card::before {
  content: "";
  display: block;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1rem;
  background:
    radial-gradient(circle at 50% 50%, var(--leaf) 0 28%, transparent 30%),
    conic-gradient(from 45deg, var(--maroon), var(--gold), var(--leaf), var(--maroon));
  border-radius: 50%;
}

.training-card p,
.milestone-grid p {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.local-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1.3rem;
  padding: 1.2rem;
  color: var(--ink);
  background: var(--mist);
  border: 1px solid rgba(132, 189, 53, 0.22);
  border-radius: var(--radius);
}

.local-note p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
}

.events-section {
  background:
    linear-gradient(180deg, var(--mist), var(--ivory));
}

.milestone-grid article span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  margin-bottom: 1rem;
  color: var(--paper);
  background: var(--maroon);
  border-radius: 999px;
  font-weight: 900;
}

.event-archive {
  display: grid;
  grid-template-columns: minmax(240px, 0.65fr) minmax(0, 1fr);
  gap: 1.4rem;
  margin-top: 1.5rem;
  padding: 1.4rem;
  background: var(--paper);
  border: 1px solid rgba(184, 138, 46, 0.24);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(66, 49, 28, 0.06);
}

.event-archive[hidden] {
  display: none;
}

.event-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.event-card {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.event-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: calc(var(--radius) - 2px);
}

.event-card p {
  margin: 0;
}

.event-card h4 {
  margin: 0;
  color: var(--maroon-dark);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.18;
}

.empty-state {
  margin: 0;
  padding: 1rem;
  background: var(--mist);
  border: 1px dashed rgba(132, 189, 53, 0.44);
  border-radius: var(--radius);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1rem;
}

.gallery-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.2rem;
}

.gallery-controls[hidden],
.gallery-more[hidden] {
  display: none;
}

.gallery-filter {
  min-height: 40px;
  padding: 0.5rem 0.85rem;
  color: var(--maroon-dark);
  background: var(--paper);
  border: 1px solid rgba(143, 35, 54, 0.2);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
}

.gallery-filter:hover,
.gallery-filter:focus-visible,
.gallery-filter.is-active {
  color: var(--paper);
  background: var(--maroon);
  border-color: var(--maroon);
  outline: none;
}

.gallery-item {
  position: relative;
  width: 100%;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: var(--paper);
  border: 1px solid rgba(184, 138, 46, 0.24);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(66, 49, 28, 0.09);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.gallery-label {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  max-width: calc(100% - 1.7rem);
  padding: 0.3rem 0.55rem;
  color: var(--paper);
  background: rgba(85, 20, 34, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 900;
}

.gallery-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1rem;
  color: var(--muted);
  background: var(--mist);
  border: 1px dashed rgba(132, 189, 53, 0.44);
  border-radius: var(--radius);
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.035);
}

.gallery-item:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.gallery-more-row {
  display: flex;
  justify-content: center;
  margin-top: 1.4rem;
}

.button.gallery-more {
  color: var(--paper);
  background: var(--maroon);
}

.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 920px;
}

.faq-list details {
  padding: 1rem 1.15rem;
  background: var(--paper);
  border: 1px solid rgba(184, 138, 46, 0.24);
  border-radius: var(--radius);
}

.faq-list summary {
  cursor: pointer;
  color: var(--maroon-dark);
  font-weight: 800;
}

.faq-list p {
  margin-bottom: 0;
}

.contact-section {
  color: var(--paper);
  background:
    linear-gradient(135deg, rgba(68, 111, 36, 0.94), rgba(85, 20, 34, 0.98)),
    var(--maroon-dark);
}

.contact-section h2,
.contact-section .eyebrow {
  color: var(--paper);
}

.contact-section .eyebrow {
  color: var(--gold-soft);
}

.contact-copy p,
.contact-copy address {
  color: rgba(255, 255, 255, 0.86);
}

.contact-copy address {
  margin-top: 1.4rem;
  font-style: normal;
}

.map-frame {
  min-height: 420px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  box-shadow: 0 18px 45px rgba(22, 14, 11, 0.18);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

.site-footer {
  padding: 2rem 0;
  color: #4d4039;
  background: var(--paper);
  border-top: 1px solid rgba(184, 138, 46, 0.24);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer img {
  width: 170px;
}

.site-footer p {
  margin: 0;
  font-size: 0.92rem;
}

.site-footer .copyright {
  font-size: 0.82rem;
  opacity: 0.76;
}

.site-footer a {
  color: var(--maroon);
  font-weight: 800;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(18, 11, 9, 0.88);
}

.lightbox[hidden] {
  display: none;
}

.lightbox figure {
  width: min(100%, 920px);
  margin: 0;
}

.lightbox img {
  width: 100%;
  max-height: 78svh;
  object-fit: contain;
  background: #000;
  border-radius: var(--radius);
}

.lightbox figcaption {
  margin-top: 0.75rem;
  color: var(--paper);
  text-align: center;
}

.lightbox-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  cursor: pointer;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-icon::before {
  top: -0.42rem;
}

.menu-icon::after {
  top: 0.42rem;
}

.floating-whatsapp {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.72rem 1rem;
  color: var(--paper);
  background: #1f9d55;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(20, 71, 39, 0.25);
  font-weight: 900;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.floating-whatsapp.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.75rem);
}

.floating-whatsapp:hover,
.floating-whatsapp:focus-visible {
  background: #178a49;
  outline: 3px solid rgba(31, 157, 85, 0.28);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  :root {
    --header-height: 74px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-menu {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(var(--header-height) + 0.4rem);
    display: grid;
    gap: 0.15rem;
    padding: 0.65rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transform-origin: top;
    transform: scaleY(0.96);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .site-menu.is-open {
    transform: scaleY(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-menu a {
    width: 100%;
  }

  .site-menu a::after {
    display: none;
  }

  .hero {
    min-height: calc(100svh - 150px);
  }

  .highlight-grid,
  .two-column,
  .two-column.reverse,
  .mission-grid,
  .training-grid,
  .milestone-grid,
  .event-archive,
  .contact-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    display: grid;
  }

  .local-note {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .brand {
    width: 190px;
  }

  .hero-overlay {
    background:
      linear-gradient(
        90deg,
        rgba(255, 250, 241, 0.98) 0%,
        rgba(255, 250, 241, 0.9) 60%,
        rgba(255, 250, 241, 0.72) 100%
      ),
      linear-gradient(180deg, rgba(85, 20, 34, 0.03), rgba(68, 111, 36, 0.1));
  }

  .hero-inner {
    padding: 3.4rem 0;
  }

  .hero-actions,
  .section-actions,
  .contact-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 3.4rem 0;
  }

  .gallery-grid,
  .event-list {
    grid-template-columns: 1fr;
  }

  .highlight-grid > div {
    min-height: auto;
  }

  .site-footer img {
    width: 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
