/* =====================================================================
   Suislepa — minimalistlik turismileht
   Valge, õhuline, Plus Jakarta Sans, sügav metsaroheline aktsent.
   ===================================================================== */

:root{
  --bg:        #ffffff;
  --bg-soft:   #F4F6F2;
  --ink:       #07332D;   /* sügav metsaroheline — pealkirjad, tume UI */
  --muted:     #5A6661;   /* kehatekst */
  --accent:    #4E6D43;   /* roheline aktsent */
  --accent-dk: #3B5532;
  --red:       #C0392B;   /* logo punane — õrn aktsent */
  --red-dk:    #9E2C20;
  --line:      #E7EAE4;   /* juuksekarva piir */

  --r:    12px;
  --r-lg: 18px;

  --f: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gut: clamp(20px, 5vw, 56px);
  --sp:  clamp(4.5rem, 9vw, 8.5rem);   /* sektsiooni vertikaalne hingamisruum */
}

*,*::before,*::after{ box-sizing:border-box; }
*{ margin:0; }
html{ scroll-behavior:smooth; scroll-padding-top:90px; -webkit-text-size-adjust:100%; }
body{
  font-family:var(--f);
  color:var(--ink);
  background:var(--bg);
  line-height:1.7;
  font-size:clamp(15.5px, 1vw, 17px);
  font-weight:400;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; padding:0; }
button{ font:inherit; cursor:pointer; border:none; background:none; color:inherit; }
iframe{ border:0; }
:focus-visible{ outline:2.5px solid var(--accent); outline-offset:3px; border-radius:3px; }

