:root {
  --bg: #f7f3ee;
  --bg-soft: #fcfaf7;
  --section: #f3ede5;
  --card: #ffffff;
  --text: #231f1b;
  --muted: #6f665e;
  --line: #ddd2c4;
  --dark: #1f1a16;
  --success: #2d6a4f;
  --error: #9a3412;
  --shadow: 0 20px 50px rgba(65, 49, 33, 0.12);
  --shadow-soft: 0 12px 30px rgba(65, 49, 33, 0.08);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 106px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

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

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

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

:focus-visible {
  outline: 3px solid rgba(84, 67, 50, 0.46);
  outline-offset: 4px;
}

.container {
  width: min(var(--container), calc(100% - 36px));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--dark);
  color: #fff;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(221, 210, 196, 0.8);
  background: rgba(252, 250, 247, 0.88);
  box-shadow: 0 8px 26px rgba(68, 52, 36, 0.04);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 17px 0;
}

.brand-link {
  flex: 0 0 auto;
}

.eyebrow,
.mini-label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.brand {
  margin: 0;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1;
  letter-spacing: -0.035em;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.menu-toggle {
  display: none;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.menu-toggle-icon {
  display: grid;
  width: 18px;
  gap: 4px;
}

.menu-toggle-icon span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-open .menu-toggle-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-open .menu-toggle-icon span:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-toggle-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-link,
.button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font-weight: 650;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-link {
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #4d453e;
  font-size: 14px;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.86);
}

.nav-link.nav-cta {
  border-color: var(--dark);
  background: var(--dark);
  color: #fff;
  box-shadow: 0 8px 20px rgba(31, 26, 22, 0.16);
}

.home-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(610px, calc(100svh - 75px), 760px);
  overflow: hidden;
  border-bottom: 1px solid rgba(221, 210, 196, 0.8);
  background:
    linear-gradient(90deg, rgba(31, 26, 22, 0.02) 0%, rgba(31, 26, 22, 0.05) 48%, rgba(31, 26, 22, 0.26) 100%),
    url("/studio-hero.jpg") center 54% / cover no-repeat;
  isolation: isolate;
}

.home-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(22, 18, 15, 0.04), rgba(22, 18, 15, 0.13));
  content: "";
  pointer-events: none;
}

.home-hero-inner {
  position: relative;
  display: flex;
  justify-content: flex-end;
  padding: 68px 0;
}

.home-hero-card {
  width: min(590px, 100%);
  padding: 48px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 32px;
  background: rgba(252, 250, 247, 0.92);
  box-shadow: 0 28px 70px rgba(35, 25, 18, 0.22);
  backdrop-filter: blur(14px);
}

.home-hero-card .mini-label {
  margin: 0;
  color: #62584f;
  letter-spacing: 0.22em;
}

.home-hero h1 {
  margin: 18px 0 0;
  font-size: clamp(48px, 4.6vw, 66px);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.home-hero h1 span {
  display: block;
}

.home-hero-copy {
  max-width: 36ch;
  margin: 24px 0 0;
  color: #554b43;
  font-size: 18px;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.home-hero-actions .ghost-button {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.button,
.ghost-button {
  min-height: 54px;
  padding: 15px 23px;
  border-radius: 18px;
  font-size: 16px;
}

.button {
  background: var(--dark);
  box-shadow: 0 16px 34px rgba(31, 26, 22, 0.24);
  color: #fff;
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(62, 45, 29, 0.08);
  color: var(--text);
  backdrop-filter: blur(10px);
}

.button:hover,
.ghost-button:hover,
.nav-link:hover {
  transform: translateY(-1px);
}

.button:disabled,
.ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.section {
  padding: 82px 0;
}

.page-intro-section {
  padding-top: 96px;
}

.section-alt {
  border-top: 1px solid rgba(221, 210, 196, 0.72);
  border-bottom: 1px solid rgba(221, 210, 196, 0.72);
  background: var(--section);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading h1,
.section-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.048em;
}

.section-heading p {
  margin: 17px auto 0;
  color: var(--muted);
  font-size: 17px;
}

.widget-shell {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

.widget-shell-inner {
  min-height: 240px;
  padding: 20px;
  border-radius: 25px;
  background: #fff;
}

.calendar-widget-shell,
.member-widget-shell {
  padding: 12px;
}

.calendar-widget-shell .widget-shell-inner,
.member-widget-shell .widget-shell-inner {
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(221, 210, 196, 0.64);
  border-radius: 24px;
}

.bsport-widget {
  width: 100%;
}

.bsport-widget:empty {
  display: grid;
  min-height: 240px;
  place-items: center;
  color: var(--muted);
}

.bsport-widget:empty::before {
  content: "Loading secure booking…";
}

.bsport-widget.widget-error:empty::before {
  max-width: 36ch;
  content: "The booking panel could not load. Please refresh the page or try again shortly.";
  text-align: center;
}

.bsport-widget iframe {
  width: 100% !important;
  max-width: 100%;
  border: 0 !important;
}

#bsport-widget-456790 iframe {
  display: block;
  height: 620px !important;
  min-height: 620px;
}

#bsport-widget-180150 iframe {
  min-height: 690px;
}

#bsport-widget-462219 iframe {
  display: block;
  height: 660px !important;
  min-height: 660px;
}

.account-heading {
  max-width: 820px;
}

.noscript-note {
  margin: 0;
  padding: 20px;
  border-radius: 18px;
  background: #f8eee7;
  color: #7c371f;
  text-align: center;
}

.trainer-grid,
.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 28px;
  align-items: stretch;
}

