:root {
  --bay-red: #d71920;
  --bay-red-dark: #a70f17;
  --bay-yellow: #FDEB07;
  --bay-yellow-soft: #fff0a8;
  --sea: #00a7c8;
  --deep: #101820;
  --ink: #16212b;
  --muted: #66717c;
  --sand: #fff8e5;
  --paper: #ffffff;
  --line: rgba(16, 24, 32, 0.12);
  --shadow: 0 24px 70px rgba(16, 24, 32, 0.16);
  --header-height: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #fffef4 0, #ffffff 440px, #ffffff 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.panel-open {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

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

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

.site-header,
.admin-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px max(18px, calc((100vw - 1180px) / 2));
  background: var(--bay-yellow);
  color: var(--bay-red);
  box-shadow: 0 8px 22px rgba(129, 0, 10, 0.1);
}

.site-header::after,
.admin-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--bay-red);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
}

.brand img {
  width: 168px;
  height: 62px;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.brand span {
  display: none;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 18px;
}

.main-nav a,
.ghost-button,
.header-cta,
.secondary-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(215, 25, 32, 0.18);
  border-radius: 8px;
  padding: 0 14px;
  font-weight: 900;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.main-nav a:hover,
.ghost-button:hover,
.secondary-action:hover,
.header-cta:hover,
.primary-action:hover {
  transform: translateY(-1px);
}

.header-cta {
  border: 0;
  background: var(--bay-red);
  color: var(--paper);
  text-transform: uppercase;
}

.main-nav a {
  border: 0;
  min-height: 36px;
  padding: 0;
  color: var(--bay-red);
  font-size: 0.98rem;
  font-weight: 750;
  text-transform: none;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.language-selector {
  position: relative;
  flex: 0 0 auto;
}

.language-current {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(215, 25, 32, 0.25);
  border-radius: 8px;
  padding: 0 9px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--bay-red);
  font-weight: 1000;
}

.language-current img,
.language-menu img {
  width: 26px;
  height: 19px;
  flex: 0 0 auto;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(16, 24, 32, 0.14);
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  width: 176px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.language-menu[hidden] {
  display: none;
}

.language-menu button {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 6px;
  padding: 0 10px;
  background: transparent;
  color: var(--deep);
  font-weight: 800;
  text-align: left;
}

.language-menu button:hover,
.language-menu button.active {
  background: var(--bay-yellow-soft);
  color: var(--bay-red);
}


.header-actions a {
  width: 34px;
  height: 34px;
  display: none;
  place-items: center;
  border-radius: 0;
  background: var(--bay-red);
  color: var(--paper);
  transition: transform 160ms ease, background 160ms ease;
}

.header-actions svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.hero {
  position: relative;
  min-height: min(760px, calc(100svh - var(--header-height)));
  isolation: isolate;
  overflow: hidden;
  background: var(--deep);
}

.hero picture,
.hero picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero picture img {
  object-fit: cover;
  /* object-position: center 45%; */
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 16%, rgba(253, 235, 7, 0.22), transparent 26%),
    linear-gradient(90deg, rgba(11, 16, 22, 0.88), rgba(11, 16, 22, 0.48) 44%, rgba(11, 16, 22, 0.08)),
    linear-gradient(0deg, rgba(11, 16, 22, 0.7), rgba(11, 16, 22, 0.02) 48%);
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  right: max(18px, calc((100vw - 1180px) / 2));
  bottom: 34px;
  z-index: 2;
  width: min(34vw, 360px);
  height: 6px;
  /* background: var(--bay-yellow);
  box-shadow: -42px 16px 0 var(--bay-red); */
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 36px));
  min-height: min(760px, calc(100svh - var(--header-height)));
  margin: 0 auto;
  padding: 56px 0 84px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--paper);
}

.eyebrow {
  width: fit-content;
  margin: 0 0 12px;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(253, 235, 7, 0.14);
  color: var(--bay-yellow);
  font-size: 0.78rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.7rem);
  line-height: 0.88;
  font-weight: 1000;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero-copy {
  max-width: 610px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.07rem;
  line-height: 1.55;
  font-weight: 700;
}

.hero-actions,
.contact-actions,
.admin-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-actions {
  margin-top: 24px;
}

.primary-action {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bay-red);
  color: var(--paper);
  font-weight: 1000;
  text-transform: uppercase;
  /* box-shadow: 0 16px 30px rgba(215, 25, 32, 0.24); */
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-action.compact {
  min-height: 42px;
  padding: 0 14px;
  font-size: 0.86rem;
}

.primary-action.full {
  width: 100%;
}

.secondary-action {
  background: rgba(255, 255, 255, 0.16);
  color: var(--paper);
  backdrop-filter: blur(16px);
}

.hero-stats {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 620px;
}

.hero-stats span {
  min-height: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  font-weight: 800;
  backdrop-filter: blur(18px);
}

.hero-stats strong {
  color: var(--bay-yellow);
  font-size: 1.06rem;
}

.section-shell,
.site-footer,
.lesson-band {
  margin: 0 auto;
}

