/* ---------- Fondid ----------
   Ladina ja kirillitsa tähed on eraldi failides: brauser laeb ainult need,
   mida leht päriselt vajab (soome/eesti keeles vene tähti ei laeta). */
@font-face {
  font-family: 'Anton';
  font-weight: 400;
  src: url(/fonts/Anton-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0100-017F, U+2010-2027, U+20AC, U+2191, U+2212;
  font-display: swap;
}
@font-face {
  font-family: 'Fira Sans';
  font-weight: 400;
  src: url(/fonts/FiraSans-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0100-017F, U+2010-2027, U+20AC, U+2191, U+2212;
  font-display: swap;
}
@font-face {
  font-family: 'Fira Sans';
  font-weight: 500;
  src: url(/fonts/FiraSans-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0100-017F, U+2010-2027, U+20AC, U+2191, U+2212;
  font-display: swap;
}
@font-face {
  font-family: 'Fira Sans';
  font-weight: 700;
  src: url(/fonts/FiraSans-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0100-017F, U+2010-2027, U+20AC, U+2191, U+2212;
  font-display: swap;
}
@font-face {
  font-family: 'Fira Sans';
  font-weight: 400;
  src: url(/fonts/FiraSans-400-cyr.woff2) format('woff2');
  unicode-range: U+0400-045F, U+0490-0491, U+2116;
  font-display: swap;
}
@font-face {
  font-family: 'Fira Sans';
  font-weight: 500;
  src: url(/fonts/FiraSans-500-cyr.woff2) format('woff2');
  unicode-range: U+0400-045F, U+0490-0491, U+2116;
  font-display: swap;
}
@font-face {
  font-family: 'Fira Sans';
  font-weight: 700;
  src: url(/fonts/FiraSans-700-cyr.woff2) format('woff2');
  unicode-range: U+0400-045F, U+0490-0491, U+2116;
  font-display: swap;
}
@font-face {
  font-family: 'Fira Sans';
  font-weight: 900;
  src: url(/fonts/FiraSans-900-cyr.woff2) format('woff2');
  unicode-range: U+0400-045F, U+0490-0491, U+2116;
  font-display: swap;
}

/* ---------- Värvid ja mõõdud ---------- */
:root {
  --espresso: #2A1E16;
  --walnut: #3A2A1F;
  --walnut-line: #5A4434;
  --brass: #C9A04E;
  --brass-deep: #A9823A;
  --bristle: #EEE4CF;
  --smoke: #A89A86;
  --ink: #000000;          /* logo must taust */
  --ink-line: #3A2E24;

  --display: 'Anton', 'Fira Sans', Impact, sans-serif;
  --body: 'Fira Sans', system-ui, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
}

/* Antonil pole kirillitsat — vene keeles kasutame Fira Sans Blacki */
:lang(ru) { --display: 'Fira Sans', system-ui, sans-serif; }
:lang(ru) .fade-title,
:lang(ru) h2,
:lang(ru) .title,
:lang(ru) footer h3,
:lang(ru) .price-group h3 { font-weight: 900; letter-spacing: -.01em; }
:lang(ru) .fade-title { font-size: clamp(38px, 5vw, 82px); max-width: none !important; }
/* Soome pealkirjas on pikk sõna „KAMPAUKSESTA“ — väiksem suurus, et see mahuks */
:lang(fi) .fade-title { font-size: clamp(44px, 5.4vw, 96px); }

html, body { overflow-x: clip; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 90px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--bristle);
  background: var(--espresso);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

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

/* ---------- Päis ---------- */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(42, 30, 22, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--walnut-line);
}

nav {
  max-width: var(--wrap);
  margin: auto;
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  min-width: 0;
}

.logo-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

.title {
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: .01em;
  color: var(--bristle);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.logo-img { flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links li { text-align: center; }

.nav-links a {
  text-decoration: none;
  color: var(--bristle);
  font-weight: 500;
  font-size: 16px;
}

/* ---------- Nupud ---------- */
.btn,
.booking-btn {
  display: inline-block;
  background: var(--brass);
  color: var(--espresso) !important;
  font-family: var(--body);
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background .2s ease;
  text-align: center; /* laius on lukustatud pikima keele järgi, tekst jääb keskele */
}

.booking-btn {
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 15px;
}

.btn {
  padding: 17px 34px;
  border-radius: 4px;
  font-size: 18px;
}

.btn-block {
  display: block;
  text-align: center;
  margin-top: 32px;
}

/* ---------- Hero ---------- */
.hero {
  max-width: none;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
}

.hero-content {
  position: relative;
  z-index: 1;
  align-self: center;
  justify-self: end;
  width: 100%;
  max-width: calc(var(--wrap) * .6);
  padding: 140px var(--gutter) 80px;
}

.hero-sub {
  font-size: 20px;
  font-weight: 500;
  color: var(--brass);
  margin-bottom: 18px;
}

/* Allkiri: pealkiri on ise „fade“ — ülal täis, alt hajub peenteks joonteks */
.fade-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(56px, 7.6vw, 124px);
  line-height: .9;
  text-transform: uppercase;
  letter-spacing: -.005em;
  color: var(--bristle);
  margin-bottom: var(--title-gap, 44px);
  max-width: 7.5em;
  overflow-wrap: break-word;
  -webkit-hyphens: manual;
  hyphens: manual;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .fade-title {
    color: transparent;
    -webkit-text-fill-color: transparent;
    /* Safari joonistab triibud ainult kasti sees: anname tähtedele ruumi ümber,
       negatiivne margin hoiab paigutuse samana */
    padding: .1em .06em;
    margin: -.1em -.06em calc(var(--title-gap, 44px) - .1em);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    max-width: calc(7.5em + .12em);
    background-image:
      linear-gradient(to bottom, var(--bristle) 0 38%, rgba(238, 228, 207, 0) 78%),
      repeating-linear-gradient(to bottom, var(--bristle) 0 3px, transparent 3px 7px);
    background-size: 100% 100%, 100% 100%;
    background-repeat: no-repeat, repeat;
    -webkit-background-clip: text;
    background-clip: text;
  }
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px 28px;
  margin-bottom: 56px;
}

.hero-price {
  color: var(--smoke);
  font-size: 17px;
}

.hero-price strong {
  color: var(--bristle);
  font-size: 22px;
  font-weight: 700;
  margin-left: 4px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 48px;
  padding-top: 24px;
  border-top: 1px solid var(--walnut-line);
}

.hero-facts dt,
.visit-facts dt {
  font-size: 14px;
  color: var(--smoke);
  margin-bottom: 2px;
}

.hero-facts dd {
  font-size: 18px;
  font-weight: 500;
}

.hero-photo {
  position: relative;
  z-index: 0;
  min-height: 100%;
  overflow: hidden;
}

.hero-photo picture { display: contents; }

.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 65%;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--espresso) 0, rgba(42, 30, 22, 0) 28%);
}

/* ---------- Sektsioonid ---------- */
section {
  max-width: var(--wrap);
  margin: auto;
  padding: 120px var(--gutter);
}

h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(48px, 6vw, 84px);
  line-height: .95;
  text-transform: uppercase;
  color: var(--bristle);
  margin-bottom: 56px;
}

