/* ---------- Design tokens ---------- */
:root {
  --maroon: #8a0028;
  --maroon-dark: #5e001b;
  --maroon-light: #b8324f;
  --pink: #e79aa8;
  --pink-light: #f6dfe4;
  --cream: #fdf6f4;
  --text: #2b1013;
  --text-soft: #6b4750;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(90, 0, 30, 0.15);
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  padding-bottom: 62px;
}

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

a {
  color: inherit;
}

section {
  scroll-margin-top: 100px;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/*Header*/
#top-bar {
  background: var(--maroon-dark);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 24px;
  position: sticky;
  top: 0;
  z-index: 55;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

#logo img {
  height: 72px;
  width: auto;
  border-radius: 4px;
}

#side-menu {
  display: flex;
  gap: 28px;
  margin-left: 32px;
}

#side-menu a {
  color: var(--pink-light);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

#side-menu a:hover,
#side-menu a:focus-visible {
  color: #fff;
  border-color: var(--pink);
}

/* Hamburger*/
#menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

#menu-btn span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--pink-light);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

#overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 0, 6, 0.8);
  z-index: 45;
  opacity: 0;
  transition: opacity 0.25s ease;
}

#overlay.show {
  display: block;
  opacity: 1;
}

/* Style*/
.hero {
  background: linear-gradient(160deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 84px 24px 96px;
}

.hero h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0 0 8px;
  letter-spacing: 0.02em;
}

.hero .tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--pink-light);
  margin: 0 0 28px;
  font-style: italic;
}

.hero p.intro {
  max-width: 700px;
  margin: 0 auto;
  color: #f3dde2;
  font-size: 1.05rem;
}

/*headings*/
.section-title {
  text-align: center;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--maroon);
  margin: 0 0 8px;
}

.section-sub {
  text-align: center;
  color: var(--text-soft);
  margin: 0 auto 40px;
  max-width: 560px;
}

/* Features*/
main {
  display: block;
}

.features,
.services-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}


.card {
  background: #fff;
  border: 1px solid var(--pink-light);
  border-top: 4px solid var(--maroon);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow);
  text-align: center;
}

.card h3 {
  margin: 0 0 10px;
  color: var(--maroon-dark);
}

.card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.96rem;
}

.price-list {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

.price-list li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--pink-light);
  color: var(--text-soft);
  font-size: 0.96rem;
}

.price-list li:last-child {
  border-bottom: none;
}

.price-list li span:last-child {
  font-weight: 700;
  color: var(--maroon-dark);
}

/* Bands*/
.band {
  padding: 64px 24px;
}

.band.alt {
  background: var(--pink-light);
}

/*Hours*/
.hours-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.hours-subtitle {
  text-align: center;
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--maroon);
  margin: 0 0 12px;
}

.hours-table {
  max-width: 360px;
  margin: 0 auto;
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}

.hours-table tr:nth-child(even) {
  background: var(--cream);
}

.hours-table td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--pink-light);
}

.hours-table td:last-child {
  text-align: right;
  color: var(--maroon-dark);
  font-weight: 600;
  white-space: nowrap;
}

.hours-note {
  text-align: center;
  color: var(--text-soft);
  margin-top: 16px;
}

/*Course*/
.course-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-soft);
}

/*Scorecard*/
.table-scroll {
  position: relative;
  max-width: var(--max-width);
  margin: 32px auto 0;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.table-scroll-inner {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
}

.scorecard-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: #fff;
}

.scorecard-table th,
.scorecard-table td {
  padding: 12px 14px;
  text-align: center;
  border: 1px solid var(--pink-light);
  white-space: nowrap;
}

.scorecard-table thead th {
  background: var(--maroon);
  color: #fff;
  font-weight: 700;
}

.scorecard-table td:first-child,
.scorecard-table th:first-child {
  text-align: left;
  font-weight: 600;
}

.scorecard-table td:first-child {
  color: var(--maroon-dark);
}

.scorecard-table thead th:first-child {
  color: #fff;
}

.scorecard-table td:last-child {
  font-weight: 700;
  color: var(--maroon-dark);
  background: var(--cream);
}

.scorecard-table .score-row td {
  height: 30px;
  background: var(--cream);
}

/*Contact*/
.contact-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  text-align: center;
}

.contact-grid .card h3 {
  color: var(--maroon);
}

.map-link {
  color: var(--text-soft);
  text-decoration: underline;
  text-decoration-color: var(--pink);
}

.map-link:hover {
  color: var(--maroon-dark);
}

.map-embed {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.map-embed iframe {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}

/*Footer*/
footer {
  background: var(--maroon-dark);
  color: var(--pink-light);
  text-align: center;
  padding: 16px 24px;
  font-size: 0.9rem;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}

footer a {
  color: #fff;
  text-decoration: none;
}

.footer-contact {
  color: #fff;
  font-weight: 600;
  margin: 0;
}

/*Mobile nav*/
@media (max-width: 760px) {
  #menu-btn {
    display: flex;
  }

  #side-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(72vw, 300px);
    margin: 0;
    background: var(--pink-light);
    flex-direction: column;
    align-items: flex-start;
    padding: 90px 28px;
    gap: 22px;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    z-index: 50;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.35);
  }

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

  #side-menu a {
    color: var(--maroon-dark);
  }

  #side-menu a:hover,
  #side-menu a:focus-visible {
    color: var(--maroon);
    border-color: var(--maroon);
  }

  body {
    padding-bottom: calc(60px + env(safe-area-inset-bottom));
  }

  .hero {
    padding: 56px 20px 64px;
  }

  .table-scroll::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 28px;
    pointer-events: none;
    background: linear-gradient(to right, rgba(90, 0, 27, 0), rgba(90, 0, 27, 0.28));
    border-radius: 0 var(--radius) var(--radius) 0;
    opacity: 1;
    transition: opacity 0.2s ease;
  }

  .table-scroll.at-end::after {
    opacity: 0;
  }

  .footer-contact {
    font-size: 0.85rem;
  }

  .features,
  .services-grid,
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 40px 16px;
  }

  .features .card:last-child:nth-child(odd),
  .services-grid .card:last-child:nth-child(odd),
  .contact-grid .card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc(50% - 6px);
    margin: 0 auto;
  }

  .card {
    padding: 16px 12px;
  }

  .card h3 {
    font-size: 0.95rem;
    margin-bottom: 6px;
  }

  .card p,
  .price-list li {
    font-size: 0.82rem;
  }

  .band {
    padding: 40px 16px;
  }

  .hours-grid {
    flex-wrap: nowrap;
    gap: 12px;
  }

  .hours-table {
    max-width: none;
  }

  .hours-subtitle {
    font-size: 1.05rem;
  }

  .hours-table td {
    padding: 8px 10px;
    font-size: 0.82rem;
  }

  .scorecard-table th,
  .scorecard-table td {
    padding: 8px 10px;
    font-size: 0.85rem;
  }
}

@media (min-width: 761px) {
  #overlay {
    display: none !important;
  }
}