.section-shell,
.lesson-band {
  width: min(1180px, calc(100% - 36px));
}

.section-shell {
  padding: 64px 0 46px;
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.section-banner {
  width: 50%;
  height: auto;
  margin: 0 auto 24px;
}

.lessons-section {
  padding-top: 28px;
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.section-heading h2,
.lesson-band h2 {
  margin: 0;
  color: var(--deep);
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1;
  font-weight: 1000;
  text-transform: uppercase;
  text-wrap: balance;
}

.category-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar,
.date-strip::-webkit-scrollbar {
  display: none;
}

.category-tabs button,
.segmented button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-weight: 1000;
  white-space: nowrap;
  box-shadow: inset 0 10px 24px rgba(16, 24, 32, 0.06);
}

.category-tabs button.active,
.segmented button.active {
  background: var(--bay-red);
  color: var(--paper);
  border-color: var(--bay-red);
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.service-card {
  display: grid;
  grid-template-rows: 250px auto;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(16, 24, 32, 0.08);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 58px rgba(16, 24, 32, 0.11);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 34px 78px rgba(16, 24, 32, 0.16);
}

.service-card-image {
  position: relative;
  background: var(--sea);
  overflow: hidden;
}

.service-card-image::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 50%;
  background: linear-gradient(180deg, transparent, rgba(16, 24, 32, 0.42));
}

.service-card-image::before {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 54px;
  height: 6px;
  background: var(--bay-yellow);
  box-shadow: -20px 12px 0 var(--bay-red);
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms ease;
}

.service-card:hover .service-card-image img {
  transform: scale(1.045);
}

.service-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  max-width: calc(100% - 24px);
  border-radius: 8px;
  padding: 7px 10px;
  background: var(--bay-yellow);
  color: var(--deep);
  font-size: 0.76rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.service-card-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.service-card h3 {
  margin: 0;
  color: var(--deep);
  font-size: 1.45rem;
  line-height: 1.02;
  font-weight: 1000;
  text-transform: uppercase;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-weight: 650;
}

.service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-meta span {
  border-radius: 8px;
  padding: 7px 9px;
  background: #f5f6f0;
  color: var(--deep);
  font-size: 0.78rem;
  font-weight: 900;
}

.service-card .primary-action {
  margin-top: 2px;
}

.lesson-band {
  margin-top: 28px;
  padding: 34px 24px;
  display: grid;
  gap: 20px;
  align-items: center;
  border-radius: 8px;
  background:
    linear-gradient(100deg, rgba(16, 24, 32, 0.92), rgba(16, 24, 32, 0.62)),
    url("/static/assets/images/Private-Lessons.png") center / cover;
  color: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.lesson-band::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 120px;
  height: 8px;
  background: var(--bay-yellow);
  box-shadow: -34px 18px 0 var(--bay-red);
}

.lesson-band > * {
  position: relative;
  z-index: 1;
}

.lesson-band h2 {
  color: var(--paper);
}

.lesson-band p:last-child {
  margin: 10px 0 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.55;
}

.site-footer {
  width: 100%;
  margin-top: 64px;
  padding: 26px 0 0;
  background: var(--bay-red);
  color: var(--paper);
}

.footer-map {
  grid-column: 1 / -1;
  width: 100%;
  height: clamp(170px, 24vw, 255px);
  margin: 0;
  border: 8px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(129, 0, 10, 0.28);
}

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

.footer-inner {
  width: min(1140px, calc(100% - 28px));
  margin: 0 auto;
  padding: 0 0 46px;
  display: grid;
  gap: 26px 42px;
}

.footer-story h2 {
  margin: 0;
  max-width: 620px;
  color: var(--paper);
  font-size: clamp(2.1rem, 5.4vw, 4.25rem);
  line-height: 0.92;
  font-style: italic;
  font-weight: 1000;
  text-transform: uppercase;
}

.wave-mark {
  width: 178px;
  height: 18px;
  margin: 24px 0;
  /* background:
    radial-gradient(circle at 9px 9px, transparent 8px, var(--bay-yellow) 9px, var(--bay-yellow) 12px, transparent 13px) 0 0 / 28px 18px repeat-x; */
}

.footer-story p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 700;
}

.footer-details {
  display: grid;
  gap: 20px;
  align-content: start;
}

.footer-details h3 {
  margin: 0 0 8px;
  color: var(--paper);
  font-size: 1.28rem;
  line-height: 1;
  font-weight: 1000;
}

.footer-details p,
.footer-details a {
  margin: 0;
  color: var(--paper);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--paper);
}

.footer-socials svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.booking-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(16, 24, 32, 0.62);
  backdrop-filter: blur(10px);
}

.booking-panel {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 90;
  max-height: 94svh;
  display: grid;
  grid-template-rows: 180px 1fr;
  background: var(--paper);
  border-radius: 8px 8px 0 0;
  box-shadow: 0 -24px 60px rgba(16, 24, 32, 0.3);
  overflow: hidden;
  transform: translateY(105%);
  transition: transform 260ms ease;
}

.booking-panel.open {
  transform: translateY(0);
}

