:root {
  --color-bg: #fbfaf7;
  --color-surface: #ffffff;
  --color-text: #0d0d0d;
  --color-muted: #292929;
  --color-accent: #ff3d0a;
  --color-accent-dark: #d92e06;
  --color-line: #e2e1dd;
  --font-sans: Arial, Helvetica, sans-serif;
  --content-width: 1240px;
  --page-padding: clamp(1.5rem, 4vw, 3.5rem);
  --section-space: clamp(5.5rem, 11vw, 9.5rem);
  --button-height: 3.25rem;
  --button-padding: 1.5rem;
  --focus-ring: 0 0 0 3px var(--color-bg), 0 0 0 5px var(--color-accent);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.shell { width: min(100% - (2 * var(--page-padding)), var(--content-width)); margin-inline: auto; }
.skip-link {
  position: fixed; left: 1rem; top: 1rem; z-index: 20; transform: translateY(-180%);
  background: var(--color-text); color: #fff; padding: .7rem 1rem;
}
.skip-link:focus { transform: none; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.site-header {
  min-height: 5.5rem; display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
}
.brand-label, .header-booking {
  min-height: 2.75rem; display: inline-flex; align-items: center;
  font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
}
.brand-label { max-width: 22rem; gap: .45em; }
.brand-name { white-space: nowrap; }
.header-booking { border: 0; border-bottom: 1px solid currentColor; background: transparent; cursor: pointer; font: inherit; color: inherit; white-space: nowrap; }
.header-booking:hover { color: var(--color-accent-dark); }

.hero { min-height: 31rem; display: flex; align-items: center; padding-block: 3.5rem 5.5rem; text-align: center; }
.hero-copy { width: 100%; max-width: 850px; margin-inline: auto; }
h1, h2, p { margin-top: 0; }
h1, h2 { letter-spacing: -.045em; line-height: .98; }
h1 { max-width: 700px; margin: 0 auto 2rem; font-size: clamp(3.8rem, 8vw, 5.2rem); font-weight: 700; }
.hero-copy p { max-width: 680px; margin: 0 auto 2.4rem; color: var(--color-muted); font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.42; }
.button-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
.button {
  min-width: 13.75rem; min-height: 3.6rem; border: 1px solid var(--color-text); border-radius: .25rem; padding: .8rem var(--button-padding);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-weight: 500; font-size: 1.05rem; line-height: 1.2; transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.button-primary { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.button-primary:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); }
.button-text { border-color: transparent; background: transparent; color: var(--color-text); }
.button-text:hover { text-decoration: underline; }

.tools-section { border-block: 1px solid var(--color-line); padding-block: 2.6rem 2.5rem; }
.eyebrow { margin-bottom: 2rem; font-size: .72rem; font-weight: 500; letter-spacing: .18em; line-height: 1.4; text-align: center; text-transform: uppercase; }
.logo-carousel {
  overflow: hidden; width: 100%; padding-block: .5rem;
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}
.logo-track { display: flex; width: max-content; animation: logo-scroll 36s linear infinite; will-change: transform; }
.logo-group { display: flex; flex: none; align-items: center; gap: clamp(3.25rem, 5vw, 5.5rem); padding-right: clamp(3.25rem, 5vw, 5.5rem); }
.logo-item { display: inline-flex; flex: none; align-items: center; gap: .65rem; color: #22211f; font-size: 1rem; font-weight: 600; white-space: nowrap; }
.logo-item img { width: 1.65rem; height: 1.65rem; }
.logo-wide img { width: auto; height: 1.5rem; }
.logo-carousel:hover .logo-track, .logo-carousel:focus-within .logo-track { animation-play-state: paused; }
@keyframes logo-scroll { to { transform: translateX(-50%); } }

.foundation { padding-block: 6.75rem 8.5rem; text-align: center; }
.foundation h2 { max-width: 740px; margin: 0 auto 4.75rem; font-size: clamp(3rem, 5.2vw, 4rem); font-weight: 700; }
.foundation-steps { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; }
.foundation-steps li { position: relative; display: flex; align-items: center; justify-content: center; gap: 1.25rem; min-width: 0; }
.foundation-steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; left: calc(100% - 1.25rem); width: 2.5rem; height: 1px; background: var(--color-accent);
}
.foundation-steps li:not(:last-child)::before {
  content: ""; position: absolute; z-index: 1; top: calc(50% - 4px); right: -1.25rem; width: 8px; height: 8px; border-top: 1px solid var(--color-accent); border-right: 1px solid var(--color-accent); transform: rotate(45deg);
}
.step-number { color: var(--color-accent); font-size: clamp(2.4rem, 4vw, 3rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.step-label { font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 500; letter-spacing: -.03em; }

.final-cta { padding-block: 5.5rem 2rem; border-top: 1px solid var(--color-line); text-align: center; }
.final-cta h2 { max-width: none; margin: 0 auto 2.25rem; font-size: clamp(2.5rem, 4.7vw, 3.25rem); font-weight: 700; }
.final-cta .button-row { justify-content: center; }
.site-footer { min-height: 5.25rem; display: flex; align-items: center; justify-content: center; }
.site-footer p { margin: 0; font-size: .9rem; font-weight: 400; }

.booking-dialog { width: min(46rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); margin: auto; padding: 0; border: 1px solid var(--color-text); border-radius: 0; background: var(--color-surface); color: var(--color-text); }
.booking-dialog::backdrop { background: rgb(17 17 15 / .68); }
.dialog-panel { padding: clamp(1.5rem, 5vw, 3rem); }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; }
.dialog-heading .eyebrow { margin-bottom: .8rem; color: var(--color-accent-dark); }
.dialog-heading h2 { margin-bottom: 1rem; font-size: clamp(2rem, 5vw, 3.4rem); }
.close-button { width: 2.75rem; height: 2.75rem; flex: none; border: 0; background: transparent; cursor: pointer; font-size: 2rem; line-height: 1; }
#booking-intro { margin-bottom: 2rem; color: var(--color-muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field-wide, .consent { grid-column: 1 / -1; }
.field label, legend { font-size: .88rem; font-weight: 600; }
.field label span { color: var(--color-muted); font-weight: 400; }
input, textarea { width: 100%; min-height: 2.9rem; border: 1px solid #aaa69e; border-radius: 0; background: #fff; color: var(--color-text); padding: .65rem .75rem; }
textarea { resize: vertical; }
input:user-invalid, textarea:user-invalid { border-color: #a5270b; }
fieldset { margin: 0; padding: 0; border: 0; }
fieldset label { display: inline-flex; align-items: center; gap: .35rem; margin: .45rem .8rem 0 0; font-size: .9rem; }
fieldset input, .consent input { width: 1.15rem; min-height: 1.15rem; accent-color: var(--color-accent-dark); }
.choice-row { display: flex; flex-wrap: wrap; gap: 0 .4rem; margin-top: .15rem; }
.choice-row label { margin-top: .5rem; }
.availability { display: grid; gap: .35rem; }
.availability:not(.is-active) { opacity: .45; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; align-items: flex-start; gap: .65rem; font-size: .88rem; }
.form-status { min-height: 1.5rem; margin: 1.25rem 0 0; font-weight: 600; }
.form-status.error { color: #a5270b; }
.form-status.success { color: #236127; }
.dialog-actions { display: flex; gap: .5rem; margin-top: 1.25rem; }

@media (max-width: 760px) {
  :root { --page-padding: 1.75rem; --section-space: 4rem; }
  .site-header { min-height: 4.75rem; align-items: flex-start; padding-block: .85rem; gap: .75rem; }
  .brand-label { max-width: none; flex-direction: column; align-items: flex-start; gap: 0; font-size: .68rem; line-height: 1.4; }
  .header-booking { margin-top: -.2rem; font-size: .9rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
  .hero { min-height: auto; padding-block: 1.7rem 3.7rem; }
  h1 { max-width: 22rem; margin-bottom: 1.5rem; font-size: clamp(2.55rem, 10.5vw, 2.875rem); }
  .hero-copy p { max-width: 21rem; margin-bottom: 2rem; font-size: 1.06rem; }
  .hero .button-row, .final-cta .button-row { flex-direction: column; gap: .7rem; }
  .hero .button, .final-cta .button { width: 100%; min-height: 3.6rem; }
  .tools-section { padding-block: 1.35rem 1.45rem; }
  .eyebrow { margin-bottom: 1.25rem; font-size: .65rem; letter-spacing: .15em; }
  .logo-carousel { mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent); }
  .logo-group { gap: 2.25rem; padding-right: 2.25rem; }
  .logo-item { font-size: .9rem; }
  .logo-item img { width: 1.45rem; height: 1.45rem; }
  .logo-wide img { width: auto; height: 1.3rem; }
  .foundation { padding-block: 2.6rem 3.4rem; text-align: center; }
  .foundation h2 { max-width: 21rem; margin-bottom: 1.7rem; font-size: 2rem; }
  .foundation-steps { display: flex; flex-direction: column; align-items: center; gap: 3.35rem; }
  .foundation-steps li { flex-direction: column; align-items: center; gap: .3rem; }
  .foundation-steps li:not(:last-child)::after { top: calc(100% + .75rem); left: 50%; width: 1px; height: 1.85rem; }
  .foundation-steps li:not(:last-child)::before { top: calc(100% + 2rem); right: auto; left: calc(50% - 4px); transform: rotate(135deg); }
  .step-number { font-size: 2.35rem; }
  .step-label { font-size: 1.35rem; }
  .final-cta { padding-block: 3.25rem 1rem; }
  .final-cta h2 { max-width: 21rem; margin-bottom: 1.8rem; font-size: 2.25rem; }
  .site-footer { min-height: 4.5rem; }
  .form-grid { grid-template-columns: 1fr; }
  .field-wide, .consent { grid-column: auto; }
  .dialog-actions { flex-direction: column; }
  .dialog-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .logo-track { animation: none; }
}
