/* Liipa Talu — geomeetria ja ruudustikud.
   Värvid, kirjad ja nupud on theme.json-is; siin on paigutus ja plokistiilid.
   Laaditakse ka redaktoris, nii et toimetaja näeb sama pilti. */

:root {
  --liipa-line: var(--wp--preset--color--line);
  --liipa-gold: var(--wp--preset--color--gold);
  --liipa-muted: var(--wp--preset--color--muted);
  --liipa-sec: var(--wp--preset--spacing--70);
  --liipa-header: 76px;
}

/* klõpsatav = tavaline osuti, mitte suurendusklaas */
a, button, summary, label, select, [role="button"], input[type="submit"], input[type="radio"], input[type="checkbox"],
.wp-block-gallery.is-style-mosaic img, .wp-block-image .wp-lightbox-container img { cursor: pointer !important; }

/* hiire/puutega kasutades fookusraame pole (theme.js: html.using-pointer); klaviatuuril jäävad */
.using-pointer :focus, .using-pointer :focus-visible { outline: none !important; }
.apply-dialog:focus { outline: none; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--liipa-header) + var(--wp-admin--admin-bar--height, 0px)); }
body { -webkit-font-smoothing: antialiased; }
img { height: auto; }

/* ---------- Plokistiilid: lõigud ---------- */
.is-style-eyebrow {
  font-size: 12px !important;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wp--preset--color--gold-deep);
  margin-bottom: 0;
}
.has-ink-background-color .is-style-eyebrow { color: var(--wp--preset--color--gold); }

.is-style-eyebrow + .wp-block-heading { margin-top: 14px !important; }

.is-style-lead { font-size: 19px; color: var(--liipa-muted); max-width: 34em; margin-top: 28px !important; margin-bottom: 40px !important; }

/* lubadus: raamitud, kuldsed jutumärgid, teine pool kullaga */
.is-style-pull {
  position: relative;
  margin-top: 48px !important; padding: 44px 40px 40px 44px;
  border: 1px solid var(--liipa-line);
  border-left: 2px solid var(--liipa-gold);
  font-size: clamp(24px, 2.4vw, 32px); font-weight: 300; line-height: 1.3; letter-spacing: -0.01em;
  color: var(--wp--preset--color--ink) !important;
}
.is-style-pull::before {
  content: "“"; position: absolute; top: -0.32em; left: 28px; padding: 0 12px;
  font-size: 96px; line-height: .9; height: .6em; overflow: hidden; color: var(--liipa-gold);
  background: var(--liipa-bg, var(--wp--preset--color--paper));
}
.is-style-pull em { font-style: normal; color: var(--liipa-gold); }
.pull-cta { margin-top: 28px !important; }

.sec-note { color: var(--liipa-muted); max-width: 26em; margin: 0; }

/* ---------- Nupud ---------- */
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
  background: var(--wp--preset--color--ink); color: #fff; border-color: var(--wp--preset--color--ink);
}
.wp-block-button.is-style-gold > .wp-block-button__link {
  background: var(--liipa-gold); border-color: var(--liipa-gold); color: #fff;
}
.wp-block-button.is-style-gold > .wp-block-button__link:hover { background: #fff; border-color: #fff; color: var(--wp--preset--color--ink); }
.wp-block-buttons { gap: 16px; }

/* ---------- Päis ---------- */
/* päis on alati kõige peal; ainult täisekraanivaade (z 2000) katab selle */
.wp-site-blocks > header.wp-block-template-part {
  position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 1000;
}
.site-header {
  background: var(--wp--preset--color--paper);
  /* päis on leht lehe peal: pehme vari langeb all olevale sisule */
  box-shadow: 0 1px 0 rgba(28,28,28,.05), 0 10px 28px -10px rgba(28,28,28,.22);
}
.header-inner { min-height: var(--liipa-header); gap: 24px; }
.brand { gap: 12px; }
.brand .wp-block-site-title a { text-decoration: none; }
.main-nav { gap: 28px; }
.main-nav .wp-block-navigation-item__content { position: relative; padding: 6px 0; text-decoration: none; font-weight: 600; }
.main-nav .wp-block-navigation-item:not(.nav-cta) .wp-block-navigation-item__content::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--liipa-gold); transition: right .3s;
}
.main-nav .wp-block-navigation-item:not(.nav-cta) .wp-block-navigation-item__content:hover::after { right: 0; }
.main-nav .nav-cta .wp-block-navigation-item__content {
  background: var(--wp--preset--color--graphite); color: #fff;
  padding: 11px 20px; font-weight: 500; letter-spacing: .06em; transition: background .25s;
}
.main-nav .nav-cta .wp-block-navigation-item__content:hover { background: var(--liipa-gold); color: #fff; }

/* päise parem pool: menüü + keelevahetaja */
.header-right { gap: 28px; }
.header-right > p, .header-right .wp-block-shortcode { margin: 0; }
.lang-switch {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: .14em;
  padding-left: 24px; border-left: 1px solid var(--liipa-line); height: 24px;
}
.lang-switch a { text-decoration: none; color: var(--liipa-muted); padding: 4px 2px; transition: color .25s; }
.lang-switch a:hover { color: var(--liipa-gold); }
.lang-switch a.is-current { color: var(--wp--preset--color--ink); }
.lang-switch span { color: var(--liipa-line); }

/* jaluse menüü (Välimus → Menüüd → Jaluse menüü) */
.footer-nav { gap: 6px !important; }
.footer-nav .wp-block-navigation-item__content { padding: 0; text-decoration: none; }
.site-footer .wp-block-navigation { font-size: 15px; }

/* ---------- Mobiilimenüü (hamburger kuni 920px) ----------
   Avaneb täisekraanil päise all — päis (logo, hamburger→rist) jääb nähtavaks.
   ET/EN on menüü alguses (functions.php lisab selle menüü plokki), päisest peidus.
   WordPressi enda sulgemisnupp on peidus; hamburger ise lülitab (vt theme.js). */
@media (min-width: 600px) and (max-width: 920px) {
  .main-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
  .main-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
@media (max-width: 920px) {
  .header-right > .lang-switch { display: none; }
}
.main-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .lang-switch--menu { display: none; }
.main-nav .wp-block-navigation__responsive-container-open {
  position: relative; width: 44px; height: 44px; align-items: center; justify-content: center;
  margin-right: -13px; /* raamita: kriipsud joonduvad sisu parema servaga */
}
.main-nav .wp-block-navigation__responsive-container-open svg { display: none; }
.main-nav .wp-block-navigation__responsive-container-open::before,
.main-nav .wp-block-navigation__responsive-container-open::after {
  content: ""; position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor;
  transition: transform .3s ease, top .3s ease;
}
.main-nav .wp-block-navigation__responsive-container-open::before { top: 17px; }
.main-nav .wp-block-navigation__responsive-container-open::after { top: 25px; }
html.has-modal-open .main-nav .wp-block-navigation__responsive-container-open::before { top: 21px; transform: rotate(45deg); }
html.has-modal-open .main-nav .wp-block-navigation__responsive-container-open::after { top: 21px; transform: rotate(-45deg); }
html.has-modal-open { overflow: hidden; }

.main-nav .wp-block-navigation__responsive-container.is-menu-open {
  top: calc(var(--liipa-header) + var(--wp-admin--admin-bar--height, 0px));
  padding: 8px var(--wp--style--root--padding-right, 24px) 40px !important;
  background: var(--wp--preset--color--paper) !important;
  border-top: 1px solid var(--liipa-line);
  z-index: 999; animation: liipa-menu-in .3s ease both;
}
@keyframes liipa-menu-in { from { opacity: 0; } to { opacity: 1; } }
.main-nav .wp-block-navigation__responsive-container-close { display: none !important; }
.main-nav .is-menu-open .wp-block-navigation__responsive-dialog { margin-top: 0 !important; }
.main-nav .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 8px !important; align-items: stretch !important; }
.main-nav .is-menu-open .wp-block-navigation__container { gap: 0 !important; align-items: stretch !important; width: 100%; }
.main-nav .is-menu-open .wp-block-navigation-item { width: 100%; }
.main-nav .is-menu-open .wp-block-navigation-item:not(.nav-cta) .wp-block-navigation-item__content {
  display: block; width: 100%; padding: 18px 0 !important; text-align: center;
  font-size: 22px; font-weight: 300; border-bottom: 1px solid var(--liipa-line);
}
.main-nav .is-menu-open .wp-block-navigation-item:not(.nav-cta) .wp-block-navigation-item__content::after { display: none; }
.main-nav .is-menu-open .nav-cta { margin-top: 32px; }
.main-nav .is-menu-open .nav-cta .wp-block-navigation-item__content {
  display: flex; box-sizing: border-box; width: 100%; justify-content: center; padding: 18px 20px !important; font-size: 15px;
}
.main-nav .is-menu-open .lang-switch--menu {
  justify-content: center; gap: 8px; margin-bottom: 8px; padding: 0; border: 0; height: auto; font-size: 14px;
}
.main-nav .is-menu-open .lang-switch--menu a { padding: 13px 14px; } /* puutepind ≥44px */

/* ---------- Sektsioonid ---------- */
.wp-block-post-content > * { margin-block-start: 0; margin-block-end: 0; }
.section { padding-top: var(--liipa-sec); padding-bottom: var(--liipa-sec); }
/* Sektsioonid kui lehed üksteise peal: iga sektsiooni ülaserva langeb eelmise vari
   (taustapildina, nii et värviline taust jääb alla). Tumedad sektsioonid vahelduvad valgetega.
   --liipa-bg: elemendid, mis peavad tausta katma. */
.section { --liipa-bg: var(--wp--preset--color--paper); }
.section.has-stone-background-color { --liipa-bg: var(--wp--preset--color--stone); }
.wp-block-post-content > * + .section, .wp-site-blocks > footer .site-footer {
  background-image: linear-gradient(to bottom, rgba(28,28,28,.06) 0, rgba(28,28,28,.02) 10px, rgba(28,28,28,0) 40px);
}
.wp-block-post-content > * + .section.section-dark, .wp-site-blocks > footer .site-footer {
  background-image: linear-gradient(to bottom, rgba(0,0,0,.6) 0, rgba(0,0,0,.25) 14px, rgba(0,0,0,0) 72px);
}
.section-tight { padding-top: calc(var(--liipa-sec) * .6); padding-bottom: calc(var(--liipa-sec) * .6); }
.section .wp-block-heading { max-width: 14em; }
.section-dark p { color: #c8c8c8; }
.section-dark .wp-block-heading { color: var(--wp--preset--color--paper); }

.wp-block-columns { gap: clamp(32px, 7vw, 104px); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(56px, 8vw, 96px); } /* numbririda ei kleebi järgmise sektsiooni külge */
.hero .wp-block-heading { max-width: none; margin-top: 16px; }
.hero-media { position: relative; }

/* hero pildid: slaidiesitlus kuldse raamiga (raam on veerul, sest galerii lõikab ääred) */
.hero-media::before {
  content: ""; position: absolute; top: 24px; left: 24px; right: 0; bottom: 0;
  border: 1px solid var(--liipa-gold); z-index: 0;
}
.hero .wp-block-gallery.hero-slides { position: relative; z-index: 1; margin: 0 24px 24px 0 !important; }
.hero .wp-block-gallery.hero-slides.is-playing { aspect-ratio: 4 / 5; }

.wp-block-image.is-style-frame { position: relative; margin: 0 24px 24px 0; }
.wp-block-image.is-style-frame::before {
  content: ""; position: absolute; inset: 24px -24px -24px 24px;
  border: 1px solid var(--liipa-gold); z-index: 0;
}
.wp-block-image.is-style-frame img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.is-style-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(56px, 8vw, 104px) !important;
  border-top: 1px solid var(--liipa-line); border-bottom: 1px solid var(--liipa-line);
}
.is-style-stats > * { margin: 0 !important; padding: 32px 24px; border-left: 1px solid var(--liipa-line); }
.is-style-stats > *:first-child { border-left: 0; padding-left: 0; }
.stat-value { font-size: clamp(32px, 3.6vw, 44px); font-weight: 300; line-height: 1; margin: 0; }
.stat-label { margin: 10px 0 0 !important; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--liipa-muted); }

