:root {
  color-scheme: light;
  font-family: "Cormorant Garamond", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f7f4ea;
  color: #1f1f1f;
}

a {
  color: inherit;
}

.site-header {
  align-items: center;
  background: var(--nav-bg);
  color: var(--site-text);
  display: flex;
  font-size: clamp(1.25rem, 1.6vw, 2rem);
  justify-content: space-between;
  left: 0;
  padding: 1rem 2.5vw;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  font-size: clamp(1.5rem, 2.5vw, 3rem);
  font-weight: 700;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: clamp(1rem, 3vw, 3rem);
}

.site-header nav a {
  border-bottom: 2px solid transparent;
  text-decoration: none;
}

.site-header nav a.active,
.site-header nav a:hover {
  border-color: currentColor;
}

.section {
  background: var(--section-bg);
  color: var(--section-text);
  min-height: 100vh;
  padding: clamp(6rem, 10vw, 9rem) clamp(1.5rem, 4vw, 5rem) clamp(4rem, 8vw, 7rem);
}

.section-grid {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 5vw, 7rem);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  min-height: calc(100vh - 12rem);
}

.section-inner {
  margin: 0 auto;
  max-width: 1600px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-size: clamp(4rem, 8vw, 9rem);
  line-height: 0.9;
  margin-bottom: 2rem;
}

h3 {
  font-size: clamp(2.4rem, 4vw, 5rem);
  line-height: 0.9;
  margin-bottom: 1.5rem;
}

p,
.lead {
  font-size: clamp(1.5rem, 2.1vw, 2.6rem);
  line-height: 1.35;
}

.eyebrow {
  font-size: clamp(1.4rem, 2vw, 2.3rem);
  font-weight: 700;
  margin-bottom: clamp(6rem, 14vw, 16rem);
}

.hero-copy {
  max-width: 720px;
}

.hero-media img,
.about-media img,
.lesson-media img,
.gallery-grid img,
.gallery-grid video {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hero-media {
  aspect-ratio: 1.04 / 1;
  overflow: hidden;
}

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

.about-media {
  align-self: stretch;
  min-height: 58vh;
  overflow: hidden;
}

.about-copy {
  max-width: 900px;
}

.text-columns {
  display: grid;
  gap: clamp(1.5rem, 3vw, 4rem);
  grid-template-columns: 1fr 1fr;
}

.text-columns p {
  font-size: clamp(1.35rem, 1.65vw, 2rem);
}

.pill-button {
  align-items: center;
  background: var(--button-bg);
  border-radius: 999px;
  color: var(--button-text);
  display: inline-flex;
  font-size: clamp(1.2rem, 1.7vw, 2rem);
  justify-content: center;
  min-height: 4.8rem;
  min-width: min(24rem, 100%);
  padding: 1rem 2rem;
  text-decoration: none;
}

.lessons-section {
  display: flex;
  align-items: center;
}

.lesson-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 3rem);
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}

.lesson-showcase {
  align-items: stretch;
  display: grid;
  gap: clamp(2rem, 5vw, 6rem);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  margin-top: clamp(3rem, 6vw, 6rem);
}

.lesson-media {
  min-height: min(46rem, 60vh);
  overflow: hidden;
}

.lesson-item p {
  font-size: clamp(1.35rem, 1.8vw, 2.2rem);
}

.contact-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
}

.whatsapp-panel {
  border: 2px solid currentColor;
  border-radius: 8px;
  padding: clamp(1.5rem, 3vw, 3rem);
}

.booking-details {
  display: grid;
  gap: 1.5rem;
}

