/* Design tokens */
:root {
  --navy: #0f2240;
  --navy-light: #1a3460;
  --teal: #0d6b5e;
  --teal-bright: #0f766e;
  --teal-light: #0f766e;
  --focus: #16877c;
  --red: #b83227;
  --surface: #f0ede8;
  --card: #fff;
  --sand: #f4f1ec;
  --pale: #e6f7f5;
  --text: #0f2240;
  --muted: #3f4a5d;
  --border: #7e8795;
  --input: #657080;
  --google-blue: #1a5fb4;
  --rating: #9a5b00;
  --font-size-body: 1rem;
  --font-size-min: 1rem;
  --font-display: "DM Serif Display", Georgia, serif;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --page-gutter: 1.25rem;
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --safe-area-left: env(safe-area-inset-left, 0px);
  --safe-area-right: env(safe-area-inset-right, 0px);
  --topbar-content-height: 3rem;
  --topbar-height: calc(var(--topbar-content-height) + var(--safe-area-top));
  --navigation-height: 5rem;
  --sticky-header-height: calc(var(--topbar-height) + var(--navigation-height));
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html.restoring-menu-scroll {
  scroll-behavior: auto;
}

/* =========================================
   SCROLLBAR
========================================= */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--font-size-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--teal);
  text-decoration: none;
}

button, input, select, textarea {
  border-radius: 0;
  font: inherit;
}

button, .button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  margin: 0;
}

h3, p {
  margin-top: 0;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.15rem);
}

.container {
  margin-inline: auto;
  max-width: 80rem;
  padding-left: max(var(--page-gutter), var(--safe-area-left));
  padding-right: max(var(--page-gutter), var(--safe-area-right));
}

.narrow {
  margin-inline: auto;
  max-width: 42rem;
  padding-left: max(var(--page-gutter), var(--safe-area-left));
  padding-right: max(var(--page-gutter), var(--safe-area-right));
}

.section {
  padding-block: 2rem;
}

.hidden {
  display: none !important;
}

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

.skip-link {
  background: #fff;
  color: #0f2240;
  left: max(1rem, var(--safe-area-left));
  padding: .75rem 1rem;
  position: fixed;
  top: -5rem;
  z-index: 100;
}

.skip-link:focus {
  top: calc(1rem + var(--safe-area-top));
}

/* Navigation */
.topbar {
  background: #0f2240;
  color: #c9d4e8;
  font-size: var(--font-size-min);
  height: var(--topbar-height);
  padding-top: var(--safe-area-top);
  position: sticky;
  top: 0;
  z-index: 60;
}

.topbar-inner {
  align-items: center;
  display: flex;
  gap: 1.5rem;
  height: 100%;
  justify-content: space-between;
}

.topbar a {
  color: #c9d4e8;
}

.topbar a:not(.topbar-address) {
  margin-left: auto;
}

.topbar-address {
  text-decoration: underline;
  text-decoration-color: rgba(201,212,232,.45);
  text-underline-offset: 2px;
}

.topbar-address-short {
  display: none;
}

.topbar-address:hover {
  text-decoration-color: #c9d4e8;
}

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--topbar-height);
  z-index: 50;
}

.nav-row {
  align-items: center;
  display: flex;
  min-height: var(--navigation-height);
}

.brand {
  align-items: center;
  color: var(--text);
  display: flex;
  flex-shrink: 0;
  gap: .8rem;
}

.brand-logo {
  flex: 0 0 auto;
  height: 3.1rem;
  object-fit: contain;
  width: 2.85rem;
}

.brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.12rem;
}

.brand small {
  color: var(--muted);
  display: block;
  font-size: var(--font-size-min);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.main-nav {
  align-items: stretch;
  display: flex;
  gap: 2rem;
  margin-left: auto;
  margin-right: 2rem;
}

.main-nav > a, .nav-dropdown > a {
  border-bottom: 2px solid transparent;
  color: var(--text);
  display: block;
  font-size: 1rem;
  font-weight: 600;
  padding: 1.85rem 0 1.7rem;
}

.nav-dropdown > a {
  align-items: center;
  display: inline-flex;
  gap: .35rem;
}

.nav-dropdown-icon {
  flex: 0 0 auto;
  height: 1rem;
  width: 1rem;
}

.main-nav a:hover, .main-nav a.active {
  border-color: var(--teal);
  color: var(--teal);
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  background: var(--card);
  border: 1px solid var(--border);
  display: none;
  left: 0;
  min-width: 15rem;
  position: absolute;
  top: 100%;
}

.nav-dropdown:hover .dropdown-menu, .nav-dropdown:focus-within .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  border-bottom: 1px solid var(--border);
  color: var(--text);
  display: block;
  font-size: 1rem;
  padding: .85rem 1.1rem;
}