/* ---------- Kaks veergu ---------- */
.split .split-body { padding-top: 68px; }
.split-media .split-body { padding-top: 0 !important; }
.split-media .wp-block-gallery.is-style-slideshow { margin-top: 0 !important; }
.sec-head + .split-media { margin-top: 40px !important; }
.split-media .split-body > :first-child { margin-top: 0; }
.sec-head .wp-block-heading { max-width: none; }
/* galerii stiil "Slaidiesitlus": redaktoris tavaline galerii, lehel vahetuvad pildid (JS lisab .is-playing) */
.wp-block-gallery.is-style-slideshow { margin-top: 48px !important; }
.wp-block-gallery.is-style-slideshow.is-playing {
  display: block !important; position: relative; aspect-ratio: 4 / 3; overflow: hidden;
}
.wp-block-gallery.is-style-slideshow.is-playing > .wp-block-image {
  position: absolute; inset: 0; width: 100% !important; margin: 0 !important;
  opacity: 0; transition: opacity 1.2s ease;
}
.wp-block-gallery.is-style-slideshow.is-playing > .wp-block-image.is-active { opacity: 1; z-index: 1; }
.wp-block-gallery.is-style-slideshow.is-playing > .wp-block-image img {
  width: 100% !important; height: 100% !important; object-fit: cover;
  transform: scale(1.06); transition: transform 7s linear;
}
.wp-block-gallery.is-style-slideshow.is-playing > .wp-block-image.is-active img { transform: scale(1); }
.slideshow-nav {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  display: flex; gap: 0; height: 3px; background: rgba(255,255,255,.35);
}
.slideshow-nav button {
  flex: 1; height: 100%; padding: 0; border: 0; cursor: pointer; background: transparent;
  position: relative;
}
.slideshow-nav button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; top: -12px; /* suurem klõpsuala */
}
.slideshow-nav button.is-active { background: var(--liipa-gold); }
.split-body p { color: #3c3c3c; }
.sec-head-row { margin-bottom: 48px !important; }
.sec-head-row .sec-note { margin-left: auto; }

/* ---------- Ruudustik (lahendused): pildikaardid ---------- */
.is-style-tiles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.is-style-tiles > * {
  position: relative; margin: 0 !important; padding: 0 0 32px;
  background: var(--wp--preset--color--paper);
  border: 1px solid var(--liipa-line);
  transition: border-color .3s;
}
.is-style-tiles > *:hover { border-color: var(--liipa-gold); }
.is-style-tiles > *::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px; z-index: 2;
  background: var(--liipa-gold); transform: scaleX(0); transform-origin: left; transition: transform .4s;
}
.is-style-tiles > *:hover::before { transform: scaleX(1); }
.is-style-tiles .tile-img { margin: 0 0 28px !important; overflow: hidden; }
.is-style-tiles .tile-img img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.is-style-tiles > *:hover .tile-img img { transform: scale(1.04); }
.is-style-tiles h3, .is-style-tiles p { padding: 0 32px; }
.is-style-tiles h3 { margin: 0 0 12px !important; }
.is-style-tiles p { margin: 0; font-size: 15px; color: var(--liipa-muted); }

/* ---------- Malelaud (lahendused): suur pilt ja tekst kõrvuti, rea kaupa vaheldumisi ----------
   Kaks teenust reas; teises reas on pilt paremal → pildid ja tekstid moodustavad malelaua.
   Pildi kõrguse annab ::before (4:3), tekst joondub keskele; pikem tekst teeb rea kõrgemaks. */
.is-style-chess { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.is-style-chess > .tile {
  margin: 0 !important; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto auto 1fr;
  background: var(--wp--preset--color--paper);
}
.is-style-chess { border: 1px solid var(--liipa-line); }
.is-style-chess > .tile { box-shadow: 0 0 0 .5px var(--liipa-line); }
.is-style-chess .tile-img { grid-column: 1; grid-row: 1 / -1; position: relative; margin: 0 !important; overflow: hidden; }
.is-style-chess .tile-img::before { content: ""; display: block; padding-top: 75%; }
.is-style-chess .tile-img img {
  position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.is-style-chess > .tile:hover .tile-img img { transform: scale(1.04); }
.is-style-chess h3, .is-style-chess p { grid-column: 2; padding: 0 clamp(24px, 2.6vw, 44px); }
.is-style-chess h3 { grid-row: 2; margin: 0 0 10px !important; font-size: clamp(22px, 1.9vw, 30px); padding-top: 24px; }
.is-style-chess p { grid-row: 3; margin: 0; padding-bottom: 24px; font-size: 16px; line-height: 1.6; color: var(--liipa-muted); }
/* paarisread: pilt paremal */
@media (min-width: 1101px) {
  .is-style-chess > .tile:nth-child(4n+3) .tile-img, .is-style-chess > .tile:nth-child(4n+4) .tile-img { grid-column: 2; }
  .is-style-chess > .tile:nth-child(4n+3) :is(h3, p), .is-style-chess > .tile:nth-child(4n+4) :is(h3, p) { grid-column: 1; }
}
/* kitsam ekraan: üks teenus reas, pilt vaheldumisi vasakul ja paremal */
@media (min-width: 601px) and (max-width: 1100px) {
  .is-style-chess { grid-template-columns: 1fr; }
  .is-style-chess .tile-img::before { padding-top: 62%; }
  .is-style-chess > .tile:nth-child(2n) .tile-img { grid-column: 2; }
  .is-style-chess > .tile:nth-child(2n) :is(h3, p) { grid-column: 1; }
}
/* mobiil: pilt üleval, tekst all */
@media (max-width: 600px) {
  .is-style-chess { grid-template-columns: 1fr; gap: 16px; }
  .is-style-chess > .tile { grid-template-columns: 1fr; grid-template-rows: auto; }
  .is-style-chess .tile-img, .is-style-chess h3, .is-style-chess p { grid-column: 1; grid-row: auto; }
  .is-style-chess h3 { margin-top: 24px !important; padding-top: 0; }
  .is-style-chess p { padding-bottom: 28px; }
}

/* ---------- Pilt + tekst ---------- */
/* Kärpimise fookus (pildi klass): kui pildi olulisem osa on üleval või all */
.wp-block-image.focus-top img { object-position: 50% 20% !important; }
.wp-block-image.focus-bottom img { object-position: 50% 92% !important; }
/* baar: kaks pilti kõrvuti, sama kõrgusega, täidavad veeru äärest ääreni */
.bar-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bar-duo > .wp-block-image { margin: 0 !important; overflow: hidden; }
.bar-duo > .wp-block-image img { display: block; width: 100%; height: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.wp-block-image.is-style-square img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.wp-block-image.media-wide { outline: 1px solid rgba(255,255,255,.18); outline-offset: 16px; }
/* peopaik: Liipa Talu pildid vahetuvad, raam nagu media-wide-il */
.wp-block-gallery.venue-slides { margin-top: 0 !important; outline: 1px solid rgba(255,255,255,.18); outline-offset: 16px; }
/* kaart/aerofoto: alati terve pilt, ilma kärpimata (sildid piltidel peavad jääma näha) */
.wp-block-image.media-wide img { display: block; width: 100%; height: auto; object-fit: contain; } /* aspect-ratio tuleb width/height atribuutidest */

.wp-block-list.is-style-checks {
  list-style: none; padding: 0; margin-top: 32px !important;
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--liipa-line);
}
.wp-block-list.is-style-checks li {
  position: relative; padding: 14px 16px 14px 26px; font-size: 15px; margin: 0;
  border-bottom: 1px solid var(--liipa-line);
}
.wp-block-list.is-style-checks li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px;
  margin-top: -4px; background: var(--liipa-gold); transform: rotate(45deg);
}

.wp-block-list.is-style-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin-top: 16px; }
.wp-block-list.is-style-chips li { padding: 6px 14px; border: 1px solid var(--liipa-line); font-size: 13px; letter-spacing: .04em; margin: 0; }

/* ---------- Galerii mosaiik ---------- */
.wp-block-gallery.is-style-mosaic {
  display: grid !important; gap: 16px !important;
  grid-template-columns: repeat(4, 1fr);
  /* Rea kõrgus galerii enda laiusest (mitte ekraani laiusest, muidu laial ekraanil
     venib mosaiik pikaks) ja nii, et pealkiri + mosaiik mahuvad ekraanile. */
  --liipa-gw: min(var(--wp--style--global--content-size, 1320px), 100vw - 2 * var(--wp--style--root--padding-left, 48px));
  grid-auto-rows: max(200px, min(
    calc(var(--liipa-gw) * .22),
    calc((100vh - var(--liipa-header) - var(--wp-admin--admin-bar--height, 0px) - 2 * var(--liipa-sec) - 210px - var(--liipa-mosaic-extra, 0px) - 16px) / 2)
  ));
  margin-top: 48px !important;
}
.wp-block-gallery.is-style-mosaic > .wp-block-image { width: auto !important; margin: 0 !important; overflow: hidden; }
.wp-block-gallery.is-style-mosaic > .wp-block-image:nth-child(4n+1) { grid-column: span 2; grid-row: span 2; }
.wp-block-gallery.is-style-mosaic > .wp-block-image:nth-child(4n+2) { grid-column: span 2; }
.wp-block-gallery.is-style-mosaic > .wp-block-image img {
  width: 100% !important; height: 100% !important; object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.wp-block-gallery.is-style-mosaic > .wp-block-image:hover img { transform: scale(1.04); }

/* Üle nelja pildi: mosaiigis neli esimest, nupp avab kõik ühtlase ruudustikuna (theme.js) */
.wp-block-gallery.is-style-mosaic.is-collapsed > .wp-block-image:nth-child(n+5) { display: none !important; }
.wp-block-gallery.is-style-mosaic.is-collapsed { --liipa-mosaic-extra: 86px; } /* "Näita kõiki pilte" nupp + vahe */
.wp-block-gallery.is-style-mosaic.is-expanded { grid-auto-rows: auto !important; }
.wp-block-gallery.is-style-mosaic.is-expanded > .wp-block-image { grid-column: auto !important; grid-row: auto !important; aspect-ratio: 4 / 3; }
.mosaic-more { display: flex; justify-content: center; margin-top: 32px !important; }
/* JS-iga loodud nupp ei saa theme.json-i "outline" variatsiooni klassi, seega sama välimus siin */
.mosaic-more .wp-block-button__link { background: transparent; color: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--ink); }

/* ---------- Pildi modaal ----------
   Kolm eraldi ala, mis jagavad ekraani kõrguse: ülariba | pildiala (nooled + peapilt) | pisipildid.
   Miski ei kattu ega lähe vaatest välja. */
.wp-block-gallery.is-style-mosaic > .wp-block-image { position: relative; }

.sc-modal {
  position: fixed; inset: 0; z-index: 2000; overflow: hidden;
  height: 100vh; height: 100dvh;
  display: grid; grid-template-rows: 64px minmax(0, 1fr) auto;
  background: var(--wp--preset--color--ink); color: #fff;
  opacity: 0; transition: opacity .3s ease;
}
.sc-modal.is-open { opacity: 1; }
.sc-bg {
  position: absolute; inset: -80px; z-index: 0; background-size: cover; background-position: center;
  filter: blur(40px) saturate(1.1) brightness(.55); transform: scale(1.1);
}

/* ülariba */
.sc-top {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 24px; gap: 16px;
}
.sc-count { grid-column: 1; font-size: 12px; letter-spacing: .16em; }
.sc-caption { grid-column: 2; font-size: 13px; opacity: .85; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 50vw; }

/* pildiala */
.sc-stage { position: relative; z-index: 1; min-height: 0; margin: 0 96px; }
.sc-main {
  position: absolute; inset: 0; margin: auto;
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
  transition: opacity .35s ease, transform .35s ease;
}
.sc-main.is-fading { opacity: 0; transform: scale(.985); }