.panel-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--deep);
}

.panel-close svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2.2;
}

.booking-media {
  background: var(--sea);
}

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

.booking-body {
  overflow: auto;
  padding: 18px;
}

.booking-body h2 {
  margin: 0;
  color: var(--deep);
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 1000;
  text-transform: uppercase;
}

.booking-body p {
  color: var(--muted);
  line-height: 1.5;
  font-weight: 650;
}

.booking-step {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.booking-step h3 {
  margin: 0 0 12px;
  font-size: 0.96rem;
  text-transform: uppercase;
}

.option-grid,
.slot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.option-card,
.slot-button,
.date-button {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--paper);
  color: var(--deep);
  text-align: left;
  font-weight: 950;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.option-card.active,
.slot-button.active,
.date-button.active {
  border-color: var(--bay-red);
  background: var(--bay-red);
  color: var(--paper);
}

.option-card small,
.slot-button small,
.date-button small {
  display: block;
  margin-top: 4px;
  color: inherit;
  opacity: 0.72;
  font-weight: 800;
}

.slot-button[disabled] {
  cursor: not-allowed;
  opacity: 0.45;
  text-decoration: line-through;
}

.slot-button.past {
  opacity: 0.38;
  text-decoration: none;
}

.date-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(86px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

label,
.field-label {
  display: grid;
  gap: 7px;
  color: var(--deep);
  font-size: 0.8rem;
  font-weight: 1000;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--paper);
  color: var(--ink);
  outline: 0;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--bay-red);
  box-shadow: 0 0 0 4px rgba(215, 25, 32, 0.12);
}

.wide-field {
  margin-top: 12px;
}

.participants-field {
  max-width: 210px;
  margin-top: 14px;
}

.participants-field[hidden] {
  display: none;
}

.participants-field small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.35;
  text-transform: none;
}

.booking-total {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 -18px 14px;
  padding: 14px 18px;
  background: var(--sand);
  border-top: 1px solid var(--line);
}

.booking-total span {
  font-weight: 1000;
  text-transform: uppercase;
}

.booking-total strong {
  font-size: 1.35rem;
}

.form-message {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--bay-red-dark);
  font-weight: 850;
}

.loading-state,
.empty-state {
  min-height: 170px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  font-weight: 850;
}

.payment-body {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(215, 25, 32, 0.9), rgba(255, 199, 44, 0.9)),
    url("/static/assets/images/DSC025799.jpg") center / cover;
}

.payment-card {
  width: min(460px, 100%);
  border-radius: 8px;
  padding: 24px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.payment-card img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  margin-bottom: 14px;
}

.payment-card h1 {
  margin: 0 0 16px;
  font-size: 2rem;
  line-height: 1;
  text-transform: uppercase;
}

.payment-card dl {
  margin: 0 0 20px;
  display: grid;
  gap: 10px;
}

.payment-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.payment-card dt {
  color: var(--muted);
  font-weight: 850;
}

.payment-card dd {
  margin: 0;
  text-align: right;
  font-weight: 1000;
}

.full-link {
  width: 100%;
  margin-top: 10px;
  color: var(--deep);
  background: #f3f6f8;
  border-color: transparent;
}

@media (min-width: 560px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

}

@media (min-width: 780px) {
  .main-nav {
    display: flex;
  }

  .header-actions a {
    display: grid;
  }

  .section-heading {
    grid-template-columns: 1fr;
    align-items: end;
  }

  .section-heading .eyebrow {
    grid-column: 1 / -1;
  }

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

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

  .footer-map {
    height: clamp(205px, 20vw, 255px);
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.76fr);
    align-items: start;
    padding-bottom: 54px;
  }

  .footer-details h3 {
    font-size: 1.65rem;
  }

  .booking-panel {
    top: calc(var(--header-height) + 18px);
    right: 18px;
    bottom: 18px;
    left: auto;
    width: min(620px, calc(100vw - 36px));
    max-height: none;
    grid-template-rows: 230px 1fr;
    border-radius: 8px;
    transform: translateX(calc(100% + 36px));
  }

  .booking-panel.open {
    transform: translateX(0);
  }
}

@media (max-width: 460px) {
  .site-header,
  .admin-header {
    min-height: 68px;
    padding: 7px 12px;
  }

  .brand img {
    width: 108px;
    height: 52px;
  }

  .header-actions {
    gap: 6px;
  }

  .language-current {
    padding: 0 7px;
  }

  .header-cta {
    min-height: 40px;
    padding: 0 8px;
    font-size: 0.76rem;
  }

  .hero-content {
    width: calc(100% - 28px);
    padding-bottom: 86px;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 12vw, 4.2rem);
  }

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

  .option-grid,
  .slot-grid {
    grid-template-columns: 1fr;
  }

  .footer-map {
    width: 100%;
    height: 150px;
  }

  .footer-inner {
    width: calc(100% - 28px);
    padding-bottom: 32px;
  }

  .footer-story h2 {
    font-size: 2rem;
  }

  .wave-mark {
    margin: 20px 0;
  }
}
