:root {
  --header: #ececec;
  --beige: #e6e0d3;
  --beige-dark: #dcd6c6;
  --text: #333333;
  --heading: #393e3f;
  --muted: #747c7d;
  --nav: #797373;
  --card: #ffffff;
  --font-sans: "Open Sans", system-ui, sans-serif;
  --font-cta: "PT Sans", sans-serif;
  --booking-url: https://ajanvaraus.sarisandberg.fi;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  max-width: 100%;
}

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

a {
  color: inherit;
}

main {
  flex: 1;
}

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

.heading-display {
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--heading);
}

.heading-section {
  font-weight: 500;
  font-size: clamp(1.35rem, 2.4vw, 2.5rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--heading);
  line-height: 1.25;
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

@media (min-width: 768px) {
  .heading-section {
    letter-spacing: 0.22em;
  }
}

.cta-link {
  font-family: var(--font-cta);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-block;
  margin-top: 1.25rem;
  text-decoration: none;
}

.cta-link:hover {
  color: var(--heading);
}

.btn-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  background: var(--heading);
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.btn-book:hover {
  opacity: 0.92;
}

.site-header {
  background: var(--header);
}

.site-header.is-scrolled {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-desktop {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.85rem 1rem;
}

.nav-desktop-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  flex: 1;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  min-height: auto;
}

.site-logo img {
  display: block;
  width: auto;
  height: 2.75rem;
  max-width: min(14rem, 42vw);
  object-fit: contain;
  object-position: left center;
}

.nav-desktop a {
  text-decoration: none;
  color: var(--nav);
  font-size: 15px;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

.nav-desktop a:hover,
.nav-desktop a.is-active {
  color: var(--heading);
}

.nav-desktop a.btn-book,
.nav-desktop a.btn-book:hover,
.nav-desktop a.btn-book.is-active {
  color: #fff;
}

.nav-desktop a.site-logo,
.nav-desktop a.site-logo:hover,
.nav-desktop a.site-logo.is-active {
  color: inherit;
}

.nav-item {
  position: relative;
}

.nav-dropdown {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 14rem;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 0.5rem 0;
  z-index: 30;
}

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

.nav-dropdown a {
  display: block;
  padding: 0.65rem 1rem;
  min-height: auto;
}

.nav-dropdown a:hover {
  background: var(--beige);
}

.nav-bar-mobile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
}

.nav-toggle {
  border: 0;
  background: transparent;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 1.375rem;
  height: 0;
  min-height: 2px;
  max-height: 2px;
  border: 0;
  border-radius: 1px;
  background-color: var(--heading);
  margin: 0;
  padding: 0;
  flex: 0 0 2px;
}

.mobile-nav {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 0 1rem 1rem;
}

.mobile-nav a,
.mobile-nav button {
  display: flex;
  align-items: center;
  min-height: 3rem;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--nav);
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}

.mobile-nav .sub a {
  padding-left: 1rem;
}

.site-footer {
  background: var(--header);
  text-align: center;
  padding: 1.75rem 1rem 1.25rem;
}