/* nooled ja rist: ainult jooned, ilma taustata */
.sc-nav, .sc-close {
  width: 56px; height: 56px; padding: 0; cursor: pointer;
  display: grid; place-items: center; position: relative;
  background: none; border: 0; color: #fff;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,.5));
  transition: color .25s;
}
.sc-nav:hover, .sc-close:hover { color: var(--liipa-gold); }
.sc-nav:focus-visible, .sc-close:focus-visible, .sc-thumb:focus-visible { outline: 1.5px solid var(--liipa-gold); outline-offset: 2px; }
.sc-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.sc-prev { left: -84px; }
.sc-next { right: -84px; }
.sc-nav::before {
  content: ""; width: 18px; height: 18px;
  border-top: 1.5px solid currentColor; border-left: 1.5px solid currentColor;
}
.sc-prev::before { transform: translateX(5px) rotate(-45deg); }
.sc-next::before { transform: translateX(-5px) rotate(135deg); }
.sc-close { grid-column: 3; justify-self: end; width: 48px; height: 48px; margin-right: -12px; }
.sc-close::before, .sc-close::after {
  content: ""; position: absolute; width: 22px; height: 1.5px; background: currentColor;
}
.sc-close::before { transform: rotate(45deg); }
.sc-close::after { transform: rotate(-45deg); }

/* pisipiltide riba — oma ala, mitte pildi peal */
.sc-thumbs {
  position: relative; z-index: 1; display: flex; gap: 10px;
  justify-content: safe center; overflow-x: auto; scrollbar-width: none;
  padding: 16px 24px 20px;
}
.sc-thumbs::-webkit-scrollbar { display: none; }
.sc-thumb {
  flex: 0 0 auto; width: 96px; aspect-ratio: 4 / 3; padding: 0; border: 0; cursor: pointer;
  position: relative; overflow: hidden; background: rgba(255,255,255,.1);
}
.sc-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .5; transition: opacity .3s; }
.sc-thumb:hover img { opacity: .85; }
.sc-thumb::after { content: ""; position: absolute; inset: 0; border: 2px solid transparent; transition: border-color .3s; }
.sc-thumb.is-active img { opacity: 1; }
.sc-thumb.is-active::after { border-color: var(--liipa-gold); }
body.sc-lock { overflow: hidden; }