.skip-link{ position:absolute; left:-999px; top:8px; z-index:200; background:var(--ink); color:#fff; padding:.7rem 1.1rem; border-radius:8px; }
.skip-link:focus{ left:8px; }

.wrap{ width:100%; max-width:var(--wrap); margin-inline:auto; padding-inline:var(--gut); }

/* ---------- tüpograafia ---------- */
h1,h2,h3,h4{ font-weight:600; line-height:1.12; letter-spacing:-.02em; color:var(--ink); }
.h1{ font-size:clamp(2.5rem, 5.4vw, 4.4rem); font-weight:600; letter-spacing:-.035em; }
.h2{ font-size:clamp(1.85rem, 3.4vw, 2.85rem); }
.h3{ font-size:clamp(1.3rem, 2vw, 1.6rem); }
.h4{ font-size:1.12rem; font-weight:600; }

.eyebrow{
  font-size:.74rem; font-weight:700; text-transform:uppercase;
  letter-spacing:.2em; color:var(--accent); margin-bottom:1.1rem;
}
.eyebrow-light{ color:rgba(255,255,255,.82); }

p{ color:var(--muted); }
.lead{ font-size:clamp(1.05rem,1.4vw,1.2rem); color:var(--muted); }

/* ---------- nupud ---------- */
.btn{
  display:inline-flex; align-items:center; gap:.5em;
  font-weight:600; font-size:.95rem; letter-spacing:.005em;
  padding:.92em 1.7em; border-radius:10px;
  transition:background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.btn-sm{ padding:.62em 1.15em; font-size:.88rem; }
.btn-solid{ background:var(--ink); color:#fff; }
.btn-solid:hover{ background:var(--accent-dk); transform:translateY(-1px); }
/* sekundaarsetel nuppudel ärkab hiirega õrn logo-punane outline */
.btn-outline{ border:1.5px solid var(--line); color:var(--ink); }
.btn-outline:hover{ border-color:var(--red); color:var(--red); box-shadow:0 0 0 3px rgba(192,57,43,.12); }
.btn-ghost-light{ color:#fff; border:1.5px solid rgba(255,255,255,.5); }
.btn-ghost-light:hover{ border-color:var(--red); box-shadow:0 0 0 3px rgba(192,57,43,.22); background:rgba(192,57,43,.1); }
/* päise CTA: hiirega õrn punane sõõr */
.header-cta:hover{ box-shadow:0 0 0 2px var(--red); }

.link-arrow{ display:inline-flex; align-items:center; gap:.5em; font-weight:600; color:var(--accent); margin-top:1.4rem; }
.link-arrow span{ transition:transform .2s ease; }
.link-arrow:hover span{ transform:translateX(5px); }

/* ---------- header ---------- */
.site-header{ position:fixed; inset:0 0 auto 0; z-index:100; padding:.85rem 0; transition:background .3s ease, box-shadow .3s ease, padding .3s ease; }
.site-header[data-state="top"]{ background:rgba(255,255,255,.94); backdrop-filter:saturate(140%) blur(10px); }
.site-header[data-state="scrolled"]{ background:rgba(255,255,255,.96); backdrop-filter:saturate(140%) blur(12px); box-shadow:0 1px 0 var(--line); padding:.6rem 0; }
.header-inner{ display:flex; align-items:center; gap:1.5rem; }

.brand{ display:flex; align-items:center; gap:.65rem; margin-right:auto; }
.brand-badge{ display:grid; place-items:center; width:42px; height:42px; border-radius:50%; background:#fff; overflow:hidden; box-shadow:0 0 0 1px var(--line); }
.brand-badge img{ width:34px; height:34px; object-fit:contain; }
.brand-name{ font-weight:700; font-size:1.3rem; letter-spacing:-.02em; color:var(--ink); }

.nav-list{ display:flex; gap:.2rem; }
.nav-list a{ display:block; padding:.5rem .9rem; border-radius:8px; font-weight:500; font-size:.96rem; color:var(--ink); transition:color .2s, background .2s; }
.nav-list a:hover{ color:var(--accent); }

.header-cta{ margin-left:.4rem; white-space:nowrap; }

.nav-toggle{ display:none; flex-direction:column; gap:5px; padding:9px; }
.nav-toggle span{ width:24px; height:2px; background:var(--ink); border-radius:2px; transition:.3s; }

/* ---------- hero (split: tekst vasakul, pilt paremal) ---------- */
.hero{ padding-top:78px; }
.hero-split{ display:grid; grid-template-columns:1.02fr 1fr; gap:clamp(2rem,5vw,4.5rem); align-items:stretch; min-height:min(80vh,740px); }
.hero-text{ display:flex; flex-direction:column; justify-content:center; padding:clamp(1.5rem,4vw,3rem) 0; }
.hero-text .eyebrow{ color:var(--accent); }
.hero h1{ color:var(--ink); margin-top:.2rem; }
.hero-lead{ color:var(--muted); max-width:44ch; margin-top:1.3rem; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:.8rem; margin-top:2rem; }
.hero-figure{ position:relative; border-radius:var(--r-lg); overflow:hidden; margin:clamp(1rem,3vw,2rem) 0; box-shadow:0 30px 60px -34px rgba(7,51,45,.5); }
.hero-figure img{ width:100%; height:100%; min-height:54vh; object-fit:cover; object-position:center 30%; display:block; }

/* ---------- sektsioonid ---------- */
.section{ padding-block:var(--sp); }
.section-soft{ background:var(--bg-soft); }
.section-head{ max-width:640px; margin-bottom:clamp(2.4rem,4.5vw,3.6rem); }
.section-head.center{ margin-inline:auto; text-align:center; }
.section-head .lead{ margin-top:1.1rem; }

/* ---------- highlights ---------- */
.highlights{ /* taust + lained tulevad .section-soft kaudu */ }
.highlight-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:clamp(1.5rem,3vw,2.5rem); }
.hl{ display:flex; flex-direction:column; gap:.5rem; }
.hl svg{ width:30px; height:30px; fill:none; stroke:var(--accent); stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.hl-title{ font-weight:600; color:var(--ink); margin-top:.3rem; }
.hl-sub{ font-size:.92rem; color:var(--muted); }

/* ---------- split (tutvustus/turism) ---------- */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(2.4rem,5vw,5rem); align-items:center; }
.split-media img{ width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:var(--r-lg); }
.split-text p{ margin-top:1.1rem; }
.feature-list{ display:grid; gap:.95rem; margin-top:2rem; }
.feature-list li{ display:flex; align-items:center; gap:.85rem; font-weight:500; color:var(--ink); }
.feature-list svg{ flex:none; width:22px; height:22px; fill:none; stroke:var(--accent); stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }

/* ---------- puidust silt (tutvustus) ---------- */
.sign-banner{ border-radius:var(--r-lg); overflow:hidden; margin-bottom:clamp(2rem,4vw,3.4rem); }
.sign-banner img{ width:100%; aspect-ratio:1024/375; object-fit:cover; display:block; }
.tutvustus-aside{ align-self:center; }

/* ---------- majutus (listingud) ---------- */
.listings{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(1.5rem,3vw,2.4rem); }
.listing{ background:var(--bg); border:1px solid var(--line); border-radius:var(--r-lg); overflow:hidden; display:flex; flex-direction:column; transition:box-shadow .25s ease, transform .25s ease; }
.listing:hover{ box-shadow:0 22px 48px -28px rgba(7,51,45,.4); transform:translateY(-3px); }
.listing-media{ position:relative; }
.listing-media .lg-main{ display:block; width:100%; }
.listing-media .lg-main img{ width:100%; aspect-ratio:16/10; object-fit:cover; }
.listing-thumbs{ display:grid; grid-template-columns:repeat(3,1fr); gap:2px; }
.listing-thumbs button{ display:block; }
.listing-thumbs img{ width:100%; aspect-ratio:3/2; object-fit:cover; }
.listing-body{ padding:clamp(1.4rem,2.5vw,2rem); display:flex; flex-direction:column; flex:1; }
.listing-body .h3{ margin-bottom:.6rem; }
.specs{ display:flex; flex-wrap:wrap; gap:.4rem .55rem; margin-top:1.3rem; }
.specs li{ font-size:.85rem; color:var(--muted); display:flex; align-items:center; gap:.55rem; }
.specs li:not(:last-child)::after{ content:""; width:3px; height:3px; border-radius:50%; background:#C3C9C0; }
.listing-body .link-arrow{ margin-top:auto; padding-top:1.4rem; }

/* ---------- teenused ---------- */
.service-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(1.2rem,2.5vw,1.8rem); }
.service-card{ background:var(--bg); border:1px solid var(--line); border-radius:var(--r-lg); padding:clamp(1.6rem,2.5vw,2.2rem); transition:border-color .25s ease, transform .25s ease; }
.service-card:hover{ border-color:#CDD4C8; transform:translateY(-3px); }
.service-icon{ display:grid; place-items:center; width:54px; height:54px; border-radius:14px; background:var(--bg-soft); margin-bottom:1.3rem; }
.service-icon svg{ width:30px; height:30px; fill:none; stroke:var(--accent); stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.service-card p{ margin-top:.6rem; }

/* ---------- videod ---------- */
.video-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:clamp(1.1rem,2.4vw,1.6rem); }
.video-card{ position:relative; display:block; width:100%; aspect-ratio:16/9; border-radius:var(--r-lg); overflow:hidden; background:#0a1714; }
.video-card img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease, opacity .3s ease; }
.video-card:hover img{ transform:scale(1.04); opacity:.9; }
.video-play{ position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:64px; height:64px; display:grid; place-items:center; background:var(--red); border-radius:50%; box-shadow:0 10px 26px rgba(0,0,0,.4); transition:transform .25s ease, background .25s ease; }
.video-card:hover .video-play{ transform:translate(-50%,-50%) scale(1.08); background:var(--red-dk); }
.video-play svg{ width:22px; height:22px; fill:#fff; margin-left:3px; }
.video-title{ position:absolute; left:0; right:0; bottom:0; padding:1.5rem 1.2rem .85rem; color:#fff; font-weight:600; font-size:1.02rem; text-align:left; background:linear-gradient(to top, rgba(8,18,14,.82), transparent); }
.video-card.video-embed{ background:#000; }
.video-card.video-embed iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }

/* ---------- kontakt ---------- */
.contact-grid{ display:grid; grid-template-columns:.85fr 1.15fr; gap:clamp(2.4rem,5vw,4.5rem); align-items:center; }
.contact-list{ display:grid; gap:1.4rem; margin:2.2rem 0 1.6rem; }
.contact-actions{ display:flex; flex-wrap:wrap; gap:.7rem; }
.contact-actions .btn{ gap:.5em; }
.contact-list li{ display:grid; gap:.25rem; }
.ci-label{ font-size:.74rem; font-weight:700; text-transform:uppercase; letter-spacing:.16em; color:var(--accent); }
.ci-value{ font-size:1.1rem; font-weight:500; color:var(--ink); }
a.ci-value:hover{ color:var(--accent); }
.contact-map{ border-radius:var(--r-lg); overflow:hidden; border:1px solid var(--line); min-height:380px; }
.contact-map iframe{ width:100%; height:100%; min-height:380px; display:block; }
.contact-map--ph{ display:grid; place-items:center; text-align:center; text-decoration:none; background:var(--bg-soft); border-style:dashed; transition:border-color .2s ease, background .2s ease; }
.contact-map--ph:hover{ border-color:var(--accent); background:#edf1ea; }
.map-ph-inner{ display:grid; justify-items:center; gap:.45rem; padding:1.5rem; }
.map-ph-inner svg{ color:var(--accent); }
.map-ph-inner strong{ font-size:1.05rem; color:var(--ink); }
.map-ph-inner span{ font-size:.9rem; color:var(--muted); }

/* ---------- footer ---------- */
.site-footer{ background:var(--ink); color:#CFE0D9; padding-block:3rem; }
.footer-inner{ display:flex; align-items:center; flex-wrap:wrap; gap:1.4rem 2.5rem; }
.footer-brand{ display:flex; align-items:center; gap:.8rem; margin-right:auto; }
.footer-name{ font-weight:700; font-size:1.2rem; color:#fff; }
.footer-tag{ font-size:.88rem; color:#8FB0A6; }
.footer-nav{ display:flex; gap:1.5rem; flex-wrap:wrap; }
.footer-nav a{ font-weight:500; font-size:.95rem; color:#CFE0D9; }
.footer-nav a:hover{ color:#fff; }
.footer-copy{ width:100%; padding-top:1.5rem; border-top:1px solid rgba(255,255,255,.12); font-size:.86rem; color:#8FB0A6; }

/* ---------- alamlehe pais + artikkel (ajalugu) ---------- */
.page-hero{ position:relative; min-height:48vh; display:flex; align-items:flex-end; padding-bottom:clamp(2.5rem,5vh,4rem); }
.page-hero .hero-media{ position:absolute; inset:0; z-index:-1; }
.page-hero .hero-media img{ width:100%; height:100%; object-fit:cover; }
.page-hero h1{ color:#fff; text-shadow:0 1px 22px rgba(4,18,12,.4); }
.page-hero .lead{ color:rgba(255,255,255,.92); max-width:50ch; margin-top:1.2rem; text-shadow:0 1px 16px rgba(4,18,12,.35); }
.breadcrumb{ font-size:.85rem; font-weight:600; color:rgba(255,255,255,.8); margin-bottom:1rem; }
.breadcrumb a{ color:#fff; }
.breadcrumb a:hover{ text-decoration:underline; }

.toc{ display:flex; flex-wrap:wrap; gap:.6rem; }
.toc a{ font-size:.88rem; font-weight:600; color:var(--ink); border:1px solid var(--line); padding:.5rem 1.05rem; border-radius:999px; transition:border-color .2s, color .2s; }
.toc a:hover{ border-color:var(--red); color:var(--red); }

.toc-section{ border-bottom:1px solid var(--line); }

/* longread artikkel */
.article{ max-width:1000px; margin-inline:auto; }
.article-head{ max-width:680px; margin:0 auto clamp(1.6rem,3vw,2.4rem); }
.article-num{ display:block; font-size:.78rem; font-weight:700; letter-spacing:.22em; color:#C7CFC4; }
.article-head .eyebrow{ margin:.7rem 0 .7rem; }
.article-body{ max-width:680px; margin-inline:auto; }
.article-body p{ margin-top:1.2rem; line-height:1.88; }
.article-body .lead{ font-size:1.18rem; color:var(--ink); line-height:1.7; margin-top:0; }
.article-body .lead::first-letter{ float:left; font-size:3.1em; line-height:.76; font-weight:600; color:var(--accent); padding:.05em .12em 0 0; }
.article-body h3.sub{ font-size:1.06rem; font-weight:700; color:var(--ink); margin-top:2.3rem; }
.article-banner{ max-width:1000px; margin:0 auto clamp(1.8rem,3vw,2.6rem); border-radius:var(--r-lg); overflow:hidden; }
.article-banner img{ width:100%; aspect-ratio:21/9; object-fit:cover; display:block; }

/* legend (verse) */
#legend .article-head{ text-align:center; }
.verse{ max-width:600px; margin-inline:auto; text-align:center; }
.verse p{ font-style:italic; line-height:1.95; color:var(--ink); margin-top:1.5rem; font-size:1.05rem; }
.verse .refrain-label{ display:block; font-style:normal; font-weight:700; font-size:.72rem; letter-spacing:.2em; text-transform:uppercase; color:var(--accent); margin-bottom:.45rem; }
.verse cite{ display:block; margin-top:1.9rem; font-style:normal; font-size:.82rem; color:var(--muted); }

/* tsitaat */
.pull-section{ padding-block:clamp(2.4rem,5vw,4rem); }
.pullquote{ max-width:840px; margin-inline:auto; text-align:center; font-size:clamp(1.5rem,3.4vw,2.35rem); font-style:italic; font-weight:500; line-height:1.36; letter-spacing:-.01em; color:var(--accent-dk); }

/* ---------- galerii ---------- */
.gallery-album{ margin-top:clamp(2.6rem,5vw,4.2rem); }
.gallery-album:first-child{ margin-top:0; }
.album-head{ display:flex; align-items:baseline; justify-content:space-between; gap:1rem; margin-bottom:1.2rem; padding-bottom:.9rem; border-bottom:1px solid var(--line); }
.album-count{ font-size:.85rem; color:var(--muted); font-weight:500; white-space:nowrap; }
.gallery-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); gap:.6rem; }
.gthumb{ display:block; border-radius:10px; overflow:hidden; aspect-ratio:4/3; background:var(--bg-soft); }
.gthumb img{ width:100%; height:100%; object-fit:cover; transition:transform .45s ease, opacity .3s ease; }
.gthumb:hover img{ transform:scale(1.05); opacity:.9; }
.gthumb.is-hidden{ display:none; }
.gallery-more{ display:block; margin:1.2rem auto 0; padding:.72em 1.6em; border:1.5px solid var(--line); border-radius:999px; font-weight:600; font-size:.92rem; color:var(--ink); background:#fff; transition:border-color .2s, color .2s; }
.gallery-more:hover{ border-color:var(--red); color:var(--red); }

/* ---------- SVG-laine üleminekud sektsioonide vahel ---------- */
.section-soft{ position:relative; }
.section-soft::before, .section-soft::after{ content:""; position:absolute; left:0; right:0; height:clamp(26px,3.5vw,42px); background-size:100% 100%; background-repeat:no-repeat; pointer-events:none; z-index:2; }
.section-soft::before{ top:-1px; background-image:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201440%2042'%20preserveAspectRatio='none'%3E%3Cpath%20fill='%23ffffff'%20d='M0,0H1440V20C1080,44,720,4,360,26C220,34,90,31,0,23Z'/%3E%3C/svg%3E"); }
.section-soft::after{ bottom:-1px; background-image:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201440%2042'%20preserveAspectRatio='none'%3E%3Cpath%20fill='%23ffffff'%20d='M0,42H1440V24C1080,2,720,40,360,18C220,10,90,13,0,21Z'/%3E%3C/svg%3E"); }

/* ---------- ajalugu: pilt+tekst split ---------- */
.hsplit{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(2rem,5vw,4.5rem); align-items:center; }
.hsplit--flip .hsplit-media{ order:2; }
.hsplit-media img{ width:100%; aspect-ratio:4/5; max-height:560px; object-fit:cover; border-radius:var(--r-lg); display:block; box-shadow:0 24px 50px -30px rgba(7,51,45,.4); }
.hsplit-text .article-num{ display:block; }
.hsplit-text .article-body{ max-width:none; }
.hsplit-text .article-body p{ margin-top:1rem; line-height:1.85; }
.hsplit-text .article-body .lead{ font-size:1.12rem; color:var(--ink); }
.hsplit-text .article-body .lead::first-letter{ float:none; font-size:inherit; color:inherit; padding:0; font-weight:inherit; }

/* ---------- ajajoon ---------- */
.timeline{ list-style:none; max-width:720px; margin:clamp(1.5rem,3vw,2.5rem) auto 0; position:relative; border-left:2px solid var(--line); padding-left:1.9rem; display:grid; gap:1.5rem; }
.timeline-item{ position:relative; }
.timeline-item::before{ content:""; position:absolute; left:calc(-1.9rem - 6px); top:.4rem; width:11px; height:11px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 4px #fff; }
.timeline-year{ font-weight:700; font-size:1.1rem; color:var(--accent); }
.timeline-text{ margin-top:.15rem; color:var(--muted); }

/* ---------- foto-riba + tsitaat (image_band) ---------- */
.image-band{ position:relative; min-height:clamp(38vh,46vw,54vh); display:flex; align-items:center; isolation:isolate; margin-block:clamp(1rem,2vw,1.5rem); }
.image-band__media{ position:absolute; inset:0; z-index:-1; overflow:hidden; }
.image-band__media img{ width:100%; height:100%; object-fit:cover; }
.image-band__veil{ position:absolute; inset:0; background:linear-gradient(180deg, rgba(6,26,20,.46), rgba(6,26,20,.6)); }
.image-band__content{ text-align:center; color:#fff; }
.image-band__quote{ font-style:italic; font-weight:600; font-size:clamp(1.6rem,4vw,3rem); line-height:1.25; letter-spacing:-.01em; max-width:20ch; margin-inline:auto; text-shadow:0 2px 26px rgba(0,0,0,.4); }
.image-band__caption{ margin-top:1rem; color:rgba(255,255,255,.85); font-size:.92rem; letter-spacing:.04em; text-transform:uppercase; }

/* ---------- pildiriba ---------- */
.photo-strip{ grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); }

/* ---------- Leaflet kaart (tasuta, ilma API-ta) ---------- */
.leaflet-map{ width:100%; height:100%; min-height:380px; z-index:0; }

/* ---------- lightbox ---------- */
.lightbox{ position:fixed; inset:0; z-index:300; background:rgba(6,18,14,.93); display:grid; place-items:center; padding:4vw; opacity:0; visibility:hidden; transition:opacity .25s ease, visibility .25s ease; }
.lightbox.open{ opacity:1; visibility:visible; }
.lightbox img{ max-width:92vw; max-height:88vh; border-radius:var(--r); }
.lb-close{ position:absolute; top:16px; right:24px; font-size:2.4rem; line-height:1; color:#fff; width:46px; height:46px; }
.lb-prev,.lb-next{ position:absolute; top:50%; transform:translateY(-50%); font-size:3rem; line-height:1; color:#fff; width:56px; height:72px; opacity:.8; transition:opacity .2s; }
.lb-prev:hover,.lb-next:hover{ opacity:1; }
.lb-prev{ left:10px; } .lb-next{ right:10px; }
@media (max-width:560px){ .lb-prev,.lb-next{ font-size:2.2rem; width:42px; } }

/* ---------- reveal (peen) ---------- */
.reveal{ opacity:0; transform:translateY(16px); transition:opacity .7s ease, transform .7s ease; }
.reveal.in{ opacity:1; transform:none; }

/* ---------- küpsiseteade ---------- */
.cookie-bar{ position:fixed; left:50%; bottom:clamp(14px,3vw,28px); transform:translateX(-50%) translateY(140%);
  z-index:280; width:min(660px, calc(100% - 2*var(--gut)));
  display:flex; align-items:center; gap:1rem 1.4rem; flex-wrap:wrap; justify-content:space-between;
  background:#fff; color:var(--ink); border:1px solid var(--line); border-radius:var(--r-lg);
  box-shadow:0 22px 50px -22px rgba(7,51,45,.5); padding:clamp(1rem,2.4vw,1.35rem) clamp(1.2rem,3vw,1.7rem);
  opacity:0; visibility:hidden; transition:opacity .35s ease, transform .35s ease, visibility .35s ease; }
.cookie-bar.show{ opacity:1; visibility:visible; transform:translateX(-50%) translateY(0); }
.cookie-msg{ flex:1 1 300px; display:flex; align-items:center; gap:.9rem; }
.cookie-icon{ flex:0 0 auto; color:var(--accent); display:grid; place-items:center; }
.cookie-icon svg{ display:block; }
.cookie-text{ font-size:.9rem; line-height:1.55; color:var(--muted); margin:0; }
.cookie-text a{ color:var(--accent); text-decoration:underline; text-underline-offset:2px; white-space:nowrap; }
.cookie-actions{ flex:0 0 auto; display:flex; align-items:center; gap:.55rem; }
.cookie-actions .btn{ flex:0 0 auto; }
@media (max-width:480px){
  .cookie-bar{ flex-direction:column; align-items:stretch; text-align:left; }
  .cookie-msg{ flex:0 0 auto; align-items:flex-start; }
  .cookie-actions{ width:100%; }
  .cookie-actions .btn{ flex:1 1 0; justify-content:center; min-height:44px; }
}

/* ---------- jaluse hümni-link + hümni modaal ---------- */
.anthem-link{ font:inherit; color:inherit; background:none; border:0; padding:0; cursor:pointer;
  text-decoration:underline; text-decoration-color:rgba(255,255,255,.28); text-underline-offset:3px;
  transition:color .2s ease, text-decoration-color .2s ease; }
.anthem-link:hover{ color:#fff; text-decoration-color:#fff; }
/* tumedal jalusel vajab fookusvihje heledamat värvi (roheline outline jääks alla 3:1) */
.site-footer :focus-visible{ outline-color:#fff; }

.anthem-modal{ position:fixed; inset:0; z-index:320; background:rgba(6,18,14,.93);
  display:grid; place-items:center; padding:clamp(16px,4vw,40px);
  opacity:0; visibility:hidden; transition:opacity .25s ease, visibility .25s ease; }
.anthem-modal.open{ opacity:1; visibility:visible; }
.anthem-card{ position:relative; width:min(640px,100%); max-height:85vh; max-height:85dvh;
  display:flex; flex-direction:column;
  background:#fff; color:var(--ink); border-radius:var(--r-lg);
  box-shadow:0 40px 90px -30px rgba(7,51,45,.6); }
/* keritav on SISU (.anthem-body), mitte kaart — nii jääb sulgemisnupp alati nähtavale */
.anthem-body{ overflow-y:auto; -webkit-overflow-scrolling:touch; min-height:0;
  padding:clamp(2rem,5vw,3.4rem) clamp(1.6rem,5vw,3rem); }
.anthem-heading{ text-align:center; font-size:clamp(1.6rem,3.4vw,2.1rem); line-height:1.2; color:var(--ink); margin:.3rem 0 .4rem; }
.anthem-close{ position:absolute; top:10px; right:14px; z-index:1; font-size:1.9rem; line-height:1; width:42px; height:42px;
  color:var(--muted); background:none; border:0; cursor:pointer; border-radius:50%;
  transition:color .2s ease, background .2s ease; }
.anthem-close:hover{ color:var(--red); background:var(--bg-soft); }
@media (max-width:560px){ .anthem-card{ max-height:88vh; max-height:88dvh; } }

/* ---------- responsive ---------- */
@media (max-width:900px){
  .highlight-grid{ grid-template-columns:repeat(2,1fr); gap:2rem 1.5rem; }
  .service-grid{ grid-template-columns:1fr; }
}
@media (max-width:780px){
  .nav, .header-cta{ display:none; }
  .nav-toggle{ display:flex; }
  .nav.open{ display:block; position:absolute; top:100%; left:0; right:0; background:#fff; box-shadow:0 12px 30px -16px rgba(7,51,45,.4); padding:.8rem var(--gut) 1.2rem; border-top:1px solid var(--line); }
  .nav.open .nav-list{ flex-direction:column; gap:.1rem; }
  .nav.open .nav-list a{ color:var(--ink); padding:.85rem .5rem; font-size:1.05rem; border-radius:8px; }
  .nav.open .nav-list a:hover{ background:var(--bg-soft); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

  .split, .listings, .contact-grid, .video-grid, .hero-split, .hsplit{ grid-template-columns:1fr; }
  .hsplit-media{ order:-1; }
  .hsplit-media img{ aspect-ratio:16/10; max-height:none; }
  .split-media{ order:-1; }
  .split-media img{ aspect-ratio:16/10; }
  .hero-split{ min-height:0; gap:1.6rem; }
  .hero-figure{ order:-1; margin:0; }
  .hero-figure img{ min-height:0; aspect-ratio:16/10; }
  .hero-text{ padding:.5rem 0 0; }
}
@media (max-width:480px){
  :root{ --gut:20px; }
  .highlight-grid{ grid-template-columns:1fr; gap:1.6rem; }
  .hero-actions .btn{ flex:1; justify-content:center; }
}
@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *{ animation:none !important; transition:none !important; }
  .reveal{ opacity:1; transform:none; }
}