.trainer-copy,
.account-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 6px;
}

.trainer-copy h2,
.account-copy h2 {
  margin: 12px 0 0;
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.trainer-copy p,
.account-copy p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.form-card,
.account-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow-soft);
}

.form-panel,
.account-panel {
  height: 100%;
  padding: 34px;
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 12px 30px rgba(65, 49, 33, 0.07);
}

.dark-panel {
  background: var(--dark);
  color: #fff;
}

.dark-panel .mini-label {
  color: rgba(255, 255, 255, 0.56);
}

.form-panel h3,
.account-panel h2 {
  margin: 12px 0 0;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.form-panel > p,
.account-panel > p {
  margin: 16px 0 0;
  color: var(--muted);
}

.dark-panel > p {
  color: rgba(255, 255, 255, 0.74);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 26px;
}

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

.hp-field {
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

input,
select,
textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid #cfc2b4;
  border-radius: 18px;
  outline: none;
  background: #fff;
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  border-color: #bca995;
  box-shadow: 0 0 0 4px rgba(188, 169, 149, 0.14);
}

.dark-panel input,
.dark-panel textarea,
.dark-panel select {
  border-color: #4f463f;
  background: #2d2621;
  color: #fff;
}

.dark-panel input:focus,
.dark-panel select:focus,
.dark-panel textarea:focus {
  border-color: #8d7a67;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.dark-panel input::placeholder,
.dark-panel textarea::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

textarea {
  min-height: 136px;
  resize: vertical;
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}

.form-note {
  max-width: 34ch;
  margin: 0;
  font-size: 14px;
}

.form-status {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 15px;
}

.form-status.show {
  display: block;
}

.form-status.success {
  border: 1px solid rgba(45, 106, 79, 0.25);
  background: rgba(45, 106, 79, 0.1);
  color: var(--success);
}

.form-status.error {
  border: 1px solid rgba(154, 52, 18, 0.22);
  background: rgba(154, 52, 18, 0.08);
  color: var(--error);
}

.dark-panel .form-status.success {
  border-color: rgba(180, 230, 200, 0.28);
  background: rgba(180, 230, 200, 0.14);
  color: #c8f0d8;
}

.dark-panel .form-status.error {
  border-color: rgba(255, 200, 180, 0.25);
  background: rgba(255, 200, 180, 0.12);
  color: #f6c8b8;
}

.account-benefits {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.account-benefits li {
  position: relative;
  padding-left: 30px;
}

.account-benefits li::before {
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  background: #e7ddd1;
  content: "✓";
  font-size: 12px;
  font-weight: 800;
}

.login-widget-wrap {
  display: flex;
  min-height: 230px;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--bg-soft);
}

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--dark);
  color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: start;
  padding: 34px 0;
}

.footer-copy strong {
  display: block;
  margin-bottom: 10px;
  color: #fff;
  font-size: 22px;
}

.footer-copy p {
  max-width: 590px;
  margin: 0;
  color: rgba(255, 255, 255, 0.67);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.footer-links a:hover {
  color: #fff;
}

@media (max-width: 980px) {
  .trainer-grid,
  .account-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

}

@media (max-width: 820px) {
  html {
    scroll-padding-top: 92px;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 0;
  }

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

  .nav-links {
    order: 3;
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
    padding: 4px 0 8px;
  }

  .site-header.nav-enhanced .nav-links {
    display: none;
  }

  .site-header.nav-enhanced.menu-open .nav-links {
    display: flex;
  }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
    border-radius: 14px;
  }

  .nav-link.nav-cta {
    justify-content: center;
    margin-top: 4px;
  }

  .home-hero {
    min-height: auto;
    align-items: flex-end;
    background-position: 38% center;
  }

  .home-hero-inner {
    padding: 300px 0 28px;
  }

  .home-hero-card {
    width: 100%;
    padding: 36px;
    border-radius: 26px;
    background: rgba(252, 250, 247, 0.94);
  }
}

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

  .header-inner {
    gap: 15px;
    padding: 14px 0;
  }

  .home-hero h1 {
    font-size: clamp(41px, 12vw, 54px);
  }

  .home-hero-card {
    padding: 28px 22px;
  }

  .home-hero-inner {
    padding-top: 340px;
  }

  .home-hero-actions,
  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .section {
    padding: 60px 0;
  }

  .page-intro-section {
    padding-top: 68px;
  }

  .widget-shell {
    padding: 9px;
    border-radius: 24px;
  }

  .widget-shell-inner {
    padding: 8px;
    border-radius: 19px;
  }

  #bsport-widget-456790 iframe {
    height: 680px !important;
    min-height: 680px;
  }

  #bsport-widget-180150 iframe {
    min-height: 820px;
  }

  #bsport-widget-462219 iframe {
    height: 720px !important;
    min-height: 720px;
  }

  .form-card,
  .account-card {
    padding: 10px;
    border-radius: 26px;
  }

  .form-panel,
  .account-panel {
    padding: 26px 20px;
    border-radius: 20px;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