/* ---------- Teenused ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service picture { display: block; }

.service img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
  margin-bottom: 22px;
  filter: saturate(.85);
}

.service h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.service p {
  color: var(--smoke);
  max-width: 32ch;
}

/* ---------- Hinnakiri ---------- */
#hinnakiri {
  max-width: none;
  background: var(--ink);
  border-top: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
}

#hinnakiri > * {
  max-width: calc(var(--wrap) - 2 * var(--gutter));
  margin-left: auto;
  margin-right: auto;
}

.price-board {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 64px 80px;
}

.price-group h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 30px;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 14px;
}

.row {
  color: var(--bristle);
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  font-size: 18px;
}

.row i {
  flex: 1;
  min-width: 20px;
  border-bottom: 2px dotted #5E4A36;
  transform: translateY(-4px);
}

.row span { min-width: 0; overflow-wrap: break-word; }

.row strong {
  color: var(--brass);
  font-weight: 700;
  font-size: 20px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ---------- Asukoht ---------- */
#asukoht {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: stretch;
}

#asukoht h2 { margin-bottom: 28px; }

.visit-address {
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 28px;
}

.visit-facts {
  margin-bottom: 40px;
}

.visit-facts dd {
  font-size: 20px;
  font-weight: 500;
}

.visit-facts dd + dt { margin-top: 18px; }

.email-link {
  color: var(--bristle);
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

footer .email-link { color: var(--bristle); font-weight: 500; }
footer p + p { margin-top: 4px; }

.map {
  width: 100%;
  min-height: 420px;
  border: 0;
  border-radius: 2px;
  filter: grayscale(1) sepia(.35) contrast(.95);
}

.map-facade {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  filter: none;
  background:
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(201, 160, 78, .08) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(201, 160, 78, .08) 39px 40px),
    var(--walnut);
  border: 1px solid var(--walnut-line);
}

.map-open {
  color: var(--smoke);
  font-size: 15px;
  text-underline-offset: 4px;
}

/* ---------- Jalus ---------- */
footer {
  border-top: 1px solid var(--walnut-line);
  text-align: center;
  padding: 56px 20px 64px;
  color: var(--smoke);
}

footer img {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
}

footer h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 24px;
  color: var(--bristle);
  margin-bottom: 4px;
}

footer p { font-size: 15px; }

/* ---------- Menüü nupp ---------- */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--bristle);
  transition: transform .2s ease, opacity .2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Tagasi üles ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brass);
  color: var(--espresso);
  text-decoration: none;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity .3s ease, transform .3s ease;
  z-index: 99;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

/* ---------- Keelevalik ---------- */
.lang-switch {
  display: flex;
  gap: 6px;
}