.footer-nap {
  margin: 0 auto 1.25rem;
  max-width: 36rem;
  color: var(--heading);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-nap p {
  margin: 0.2rem 0;
}

.footer-brand {
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem !important;
}

.footer-nap a {
  color: var(--heading);
  text-decoration: none;
  min-height: auto;
  display: inline;
}

.footer-nap a:hover {
  text-decoration: underline;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.site-footer a {
  color: var(--nav);
  text-decoration: none;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

.site-footer a:hover {
  color: var(--heading);
}

.site-footer .credit {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: #333;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.15);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 2rem 1rem;
}

.hero .tagline,
.hero .role {
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin: 0;
}

.hero h1 {
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 8vw, 4.5rem);
  margin: 0.75rem 0;
}

.split {
  display: grid;
  gap: 0;
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

.split-copy {
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.split-media {
  min-width: 0;
  overflow: hidden;
}

.split.beige .split-copy {
  background: var(--beige);
}

.split-copy ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}

.split-copy li + li {
  margin-top: 0.35rem;
}

.prose {
  max-width: 48rem;
  margin: 0 auto;
  padding: 3.5rem 1rem;
}

.prose p + p {
  margin-top: 1rem;
}

.page-band {
  background: var(--beige);
  padding: 3.5rem 1rem;
}

.card-panel {
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  padding: 2.5rem 1.25rem;
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}

.price-table th,
.price-table td {
  text-align: left;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--beige-dark);
}

.price-table th {
  font-weight: 600;
  color: var(--heading);
}

.treatment-hero {
  display: grid;
  gap: 0;
}

.treatment-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.treatment-body {
  padding: 3rem 1rem;
  max-width: 48rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .nav-bar-mobile {
    display: none;
  }

  .nav-desktop {
    display: flex;
  }

  .site-logo img {
    height: 3.25rem;
    max-width: 16rem;
  }

  .hero {
    min-height: 78vh;
  }

  .split {
    grid-template-columns: 1fr 1fr;
  }

  .split.reverse .split-media {
    order: 2;
  }

  .split-copy {
    padding: 4rem 3rem;
  }

  .card-panel {
    padding: 2.5rem 3rem;
  }
}

.about-story {
  display: grid;
  gap: 2.5rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.about-photo {
  background: var(--beige);
  padding: 1rem 1.25rem;
}

.about-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  border-bottom: 1px solid var(--beige-dark);
  margin-bottom: 1.5rem;
}

.about-tabs button {
  border: 0;
  background: transparent;
  min-height: 2.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  border-bottom: 2px solid transparent;
}

.about-tabs button[aria-selected="true"] {
  color: var(--heading);
  border-bottom-color: var(--heading);
}

.about-panel[hidden] {
  display: none;
}

.facts-grid {
  display: grid;
  gap: 2.5rem;
  max-width: 56rem;
  margin: 2.5rem auto 0;
  text-align: center;
}

.facts-grid .year {
  font-size: 1.75rem;
  letter-spacing: 0.18em;
  color: var(--heading);
  margin: 0;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 1rem;
  max-width: 56rem;
  margin: 0 auto;
  list-style: none;
  padding: 0;
  text-align: center;
}

.price-grid .dur {
  margin: 0;
  font-size: 0.875rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.price-grid .amt {
  margin: 0.5rem 0 0;
  font-size: 1.75rem;
  letter-spacing: 0.06em;
  color: var(--heading);
}

.payments {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  font-size: 0.875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.map-embed {
  width: 100%;
  height: 16rem;
  border: 0;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .about-story {
    grid-template-columns: minmax(16rem, 38%) 1fr;
    gap: 3.5rem;
    padding: 4rem 1rem;
  }

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

  .price-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .map-embed {
    height: 20rem;
  }
}

/* Cookie consent + reopen settings */
.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: auto;
  z-index: 9999;
  width: min(22.5rem, calc(100% - 2rem));
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@media (min-width: 480px) {
  .cookie-banner {
    right: 1.5rem;
    bottom: 1.5rem;
  }
}

.cookie-banner:not(.is-open) {
  opacity: 0;
  transform: translateY(0.75rem) scale(0.98);
}

.cookie-banner.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.cookie-banner.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.75rem) scale(0.98);
}

.cookie-settings-btn {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid rgba(57, 62, 63, 0.14);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--heading);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.15s ease;
}

@media (min-width: 480px) {
  .cookie-settings-btn {
    right: 1.5rem;
    bottom: 1.5rem;
  }
}

.cookie-settings-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.cookie-settings-btn:hover {
  background: #fff;
}

.cookie-settings-btn:focus-visible {
  outline: 2px solid var(--heading);
  outline-offset: 2px;
}

.cookie-settings-btn__icon {
  display: block;
}

.cookie-banner__card {
  background: #fff;
  border: 1px solid rgba(57, 62, 63, 0.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  padding: 1.25rem 1.35rem;
  text-align: left;
}

.cookie-banner__title {
  margin: 0;
  font-weight: 600;
  color: var(--heading);
  letter-spacing: 0.04em;
}

.cookie-banner__text {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.55;
}

.cookie-banner__link {
  color: var(--heading);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.cookie-banner__btn {
  appearance: none;
  border: 0;
  background: var(--heading);
  color: #fff;
  padding: 0.65rem 0.75rem;
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  flex: 1 1 0;
  white-space: nowrap;
  text-align: center;
}

.cookie-banner__btn--ghost {
  background: transparent;
  color: var(--heading);
  border: 1px solid rgba(57, 62, 63, 0.25);
}

.cookie-banner__btn:hover {
  opacity: 0.92;
}