.dropdown-menu a:last-child {
  border-bottom: 0;
}

.dropdown-menu a:hover {
  background: var(--pale);
}

.nav-actions {
  align-items: center;
  display: flex;
  gap: .5rem;
}

.language {
  border: 1px solid var(--border);
  display: flex;
}

.language a {
  color: var(--muted);
  font-size: var(--font-size-min);
  font-weight: 700;
  padding: .5rem .65rem;
}

.language a + a {
  border-left: 1px solid var(--border);
}

.language a.active, .language a[aria-current="true"] {
  background: #0f2240;
  box-shadow: inset 0 -3px 0 var(--teal-light);
  color: #fff;
}

.menu-toggle {
  background: transparent;
  border: 0;
  color: var(--text);
  display: none;
  font-size: 1.5rem;
  margin-left: auto;
  padding: .5rem;
}

/* Shared components */
.button {
  align-items: center;
  border: 1px solid transparent;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 700;
  justify-content: center;
  min-height: 2.75rem;
  padding: .7rem 1.3rem;
  transition: opacity .2s, background-color .2s, color .2s;
}

.button:hover {
  opacity: 1;
}

.button.primary {
  background: var(--teal);
  color: #fff;
}

.button.primary:hover {
  background: var(--navy-light);
}

.button.compact {
  min-height: auto;
  padding: .62rem .9rem;
}

.button.emergency-outline {
  border-color: var(--red);
  color: var(--red);
  font-size: 1rem;
  min-height: auto;
  padding: .55rem .85rem;
}

.button.outline {
  border-color: var(--teal);
  color: var(--teal);
}

.button.outline:hover {
  background: var(--pale);
}

.button.light {
  background: rgba(255,255,255,.94);
  color: #0f2240;
}

.button.light:hover {
  background: #fff;
}

.button.ghost {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.9);
  color: #fff;
}

.button.ghost:hover {
  background: rgba(255,255,255,.2);
}

.button.full {
  width: 100%;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.page-header {
  background: var(--sand);
  border-bottom: 1px solid var(--border);
  padding-block: 1.35rem;
}

.page-header h1 {
  font-size: 2.2rem;
}

.page-header p {
  color: var(--muted);
  margin: .4rem 0 0;
}

.sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.1rem;
}

.panel h3 {
  font-size: var(--font-size-body);
  margin-bottom: .6rem;
}

.panel p {
  color: var(--muted);
  font-size: var(--font-size-body);
  line-height: 1.55;
}

.callout {
  padding: 1.25rem;
}

.emergency-callout {
  background: var(--red);
  color: #fff;
}

.emergency-callout h3 {
  font-size: var(--font-size-body);
  margin-bottom: .35rem;
}

.emergency-callout p {
  color: #fff;
  font-size: var(--font-size-body);
  line-height: 1.5;
}

.hours {
  font-size: var(--font-size-min);
  margin: 0;
}

.hours div {
  display: flex;
  justify-content: space-between;
  margin-top: .45rem;
}

.hours dt {
  color: var(--muted);
}

.hours dd {
  font-weight: 600;
  margin: 0;
}

.content-sidebar {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 2fr 1fr;
}

.main-column {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  min-width: 0;
}

.main-column section {
  scroll-margin-top: calc(var(--sticky-header-height) + 1.5rem);
}

.main-column section > h2 {
  font-size: 1.65rem;
  margin-bottom: .8rem;
}

.lead {
  color: var(--muted);
  font-size: var(--font-size-body);
  line-height: 1.75;
  margin-bottom: 0;
}

.check {
  align-items: center;
  background: var(--pale);
  color: var(--teal);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: var(--font-size-min);
  font-weight: 700;
  height: 1.2rem;
  justify-content: center;
  line-height: 1;
  width: 1.2rem;
}

.check::before {
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
  height: .55rem;
  transform: translateY(-.08rem) rotate(45deg);
  width: .3rem;
}

.bullet-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bullet-list li {
  color: var(--muted);
  font-size: var(--font-size-body);
  line-height: 1.5;
  padding: .3rem 0 .3rem .8rem;
  position: relative;
}

.bullet-list li::before {
  background: var(--teal);
  content: "";
  height: .28rem;
  left: 0;
  position: absolute;
  top: .82rem;
  width: .28rem;
}

.emergency-link {
  color: var(--red);
  font-weight: 700;
}