/* suurenda-nupp mosaiigi pildil: kaks nurga-chevroni (vasak ülal, parem all) */
.sc-expand, .wp-lightbox-container .lightbox-trigger {
  width: 30px; height: 30px; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.92) !important; border: 1px solid rgba(255,255,255,.92) !important;
  border-radius: 0 !important; box-shadow: none !important;
  transition: background .25s, border-color .25s, opacity .25s;
}
.sc-expand { position: absolute; z-index: 2; top: 12px; right: 12px; opacity: 0; }
.wp-block-image:hover > .sc-expand, .sc-expand:focus-visible { opacity: 1; }
/* puutekraanil (telefon) nuppu ei näidata — pilt avaneb puudutusega */
@media (hover: none), (max-width: 781px) { .sc-expand { display: none; } }
.sc-expand:hover, .wp-lightbox-container .lightbox-trigger:hover { background: var(--liipa-gold) !important; border-color: var(--liipa-gold) !important; }
.sc-expand:focus-visible, .wp-lightbox-container .lightbox-trigger:focus-visible { outline: 2px solid var(--liipa-gold); outline-offset: 3px; }
.wp-lightbox-container .lightbox-trigger svg { display: none; }
.sc-expand::before, .sc-expand::after,
.wp-lightbox-container .lightbox-trigger::before, .wp-lightbox-container .lightbox-trigger::after {
  content: ""; position: absolute; width: 6px; height: 6px;
  border: 0 solid var(--wp--preset--color--ink); transition: top .2s, left .2s, bottom .2s, right .2s, border-color .25s;
}
.sc-expand::before, .wp-lightbox-container .lightbox-trigger::before { top: 8px; left: 8px; border-top-width: 1.5px; border-left-width: 1.5px; }
.sc-expand::after, .wp-lightbox-container .lightbox-trigger::after { bottom: 8px; right: 8px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.sc-expand:hover::before, .wp-lightbox-container .lightbox-trigger:hover::before { top: 6px; left: 6px; border-color: #fff; }
.sc-expand:hover::after, .wp-lightbox-container .lightbox-trigger:hover::after { bottom: 6px; right: 6px; border-color: #fff; }

@media (max-width: 781px) {
  .sc-modal { grid-template-rows: 56px minmax(0, 1fr) auto; }
  .sc-top { padding: 0 12px; }
  .sc-caption { display: none; }
  .sc-stage { margin: 0 12px; }
  .sc-nav { width: 44px; height: 44px; }
  .sc-prev { left: 0; } .sc-next { right: 0; }
  .sc-thumbs { padding: 12px 12px 16px; }
  .sc-thumb { width: 72px; }
}

/* ---------- Tagasiside (tumedal taustal) ---------- */
.section-dark .quotes { border-top-color: rgba(255,255,255,.28); }
.section-dark .quotes > .wp-block-column + .wp-block-column { border-left-color: rgba(255,255,255,.14); border-top-color: rgba(255,255,255,.14); }
.section-dark .quotes .wp-block-quote p { color: #e4e4e4; }
.section-dark .quotes .wp-block-quote cite { color: #9a9a9a; }
.section-dark .quotes .wp-block-quote cite strong { color: var(--wp--preset--color--paper); }
.quotes { gap: 0 !important; border-top: 1px solid var(--wp--preset--color--ink); margin-top: 48px !important; }
.quotes > .wp-block-column { padding: 40px 36px 8px 0; }
.quotes > .wp-block-column + .wp-block-column { padding-left: 36px; border-left: 1px solid var(--liipa-line); }
.quotes .wp-block-quote { margin: 0; height: 100%; display: flex; flex-direction: column; }
.quotes .wp-block-quote p { font-size: 19px; font-weight: 300; line-height: 1.55; flex: 1; margin: 0 0 32px; }
.quotes .wp-block-quote p::before {
  content: "“"; display: block; font-size: 96px; line-height: .5; color: var(--liipa-gold); margin: 24px 0 8px; font-weight: 300;
}
.quotes .wp-block-quote cite { font-style: normal; font-size: 13px; color: var(--liipa-muted); letter-spacing: .04em; }
.quotes .wp-block-quote cite strong { font-size: 15px; font-weight: 600; color: var(--wp--preset--color--ink); letter-spacing: 0; }

/* vormi lisaväljad: valikmenüü, fail, nõusolek, 2 veergu */
.wpcf7 select {
  width: 100%; padding: 8px 28px 10px 0; border: 0; border-bottom: 1px solid #b5b5b5; border-radius: 0;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23ccaa50' stroke-width='1.5'%3E%3Cpath d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E") no-repeat right 4px center;
  font: 400 16px var(--wp--preset--font-family--raleway); color: var(--wp--preset--color--ink);
  -webkit-appearance: none; appearance: none; outline: none; cursor: pointer;
}
.wpcf7 select:focus { border-bottom-color: var(--liipa-gold); }
.wpcf7 input[type="file"] {
  width: 100%; padding: 10px 0; font: 400 14px var(--wp--preset--font-family--raleway); color: var(--liipa-muted);
  border-bottom: 1px dashed #b5b5b5; cursor: pointer;
}
.wpcf7 input[type="file"]::file-selector-button {
  margin-right: 14px; padding: 9px 16px; border: 1px solid var(--wp--preset--color--ink); background: transparent;
  font: 500 13px var(--wp--preset--font-family--raleway); letter-spacing: .05em; color: var(--wp--preset--color--ink);
  cursor: pointer; transition: background .25s, color .25s;
}
.wpcf7 input[type="file"]::file-selector-button:hover { background: var(--wp--preset--color--ink); color: #fff; }
/* vihje välja all ei mõjuta välja kõrgust → alumised jooned ühel joonel */
.rf-field { position: relative; }
.rf-hint { position: absolute; top: 100%; left: 0; margin-top: 6px; font-size: 12px; color: var(--liipa-muted); white-space: nowrap; }
.rf-row:has(.rf-hint) { margin-bottom: 48px; }
.wpcf7 input[type="file"] { padding: 6px 0 9px; }
.rf-consent { margin: 0; font-size: 14px; color: var(--liipa-muted); }
.rf-consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.rf-consent a:hover { color: var(--liipa-gold); }
/* nõusolek ja saatmisnupp ühel real (kui mahub) */
.wpcf7 form.wpcf7-form { display: flex; flex-wrap: wrap; align-items: center; column-gap: 32px; }
.wpcf7 form.wpcf7-form > * { flex: 1 1 100%; min-width: 0; }
.wpcf7 form.wpcf7-form > .rf-consent { flex: 1 1 20em; }
.wpcf7 form.wpcf7-form > .rf-foot { flex: 0 0 auto; margin-left: auto; }
.wpcf7 form.wpcf7-form > .rf-consent + .rf-foot { margin-top: 0; }
.wpcf7 form.wpcf7-form > .hidden-fields-container { display: none; }
.rf-consent .wpcf7-list-item { margin: 0; }
.rf-consent label { display: inline-flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.rf-consent input[type="checkbox"] {
  -webkit-appearance: none; appearance: none; flex: none; margin: 3px 0 0;
  width: 16px; height: 16px; border: 1px solid #8a8a8a; display: grid; place-content: center; cursor: pointer;
}
.rf-consent input[type="checkbox"]::after { content: ""; width: 8px; height: 8px; background: var(--liipa-gold); transform: scale(0); transition: transform .15s; }
.rf-consent input[type="checkbox"]:checked { border-color: var(--liipa-gold); }
.rf-consent input[type="checkbox"]:checked::after { transform: scale(1); }

/* ---------- Päring: pealkiri vasakul, vorm paremal ---------- */
.paring-grid { gap: clamp(32px, 6vw, 88px); }
.paring-head .wp-block-heading { margin-top: 14px !important; }
.paring-head .sec-note { margin-top: 20px !important; }
.paring-contact { margin-top: 32px !important; padding-top: 24px; border-top: 1px solid var(--liipa-line); font-size: 15px; line-height: 1.9; color: var(--liipa-muted); }
.paring-contact a { color: var(--wp--preset--color--ink); text-decoration: none; }
.paring-contact a:hover { color: var(--liipa-gold); }
/* sotsiaalmeedia (WordPressi "Sotsiaalmeedia ikoonid" plokk): brändivärvide asemel teema toonid */
.wp-block-social-links.is-style-logos-only.paring-social { margin-top: 14px !important; gap: 8px; font-size: 30px; }
.wp-block-social-links.is-style-logos-only.paring-social .wp-social-link { color: var(--wp--preset--color--ink); transition: color .25s; }
.wp-block-social-links.is-style-logos-only.paring-social .wp-social-link a { padding: 10px; margin-left: -10px; margin-right: 6px; } /* puutepind ≥44px */
.wp-block-social-links.is-style-logos-only.paring-social .wp-social-link:hover { color: var(--liipa-gold); }
@media (min-width: 782px) { .paring-head { position: sticky; top: calc(var(--liipa-header) + 32px); align-self: flex-start; } }
.paring-grid .wpcf7 form { max-width: none; }

/* ---------- Päringu pealkiri ---------- */
.sec-head-center { text-align: center; margin-bottom: 48px; }
.sec-head-center .wp-block-heading, .sec-head-center .sec-note { margin-left: auto; margin-right: auto; }
.sec-head-center .sec-note { margin-top: 20px; }

/* ---------- Contact Form 7 ---------- */
.wpcf7 form { max-width: 960px; margin: 0 auto; }
/* Vormi read: väli koos sildiga liigub tervikuna uuele reale, kui ruumi ei jätku;
   sildid jäävad ühele reale ja sama rea väljad joonduvad alt. */
.rf-row { display: flex; flex-wrap: wrap; gap: 22px 20px; margin-bottom: 28px; align-items: flex-end; }
.rf-row > .rf-field { flex: 1 1 100%; min-width: 0; }
.rf-3 > .rf-field { flex: 1 1 13em; }
.rf-2 > .rf-field { flex: 1 1 15em; }
.rf-6 > .rf-field { flex: 1 1 7.8em; }
.rf-6 > .rf-span-2 { flex-basis: 9em; } /* kuupäev vajab kalendriikooni jaoks veidi rohkem */
.rf-field > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rf-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rf-field > span:first-child, .rf-legend { font-size: 14px; font-weight: 500; }
.rf-field .wpcf7-form-control-wrap { display: block; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"],
.wpcf7 input[type="date"], .wpcf7 input[type="number"], .wpcf7 textarea {
  width: 100%; padding: 8px 0 10px; border: 0; border-bottom: 1px solid #b5b5b5;
  background: transparent; font: 400 16px var(--wp--preset--font-family--raleway); color: var(--wp--preset--color--ink);
  border-radius: 0; outline: none; transition: border-color .25s;
}
.wpcf7 input:focus, .wpcf7 textarea:focus { border-bottom-color: var(--liipa-gold); }
.wpcf7 textarea { resize: vertical; min-height: 110px; height: 110px; }
.wpcf7 .wpcf7-not-valid { border-bottom-color: #b3261e; }
.wpcf7-not-valid-tip { font-size: 13px; margin-top: 4px; }
.rf-radios { margin-bottom: 28px; }
.rf-legend { display: block; margin-bottom: 14px; }
.wpcf7-radio { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.wpcf7-radio .wpcf7-list-item { margin: 0; }
.wpcf7-radio label { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; }
.wpcf7-radio input {
  -webkit-appearance: none; appearance: none; margin: 0;
  width: 16px; height: 16px; border: 1px solid #8a8a8a; display: grid; place-content: center; cursor: pointer;
}
.wpcf7-radio input::after { content: ""; width: 8px; height: 8px; background: var(--liipa-gold); transform: scale(0); transition: transform .15s; }
.wpcf7-radio input:checked { border-color: var(--liipa-gold); }
.wpcf7-radio input:checked::after { transform: scale(1); }
.wpcf7-radio input:focus-visible { outline: 2px solid var(--liipa-gold); outline-offset: 2px; }
.rf-foot { position: relative; display: flex; justify-content: flex-end; margin-top: 28px; }
.wpcf7-submit {
  height: 48px; padding: 0 28px; border: 0; border-radius: 0; cursor: pointer;
  background: var(--wp--preset--color--graphite); color: #fff;
  font: 500 14px/1 var(--wp--preset--font-family--raleway); letter-spacing: .06em; transition: background .25s;
}
.wpcf7-submit:hover { background: var(--liipa-gold); }
.rf-foot .wpcf7-spinner { position: absolute; right: 100%; top: 50%; margin: -12px 12px 0 0; }
.rf-foot { padding-left: 48px; }
.wpcf7 form .wpcf7-response-output { margin: 24px 0 0; padding: 14px 18px; border-width: 1px; font-size: 15px; }

/* ---------- Jalus: neli tasakaalus veergu + alumine riba ---------- */
.site-footer { padding-top: clamp(48px, 7vw, 80px); font-size: 15px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--wp--preset--color--gold); }
.site-footer p { margin: 0; }
.site-footer .is-style-eyebrow { margin-bottom: 18px !important; }
.footer-grid { gap: clamp(32px, 4vw, 64px) !important; padding-bottom: clamp(40px, 5vw, 64px); }
.footer-tagline { margin-top: 20px !important; max-width: 22em; color: #a8a8a8; line-height: 1.65; }
.footer-contact { line-height: 2; }
.footer-nav { gap: 6px !important; }
.footer-nav .wp-block-navigation-item__content { padding: 0; line-height: 1.8; }
.site-footer .wp-block-navigation { font-size: 15px; }
.footer-social { line-height: 2; }
.footer-base {
  padding-top: 22px; padding-bottom: 26px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: 13px; color: #8c8c8c;
}
@media (min-width: 600px) and (max-width: 1080px) {
  .footer-grid { flex-wrap: wrap !important; }
  .footer-grid > .wp-block-column { flex-basis: calc(50% - 32px) !important; flex-grow: 0 !important; }
}
@media (max-width: 599px) {
  .footer-grid { text-align: center; }
  .footer-brand .footer-logo { display: flex; justify-content: center; }
  .site-footer .footer-tagline { margin-left: auto; margin-right: auto; } /* .site-footer p { margin: 0 } muidu võidab */
  .site-footer .footer-nav, .site-footer .footer-nav .wp-block-navigation__container { width: 100%; align-items: center !important; justify-content: center; }
  .site-footer .footer-nav .wp-block-navigation-item { justify-content: center; }
  .footer-base { justify-content: center !important; text-align: center; flex-direction: column; gap: 6px; }
}

/* ---------- Tavaleht ---------- */
.page-main { padding-top: 64px; padding-bottom: 96px; }
/* tekstilehed (nt privaatsuspoliitika): loetav rütm — üldine reegel nullib sisu plokkide vahed */
.page-main .wp-block-post-title { margin-bottom: 40px; }
.page-main .wp-block-post-content > h2.wp-block-heading { font-size: clamp(22px, 2.2vw, 28px) !important; font-weight: 400; /* !important: lauaarvuti sektsioonide h2 reegel */ margin-top: 48px; margin-bottom: 12px; }
.page-main .wp-block-post-content > h3 { font-size: 19px; margin-top: 32px; margin-bottom: 8px; }
.page-main .wp-block-post-content > p, .page-main .wp-block-post-content > ul { margin-top: 0; margin-bottom: 16px; }
.page-main .wp-block-post-content > ul { padding-left: 1.2em; }
.page-main .wp-block-post-content > ul li + li { margin-top: 8px; }
.page-main .wp-block-post-content a { color: inherit; text-underline-offset: 2px; }
.page-main .wp-block-post-content a:hover { color: var(--liipa-gold); }

/* ---------- Ilmumise animatsioon (ainult esilehel, ainult JS-iga) ---------- */
.js .liipa-reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .liipa-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wp-block-gallery.is-style-slideshow.is-playing > .wp-block-image img { transform: none !important; transition: none; }
  .js .liipa-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Kohanduv ---------- */
@media (min-width: 921px) and (max-width: 1180px) {
  .brand .wp-block-site-title { display: none; } /* logo jääb, nimi peidus — menüü mahub ühele reale (mobiilis on menüü hamburgeris) */
}
@media (min-width: 921px) and (max-width: 1080px) {
  .main-nav .wp-block-navigation__container { gap: 16px !important; }
  .main-nav .nav-cta .wp-block-navigation-item__content { padding: 10px 14px; }
}
@media (max-width: 1080px) {
  .header-right { gap: 14px; }
  .lang-switch { padding-left: 14px; }
  .main-nav { gap: 16px; }
  .main-nav .wp-block-navigation-item__content { font-size: 13px; }
}

@media (max-width: 781px) {
  .hero-media { max-width: 480px; }
  .split .split-body { padding-top: 0; }
  .is-style-tiles { grid-template-columns: 1fr 1fr; }
  .quotes > .wp-block-column, .quotes > .wp-block-column + .wp-block-column { padding: 32px 0; border-left: 0; }
  .quotes > .wp-block-column + .wp-block-column { border-top: 1px solid var(--liipa-line); }
  .is-style-stats { grid-template-columns: 1fr 1fr; }
  .is-style-stats > *:nth-child(3) { border-left: 0; padding-left: 0; }
  .is-style-stats > *:nth-child(n+3) { border-top: 1px solid var(--liipa-line); }
  .section-dark .media-split > .wp-block-column:first-child { order: 2; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .is-style-tiles { grid-template-columns: 1fr; }
  .is-style-tiles h3, .is-style-tiles p { padding: 0 24px; }
  .wp-block-list.is-style-checks { grid-template-columns: 1fr; }
  .wp-block-gallery.is-style-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 40vw; }
  .wp-block-gallery.is-style-mosaic > .wp-block-image:nth-child(4n+1),
  .wp-block-gallery.is-style-mosaic > .wp-block-image:nth-child(4n+2) { grid-column: span 2; grid-row: span 1; }
  .wp-block-gallery.is-style-mosaic > .wp-block-image:nth-child(4n+1) { grid-row: span 2; }
  .wp-block-gallery.is-style-mosaic.is-expanded { grid-template-columns: 1fr 1fr; }
  .rf-foot .wpcf7-submit { width: 100%; }
  .is-style-stats > * { padding: 24px 12px; }
  .is-style-stats > *:nth-child(odd) { padding-left: 0; }
  .wp-block-image.media-wide, .wp-block-gallery.venue-slides { outline-offset: 8px; }
}

/* ---------- Lauaarvuti/sülearvuti: iga sektsioon mahub ekraanile ----------
   Laius ≥921px. Vahed, pealkirjad ja pildid sõltuvad vaateala kõrgusest;
   --liipa-avail = ekraani kõrgus päise all. Koos ekraani laiusega kasvava sisulaiusega
   (vt "Suur ekraan" all) näeb 1920×1080 ja 2560×1440 välja nagu sülearvuti, mitte välja veninud. */
@media (min-width: 921px) {
  :root {
    --liipa-sec: clamp(40px, 8vh, 84px);
    /* ekraani kõrgus päise all, aga mitte rohkem kui sülearvuti suhe sisu laiusest (905/1320) */
    --liipa-avail: min(calc(100vh - var(--liipa-header) - var(--wp-admin--admin-bar--height, 0px)), clamp(1320px, 86vw, 1650px) * .69);
    --liipa-h2: clamp(30px, 5.4vh, 46px);
  }
  h2.wp-block-heading { font-size: var(--liipa-h2) !important; }
  .is-style-eyebrow + .wp-block-heading { margin-top: 10px !important; }

  /* hero: pilt + numbririda mahuvad koos ekraanile */
  .hero { padding-top: clamp(20px, 4vh, 48px); }
  .hero h1 { font-size: clamp(40px, 8.2vh, 68px) !important; }
  .hero .is-style-lead { margin: 2.6vh 0 3.6vh !important; font-size: 18px; }
  .hero .wp-block-image.is-style-frame img { aspect-ratio: auto; height: calc(var(--liipa-avail) - 4vh - 3.4vh - 150px); min-height: 340px; }
  .hero .wp-block-gallery.hero-slides.is-playing { aspect-ratio: auto; height: calc(var(--liipa-avail) - 4vh - 3.4vh - 150px); min-height: 340px; }
  .hero .is-style-stats { margin-top: 3.4vh !important; }
  .is-style-stats > * { padding-top: 18px; padding-bottom: 18px; }
  .stat-value { font-size: clamp(28px, 4.4vh, 40px); }

  /* meist: slaidiesitluse kõrgus ekraani järgi */
  .split .split-body { padding-top: 40px; }
  .wp-block-gallery.is-style-slideshow { margin-top: 3.4vh !important; }
  .wp-block-gallery.is-style-slideshow.is-playing { aspect-ratio: auto; height: calc(var(--liipa-avail) - 2 * var(--liipa-sec) - 3.4vh - 24px - 2 * 5.4vh * 1.12 - 20px); min-height: 240px; }
  .sec-head + .split-media { margin-top: 3vh !important; }
  .split-media .wp-block-gallery.is-style-slideshow.is-playing { height: calc(var(--liipa-avail) - 2 * var(--liipa-sec) - 3vh - 22px - 10px - 5.4vh * 1.12 - 8px); }
  .is-style-pull { margin-top: 3.4vh !important; padding: 32px 32px 28px 36px; font-size: clamp(22px, 3.4vh, 28px); }
  .pull-cta { margin-top: 2.6vh !important; }

  /* lahendused: horisontaalsed pildikaardid (pilt vasakul) */
  .sec-head-row { margin-bottom: 3.4vh !important; }
  .is-style-tiles { gap: 16px; }
  .is-style-tiles > * { display: grid; grid-template-columns: 40% 1fr; grid-template-rows: auto 1fr; column-gap: 22px; padding: 0 22px 0 0; }
  .is-style-tiles .tile-img { grid-row: 1 / span 2; margin: 0 !important; position: relative; min-height: 100%; }
  .is-style-tiles .tile-img img { position: absolute; inset: 0; height: 100% !important; aspect-ratio: auto; }
  .is-style-tiles h3 { padding: 2.4vh 0 0 !important; margin-bottom: 8px !important; font-size: 19px; }
  .is-style-tiles p { padding: 0 0 2.4vh !important; font-size: 14px; line-height: 1.55; }

  /* baar ja pildid kõrvuti tekstiga */
  .wp-block-image.is-style-square img { aspect-ratio: auto; height: min(560px, calc(var(--liipa-avail) - 2 * var(--liipa-sec) - 4px)); }
  .bar-duo > .wp-block-image img { aspect-ratio: auto; height: min(640px, calc(var(--liipa-avail) - 2 * var(--liipa-sec) + 40px)); }
  .wp-block-list.is-style-checks { margin-top: 2.6vh !important; }
  .wp-block-list.is-style-checks li { padding-top: 11px; padding-bottom: 11px; }
  .wp-block-image.media-wide { width: fit-content; max-width: 100%; margin-left: auto; }
  .wp-block-gallery.venue-slides.is-playing { height: min(520px, calc(var(--liipa-avail) - 2 * var(--liipa-sec) - 32px)); }
  .wp-block-image.media-wide img { width: auto; max-width: 100%; height: auto; max-height: min(520px, calc(var(--liipa-avail) - 2 * var(--liipa-sec) - 32px)); }
  .accent-line, .section-dark .has-large-font-size { margin: 2.4vh 0 3vh !important; }

  /* galerii: mosaiigi read ekraani järgi */
  .wp-block-gallery.is-style-mosaic { margin-top: 3.4vh !important; grid-auto-rows: max(150px, calc((var(--liipa-avail) - 2 * var(--liipa-sec) - 3.4vh - (38px + var(--liipa-h2) * 1.12) - 16px) / 2)); }
  /* "Näita kõiki pilte" nupp (~54px + vahe) mahub samale ekraanile: mosaiigi read selle võrra madalamad */
  .wp-block-gallery.is-style-mosaic.is-collapsed { grid-auto-rows: max(150px, calc((var(--liipa-avail) - 2 * var(--liipa-sec) - 3.4vh - (38px + var(--liipa-h2) * 1.12) - 16px - 54px - 2.4vh) / 2)); }
  .mosaic-more { margin-top: 2.4vh !important; }

  /* tagasiside */
  .quotes { margin-top: 3.4vh !important; }
  .quotes > .wp-block-column { padding-top: 28px; }
  .quotes .wp-block-quote p { font-size: 17px; margin-bottom: 20px; }
  .quotes .wp-block-quote p::before { font-size: 72px; margin: 16px 0 4px; }

  /* päringuvorm tihedamaks */
  .rf-row { margin-bottom: 2.2vh; gap: 18px; }
  .rf-radios { margin-bottom: 2.2vh; }
  .rf-legend { margin-bottom: 10px; }
  .wpcf7 textarea { min-height: 76px; height: 76px; }
  .rf-foot { margin-top: 2vh; }
  .paring-contact { margin-top: 3vh !important; }
}

/* ---------- Mobiil: nupud keskel ja sama laiad kui muu sisu ---------- */
@media (max-width: 781px) {
  .wp-block-buttons { flex-direction: column; align-items: stretch !important; justify-content: center !important; width: 100%; }
  .wp-block-buttons > .wp-block-button { width: 100%; margin: 0; }
  .wp-block-buttons > .wp-block-button > .wp-block-button__link { display: flex; box-sizing: border-box; width: 100%; justify-content: center; text-align: center; }
  .rf-foot { padding-left: 0; justify-content: stretch; }
  .wpcf7 form.wpcf7-form > .rf-foot { flex: 1 1 100%; margin-left: 0; }
  .wpcf7 form.wpcf7-form > .rf-consent + .rf-foot { margin-top: 24px; }
  .rf-foot .wpcf7-submit { width: 100%; }
  .rf-foot .wpcf7-spinner { right: auto; left: 50%; top: auto; bottom: -32px; margin: 0 0 0 -12px; }
  }

/* ---------- Suur ekraan: sama ilme mis sülearvutil ----------
   Sisu laius kasvab koos ekraaniga (sülearvutil ~1320px ehk ~86% laiusest) kuni 1650px, nii et
   laial ekraanil ei jää kitsas veerg keskele. theme.json-i contentSize/wideSize (1320/1440px) on miinimum.
   Body't kasutab ka WordPressi globaalsete stiilide muutuja, seega sama selektor. */
body {
  --wp--style--global--content-size: clamp(1320px, 86vw, 1650px);
  --wp--style--global--wide-size: clamp(1440px, 92vw, 1770px);
}
/* Kõrgemal ekraanil pealkirjad ja numbrid samas suhtes ekraaniga (sülearvutil ≤1000px ei muutu midagi) */
@media (min-width: 921px) and (min-height: 1001px) {
  /* suurused --liipa-avail-ist (mitte vh-st), et 1650px sisulaiuse juures jääks suhe samaks */
  :root { --liipa-h2: clamp(46px, calc(var(--liipa-avail) * .055), 80px); }
  .hero h1 { font-size: clamp(68px, calc(var(--liipa-avail) * .083), 120px) !important; }
  .stat-value { font-size: clamp(40px, calc(var(--liipa-avail) * .044), 64px); }
  .is-style-pull { font-size: clamp(28px, calc(var(--liipa-avail) * .034), 44px); }
}

/* =====================================================================
   Liipa Talu: suured pildid (Maasikavillade vaimus) + Rehe korrapärane põhi
   ===================================================================== */
:root { --liipa-header: 84px; --liipa-deep: var(--wp--preset--color--gold-deep); }

/* ---------- Logo: tume valgel päisel, hele pildi peal ja jaluses ---------- */
.header-logo img { display: block; width: clamp(150px, 13vw, 196px); height: auto; }
.header-logo .logo-light { display: none; }
.footer-logo img { width: 220px; height: auto; }

/* ---------- Täisekraani pildiga lehed (body.has-hero): päis on pildi peal läbipaistev ---------- */
.site-header { transition: background-color .35s ease, box-shadow .35s ease, color .35s ease; }
.has-hero .wp-site-blocks > header.wp-block-template-part { position: fixed; left: 0; right: 0; }
html:not(.has-modal-open) .has-hero:not(.is-scrolled) .site-header { background: transparent; box-shadow: none; color: #fff; }
html:not(.has-modal-open) .has-hero:not(.is-scrolled) .site-header :is(a, .wp-block-site-title a) { color: #fff; }
html:not(.has-modal-open) .has-hero:not(.is-scrolled) .header-logo .logo-dark { display: none; }
html:not(.has-modal-open) .has-hero:not(.is-scrolled) .header-logo .logo-light { display: block; }
html:not(.has-modal-open) .has-hero:not(.is-scrolled) .main-nav .nav-cta .wp-block-navigation-item__content {
  background: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.75);
}
html:not(.has-modal-open) .has-hero:not(.is-scrolled) .main-nav .nav-cta .wp-block-navigation-item__content:hover { background: #fff; color: var(--wp--preset--color--ink); }
html:not(.has-modal-open) .has-hero:not(.is-scrolled) .site-header .main-nav .wp-block-navigation-item__content::after { background: #fff; }
.main-nav .nav-cta .wp-block-navigation-item__content { background: var(--wp--preset--color--ink); }
.main-nav .nav-cta .wp-block-navigation-item__content:hover { background: var(--liipa-gold); color: var(--wp--preset--color--ink); }

/* ---------- Hero (core/cover): pilt üle ekraani, pealkiri all vasakul ---------- */
.wp-block-cover.hero-full, .wp-block-cover.page-hero {
  align-items: flex-end; padding-left: var(--wp--style--root--padding-left); padding-right: var(--wp--style--root--padding-right);
}
.wp-block-cover.hero-full { min-height: 100vh !important; min-height: 100svh !important; padding-bottom: clamp(48px, 10vh, 112px); }
.wp-block-cover.page-hero { min-height: clamp(420px, 66vh, 760px) !important; padding-bottom: clamp(40px, 8vh, 88px); }
.wp-block-cover.hero-full::after, .wp-block-cover.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.42) 0, rgba(0,0,0,0) 26%, rgba(0,0,0,0) 48%, rgba(0,0,0,.58) 100%);
}
:is(.hero-full, .page-hero) > .wp-block-cover__inner-container {
  position: relative; z-index: 1; width: 100%; max-width: var(--wp--style--global--content-size); margin: 0 auto; color: #fff;
}
:is(.hero-full, .page-hero) .wp-block-heading { color: #fff; max-width: none; margin: 14px 0 0; }
.hero-full h1.wp-block-heading { font-size: clamp(60px, 11vw, 168px) !important; line-height: .92; letter-spacing: .005em; }
.page-hero h1.wp-block-heading { font-size: clamp(48px, 7.4vw, 112px) !important; line-height: .95; }
:is(.hero-full, .page-hero) .is-style-eyebrow { color: #fff; opacity: .9; }
.hero-sub { margin: 22px 0 0 !important; max-width: 34em; font-size: clamp(16px, 1.3vw, 19px); letter-spacing: .02em; color: rgba(255,255,255,.92); }
:is(.hero-full, .page-hero) .wp-block-buttons { margin-top: clamp(28px, 5vh, 44px); }
/* nupp pildi peal: valge joon */
.wp-block-button.is-style-light > .wp-block-button__link { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.wp-block-button.is-style-light > .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--ink); border-color: #fff; }
.wp-block-button.is-style-gold > .wp-block-button__link { color: var(--wp--preset--color--ink); }
.wp-block-button.is-style-gold > .wp-block-button__link:hover { background: #fff; border-color: #fff; }
/* kerimisvihje hero all */
.hero-full .scroll-cue { position: absolute; right: 0; bottom: 0; margin: 0; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; writing-mode: vertical-rl; color: rgba(255,255,255,.75); }
.hero-full .scroll-cue a { color: inherit; text-decoration: none; }
.hero-full .scroll-cue::after { content: ""; display: block; width: 1px; height: 56px; margin: 14px auto 0; background: rgba(255,255,255,.6); }
@media (max-width: 781px) { .hero-full .scroll-cue { display: none; } }

/* ---------- Tekst ---------- */
/* suur serif-lause (sissejuhatus) */
.is-style-statement {
  font-family: var(--wp--preset--font-family--abhaya); font-size: clamp(28px, 3vw, 46px) !important;
  line-height: 1.22; color: var(--wp--preset--color--ink); max-width: 24em;
}
.is-style-statement em { font-style: normal; color: var(--liipa-deep); }
.text-cols { columns: 2 22em; column-gap: clamp(32px, 5vw, 72px); }
.text-cols > * { break-inside: avoid; }
.section .wp-block-heading { max-width: 18em; }
.sec-head-row { align-items: flex-end !important; gap: 24px 64px !important; }

/* ---------- Hoone/teema sektsioon: pilt(id) ja tekst kõrvuti, vaheldumisi ---------- */
.feature { gap: clamp(32px, 6vw, 96px) !important; }
.feature .wp-block-gallery.is-style-slideshow { margin-top: 0 !important; }
.feature .wp-block-gallery.is-style-slideshow.is-playing { aspect-ratio: 4 / 3 !important; height: auto !important; }
.feature-media .wp-block-image { margin: 0; }
.feature-media .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.feature-body > .wp-block-heading { margin-top: 12px !important; }
.feature-body p:not(.is-style-eyebrow) { color: #3a3a3a; }
@media (min-width: 782px) { .feature.is-reversed { flex-direction: row-reverse; } }
.section + .section.section-flush { padding-top: 0; }
.facts { margin-top: 28px !important; }

/* ---------- Hinnatabel (core/table, stiil "Hinnatabel") ---------- */
.wp-block-table.is-style-prices { margin: 0; overflow-x: auto; }
.wp-block-table.is-style-prices table { width: 100%; border-collapse: collapse; font-size: 16px; }
.wp-block-table.is-style-prices :is(th, td) { border: 0; border-bottom: 1px solid var(--liipa-line); padding: 16px 12px 16px 0; text-align: left; vertical-align: top; }
.wp-block-table.is-style-prices thead :is(th, td) {
  border-bottom: 1px solid var(--wp--preset--color--ink); padding-top: 0;
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--liipa-muted);
}
.wp-block-table.is-style-prices :is(th, td):not(:first-child) { text-align: right; white-space: nowrap; padding-right: 0; padding-left: 16px; }
.wp-block-table.is-style-prices tbody td:not(:first-child) { font-family: var(--wp--preset--font-family--abhaya); font-size: 22px; line-height: 1.2; }
.wp-block-table.is-style-prices tbody tr:hover td { background: var(--wp--preset--color--stone); }
.wp-block-table.is-style-prices figcaption, .price-note { font-size: 14px; color: var(--liipa-muted); margin-top: 14px; text-align: left; }
.price-block + .price-block { margin-top: clamp(40px, 6vh, 64px) !important; }
.price-block > .wp-block-heading { margin: 0 0 18px !important; font-size: clamp(24px, 2.2vw, 32px) !important; }
.season { display: grid; grid-template-columns: repeat(auto-fit, minmax(16em, 1fr)); gap: 0; border-top: 1px solid var(--liipa-line); border-bottom: 1px solid var(--liipa-line); margin-top: 32px !important; }
.season > * { margin: 0 !important; padding: 20px 24px 20px 0; }
.season > * + * { border-left: 1px solid var(--liipa-line); padding-left: 24px; }
.season strong { display: block; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--liipa-deep); margin-bottom: 4px; }

/* ---------- Paketid: pildikaardid hinnaga ---------- */
.packages { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.packages > .package { margin: 0 !important; display: flex; flex-direction: column; border: 1px solid var(--liipa-line); background: var(--wp--preset--color--paper); transition: border-color .3s; }
.packages > .package:hover { border-color: var(--liipa-gold); }
.package > .wp-block-image { margin: 0 !important; overflow: hidden; }
.package > .wp-block-image img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.package:hover > .wp-block-image img { transform: scale(1.03); }
.package > :not(.wp-block-image) { margin-left: clamp(24px, 2.6vw, 40px) !important; margin-right: clamp(24px, 2.6vw, 40px) !important; }
.package > .is-style-eyebrow { margin-top: 28px !important; }
.package > h3 { margin-top: 10px !important; margin-bottom: 12px !important; }
.package > p:not(.is-style-eyebrow):not(.package-price) { font-size: 15px; color: var(--liipa-muted); margin-top: 0; }
.package .wp-block-list.is-style-checks { grid-template-columns: 1fr; margin-top: 16px !important; }
.package .wp-block-list.is-style-checks li { padding-top: 10px; padding-bottom: 10px; font-size: 15px; }
.package-price { margin-top: auto !important; padding-top: 24px; font-family: var(--wp--preset--font-family--abhaya); font-size: 34px; line-height: 1.1; }
.package-price small { font-family: var(--wp--preset--font-family--raleway); font-size: 13px; color: var(--liipa-muted); letter-spacing: .04em; }
.package > .wp-block-buttons { margin-top: 18px !important; margin-bottom: 32px !important; }
@media (max-width: 900px) { .packages { grid-template-columns: 1fr; } }

/* lisavõimalused / sildid tumedal taustal */
.section-dark .wp-block-list.is-style-checks { border-top-color: rgba(255,255,255,.18); }
.section-dark .wp-block-list.is-style-checks li { border-bottom-color: rgba(255,255,255,.12); color: #ddd; }

/* ---------- Ajalugu: pilt ja soe tekst ---------- */
.story-quote { font-family: var(--wp--preset--font-family--abhaya); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.25; color: var(--wp--preset--color--ink); border-left: 2px solid var(--liipa-gold); padding-left: 28px; margin-top: 36px !important; }
.section-dark .story-quote { color: #fff; }

/* ---------- Kaart ---------- */
.map-embed { margin: 0; border: 1px solid var(--liipa-line); }
.map-embed iframe { display: block; width: 100%; height: clamp(360px, 60vh, 560px); border: 0; }
.map-address { font-size: 15px; line-height: 1.9; color: var(--liipa-muted); }
.map-address a { color: var(--wp--preset--color--ink); }

/* ---------- Kodukord: rahulik tekstiveerg + loetelud ---------- */
.rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(32px, 4vw, 64px) clamp(32px, 6vw, 96px); }
.rules > * { margin: 0 !important; }
.rules h3 { font-size: clamp(24px, 2vw, 30px) !important; margin: 0 0 14px !important; padding-top: 18px; border-top: 1px solid var(--wp--preset--color--ink); }
.rules ul { margin: 0; padding: 0; list-style: none; }
.rules li { position: relative; padding: 8px 0 8px 22px; font-size: 16px; line-height: 1.6; }
.rules li::before { content: ""; position: absolute; left: 0; top: 19px; width: 10px; height: 1px; background: var(--liipa-gold); }
.rules p { font-size: 16px; color: #3a3a3a; }
.rules .rules-wide { grid-column: 1 / -1; }
@media (max-width: 781px) { .rules { grid-template-columns: 1fr; } }

/* ---------- Discgolfi rajad ---------- */
.holes { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 30em), 1fr)); gap: 0 48px; border-top: 1px solid var(--liipa-line); }
.holes li { display: grid; grid-template-columns: 64px 1fr; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--liipa-line); font-size: 16px; margin: 0; }
.holes li strong { font-family: var(--wp--preset--font-family--abhaya); font-size: 28px; font-weight: 400; color: var(--liipa-deep); }

/* ---------- Päringu riba (iga lehe jaluses) ---------- */
.inquiry { border-top: 1px solid var(--liipa-line); }
.inquiry .wp-block-heading { max-width: 10em; }
.wpcf7-submit { background: var(--wp--preset--color--ink); letter-spacing: .14em; text-transform: uppercase; font-size: 13px; font-weight: 600; }
.wpcf7-submit:hover { background: var(--liipa-gold); color: var(--wp--preset--color--ink); }
/* linnukesed (mitu valikut) nagu raadionupud */
.wpcf7-checkbox { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.wpcf7-checkbox .wpcf7-list-item { margin: 0; }
.wpcf7-checkbox label { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; }
.wpcf7-checkbox input {
  -webkit-appearance: none; appearance: none; margin: 0; flex: none;
  width: 16px; height: 16px; border: 1px solid #8a8a8a; display: grid; place-content: center; cursor: pointer;
}
.wpcf7-checkbox input::after { content: ""; width: 8px; height: 8px; background: var(--liipa-gold); transform: scale(0); transition: transform .15s; }
.wpcf7-checkbox input:checked { border-color: var(--liipa-gold); }
.wpcf7-checkbox input:checked::after { transform: scale(1); }
.wpcf7-checkbox input:focus-visible { outline: 2px solid var(--liipa-gold); outline-offset: 2px; }
.rf-group { margin-bottom: 28px; }
.rf-group .rf-legend small { font-weight: 400; color: var(--liipa-muted); }
/* ööbijate arv: nähtav ainult siis, kui ööbimine = jah (theme.js), ilma JS-ita alati */
.js .rf-stay-count[hidden] { display: none; }

/* ---------- Jalus ---------- */
.site-footer .is-style-eyebrow { color: var(--liipa-gold); }
.footer-booking { margin-top: 18px !important; font-size: 14px; color: #a8a8a8; line-height: 1.7; }
.footer-booking a { color: #fff; border-bottom: 1px solid rgba(204,170,80,.6); }

/* ---------- Kitsas ekraan ---------- */
@media (max-width: 781px) {
  .header-logo img { width: 150px; }
  .feature-media { order: -1; }
  .season > * + * { border-left: 0; padding-left: 0; border-top: 1px solid var(--liipa-line); }
}
.center-cta { justify-content: center; margin-top: clamp(32px, 5vh, 56px) !important; }
.section-stone { --liipa-bg: var(--wp--preset--color--stone); }
.section-stone .is-style-tiles > * { background: var(--wp--preset--color--paper); }
.section-stone { background-color: var(--wp--preset--color--stone); }
.rules-col .wp-block-list, .rules-item .wp-block-list { margin: 0; padding: 0; list-style: none; }
.rules-col .wp-block-list li { position: relative; padding: 8px 0 8px 22px; font-size: 16px; line-height: 1.6; }
.rules-col .wp-block-list li::before { content: ""; position: absolute; left: 0; top: 19px; width: 10px; height: 1px; background: var(--liipa-gold); }
.rules-col .sec-note { margin-top: 24px !important; }
.rules { margin-top: clamp(40px, 6vh, 72px) !important; }
.booking-row .wp-block-buttons { justify-content: flex-end; }
.intro-cols { margin-top: clamp(28px, 4vh, 48px) !important; }
.intro-cols p { color: #3a3a3a; }

/* ---------- Parandused (ülevaatus 1) ---------- */
.wpcf7 form br { display: none; } /* CF7 lisab välja märgendite vahele <br>-i */
.site-footer .wp-block-navigation { text-transform: none; letter-spacing: 0; font-weight: 400; }
/* suur lause algab sisu vasakust servast (constrained layout tsentreeriks kitsama ploki) */
.section > .is-style-statement { margin-left: max(0px, calc((100% - var(--wp--style--global--content-size)) / 2)) !important; margin-right: auto !important; }
.stat-value { font-family: var(--wp--preset--font-family--abhaya); font-weight: 400; }
/* päis on pildi peal (fixed): sisu algab kohe ülevalt, ilma plokkide vahe-marginita */
.has-hero .wp-site-blocks > main, .has-hero .wp-site-blocks > header + * { margin-block-start: 0 !important; }

/* =====================================================================
   Avaleht v2 — oma ülesehitus (kollaaž, sündmuste valik, hoonete riba,
   fotoriba, paketiread, tume veerugalerii, KKK)
   ===================================================================== */

/* nupp-link: tekst + nool, joon all */
.wp-block-button.is-style-link > .wp-block-button__link {
  background: none; border: 0; padding: 0 0 6px; color: var(--wp--preset--color--ink);
  border-bottom: 1px solid var(--wp--preset--color--ink); border-radius: 0;
}
.wp-block-button.is-style-link > .wp-block-button__link:hover { color: var(--liipa-deep); border-color: var(--liipa-gold); background: none; }
.section-dark .wp-block-button.is-style-link > .wp-block-button__link { color: #fff; border-color: rgba(255,255,255,.6); }

/* ---------- Tutvustus: kollaaž ---------- */
.intro-grid { gap: clamp(32px, 6vw, 96px) !important; }
.collage { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; aspect-ratio: 5 / 4; }
.collage > .wp-block-image { margin: 0 !important; overflow: hidden; }
.collage > .wp-block-image:first-child { grid-row: 1 / span 2; }
.collage img { width: 100%; height: 100% !important; object-fit: cover; display: block; }
.intro-text > .wp-block-heading { margin-top: 12px !important; }
.intro-lead { font-size: 19px; line-height: 1.6; color: var(--wp--preset--color--ink); }
.intro-text p:not(.intro-lead):not(.is-style-eyebrow) { color: #3a3a3a; }
.facts-line {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  margin-top: clamp(48px, 8vh, 88px) !important; padding-top: 28px; border-top: 1px solid var(--liipa-line);
  font-family: var(--wp--preset--font-family--abhaya); font-size: clamp(20px, 1.9vw, 28px); line-height: 1.2;
}
.facts-line span { white-space: nowrap; }
.facts-line span + span::before { content: "·"; color: var(--liipa-gold); margin-right: 32px; }
@media (max-width: 781px) { .facts-line { flex-direction: column; } .facts-line span + span::before { display: none; } }

/* ---------- Talu lugu: fotoriba ---------- */
.wp-block-cover.story-band { padding: clamp(64px, 12vh, 140px) var(--wp--style--root--padding-left); }
.story-band > .wp-block-cover__inner-container { max-width: 720px; margin: 0 auto; text-align: center; color: #fff; }
.story-band .wp-block-heading { color: #fff; margin: 12px auto 20px !important; max-width: none; }
.story-band p:not(.is-style-eyebrow) { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.7; color: rgba(255,255,255,.92); }
.story-band .is-style-eyebrow { color: var(--liipa-gold); }
.story-band .story-old { width: 180px; margin: 0 auto 28px !important; transform: rotate(-3deg); box-shadow: 0 18px 40px rgba(0,0,0,.45); border: 6px solid #f4f1ea; }
.story-band .story-old img { display: block; width: 100%; height: auto; filter: grayscale(1) contrast(1.05); }

/* ---------- Paketid ridadena ---------- */
.pkg-grid { gap: clamp(32px, 6vw, 96px) !important; }
@media (min-width: 782px) { .pkg-head { position: sticky; top: calc(var(--liipa-header) + 32px); align-self: flex-start; } }
.pkg-list { border-top: 1px solid var(--wp--preset--color--ink); }
.pkg-list > .pkg-row {
  margin: 0 !important; display: grid; grid-template-columns: 1fr auto; column-gap: 32px; row-gap: 6px;
  padding: 26px 0; border-bottom: 1px solid var(--liipa-line); position: relative; transition: padding .3s;
}
.pkg-row:hover { padding-left: 12px; }
.pkg-row h3 { grid-column: 1; margin: 0 !important; font-size: clamp(24px, 2.2vw, 34px) !important; }
.pkg-row h3 a { text-decoration: none; color: inherit; }
.pkg-row h3 a::after { content: ""; position: absolute; inset: 0; } /* terve rida on klõpsatav */
.pkg-row p { grid-column: 1; margin: 0; font-size: 15px; color: var(--liipa-muted); max-width: 36em; }
.pkg-row .pkg-price { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; white-space: nowrap;
  font-family: var(--wp--preset--font-family--abhaya); font-size: clamp(22px, 2vw, 30px); color: var(--wp--preset--color--ink); max-width: none; }
.pkg-row .pkg-price small { display: block; font-family: var(--wp--preset--font-family--raleway); font-size: 12px; color: var(--liipa-muted); letter-spacing: .08em; }
@media (max-width: 600px) { .pkg-list > .pkg-row { grid-template-columns: 1fr; } .pkg-row .pkg-price { grid-column: 1; grid-row: auto; text-align: left; } }

/* sektsiooni otsesed pealkirjad ja hoonete riba algavad sisu vasakust servast */
.section > .wp-block-heading, .section > .is-style-eyebrow { margin-left: max(0px, calc((100% - var(--wp--style--global--content-size)) / 2)) !important; margin-right: auto !important; }

/* =====================================================================
   Avaleht v3
   ===================================================================== */
.section-dark .wp-block-heading { color: #fff; }

/* pealkiri keskel (sündmused, kompleks, galerii, KKK) */
.center-head { text-align: center; max-width: 720px; margin: 0 auto clamp(32px, 5vh, 56px) !important; }
.center-head .wp-block-heading { margin: 12px auto 0 !important; max-width: none; }
.center-head .sec-note { margin: 16px auto 0 !important; }

/* ---------- Sündmused: pildikaardid, nimi pildil ---------- */
.event-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.event-cards > .event-card { position: relative; margin: 0 !important; overflow: hidden; aspect-ratio: 4 / 5; background: var(--wp--preset--color--ink); }
.event-card > .wp-block-image { position: absolute; inset: 0; margin: 0 !important; }
.event-card > .wp-block-image img { width: 100%; height: 100% !important; object-fit: cover; display: block; transition: transform 1s cubic-bezier(.2,.7,.2,1), opacity .5s; }
.event-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.78) 0, rgba(0,0,0,.25) 45%, rgba(0,0,0,0) 70%); transition: background .5s; pointer-events: none; }
.event-card h3, .event-card p { position: absolute; left: 28px; right: 28px; z-index: 2; margin: 0 !important; color: #fff; }
.event-card h3 { bottom: 28px; font-size: clamp(26px, 2.2vw, 34px) !important; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.event-card h3 a { color: inherit; text-decoration: none; }
.event-card h3 a::after { content: ""; position: absolute; inset: -2000px; } /* terve kaart on klõpsatav */
.event-card p { bottom: 28px; font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.9); opacity: 0; transform: translateY(12px); transition: opacity .45s, transform .5s; }
.event-card h3::before { content: ""; display: block; width: 32px; height: 2px; background: var(--liipa-gold); margin-bottom: 14px; transition: width .5s; }
@media (hover: hover) {
  .event-card:hover > .wp-block-image img { transform: scale(1.05); }
  .event-card:hover::after { background: linear-gradient(to top, rgba(0,0,0,.85) 0, rgba(0,0,0,.45) 60%, rgba(0,0,0,.15) 100%); }
  .event-card:hover h3 { transform: translateY(calc(-1 * var(--liipa-card-shift, 76px))); }
  .event-card:hover h3::before { width: 56px; }
  .event-card:hover p { opacity: 1; transform: none; }
}
/* puutekraanil kirjeldus kohe näha */
@media (hover: none) { .event-card h3 { bottom: auto; top: auto; position: relative; } .event-card { display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; } .event-card h3, .event-card p { position: relative; left: 0; right: 0; bottom: 0; opacity: 1; transform: none; } .event-card p { margin-top: 8px !important; } }
@media (max-width: 900px) { .event-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .event-cards { grid-template-columns: 1fr; } .event-cards > .event-card { aspect-ratio: 4 / 3; } }

/* ---------- Kompleks: riba sisu laiuses, nooled keskel ---------- */
.strip {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px;
}
.strip::-webkit-scrollbar { display: none; }
.strip > .strip-card { flex: 0 0 calc((100% - 3 * 20px) / 4); margin: 0 !important; scroll-snap-align: start; }
@media (max-width: 1100px) { .strip > .strip-card { flex-basis: calc((100% - 2 * 20px) / 3); } }
@media (max-width: 781px) { .strip > .strip-card { flex-basis: 72%; } }
.strip-card > .wp-block-image { margin: 0 0 16px !important; overflow: hidden; }
.strip-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.strip-card:hover img { transform: scale(1.04); }
.strip-card h3 { margin: 0 0 4px !important; font-size: 24px !important; }
.strip-card p { margin: 0; font-size: 14px; color: var(--liipa-muted); letter-spacing: .02em; }
.strip-nav { display: flex; gap: 8px; justify-content: center; margin-top: 28px; }
.strip-nav button { width: 48px; height: 48px; border: 1px solid var(--wp--preset--color--ink); background: none; cursor: pointer; font-size: 18px; transition: background .25s, color .25s; }
.strip-nav button:hover { background: var(--wp--preset--color--ink); color: #fff; }
.strip-nav button:disabled { opacity: .3; cursor: default; background: none; color: inherit; }
.strip-more { justify-content: center; margin-top: 24px !important; }

/* ---------- Galerii: ruudustik, "Näita rohkem pilte" (theme.js) ---------- */
.wp-block-gallery.is-style-showcase { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 14px !important; }
.wp-block-gallery.is-style-showcase > .wp-block-image { width: auto !important; margin: 0 !important; overflow: hidden; position: relative; aspect-ratio: 4 / 3; }
.wp-block-gallery.is-style-showcase > .wp-block-image img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; cursor: pointer; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.wp-block-gallery.is-style-showcase > .wp-block-image:hover img { transform: scale(1.04); }
.wp-block-gallery.is-style-showcase > .wp-block-image.is-more { display: none !important; }
.wp-block-gallery.is-style-showcase > .wp-block-image.is-new { animation: liipa-rise .6s ease both; }
@keyframes liipa-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (max-width: 781px) { .wp-block-gallery.is-style-showcase { grid-template-columns: 1fr 1fr; } }
.gallery-more { display: flex; justify-content: center; margin-top: 32px; }
.gallery-more button {
  height: 48px; padding: 0 28px; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.7); cursor: pointer;
  font: 600 13px var(--wp--preset--font-family--raleway); letter-spacing: .14em; text-transform: uppercase; transition: background .25s, color .25s;
}
.gallery-more button:hover { background: #fff; color: var(--wp--preset--color--ink); }

/* ---------- KKK: puhas, ilma raamideta; vastus avaneb sujuvalt (theme.js) ---------- */
.faq-cards { gap: 0 clamp(40px, 6vw, 96px) !important; max-width: 1080px; margin-left: auto !important; margin-right: auto !important; }
.faq-cards .wp-block-details { margin: 0 !important; border: 0; background: none; padding: 0; }
.faq-cards summary {
  list-style: none; cursor: pointer; position: relative; padding: 18px 40px 18px 0;
  font-family: var(--wp--preset--font-family--abhaya); font-size: clamp(20px, 1.6vw, 23px); line-height: 1.3;
  color: var(--wp--preset--color--ink); transition: color .3s;
}
.faq-cards summary::-webkit-details-marker { display: none; }
.faq-cards summary:hover, .faq-cards details[open] > summary { color: var(--liipa-deep); }
/* pluss, mis avatult pöördub ristiks */
.faq-cards summary::before, .faq-cards summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 1.5px; margin: 0; border: 0;
  background: var(--liipa-gold); transform: none; transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.faq-cards summary::after { transform: rotate(90deg); }
.faq-cards details[open] > summary::after { transform: rotate(0deg); }
.faq-cards details[open] > summary::before { transform: rotate(180deg); }
.faq-cards details p { margin: 0 !important; padding: 0 40px 22px 0; color: #4a4a4a; font-size: 16px; line-height: 1.65; }
.faq-cards details.is-animating { overflow: hidden; }
.faq-more { text-align: center; margin-top: clamp(32px, 5vh, 48px) !important; color: var(--liipa-muted); }
.faq-more a { color: var(--wp--preset--color--ink); }

/* ---------- Jaluse päring: valge, sama lai kui leht ---------- */
.inquiry { background: var(--wp--preset--color--paper); }
.inquiry-head { text-align: center; max-width: 640px; margin: 0 auto clamp(32px, 5vh, 48px) !important; }
.inquiry-head .wp-block-heading { margin: 12px auto 16px !important; max-width: none; }
.inquiry-head .sec-note { margin: 0 auto !important; }
.inquiry-card { padding: clamp(28px, 4vw, 56px) 0 0; border-top: 1px solid var(--wp--preset--color--ink); }
.inquiry .wpcf7 form { max-width: none; }
.inquiry-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 40px; margin: 40px auto 0 !important; padding-top: 24px; border-top: 1px solid var(--liipa-line); font-size: 15px; color: var(--liipa-muted); text-align: center; }
.inquiry-contact a { color: var(--wp--preset--color--ink); text-decoration: none; }
.inquiry-contact a:hover { color: var(--liipa-deep); }

/* Vormi veateade välja all ei lükka järgmisi välju allapoole: teade on välja all absoluutselt
   (rea vahe sisse), välja kõrgus jääb samaks. */
.wpcf7 .wpcf7-form-control-wrap { position: relative; }
.wpcf7 .wpcf7-not-valid-tip {
  position: absolute; left: 0; top: 100%; margin-top: 4px; z-index: 1;
  font-size: 12px; line-height: 1.3; white-space: nowrap; color: #b3261e;
}
.rf-radios, .rf-group { position: relative; }

/* =====================================================================
   Ekraanide kontroll (telefon, iPad, 13"/16" Mac, teler)
   ===================================================================== */
/* WordPress teeb kohandatud asendiga cover-ploki sisu kitsaks (width:auto) → telefonis olid nupud poole laiusega */
.wp-block-cover:is(.hero-full, .page-hero, .story-band) > .wp-block-cover__inner-container { width: 100% !important; }
/* paketikaardi nupp: mobiilis 100% laius + kaardi külgvahed ajas üle serva */
.package > .wp-block-buttons { width: auto !important; }
/* pildikaartide ruudustik: kuni 1100px kaks veergu (iPad püsti/pikali) */
@media (max-width: 1100px) and (min-width: 601px) { .is-style-tiles { grid-template-columns: 1fr 1fr; } }
/* telefon pikali / madal ekraan: hero sisu mahub ära */
@media (max-height: 520px) and (orientation: landscape) {
  .wp-block-cover.hero-full { min-height: 100vh !important; padding-top: 96px; padding-bottom: 32px; }
  .hero-full h1.wp-block-heading { font-size: clamp(44px, 9vh, 72px) !important; }
}
/* toitlustus: miks Rehe */
.why-cols { gap: clamp(24px, 3vw, 40px) !important; }
.why-cols .wp-block-image { margin: 0 0 20px !important; overflow: hidden; }
.why-cols .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.why-cols h3 { margin: 0 0 8px !important; font-size: 26px !important; }
.why-cols p { margin: 0; color: #4a4a4a; font-size: 16px; }
.offer-row:hover { padding-left: 0; }
.story-band .wp-block-buttons { justify-content: center; margin-top: 28px !important; }

/* ---------- Tahvel (iPad): suurem hero tekst ja nupud ---------- */
@media (min-width: 600px) and (max-width: 1180px) {
  .hero-full h1.wp-block-heading { font-size: clamp(88px, 13vw, 150px) !important; }
  .hero-sub { font-size: 20px !important; }
  :is(.hero-full, .page-hero, .story-band) .wp-block-button__link { padding: 18px 34px !important; font-size: 14px !important; }
}

/* ---------- Hinnatabel telefonis: iga rida on kaart (nimi üleval, hinnad sildiga all) ---------- */
@media (max-width: 600px) {
  .wp-block-table.is-style-prices { overflow: visible; }
  .wp-block-table.is-style-prices thead { display: none; }
  .wp-block-table.is-style-prices tbody tr { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--liipa-line); }
  .wp-block-table.is-style-prices tbody tr:hover td { background: none; }
  .wp-block-table.is-style-prices tbody td { border: 0 !important; padding: 0 !important; text-align: left !important; white-space: normal !important; }
  .wp-block-table.is-style-prices tbody td:first-child { grid-column: 1 / -1; margin-bottom: 10px; font-weight: 500; }
  .wp-block-table.is-style-prices tbody td:not(:first-child) { font-size: 19px !important; }
  .wp-block-table.is-style-prices tbody td:nth-child(2)::before,
  .wp-block-table.is-style-prices tbody td:nth-child(3)::before {
    display: block; margin-bottom: 2px; font-family: var(--wp--preset--font-family--raleway);
    font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--liipa-deep);
  }
  .wp-block-table.is-style-prices tbody td:nth-child(2)::before { content: "Madalhooaeg"; }
  .wp-block-table.is-style-prices tbody td:nth-child(3)::before { content: "Kõrghooaeg"; }
}

/* =====================================================================
   Hero v2: video valges raamis, sisu keskel, faktiriba all
   ===================================================================== */
.wp-block-cover.hero-framed {
  margin: 0 !important;
  min-height: 100vh !important; min-height: 100svh !important;
  align-items: center; justify-content: center; padding: 110px var(--wp--style--root--padding-left);
}
.wp-block-cover.hero-framed::after { background: linear-gradient(to bottom, rgba(0,0,0,.45) 0, rgba(0,0,0,.15) 30%, rgba(0,0,0,.2) 60%, rgba(0,0,0,.6) 100%); }
.hero-framed > .wp-block-cover__inner-container { position: static !important; text-align: center; max-width: 900px !important; }
.hero-framed > .wp-block-cover__inner-container > * { position: relative; z-index: 1; }
.hero-framed .is-style-eyebrow { letter-spacing: .32em; }
.hero-framed h1.wp-block-heading { font-size: clamp(64px, 10vw, 150px) !important; margin: 18px 0 0 !important; }
.hero-framed .hero-sub { margin: 18px auto 0 !important; font-family: var(--wp--preset--font-family--abhaya); font-size: clamp(22px, 2vw, 30px) !important; letter-spacing: .01em; }
.hero-framed .wp-block-buttons { justify-content: center; margin-top: clamp(28px, 4.5vh, 44px) !important; }
/* päis raamitud hero kohal: logo ja menüü joonduvad raami sisse */
.has-hero .site-header { transition: background-color .35s ease, box-shadow .35s ease; }

/* ---------- Tutvustusvideo Meist-sektsioonis ---------- */
.video-facade { position: relative; margin-top: clamp(48px, 7vh, 80px) !important; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.video-facade > .wp-block-image { position: absolute; inset: 0; margin: 0 !important; }
.video-facade > .wp-block-image img { width: 100%; height: 100% !important; object-fit: cover; display: block; cursor: pointer; transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter .6s; filter: brightness(.72); }
.video-facade:hover > .wp-block-image img { transform: scale(1.03); filter: brightness(.6); }
.video-facade .video-facade-link { position: absolute; inset: 0; margin: 0 !important; display: grid; place-items: center; pointer-events: none; }
.video-facade .video-facade-link a {
  pointer-events: auto; display: inline-flex; flex-direction: column; align-items: center; gap: 18px; color: #fff; text-decoration: none;
  font-family: var(--wp--preset--font-family--abhaya); font-size: clamp(26px, 3vw, 44px);
}
.video-facade .video-facade-link a::before {
  content: ""; width: clamp(68px, 7vw, 96px); height: clamp(68px, 7vw, 96px); border-radius: 50%; border: 1px solid rgba(255,255,255,.85);
  background: no-repeat 56% 50% / 26% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'%3E%3Cpath d='M0 0l10 6-10 6z' fill='white'/%3E%3C/svg%3E");
  transition: background-color .3s, border-color .3s, transform .3s;
}
.video-facade:hover .video-facade-link a::before { background-color: var(--liipa-gold); border-color: var(--liipa-gold); transform: scale(1.06); }
.video-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Instagram (Smash Balloon) teema stiilis ---------- */
.section-instagram #sb_instagram { padding-bottom: 0 !important; }
.section-instagram #sb_instagram .sbi_header_text, .section-instagram #sb_instagram .sbi_follow_btn, .section-instagram #sb_instagram #sbi_load { display: none !important; }
.section-instagram #sb_instagram .sbi_photo img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.section-instagram #sb_instagram .sbi_item:hover .sbi_photo img { transform: scale(1.04); }
.section-instagram .center-head .wp-block-heading a { color: inherit; text-decoration: none; }
.section-instagram .center-head .wp-block-heading a:hover { color: var(--liipa-deep); }

/* tegevused */
.program-contact { text-align: center; margin-top: clamp(32px, 5vh, 48px) !important; font-family: var(--wp--preset--font-family--abhaya); font-size: clamp(19px, 1.6vw, 23px); }
.program-contact a { color: var(--wp--preset--color--ink); text-decoration: none; border-bottom: 1px solid var(--liipa-gold); }
.games-label { margin: 24px 0 0 !important; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--liipa-deep); }
.section-stone .wp-block-list.is-style-chips li { background: var(--wp--preset--color--paper); }
.games-cols .wp-block-details { margin-top: 14px !important; border-top: 1px solid var(--liipa-line); }
.games-cols .wp-block-details summary { cursor: pointer; padding: 12px 0; font-weight: 600; font-size: 14px; letter-spacing: .06em; }
.games-cols .wp-block-details p { font-size: 15px; color: #4a4a4a; }

/* kontakt */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--wp--preset--color--ink); }
.contact-cards > .contact-card { margin: 0 !important; padding: 28px 24px 8px 0; }
.contact-cards > .contact-card + .contact-card { padding-left: 24px; border-left: 1px solid var(--liipa-line); }
.contact-value { margin-top: 12px !important; font-family: var(--wp--preset--font-family--abhaya); font-size: clamp(20px, 1.6vw, 24px); line-height: 1.45; }
.contact-value a { color: var(--wp--preset--color--ink); text-decoration: none; }
.contact-value a:hover { color: var(--liipa-deep); }
.contact-note { margin-top: 40px !important; color: var(--liipa-muted); }
@media (max-width: 1000px) { .contact-cards { grid-template-columns: 1fr 1fr; } .contact-cards > .contact-card:nth-child(3) { border-left: 0; padding-left: 0; } }
@media (max-width: 600px) { .contact-cards { grid-template-columns: 1fr; } .contact-cards > .contact-card + .contact-card { border-left: 0; padding-left: 0; border-top: 1px solid var(--liipa-line); } }
.social-list { max-width: 720px; margin: 0 auto !important; border-top: 1px solid var(--wp--preset--color--ink); }
.social-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0 !important; padding: 18px 0; border-bottom: 1px solid var(--liipa-line); }
.social-row span { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--liipa-deep); }
.social-row a { font-family: var(--wp--preset--font-family--abhaya); font-size: clamp(20px, 1.8vw, 26px); color: var(--wp--preset--color--ink); text-decoration: none; }
.social-row a:hover { color: var(--liipa-deep); }
/* hero nupud ühelaiused (geomeetriliselt rahulikum) */
@media (min-width: 782px) {
  .hero-framed .wp-block-buttons { display: grid !important; grid-template-columns: repeat(2, minmax(220px, max-content)); justify-content: center; gap: 16px; }
  .hero-framed .wp-block-buttons > .wp-block-button { width: 100%; }
  .hero-framed .wp-block-buttons > .wp-block-button > .wp-block-button__link { display: flex; justify-content: center; width: 100%; box-sizing: border-box; }
  .hero-framed .wp-block-buttons > .wp-block-button { min-width: 0; }
}


/* =====================================================================
   Suur ekraan: sisu kindla max-laiusega, kirjad ei kasva lõputult (ei ole "luubiga")
   ===================================================================== */
body { --wp--style--global--content-size: 1320px; --wp--style--global--wide-size: 1440px; }
@media (min-width: 921px) {
  :root { --liipa-avail: min(calc(100vh - var(--liipa-header)), 905px); --liipa-h2: clamp(30px, 5.4vh, 50px); }
}
@media (min-width: 921px) and (min-height: 1001px) {
  :root { --liipa-h2: 50px; }
  .stat-value { font-size: 44px; }
  .is-style-pull { font-size: 30px; }
}
.hero-framed h1.wp-block-heading { font-size: clamp(64px, 9vw, 128px) !important; }
.page-hero h1.wp-block-heading { font-size: clamp(48px, 6.5vw, 96px) !important; }
.wp-block-cover.page-hero { min-height: clamp(420px, 62vh, 680px) !important; }

/* ---------- Tutvustusvideo oma kastis: tekst vasakul, video paremal ---------- */
.video-box { margin-top: clamp(64px, 9vh, 112px) !important; padding: 0; gap: clamp(32px, 5vw, 80px) !important; }
.video-box .wp-block-heading { margin: 10px 0 12px !important; font-size: clamp(28px, 2.4vw, 38px) !important; }
.video-box p:not(.is-style-eyebrow):not(.video-facade-link) { color: #4a4a4a; margin: 0; }
.video-facade { margin-top: 0 !important; }
.video-facade > .wp-block-image img { filter: brightness(.82); }
.video-facade:hover > .wp-block-image img { filter: brightness(.7); transform: scale(1.02); }
.video-facade .video-facade-link { place-items: center; }
.video-facade .video-facade-link a { flex-direction: row; gap: 0; font-size: 0; }
/* esitusnupp: valge ring kuldse kolmnurgaga, ümber pehme pulseeriv rõngas */
.video-facade .video-facade-link a::before {
  width: 78px; height: 78px; border: 0; background-color: #fff; box-shadow: 0 12px 34px rgba(0,0,0,.35), 0 0 0 10px rgba(255,255,255,.22);
  background: #fff no-repeat 57% 50% / 22px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'%3E%3Cpath d='M0 0l10 6-10 6z' fill='%23ccaa50'/%3E%3C/svg%3E");
}
.video-facade:hover .video-facade-link a::before { background-color: #fff; box-shadow: 0 12px 34px rgba(0,0,0,.35), 0 0 0 16px rgba(255,255,255,.18); transform: scale(1.05); }
/* silt all vasakul */
.video-facade .video-facade-link a::after {
  content: "Vaata videot · 3:48"; position: absolute; left: 18px; bottom: 16px; padding: 7px 12px; background: rgba(17,17,17,.72); color: #fff;
  font: 600 11px var(--wp--preset--font-family--raleway); letter-spacing: .16em; text-transform: uppercase;
}
@media (max-width: 781px) { .video-facade .video-facade-link a::before { width: 64px; height: 64px; } }

/* video kõrval: puhas punktiloend */
.video-points { list-style: none; padding: 0; margin: 20px 0 0 !important; border-top: 1px solid var(--liipa-line); }
.video-points li { position: relative; margin: 0; padding: 11px 0 11px 22px; border-bottom: 1px solid var(--liipa-line); font-size: 15px; line-height: 1.5; color: #3a3a3a; }
.video-points li::before { content: ""; position: absolute; left: 0; top: 21px; width: 10px; height: 1px; background: var(--liipa-gold); }