.whatsapp-panel p {
  font-family: Inter, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.whatsapp-panel a {
  display: block;
  font-size: clamp(2rem, 4vw, 5rem);
  line-height: 1;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.map-embed {
  aspect-ratio: 4 / 3;
  border: 2px solid currentColor;
  border-radius: 8px;
  overflow: hidden;
}

.map-embed iframe {
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

.page-section {
  padding-top: clamp(8rem, 12vw, 11rem);
}

.gallery-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 2rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(3rem, 5vw, 5rem);
}

.gallery-item {
  aspect-ratio: 4 / 3;
  background: #111;
  border: 1px solid rgb(247 244 234 / 40%);
  border-radius: 8px;
  color: inherit;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.gallery-grid img,
.gallery-grid video {
  aspect-ratio: 4 / 3;
  background: #111;
  object-fit: contain;
}

.play-badge {
  background: rgb(0 0 0 / 56%);
  border: 2px solid #fff;
  border-radius: 999px;
  display: grid;
  height: 4.5rem;
  left: 50%;
  place-items: center;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 4.5rem;
}

.play-badge::before {
  border-bottom: 0.9rem solid transparent;
  border-left: 1.35rem solid #fff;
  border-top: 0.9rem solid transparent;
  content: "";
  margin-left: 0.25rem;
}

.lightbox {
  inset: 0;
  position: fixed;
  z-index: 100;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-scrim {
  background: rgb(0 0 0 / 78%);
  border: 0;
  cursor: pointer;
  inset: 0;
  position: absolute;
}

.lightbox-panel {
  display: grid;
  inset: 0;
  padding: clamp(1rem, 4vw, 4rem);
  place-items: center;
  pointer-events: none;
  position: absolute;
}

.lightbox-close {
  align-items: center;
  background: #f7f4ea;
  border: 0;
  border-radius: 999px;
  color: #111;
  cursor: pointer;
  display: flex;
  font: 700 2rem/1 Inter, system-ui, sans-serif;
  height: 3rem;
  justify-content: center;
  pointer-events: auto;
  position: absolute;
  right: clamp(1rem, 3vw, 3rem);
  top: clamp(1rem, 3vw, 3rem);
  width: 3rem;
  z-index: 2;
}

.lightbox-media {
  height: min(88vh, 760px);
  max-width: min(1100px, 92vw);
  pointer-events: auto;
  width: min(1100px, 92vw);
}

.lightbox-media img,
.lightbox-media video {
  background: #111;
  border-radius: 8px;
  display: block;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  width: 100%;
}

body.lightbox-open {
  overflow: hidden;
}

.site-footer {
  align-items: center;
  background: #111;
  color: #f7f4ea;
  display: flex;
  flex-wrap: wrap;
  font-family: Inter, system-ui, sans-serif;
  gap: 1rem 2rem;
  justify-content: center;
  padding: 1.25rem;
}

.site-footer a {
  text-decoration-thickness: 1px;
}

.flash-wrap {
  left: 50%;
  position: fixed;
  top: 5.5rem;
  transform: translateX(-50%);
  z-index: 30;
}

.flash {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgb(0 0 0 / 16%);
  color: #111;
  font-family: Inter, system-ui, sans-serif;
  font-size: 1rem;
  margin: 0;
  padding: 0.8rem 1rem;
}

.admin-page {
  background: #f3f1e8;
  color: #1f1f1f;
  font-family: Inter, system-ui, sans-serif;
  min-height: 100vh;
  padding: 8rem clamp(1rem, 4vw, 4rem) 4rem;
}

.admin-form {
  margin: 0 auto;
  max-width: 1120px;
}

.admin-heading {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.admin-heading h1,
.login-card h1 {
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  margin-bottom: 0.4rem;
}

.admin-heading p {
  font-size: 1rem;
  margin: 0;
}

.admin-card {
  background: #fff;
  border: 1px solid #ddd8ca;
  border-radius: 8px;
  margin: 0 0 1.25rem;
  padding: 1.25rem;
}

.admin-card legend {
  font-weight: 700;
  padding: 0 0.4rem;
}

.admin-subcard {
  border-top: 1px solid #eee8dc;
  margin-top: 1rem;
  padding-top: 1rem;
}

.admin-card label,
.login-card label {
  display: grid;
  font-size: 0.95rem;
  font-weight: 700;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.admin-card input,
.admin-card textarea,
.login-card input {
  border: 1px solid #bfb8aa;
  border-radius: 6px;
  font: inherit;
  padding: 0.7rem 0.8rem;
  width: 100%;
}

.admin-card textarea {
  min-height: 8rem;
  resize: vertical;
}

.admin-note {
  color: #5d594f;
  font-size: 0.95rem;
  margin: 0;
}

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

.color-picker {
  position: relative;
}

.color-trigger {
  align-items: center;
  background: #fff;
  border: 1px solid #bfb8aa;
  border-radius: 8px;
  color: #1f1f1f;
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  justify-content: space-between;
  min-height: 3rem;
  padding: 0.7rem 0.8rem;
  text-align: left;
  width: 100%;
}

.color-trigger[aria-expanded="true"] {
  border-color: #1f1f1f;
  box-shadow: 0 0 0 2px rgb(31 31 31 / 10%);
}

.current-color {
  background: var(--current-color);
  border: 1px solid #9f988c;
  border-radius: 999px;
  display: block;
  height: 1.45rem;
  width: 1.45rem;
}

.color-popover {
  background: #fff;
  border: 1px solid #ddd8ca;
  border-radius: 8px;
  box-shadow: 0 14px 35px rgb(0 0 0 / 14%);
  left: 0;
  margin-top: 0.4rem;
  padding: 0.75rem;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 25;
}

.swatch-grid {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.color-swatch {
  aspect-ratio: 1;
  background: var(--swatch);
  border: 1px solid #bfb8aa;
  border-radius: 999px;
  cursor: pointer;
  min-height: 2rem;
  padding: 0;
}

.color-swatch.selected {
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px #1f1f1f;
}

.custom-color {
  align-items: center;
  border: 1px solid #bfb8aa;
  border-radius: 999px;
  cursor: pointer;
  display: flex !important;
  font-size: 0.72rem !important;
  gap: 0.35rem !important;
  grid-column: span 2;
  grid-template-columns: none !important;
  justify-content: center;
  margin: 0 !important;
  min-height: 2rem;
  overflow: hidden;
  padding: 0.15rem 0.45rem;
}

.custom-color input[type="color"] {
  border: 0;
  cursor: pointer;
  height: 1.5rem;
  min-height: 0;
  padding: 0;
  width: 1.5rem;
}

.admin-heading button,
.admin-actions button,
.login-card button {
  background: #2f7826;
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  min-height: 3rem;
  padding: 0.8rem 1.4rem;
}

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

.gallery-editor img,
.gallery-editor video,
.admin-preview {
  aspect-ratio: 4 / 3;
  display: block;
  background: #111;
  object-fit: cover;
  width: 100%;
}

.login-page {
  display: grid;
  place-items: center;
}

.login-card {
  max-width: 420px;
  width: 100%;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }

  .site-header nav {
    font-size: 1.35rem;
  }

  .section-grid,
  .about-grid,
  .contact-grid,
  .text-columns,
  .lesson-showcase,
  .lesson-grid,
  .gallery-grid,
  .gallery-editor {
    grid-template-columns: 1fr;
  }

  .color-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section {
    min-height: auto;
    padding-top: 8rem;
  }

  .section-grid {
    min-height: auto;
  }

  h1,
  h2 {
    font-size: clamp(3.3rem, 18vw, 5.8rem);
  }

  h3 {
    font-size: clamp(2.4rem, 12vw, 4rem);
  }

  .eyebrow {
    margin-bottom: 4rem;
  }

  .hero-media,
  .about-media {
    min-height: auto;
  }

  .admin-heading {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .site-header nav {
    gap: 1rem;
  }

  p,
  .lead {
    font-size: 1.35rem;
  }

  .pill-button {
    min-width: 100%;
  }

  .color-row {
    grid-template-columns: 1fr;
  }

  .color-popover {
    position: static;
  }
}