.prose a,
.panel > a:not(.button),
address a,
.footer-about > a:not(.brand) {
  text-decoration: underline;
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

/* Forms and booking */
input, select, textarea {
  background: var(--card);
  border: 1px solid var(--input);
  color: var(--text);
  display: block;
  margin-top: .4rem;
  padding: .75rem;
  width: 100%;
}

::placeholder {
  color: var(--muted);
  opacity: 1;
}

textarea {
  resize: vertical;
}

.form-error {
  background: #fff;
  border: 1px solid var(--red);
  color: var(--red);
  margin-bottom: 1rem;
  padding: 1rem;
  text-align: left;
}

.form-error strong {
  display: block;
  margin-bottom: .35rem;
}

.form-error p {
  color: var(--text);
  margin: 0;
}

.success {
  padding-block: 2rem;
  text-align: center;
}

.success .check {
  height: 2.8rem;
  margin-bottom: .8rem;
  width: 2.8rem;
}

.success h3 {
  margin-bottom: .35rem;
}

.footer-booking {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding-block: 3rem;
  text-align: center;
}

.footer-booking h2 {
  color: #0f2240;
  margin-bottom: .5rem;
}

.footer-booking > .narrow > p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: .6rem;
}

.footer-booking .emergency-link {
  display: inline-block;
  font-size: var(--font-size-min);
  margin-bottom: 1.8rem;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.form-honeypot {
  height: 1px;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.booking-form label {
  color: var(--muted);
  font-size: var(--font-size-min);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.booking-form .button {
  margin-top: .4rem;
}

/* Footer */
.site-footer {
  background: #0f2240;
  color: #8eadd4;
}

.footer-main {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  padding-block: 2.25rem;
}

.footer-brand {
  color: #fff;
  margin-bottom: 1rem;
}

.footer-brand strong {
  color: #fff;
}

.footer-brand .brand-logo {
  filter: brightness(0) invert(1);
  height: 2.2rem;
  width: 2rem;
}

.footer-about p, .footer-main address, .footer-main p {
  font-size: var(--font-size-body);
  font-style: normal;
  line-height: 1.65;
}

.footer-main h3 {
  color: #6ee7da;
  font-size: var(--font-size-min);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.footer-main ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-main li {
  margin-bottom: .45rem;
}

.footer-main a {
  color: #8eadd4;
  font-size: var(--font-size-min);
}

.footer-main .footer-emergency {
  color: #fca5a5;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
}

.footer-bottom .container {
  display: flex;
  font-size: var(--font-size-min);
  justify-content: space-between;
  padding-block: 1rem;
}

@media (max-width: 960px) {
  .main-nav {
    gap: 1rem;
    margin-right: 1rem;
  }
  .nav-actions .emergency-outline {
    display: none;
  }
  .sidebar-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .content-sidebar {
    grid-template-columns: 1fr;
  }
  .content-sidebar > .sidebar-stack {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  html.menu-open {
    overflow: hidden;
  }
  body.menu-open {
    overflow: hidden;
    position: fixed;
    top: var(--menu-scroll-offset, 0);
    width: 100%;
  }
  html.menu-open .topbar {
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
  }
  html.menu-open .site-header {
    left: 0;
    position: fixed;
    right: 0;
    top: var(--topbar-height);
  }
  .desktop-only, .nav-actions > .button {
    display: none;
  }
  .topbar-address {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .topbar-address-full {
    display: none;
  }
  .topbar-address-short {
    display: inline;
  }
  .topbar-inner {
    gap: .75rem;
  }
  .topbar a:not(.topbar-address) {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .menu-toggle {
    display: block;
  }
  .nav-actions {
    margin-left: .5rem;
  }
  .main-nav {
    align-items: stretch;
    background: var(--card);
    border-top: 1px solid var(--border);
    bottom: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    left: 0;
    margin: 0;
    overscroll-behavior: contain;
    overflow-y: auto;
    padding: .5rem max(1.5rem, var(--safe-area-right)) max(1rem, var(--safe-area-bottom)) max(1.5rem, var(--safe-area-left));
    position: fixed;
    right: 0;
    top: var(--sticky-header-height);
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }
  .main-nav.open {
    display: flex;
  }
  .main-nav > a, .nav-dropdown > a {
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
  }
  .dropdown-menu {
    border: 0;
    display: block;
    padding-left: 1rem;
    position: static;
  }
  .dropdown-menu a {
    font-size: var(--font-size-min);
    padding: .65rem;
  }
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .container, .narrow {
    --page-gutter: 1rem;
  }
  .brand strong {
    font-size: 1rem;
  }
  .brand {
    gap: .55rem;
  }
  .brand-logo {
    height: 2.7rem;
    width: 2.5rem;
  }
  .brand small {
    display: none;
  }
  .language a {
    padding-inline: .45rem;
  }
  .sidebar-stack, .content-sidebar > .sidebar-stack {
    grid-template-columns: 1fr;
  }
  .button-row .button {
    flex: 1 1 auto;
  }
  .footer-main {
    grid-template-columns: 1fr;
  }
  .footer-bottom .container {
    flex-direction: column;
    gap: .5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