.lang-switch button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  border: 2px solid transparent;
  background: none;
  border-radius: 5px;
  cursor: pointer;
  opacity: .5;
  transition: opacity .2s;
}

.lang-switch button svg {
  display: block;
  border-radius: 2px;
}

.lang-switch button.active {
  border-color: var(--brass);
  opacity: 1;
}

/* ---------- Hover ---------- */
@media (hover: hover) and (pointer: fine) {
  .nav-links a:not(.booking-btn):hover,
  .title:hover,
  .email-link:hover { color: var(--brass); }

  .btn:hover,
  .booking-btn:hover { background: var(--bristle); }

  .lang-switch button:hover { opacity: 1; }

  /* Läbipaistvad nupud: hoveril on taust hele, seega tekst peab tumenema */
  .error-buttons .booking-btn:hover,
  .consent-decline:hover { color: var(--espresso) !important; }

  .link-btn:hover { color: var(--brass); }
}

/* ---------- Keel laeb (vt <head>) ---------- */
.i18n-pending body { visibility: hidden; }

/* ---------- Küpsiste nõusolek ---------- */
.consent {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 200;
  max-width: 440px;
  padding: 22px 24px;
  background: var(--walnut);
  border: 1px solid var(--walnut-line);
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
  font-size: 15px;
}

.consent[hidden] { display: none; }

.consent p { margin-bottom: 18px; }

.consent-actions {
  display: flex;
  gap: 10px;
}

/* Mõlemad nupud on ühesuurused — keeldumine peab olema sama lihtne kui nõustumine */
.consent .btn {
  flex: 1;
  padding: 12px 18px;
  font-size: 16px;
}

.consent-decline {
  background: transparent;
  color: var(--bristle) !important;
  box-shadow: inset 0 0 0 2px var(--brass);
}

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 14px;
  color: var(--smoke);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

footer .link-btn { margin-top: 12px; }

/* ---------- 404 ---------- */
.error-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 140px 20px 60px;
}

.error-card {
  max-width: 650px;
  width: 100%;
  text-align: center;
}

.error-card h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(120px, 22vw, 220px);
  line-height: .9;
  color: var(--brass);
  margin-bottom: 12px;
}

.error-card h2 {
  margin-bottom: 20px;
  font-size: clamp(36px, 5vw, 52px);
}

.error-card p {
  color: var(--smoke);
  margin-bottom: 40px;
}

.error-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.error-buttons .booking-btn {
  padding: 17px 34px;
  font-size: 18px;
  background: transparent;
  color: var(--bristle) !important;
  box-shadow: inset 0 0 0 2px var(--brass);
}


/* ---------- Tahvel ---------- */
@media (max-width: 960px) {
  .nav-links { gap: 20px; }
  .services { gap: 20px; }
  .price-board { gap: 48px 48px; }
}

/* ---------- Mobiil ---------- */
@media (max-width: 820px) {
  body { font-size: 16px; }

  nav { gap: 12px; padding-top: 10px; padding-bottom: 10px; }

  .logo-img { width: 44px; height: 44px; }
  .title { font-size: 20px; }

  .menu-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--espresso);
    border-bottom: 1px solid var(--walnut-line);
    padding: 8px var(--gutter) 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-links.active { display: flex; }

  .nav-links li { border-bottom: 1px solid var(--walnut-line); }
  .nav-links li:last-child { border: 0; padding-top: 18px; }

  .nav-links a { display: block; padding: 16px 0; font-size: 18px; }
  .nav-links .booking-btn { text-align: center; padding: 15px; }

  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    min-height: 0;
  }

  .hero-photo {
    order: -1;
    height: 46vh;
    min-height: 300px;
  }

  .hero-photo::after {
    background: linear-gradient(to bottom, rgba(42, 30, 22, .55) 0, rgba(42, 30, 22, 0) 28%, rgba(42, 30, 22, 0) 45%, var(--espresso) 92%);
  }

  .hero-content {
    container-type: inline-size;
    max-width: none;
    padding: 0 var(--gutter) 64px;
    margin-top: -11vh;
    position: relative;
  }

  .fade-title { font-size: clamp(48px, 14.5vw, 80px); --title-gap: 32px; }
  :lang(fi) .fade-title { font-size: clamp(30px, 11vw, 80px); font-size: min(12.5cqi, 80px); }
  :lang(ru) .fade-title { font-size: clamp(26px, 8.6vw, 66px); font-size: min(11.5cqi, 66px); }

  .hero-actions { margin-bottom: 40px; }

  section { padding: 80px var(--gutter); }

  h2 { margin-bottom: 36px; }

  .services { grid-template-columns: 1fr; gap: 48px; }
  .service img { aspect-ratio: 3 / 2; }

  .price-board { grid-template-columns: 1fr; gap: 44px; }

  #asukoht { grid-template-columns: 1fr; gap: 40px; }
  .map { min-height: 340px; }

  .back-to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; font-size: 19px; }

  .consent { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

@media (max-width: 480px) {
  .title { display: none; }
}

@media (max-width: 400px) {
  .row { font-size: 16px; }
}

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