/* ==========================================================================
   Dom Put dobrote - glavni stilovi
   Dizajn po uzoru na nagrađivane US senior-living stranice:
   topla paleta, velika tipografija, visok kontrast, puno zraka.
   ========================================================================== */

:root {
  --bg: #FAF6EF;
  --surface: #FFFFFF;
  --surface-alt: #F3ECDF;
  --surface-sage: #E9ECE1; /* odjeljci-vodiči za obitelji: koraci, kontrolni popis */
  --ink: #2C2A26;
  --ink-soft: #5C574F;
  --green: #2F4A3C;
  --green-dark: #243A2F;
  --green-soft: #486B57;
  --sage: #8FAE8B;
  --terra: #C96F4A;
  --terra-dark: #A85838;
  --sun: #F2C879;
  --line: #E5DCCB;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 10px 40px -12px rgba(47, 74, 60, 0.18);
  --shadow-sm: 0 4px 16px -6px rgba(47, 74, 60, 0.14);
  --shadow-lg: 0 30px 60px -22px rgba(47, 74, 60, 0.35);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 82px;
  --header-h-min: 70px; /* zaglavlje kad se stranica pomakne */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

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

/* scrollbar-gutter: mjesto za scrollbar ostaje i kad se scroll zaključa
   (otvorena slika iz galerije), pa stranica ne trzne u stranu.
   scroll-padding-top: odjeljak iz izbornika staje točno ispod smanjenog zaglavlja
   (gornji piksel mu ide ispod crte zaglavlja, da ne proviri prethodni odjeljak) */
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h-min); scrollbar-gutter: stable; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

main { overflow-x: clip; }

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

::selection { background: rgba(242, 200, 121, 0.55); color: var(--green-dark); }

:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; border-radius: 6px; }
.site-footer :focus-visible, .topbar :focus-visible, .lightbox :focus-visible { outline-color: var(--sun); }

.container { width: min(1180px, 92%); margin-inline: auto; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* odjeljci i natpisi isključeni u CMS-u; mora pobijediti display pravila (npr. .btn) */
[hidden] { display: none !important; }
.icon {
  width: 1em; height: 1em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; color: var(--green); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.35rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; opacity: 0.65; }
.section-head .eyebrow::after { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; opacity: 0.65; }

.lead { font-size: 1.15rem; color: var(--ink-soft); }
.muted { color: var(--ink-soft); font-weight: 400; font-size: 0.85em; }

.section { padding: clamp(70px, 9vw, 120px) 0; }
.section-alt { background: var(--surface-alt); }
.section-head { max-width: 640px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-sub { margin-top: 14px; color: var(--ink-soft); }

/* ------------------------------- Preloader ------------------------------- */

/* Put se iscrta do kuće, kuća se nacrta i u njoj zasja srce (oko 1,7 s).
   main.js doda .done kad se stranica učita, ali najranije nakon 2,3 s,
   i preloader izblijedi. */
#preloader {
  --pl-size: min(62vmin, 300px);
  position: fixed; inset: 0; z-index: 1000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--bg);
  color: var(--green);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
/* topli sjaj iza crteža: krug samo oko njega, ne gradijent preko cijelog ekrana - Chrome na
   Androidu takav veliki gradijent iscrtava u trakama pa je gornji dio ekrana ostajao bez sjaja */
#preloader::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 50%; top: 40%;
  width: calc(var(--pl-size) * 2.3); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(242, 200, 121, 0.32), rgba(242, 200, 121, 0));
}
#preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }

.preloader-art { display: block; width: var(--pl-size); height: auto; overflow: visible; }

/* osnovno stanje je gotov crtež, a animacije kreću od praznog (fill-mode both) */
.preloader-draw { stroke-dasharray: 1 2; animation: plDraw 0.6s ease both; }
.preloader-road, .preloader-ground { stroke: var(--sage); stroke-width: 3; stroke-linecap: round; }
.preloader-road { animation-duration: 0.75s; animation-delay: 0.05s; animation-timing-function: cubic-bezier(0.45, 0, 0.25, 1); }
.preloader-ground { animation-duration: 0.45s; animation-delay: 0.55s; animation-timing-function: ease-out; }
.preloader-house { stroke: currentColor; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.preloader-roof { animation-duration: 0.4s; animation-delay: 0.7s; }
.preloader-walls { animation-duration: 0.45s; animation-delay: 0.95s; }
.preloader-heart {
  fill: var(--terra);
  transform-box: fill-box;
  transform-origin: 50% 60%;
  animation: plPop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) 1.25s both;
}
@keyframes plDraw { from { stroke-dashoffset: 1; } }
@keyframes plPop { from { transform: scale(0); } }
@keyframes plRise { from { opacity: 0; transform: translateY(10px); } }

.preloader-name {
  margin-top: calc(var(--pl-size) * 0.07);
  font-family: var(--font-display);
  font-size: calc(var(--pl-size) * 0.13);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  animation: plRise 0.6s ease 0.9s both;
}
.preloader-sub {
  margin-top: 0.7em;
  font-size: max(10px, calc(var(--pl-size) * 0.045));
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terra);
  animation: fadeIn 0.6s ease 1.15s both;
}

/* -------------------------------- Gumbi ---------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--terra); color: #fff; box-shadow: 0 8px 20px -8px rgba(201, 111, 74, 0.6); }
.btn-primary:hover { background: var(--terra-dark); box-shadow: 0 12px 26px -10px rgba(168, 88, 56, 0.7); }
.btn-ghost { border-color: var(--green); color: var(--green); background: transparent; }
.btn-ghost:hover { background: var(--green); color: var(--bg); }
.btn-lg { padding: 16px 34px; font-size: 1.06rem; }
.btn-block { width: 100%; }

/* ------------------------------ Info traka ------------------------------- */

.topbar { background: var(--green); color: rgba(250, 246, 239, 0.82); font-size: 0.86rem; }
.topbar-inner { display: flex; align-items: center; justify-content: flex-end; gap: 28px; min-height: 40px; }
.topbar-item { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; white-space: nowrap; }
.topbar-item .icon { width: 15px; height: 15px; color: var(--sun); }
a.topbar-item { transition: color 0.15s ease; }
a.topbar-item:hover { color: #fff; }
.topbar-address { margin-right: auto; overflow: hidden; text-overflow: ellipsis; }

/* ------------------------------ Navigacija ------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 239, 0.9);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, margin-bottom 0.3s var(--ease);
}
/* Kad se zaglavlje smanji, margina nadoknadi razliku pa se sadržaj ispod ne pomakne
   (inače bi skok na odjeljak završio nekoliko piksela previsoko ili prenisko). */
.site-header.scrolled {
  border-color: var(--line); box-shadow: 0 6px 28px -14px rgba(47, 74, 60, 0.22);
  margin-bottom: calc(var(--header-h) - var(--header-h-min));
}

.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; transition: height 0.3s var(--ease); }
.site-header.scrolled .nav { height: var(--header-h-min); }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--green); min-width: 0; }
/* znak (kao na preloaderu): kuća na tlu, put do vrata i srce u kući.
   Kuća zauzima samo gornji dio znaka, zato je znak 48 px. */
.brand-mark { width: 48px; height: 48px; flex-shrink: 0; }
.brand-ground { stroke: var(--sage); }
.brand-road { fill: var(--sage); }
.brand-heart { fill: var(--terra); transform-box: fill-box; transform-origin: 50% 60%; transition: transform 0.3s var(--ease); }
.brand:hover .brand-heart { transform: scale(1.18); }
/* naziv kao na preloaderu: ime doma iznad, vrsta ustanove ispod u terakoti */
.brand-name { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.brand-title { font-family: var(--font-display); font-size: 1.32rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.05; white-space: nowrap; }
.brand-sub { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; line-height: 1.2; text-transform: uppercase; color: var(--terra); white-space: nowrap; }
.brand-sub:empty { display: none; }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a:not(.btn) {
  position: relative; display: block; padding: 8px 13px;
  font-weight: 500; font-size: 0.97rem; text-decoration: none;
  color: var(--ink-soft); border-radius: 8px;
  transition: color 0.15s ease;
}
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px;
  height: 2px; border-radius: 2px; background: var(--terra);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-links a:not(.btn):hover, .nav-links a.active { color: var(--green); }
.nav-links a:not(.btn):hover::after, .nav-links a.active::after { transform: scaleX(1); }

/* Podizbornik „Za obitelji”: otvara se klikom (main.js), a na računalu i prelaskom mišem */
.nav-group { position: relative; }
.nav-group-toggle {
  position: relative; display: flex; align-items: center; gap: 4px;
  padding: 8px 10px 8px 13px; border: 0; border-radius: 8px; background: none; cursor: pointer;
  font: inherit; font-size: 0.97rem; font-weight: 500; color: var(--ink-soft);
  transition: color 0.15s ease;
}
.nav-group-toggle::after {
  content: ""; position: absolute; left: 13px; right: 30px; bottom: 3px;
  height: 2px; border-radius: 2px; background: var(--terra);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-group-toggle .icon { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.nav-group-toggle:hover, .nav-group-toggle.active, .nav-group.open .nav-group-toggle { color: var(--green); }
.nav-group-toggle.active::after { transform: scaleX(1); }
.nav-group.open .nav-group-toggle .icon { transform: rotate(180deg); }
.nav-sub {
  position: absolute; top: calc(100% + 10px); left: 50%; z-index: 10;
  min-width: 220px; padding: 8px; list-style: none;
  border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
  transition: opacity 0.2s ease, transform 0.2s var(--ease), visibility 0.2s ease;
}
.nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* most za miš */
.nav-group.open .nav-sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-sub a:not(.btn) { padding: 10px 14px; border-radius: 10px; white-space: nowrap; transition: color 0.15s ease, background 0.15s ease; }
.nav-sub a:not(.btn)::after { display: none; }
.nav-sub a:not(.btn):hover { background: var(--bg); color: var(--green); }
/* odjeljak koji je trenutno na ekranu: zelena pozadina kao kod kontrolnog popisa */
.nav-sub a:not(.btn).active { background: var(--surface-sage); color: var(--green); }
@media (hover: hover) and (min-width: 1081px) {
  .nav-group:hover .nav-sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .nav-group:hover .nav-group-toggle { color: var(--green); }
  .nav-group:hover .nav-group-toggle .icon { transform: rotate(180deg); }
}
.nav-phone-item { display: none; }
.btn-nav { margin-left: 12px; padding: 11px 22px; font-size: 0.95rem; }

/* Hamburger: crtice su 2 px s razmakom 5 px, pa su im sredine 7 px jedna od druge -
   za X se gornja i donja pomaknu točno toliko do srednje i zakrenu */
.nav-toggle {
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 46px; height: 46px; flex-shrink: 0;
  background: none; border: 0; border-radius: 12px; cursor: pointer;
  transition: background 0.15s ease;
}
.nav-toggle:hover { background: rgba(143, 174, 139, 0.18); }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--green); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0.4); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------- Hero ---------------------------------- */

.hero { position: relative; padding: clamp(44px, 6vw, 88px) 0 clamp(110px, 11vw, 160px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: center; position: relative; z-index: 1; }

.hero-copy h1 { margin-bottom: 20px; }
.hero-copy .lead { margin-bottom: 32px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.hero-trust { display: flex; align-items: center; gap: 14px; color: var(--ink-soft); font-size: 0.95rem; }
.trust-icon {
  display: grid; place-items: center; flex-shrink: 0;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--surface); color: var(--terra);
  box-shadow: var(--shadow-sm); font-size: 1.3rem;
}
.hero-trust strong { color: var(--green); }

.hero-visual { position: relative; isolation: isolate; }
.hero-visual::before {
  content: ""; position: absolute; z-index: -1;
  top: -26px; right: -26px; width: 162px; height: 162px; /* višekratnik od 18 px - samo cijele točke */
  background-image: radial-gradient(rgba(72, 107, 87, 0.45) 2px, transparent 2.5px);
  background-size: 18px 18px;
}
.hero-visual::after {
  content: ""; position: absolute; z-index: -1;
  left: -22px; bottom: -22px; width: 55%; height: 55%;
  border-radius: var(--radius-lg); background: rgba(242, 200, 121, 0.45);
}
.hero-visual img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 7/5; object-fit: cover; width: 100%; height: auto; }
.hero-card {
  position: absolute; left: -26px; bottom: 30px;
  display: flex; align-items: center; gap: 13px;
  background: var(--surface); padding: 14px 22px 14px 14px;
  border-radius: var(--radius); box-shadow: var(--shadow);
  font-size: 0.92rem; line-height: 1.35; color: var(--ink-soft);
  animation: floaty 4s ease-in-out infinite;
}
.hero-card strong { color: var(--green); }
.hero-card-icon {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(201, 111, 74, 0.12); color: var(--terra); font-size: 1.4rem;
}
.hero-chip {
  position: absolute; top: 20px; right: 20px;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.92); color: var(--green);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 8px 15px; border-radius: 999px; box-shadow: var(--shadow-sm);
  font-size: 0.84rem; font-weight: 600;
}
.hero-chip .icon { color: var(--green-soft); font-size: 1.05rem; }
@keyframes floaty { 50% { transform: translateY(-8px); } }

.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; }

/* ------------------------------- Statistika ------------------------------ */

/* flow-root sprječava da se negativna margina kartice "prelije" na sekciju,
   pa kartica stvarno prelazi preko vala na dnu hero sekcije */
.stats { display: flow-root; background: var(--surface); padding: 0 0 clamp(20px, 4vw, 40px); position: relative; z-index: 2; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: -58px; padding: 34px 12px;
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); border: 1px solid rgba(229, 220, 203, 0.7);
  text-align: center;
}
.stat { position: relative; padding: 4px 14px; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 12%; bottom: 12%; width: 1px; background: var(--line); }
.stat-value { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; color: var(--terra); line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--ink-soft); font-size: 0.95rem; margin-top: 4px; }

/* --------------------------------- O nama -------------------------------- */

.about { background: var(--surface); }
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.about-visual { position: relative; isolation: isolate; }
.about-visual::before {
  content: ""; position: absolute; z-index: -1;
  top: -24px; left: -24px; width: 144px; height: 144px;
  background-image: radial-gradient(rgba(201, 111, 74, 0.4) 2px, transparent 2.5px);
  background-size: 18px 18px;
}
.about-visual img { border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.about-badge {
  position: absolute; right: -18px; bottom: -18px;
  display: flex; align-items: center; gap: 10px;
  background: var(--green); color: var(--bg);
  padding: 18px 24px; border-radius: var(--radius);
  box-shadow: var(--shadow); font-size: 0.85rem; line-height: 1.25;
}
.about-badge-num { font-family: var(--font-display); font-size: 2rem; color: var(--sun); }
.about-copy h2 { margin-bottom: 18px; }
.about-copy > p { color: var(--ink-soft); margin-bottom: 24px; }

.checklist { list-style: none; margin-bottom: 30px; }
.checklist li { position: relative; padding: 7px 0 7px 40px; font-weight: 500; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 7px;
  width: 27px; height: 27px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green); color: var(--sun);
  font-size: 0.8rem; font-weight: 700;
}

/* --------------------------------- Usluge -------------------------------- */

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  position: relative; overflow: hidden;
  background: var(--surface); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(229, 220, 203, 0.6);
  transition: box-shadow 0.3s var(--ease);
}
.service-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--terra), var(--sun));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
/* kartice usluga nemaju hover; imaju ga samo klikabilne kartice savjeta */
.tip-card:hover { box-shadow: var(--shadow); }
.tip-card:hover::before { transform: scaleX(1); }
.service-icon {
  display: grid; place-items: center;
  width: 60px; height: 60px; margin-bottom: 20px;
  border-radius: 16px; background: rgba(242, 200, 121, 0.35);
  transition: background 0.3s ease;
}
.tip-card:hover .service-icon { background: rgba(242, 200, 121, 0.55); }
.service-icon svg { width: 34px; height: 34px; display: block; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--ink-soft); font-size: 0.98rem; }

/* -------------------------------- Galerija ------------------------------- */

.gallery { background: var(--surface); }
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(150px, 15vw, 205px); grid-auto-flow: dense;
  gap: 16px;
}
.gallery-item {
  position: relative; border: 0; padding: 0; cursor: pointer;
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface-alt); box-shadow: var(--shadow-sm);
  height: 100%; font: inherit;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery-item::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(47, 74, 60, 0.12); opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item figcaption {
  position: absolute; inset: auto 0 0 0; z-index: 1;
  padding: 30px 16px 12px;
  background: linear-gradient(transparent, rgba(36, 34, 30, 0.75));
  color: #fff; font-size: 0.9rem; font-weight: 500; text-align: left; line-height: 1.35;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery-item:hover figcaption, .gallery-item:focus-visible figcaption { opacity: 1; transform: none; }
.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(6) { grid-column: 3 / span 2; grid-row: span 2; }

@media (hover: none) {
  .gallery-item figcaption { opacity: 1; transform: none; }
}

/* -------------------------------- Lightbox ------------------------------- */

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center; gap: 18px;
  background: rgba(31, 41, 35, 0.94);
  padding: 40px;
  animation: fadeIn 0.25s ease;
}
.lightbox[hidden] { display: none; }
/* prazno mjesto scrollbara (scrollbar-gutter na html) u boji zatamnjenja preko --bg */
html:has(.lightbox:not([hidden])) { background: rgb(44, 53, 47); }
.lightbox figure { max-width: min(1000px, 84vw); text-align: center; }
.lightbox img { max-height: 76vh; width: auto; max-width: 100%; margin-inline: auto; border-radius: 12px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6); }
.lightbox img.swap { animation: fadeIn 0.3s ease; }
.lightbox figcaption { color: var(--bg); margin-top: 14px; font-size: 1rem; }
.lightbox button {
  background: #3E4C43; color: var(--bg); /* puna boja - ništa iza ne prosijava */
  border: 0; border-radius: 50%; width: 52px; height: 52px;
  font-size: 1.8rem; line-height: 1; cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}
.lightbox button:hover { background: #56645B; transform: scale(1.06); }
body.lb-open .mobile-cta { transform: translateY(110%); }
.lightbox-close { position: absolute; top: 22px; right: 26px; }
.lightbox-counter {
  position: absolute; top: 34px; left: 32px;
  color: rgba(250, 246, 239, 0.7); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}
@keyframes fadeIn { from { opacity: 0; } }

/* --------------------------------- Cjenik -------------------------------- */

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
  position: relative;
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 38px 32px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  border: 2px solid transparent;
  transition: box-shadow 0.3s var(--ease);
}
.price-card:hover { box-shadow: var(--shadow); }
.price-card.featured {
  background: var(--green); color: rgba(250, 246, 239, 0.9);
  border-color: var(--green); box-shadow: var(--shadow-lg);
}
.price-flag {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  background: var(--terra); color: #fff;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 8px 18px -8px rgba(201, 111, 74, 0.7);
}
.price-card h3 { margin-bottom: 6px; }
.price-desc { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 22px; min-height: 3em; }
.price-value { font-family: var(--font-display); font-size: 2.9rem; font-weight: 600; color: var(--green); line-height: 1; }
.price-unit { color: var(--ink-soft); font-size: 0.9rem; margin: 4px 0 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.price-features { list-style: none; margin-bottom: 28px; flex: 1; }
.price-features li { position: relative; padding: 7px 0 7px 30px; font-size: 0.95rem; }
.price-features li::before {
  content: "✓"; position: absolute; left: 0; top: 9px;
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(201, 111, 74, 0.13); color: var(--terra);
  font-size: 0.7rem; font-weight: 700;
}
.price-card.featured h3 { color: #fff; }
.price-card.featured .price-desc, .price-card.featured .price-unit { color: rgba(250, 246, 239, 0.7); }
.price-card.featured .price-unit { border-color: rgba(250, 246, 239, 0.16); }
.price-card.featured .price-value { color: var(--sun); }
.price-card.featured .price-features li::before { background: rgba(242, 200, 121, 0.18); color: var(--sun); }
.price-card.featured .btn-primary { box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.45); }
.pricing-note { text-align: center; margin-top: 38px; color: var(--ink-soft); font-size: 0.92rem; }

@media (min-width: 1021px) {
  .price-card.featured { transform: translateY(-14px); }
}

/* ----------------------------- Četiri koraka ------------------------------ */
/* Preuzeto iz dizajna 3 (Obitelj, uklonjen). Krugovi s brojevima pokrivaju isprekidanu crtu. */

.steps { background: var(--surface-sage); }
.steps-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; }
.steps-grid::before {
  content: ""; position: absolute; top: 31px; left: 12%; right: 12%; height: 3px;
  background: repeating-linear-gradient(90deg, var(--sage) 0 10px, transparent 10px 18px);
}
.steps-grid li { position: relative; padding: 0 10px; text-align: center; }
.steps-no {
  display: grid; place-items: center;
  width: 64px; height: 64px; margin: 0 auto 20px;
  border: 3px solid var(--green); border-radius: 50%; background: var(--surface);
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--green);
}
.steps-grid li:last-child .steps-no { border-color: var(--sun); background: var(--sun); color: var(--green-dark); }
.steps-grid h3 { margin-bottom: 8px; }
.steps-grid p { font-size: 0.98rem; color: var(--ink-soft); }

/* ----------------------------- Dobro je znati ----------------------------- */
/* Preuzeto iz dizajna 6 (Nordijski). Kartice su kao kartice usluga; cijela je
   kartica klikabilna (gumb „Pročitajte” ima ::after preko kartice). */

.tips-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tip-card { display: flex; flex-direction: column; align-items: flex-start; cursor: pointer; }
.tip-card p { flex: 1; }
/* obrub samo kod navigacije tipkovnicom, ne na klik mišem */
.tip-card:has(.tip-more:focus-visible) { outline: 3px solid var(--terra); outline-offset: 3px; }
.tip-more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  border: 0; background: none; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--terra-dark);
}
.tip-more::after { content: ""; position: absolute; inset: 0; }
.tip-more:focus-visible { outline: none; }

.tip-dialog {
  width: min(560px, calc(100vw - 32px));
  margin: auto; /* * { margin: 0 } bi inače poništio centriranje prozorčića */
  padding: 38px 34px 32px;
  border: 0; border-radius: var(--radius-lg);
  background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.tip-dialog::backdrop { background: rgba(36, 58, 47, 0.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.tip-dialog[open] { animation: tipPop 0.3s var(--ease); }
@keyframes tipPop { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.tip-dialog h3 { font-size: 1.6rem; padding-right: 40px; }
.tip-close {
  position: absolute; top: 14px; right: 14px;
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: var(--surface-alt); color: var(--green);
  cursor: pointer; transition: background 0.2s ease;
}
.tip-close:hover { background: var(--line); }
.tip-close .icon { width: 20px; height: 20px; }
.ticks { list-style: none; display: grid; gap: 12px; margin-top: 18px; }
.ticks li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink-soft); }
.ticks li::before {
  content: ""; flex-shrink: 0; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%;
  background: rgba(143, 174, 139, 0.3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F4A3C' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 12.5 3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.tip-foot { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.95rem; color: var(--ink-soft); }
.tip-foot a { color: var(--terra-dark); font-weight: 600; }

/* ---------------------------- Kontrolni popis ----------------------------- */
/* Preuzeto iz dizajna 5 (Mediteran). */

.check-section { background: var(--surface-sage); } /* ne .checklist - to je popis u „O nama” */
.check-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.check-aside { position: sticky; top: calc(var(--header-h) + 30px); }
.check-aside h2 { margin-bottom: 18px; }
.check-intro { color: var(--ink-soft); }

.check-progress { display: flex; align-items: center; gap: 14px; margin: 26px 0; padding: 14px 18px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.check-progress p { color: var(--ink-soft); }
.check-progress strong { color: var(--green); font-size: 1.1rem; }
.check-ring { width: 52px; height: 52px; flex-shrink: 0; transform: rotate(-90deg); }
.check-ring circle { fill: none; stroke: var(--surface-alt); stroke-width: 5; }
/* opseg kruga: 2π · 19 ≈ 119.4 */
.check-ring .check-ring-val { stroke: var(--green); stroke-linecap: round; stroke-dasharray: 119.4; stroke-dashoffset: 119.4; transition: stroke-dashoffset 0.5s var(--ease), opacity 0.3s ease; }
.check-ring.empty .check-ring-val { opacity: 0; }
.check-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.check-list { display: grid; gap: 18px; }
.check-list fieldset { border: 0; padding: 22px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.check-list legend {
  float: left; width: 100%;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; color: var(--green);
}
.check-list legend .icon { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: rgba(201, 111, 74, 0.12); color: var(--terra); }
.check-list label { clear: both; display: flex; gap: 14px; padding: 13px 8px; border-top: 1px solid var(--line); border-radius: 10px; cursor: pointer; transition: background 0.2s ease; }
.check-list legend + label { border-top: 0; }
.check-list label:hover { background: var(--bg); }
.check-list input {
  appearance: none; -webkit-appearance: none;
  flex-shrink: 0; width: 26px; height: 26px; margin-top: 2px;
  border: 2px solid #CDBFAE; border-radius: 8px; background: var(--surface);
  cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease;
}
.check-list input:checked {
  border-color: var(--green);
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5.5 12.5 4 4L18.5 8'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.check-list span { display: flex; flex-direction: column; gap: 2px; font-size: 0.95rem; color: var(--ink-soft); }
.check-list strong { font-size: 1.02rem; color: var(--ink); }
.check-list input:checked + span strong { color: var(--green); }

/* list za ispis gradi main.js; na ekranu se ne vidi (pravila za ispis su na dnu) */
.print-sheet { display: none; }

/* ----------------------------- Česta pitanja ------------------------------ */
/* Preuzeto iz dizajna 3 (Obitelj, uklonjen). Rasklapanje radi sam preglednik (<details>). */

.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.faq-aside { position: sticky; top: calc(var(--header-h) + 30px); }
.faq-aside h2 { margin-bottom: 16px; }
.faq-intro { margin-bottom: 24px; color: var(--ink-soft); }
.faq-list { display: grid; gap: 12px; }
.faq-list details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: box-shadow 0.2s ease, border-color 0.2s ease; }
.faq-list details[open] { border-color: transparent; box-shadow: var(--shadow); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; list-style: none; cursor: pointer;
  font-size: 1.06rem; font-weight: 600; line-height: 1.35; color: var(--green);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon {
  flex-shrink: 0; width: 32px; height: 32px; padding: 6px; border-radius: 50%;
  background: rgba(143, 174, 139, 0.25); color: var(--green);
  transition: transform 0.25s var(--ease), background 0.2s ease;
}
.faq-list details[open] summary .icon { transform: rotate(180deg); background: var(--sun); }
.faq-list details p { padding: 0 22px 20px; color: var(--ink-soft); }

/* ------------------------------- Naručivanje ------------------------------ */

.booking { background: var(--surface); position: relative; overflow: hidden; overflow: clip; }
.booking-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: start; position: relative; z-index: 1; }
.booking-copy { position: sticky; top: 110px; }
.booking-copy h2 { margin-bottom: 18px; }
.booking-copy > p { color: var(--ink-soft); margin-bottom: 26px; }
.h2-icon { color: var(--terra); stroke-width: 1.8; vertical-align: -0.08em; width: 0.9em; height: 0.9em; }

.info-box {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface-alt); border-left: 4px solid var(--terra);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px; margin-bottom: 16px;
}
.info-box-icon {
  display: grid; place-items: center; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--surface); color: var(--terra); font-size: 1.15rem;
  box-shadow: var(--shadow-sm);
}
.info-box strong { color: var(--green); }
.info-box p { color: var(--ink-soft); margin-top: 2px; font-size: 0.97rem; }
.phone-link { color: var(--terra); font-weight: 600; text-decoration: none; }
.phone-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------- Forme ---------------------------------- */

.card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.form-card { padding: 38px 36px; border: 1px solid rgba(229, 220, 203, 0.7); }
.form-card h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.form-card h3 .icon {
  width: 42px; height: 42px; padding: 10px; border-radius: 12px;
  background: rgba(201, 111, 74, 0.12); color: var(--terra);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label, .field-label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; min-height: 50px;
  border: 1.5px solid var(--line); border-radius: 12px;
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--bg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #D6CAB3; }
.field textarea { resize: vertical; min-height: 0; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--sage); background: var(--surface);
  box-shadow: 0 0 0 4px rgba(143, 174, 139, 0.22);
}
.field input.invalid, .field select.invalid, .field textarea.invalid { border-color: #C0392B; background: #FFF8F6; }

/* skriveno polje-zamka za spam botove */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-fineprint { margin-top: 12px; font-size: 0.85rem; color: var(--ink-soft); text-align: center; }

.form-status { margin-top: 14px; border-radius: 12px; font-weight: 500; font-size: 0.95rem; }
.form-status.ok, .form-status.err { padding: 14px 18px; animation: fadeIn 0.3s ease; }
.form-status.ok { background: rgba(143, 174, 139, 0.22); color: var(--green); }
.form-status.err { background: rgba(192, 57, 43, 0.12); color: #96281B; }

/* ------------------------ Termin posjeta (kalendar) ------------------------ */
/* Kalendar i gumbi za vrijeme umjesto preglednikova polja za datum (mm/dd/yyyy,
   skočni kalendar koji ne prati dizajn). Dane slaže main.js. Kad u obrascu ima
   mjesta, vrijeme stoji desno od kalendara, inače ispod njega (container query). */

#booking-form { container-type: inline-size; }

.picker { display: grid; gap: 16px; margin-bottom: 24px; }
.picker-part { display: flex; flex-direction: column; min-width: 0; }
.cal, .slots {
  flex: 1;
  border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.cal:has(> input.invalid), .slots:has(input.invalid) { border-color: #C0392B; background: #FFF8F6; }

.cal { display: flex; flex-direction: column; padding: 8px 10px 10px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.cal-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; color: var(--green); }
.cal-title::first-letter { text-transform: uppercase; }
.cal-nav {
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 0; border-radius: 50%; background: none; color: var(--green);
  font-size: 1.15rem; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.cal-nav:hover:not(:disabled) { background: var(--surface); color: var(--terra); box-shadow: var(--shadow-sm); }
.cal-nav:disabled { opacity: 0.3; cursor: default; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-dow span { padding: 4px 0; text-align: center; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.cal-grid { flex: 1; grid-auto-rows: minmax(40px, 1fr); }
.cal-day {
  position: relative; border: 0; border-radius: 10px; background: none;
  font: 500 0.95rem/1 var(--font-body); color: var(--ink); font-variant-numeric: tabular-nums;
  cursor: pointer; transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
/* hover ne smije prekriti odabrani dan (bijela slova na svijetloj pozadini); na mobitelu
   „hover” ostane na dodirnutom danu, pa vrijedi samo za miš */
@media (hover: hover) {
  .cal-day:hover:not(:disabled, [aria-pressed="true"]) { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--sage); }
}
.cal-day:disabled { color: #BDB3A3; cursor: default; }
.cal-day.today::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--terra); }
.cal-day[aria-pressed="true"] { background: var(--green); color: #fff; font-weight: 700; box-shadow: 0 6px 14px -6px rgba(47, 74, 60, 0.7); }
.cal-day:focus-visible { outline-offset: 1px; }

.slots { display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 12px; padding: 12px; }
.slots-label { margin-bottom: 6px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.slot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.slot { position: relative; display: block; }
.slot input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.slot span {
  display: grid; place-items: center; height: 44px;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface);
  font-size: 0.95rem; font-weight: 600; color: var(--green); font-variant-numeric: tabular-nums;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.slot:hover span { border-color: var(--sage); }
.slot input:checked + span { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 6px 14px -6px rgba(47, 74, 60, 0.7); }
.slot input:focus-visible + span { outline: 3px solid var(--terra); outline-offset: 2px; }

.picker-summary {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 12px;
  background: var(--surface-alt); color: var(--ink-soft);
  font-size: 0.93rem; line-height: 1.4;
}
.picker-summary .icon { font-size: 1.1rem; color: var(--terra); }
.picker-summary strong { font-weight: 600; color: var(--ink); }
.picker-summary.done { background: rgba(143, 174, 139, 0.22); color: var(--green); }
.picker-summary.done strong, .picker-summary.done .icon { color: var(--green); }

@container (min-width: 480px) {
  .picker { grid-template-columns: 1fr 168px; }
  .picker-summary { grid-column: 1 / -1; }
  .slots { grid-template-columns: 1fr; }
  /* i mjesec od šest tjedana stane u visinu stupca s vremenom, a kraći se
     mjeseci rastegnu do nje - kalendar nema prazan red i visina ne skače */
  .cal-grid { grid-auto-rows: minmax(36px, 1fr); }
}

/* -------------------------------- Kontakt --------------------------------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 5vw, 64px); align-items: start; }
.contact-item { display: flex; gap: 16px; margin-bottom: 22px; align-items: flex-start; }
.contact-item strong { color: var(--green); }
.contact-icon {
  display: grid; place-items: center; flex-shrink: 0;
  width: 50px; height: 50px; border-radius: 14px;
  background: var(--surface); color: var(--terra); box-shadow: var(--shadow-sm);
  font-size: 1.3rem;
}
.contact-item p { color: var(--ink-soft); font-size: 0.97rem; }

/* Karta: do klika je samo ilustracija i Googleu se ništa ne šalje; klik je
   zamijeni pravom Google kartom (iframe iste veličine, pa se ništa ne pomakne). */
.map-card { margin-top: 10px; }
.map-preview, .map-embed {
  display: block; width: 100%; aspect-ratio: 400 / 220;
  border: 0; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.map-preview {
  position: relative; background: #E7EFE2; cursor: pointer;
  transition: box-shadow 0.3s var(--ease);
}
.map-preview:hover { box-shadow: var(--shadow); }
.map-preview > svg { display: block; width: 100%; height: 100%; }
.map-cta {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 10px 18px; border-radius: 999px;
  background: var(--green); color: #fff; box-shadow: var(--shadow-sm);
  font-family: var(--font-body); font-size: 0.92rem; font-weight: 600;
  transition: background 0.2s ease;
}
.map-preview:hover .map-cta { background: var(--terra); }
.map-note { margin-top: 8px; font-size: 0.82rem; color: var(--ink-soft); }
.map-card.loaded .map-note { display: none; }
.map-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
/* gumb je širok koliko mu tekst treba; kad oba ne stanu u red, drugi prelazi ispod preko cijele širine */
.map-actions .btn { flex: 1 1 auto; white-space: nowrap; }

/* -------------------------------- Podnožje -------------------------------- */

.site-footer { background: var(--green); color: rgba(250, 246, 239, 0.82); position: relative; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1.1fr;
  gap: 40px; padding: clamp(56px, 6vw, 84px) 0 44px;
}
.brand-footer { color: var(--bg); align-items: flex-start; }
.brand-footer .brand-mark { color: var(--sun); }
.brand-footer .brand-sub { color: var(--sun); } /* sitan tekst u terakoti slabo se čita na zelenoj podlozi */
.footer-tag { margin-top: 12px; font-size: 0.92rem; padding-left: 59px; color: rgba(250, 246, 239, 0.65); } /* znak 48 px + razmak 11 px */
.site-footer h4 { color: var(--sun); font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; font-size: 0.95rem; }
.footer-links a { color: inherit; text-decoration: none; transition: color 0.15s ease; }
.footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { margin-top: 0.3em; color: var(--sun); opacity: 0.85; }
.footer-contact a { word-break: break-word; }
.footer-visit { font-size: 0.93rem; margin-bottom: 18px; }
.footer-bottom { border-top: 1px solid rgba(250, 246, 239, 0.14); padding: 20px 0; font-size: 0.86rem; background: var(--green-dark); }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-admin { color: rgba(250, 246, 239, 0.5); text-decoration: none; }
.footer-admin:hover { color: var(--bg); }

/* ----------------------- Natrag na vrh / mobilna traka ---------------------- */

.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  display: grid; place-items: center;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--surface); color: var(--green); border: 1px solid var(--line); cursor: pointer;
  font-size: 1.25rem; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s var(--ease), background 0.2s ease, color 0.2s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--terra); border-color: var(--terra); color: #fff; }

.mobile-cta { display: none; }

/* ------------------------------- Animacije -------------------------------- */

/* Pomak ide preko translate, a ne transform, pa se zbraja s vlastitim transformom elementa.
   S transformom bi .reveal.visible poništio podizanje istaknute kartice cjenika, a kad JS
   skine .reveal, kartica bi naglo skočila 14px gore. */
.reveal { opacity: 0; translate: 0 26px; transition: opacity 0.7s var(--ease), translate 0.7s var(--ease); }
.reveal.visible { opacity: 1; translate: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; translate: none; transition: none; }
  .hero-card { animation: none; }
  #preloader * { animation: none !important; } /* odmah gotov crtež, bez iscrtavanja */
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ------------------------------- Responzivno ------------------------------ */

@media (max-width: 1080px) {
  .topbar { display: none; }
  :root { --header-h: 72px; --header-h-min: 64px; }

  /* Mobilni izbornik prekriva cijeli ekran i uvlači se slijeva; znak i X ostaju iznad njega.
     Zaglavlje je ovdje uvijek na vrhu ekrana (topbar je skriven), pa izbornik kreće od njegova vrha. */
  .brand, .nav-toggle { position: relative; z-index: 2; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 0; left: 0; z-index: 1;
    width: 100vw; height: 100vh; height: 100dvh;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg);
    padding: calc(var(--header-h) + 12px) 4vw calc(28px + env(safe-area-inset-bottom));
    overflow-y: auto; overscroll-behavior: contain;
    visibility: hidden; transform: translateX(-100%);
    transition: transform 0.4s var(--ease), visibility 0.4s;
  }
  /* crta ispod zaglavlja, kao kad se stranica pomakne */
  .nav-links::before {
    content: ""; position: absolute; left: 0; right: 0; top: var(--header-h);
    border-top: 1px solid var(--line);
  }
  .site-header.scrolled .nav-links::before { top: var(--header-h-min); }
  .nav-links.open { visibility: visible; transform: none; }
  html.menu-open { overflow: hidden; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child, .nav-links .nav-phone-item { border-bottom: 0; }
  .nav-links a:not(.btn) {
    display: flex; align-items: center; justify-content: space-between;
    padding: 15px 6px; font-size: 1.08rem; color: var(--ink); border-radius: 0;
  }
  .nav-links a:not(.btn)::after {
    content: "›"; position: static; height: auto; background: none;
    transform: none; color: var(--terra); font-size: 1.5rem; line-height: 1;
  }
  .nav-links a.active { color: var(--terra); }
  .nav-phone-item { display: block; }
  .nav-links .nav-phone-item a.nav-phone {
    justify-content: flex-start; gap: 10px; margin-top: 6px;
    color: var(--green); font-weight: 600;
  }
  .nav-links .nav-phone-item a.nav-phone::after { content: none; }
  /* „Za obitelji” se u mobilnom izborniku rasklapa ispod sebe */
  .nav-group-toggle {
    width: 100%; justify-content: space-between;
    padding: 15px 6px; border-radius: 0; font-size: 1.08rem; color: var(--ink);
  }
  .nav-group-toggle::after { content: none; }
  .nav-group-toggle .icon { width: 22px; height: 22px; color: var(--terra); }
  .nav-group-toggle.active { color: var(--terra); }
  .nav-sub {
    position: static; display: none; min-width: 0; padding: 0 0 10px 14px;
    border-radius: 0; background: none; box-shadow: none;
    opacity: 1; visibility: visible; transform: none;
  }
  .nav-sub::before { content: none; }
  .nav-group.open .nav-sub { display: block; transform: none; }
  .nav-links .nav-sub li { border-bottom: 0; }
  .nav-links .nav-sub a:not(.btn) { padding: 11px 6px; font-size: 1rem; color: var(--ink-soft); }
  .nav-links .nav-sub a.active { color: var(--terra); background: none; }
  .nav-phone .icon { color: var(--terra); }
  .btn-nav { margin: 8px 0 0; width: 100%; padding: 15px 22px; font-size: 1.02rem; }
}

@media (max-width: 1020px) {
  .services-grid, .tips-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(150px, 28vw, 240px); }
  .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .gallery-item:nth-child(6) { grid-column: span 2; grid-row: span 1; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; gap: 34px; }
  .price-card.featured { order: -1; }
  .price-desc { min-height: 0; }
}

@media (max-width: 880px) {
  .hero-grid, .about-grid, .booking-grid, .contact-grid, .check-grid, .faq-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps-grid::before { display: none; }
  .hero-visual { max-width: 600px; }
  .about-visual { max-width: 600px; }
  .booking-copy, .check-aside, .faq-aside { position: static; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); padding: 8px; }
  .stat { padding: 22px 10px; }
  .stat + .stat::before { content: none; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .to-top { display: none; }

  .mobile-cta {
    display: grid; grid-template-columns: 1fr 1.45fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(250, 246, 239, 0.95);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -12px 30px -18px rgba(47, 74, 60, 0.35);
    transform: translateY(110%);
    transition: transform 0.35s var(--ease);
  }
  .mobile-cta.show { transform: none; }
  .mobile-cta a {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    min-height: 50px; border-radius: 14px;
    font-weight: 600; font-size: 1rem; text-decoration: none;
  }
  .mobile-cta .icon { font-size: 1.15rem; }
  .mobile-cta-call { background: var(--surface); color: var(--green); border: 1.5px solid var(--green); }
  .mobile-cta-book { background: var(--terra); color: #fff; box-shadow: 0 8px 18px -8px rgba(201, 111, 74, 0.7); }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { width: auto; margin-inline: 18px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 34px; }
  .lead { font-size: 1.06rem; }

  .brand-mark { width: 40px; height: 40px; }
  .brand-title { font-size: 1.15rem; }
  .brand-sub { font-size: 0.62rem; letter-spacing: 0.14em; }

  .hero { padding: 28px 0 96px; }
  .hero-copy h1 { margin-bottom: 16px; }
  .hero-copy .lead { margin-bottom: 26px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 26px; }
  .hero-actions .btn { width: 100%; }
  .hero-visual::before { top: -14px; right: -10px; width: 108px; height: 108px; }
  .hero-visual::after { left: -10px; bottom: -12px; }
  .hero-visual img { aspect-ratio: 4/3; }
  .hero-card { left: 12px; bottom: 12px; padding: 10px 16px 10px 10px; font-size: 0.85rem; gap: 10px; }
  .hero-card-icon { width: 38px; height: 38px; font-size: 1.2rem; }
  .hero-chip { top: 12px; right: 12px; padding: 6px 12px; font-size: 0.78rem; }
  .hero-trust { font-size: 0.9rem; }

  .stats-grid { margin-top: -50px; border-radius: var(--radius); }
  .stat { padding: 18px 8px; }
  .stat-label { font-size: 0.86rem; line-height: 1.35; }

  .about-badge { right: 12px; bottom: -16px; padding: 12px 18px; }
  .about-badge-num { font-size: 1.6rem; }
  .about-visual::before { top: -14px; left: -10px; width: 90px; height: 90px; }
  .about-copy .btn { width: 100%; }

  .services-grid, .tips-grid { grid-template-columns: 1fr; gap: 14px; }
  .tip-dialog { padding: 30px 22px 24px; }
  .service-card {
    display: grid; grid-template-columns: 52px 1fr; column-gap: 16px;
    padding: 22px 20px;
  }
  .service-icon { grid-row: span 2; width: 52px; height: 52px; margin: 0; border-radius: 14px; }
  .service-icon svg { width: 30px; height: 30px; }
  .service-card h3 { font-size: 1.2rem; margin-bottom: 4px; }
  .service-card p { font-size: 0.94rem; }

  .gallery-grid { grid-auto-rows: 128px; gap: 10px; }
  .gallery-item { border-radius: 14px; }
  .gallery-item:nth-child(6) { grid-row: span 2; }
  .gallery-item figcaption { padding: 22px 10px 8px; font-size: 0.76rem; }

  .price-card { padding: 34px 24px 28px; }
  .price-value { font-size: 2.6rem; }

  .info-box { padding: 16px 16px; gap: 14px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 28px 20px; border-radius: var(--radius); }
  .form-card h3 { font-size: 1.25rem; }

  .contact-item { margin-bottom: 18px; }
  .contact-icon { width: 44px; height: 44px; font-size: 1.15rem; }
  .map-cta { bottom: 12px; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; padding-top: 52px; }
  .footer-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
  .site-footer h4 { margin-bottom: 12px; }
  .footer-tag { padding-left: 51px; } /* znak 40 px + razmak 11 px */
  .check-list fieldset { padding: 16px 12px; }
  /* koraci jedan ispod drugoga, broj lijevo od teksta */
  .steps-grid { grid-template-columns: 1fr; row-gap: 26px; }
  .steps-grid li { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; padding: 0; text-align: left; }
  .steps-no { grid-row: span 2; width: 52px; height: 52px; margin: 0; font-size: 1.25rem; }
  .faq-list summary { padding: 16px; }
  .faq-list details p { padding: 0 16px 18px; }
  .footer-bottom { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 6px; }

  .lightbox { flex-direction: column; padding: 70px 12px 100px; }
  .lightbox figure { max-width: 100%; }
  .lightbox img { max-height: 68vh; }
  .lightbox-close { top: 14px; right: 14px; }
  .lightbox-counter { top: 28px; left: 20px; }
  .lightbox-prev, .lightbox-next { position: absolute; bottom: 28px; }
  .lightbox-prev { left: calc(50% - 64px); }
  .lightbox-next { right: calc(50% - 64px); }
}

/* --------------------------------- Ispis ---------------------------------- */
/* Gumb „Ispišite popis” doda klasu .print-checklist na <html>: tada se ispisuje
   samo list s kontrolnim popisom. Običan ispis stranice (Ctrl+P) ostaje kakav je. */

@media print {
  html.print-checklist body { background: #fff; }
  html.print-checklist body > :not(.print-sheet) { display: none !important; }
  html.print-checklist .print-sheet { display: block; color: #000; font: 11.5pt/1.45 var(--font-body); }
  .print-sheet h1, .print-sheet h2 { color: #000; font-family: var(--font-display); }
  .print-sheet h1 { font-size: 20pt; margin: 0 0 4pt; }
  .print-sheet h2 { font-size: 13pt; margin: 16pt 0 6pt; }
  .print-sheet ul { list-style: none; }
  .print-sheet li { display: flex; gap: 10pt; padding: 6pt 0; border-bottom: 0.5pt solid #ccc; break-inside: avoid; }
  .print-sheet .box { font-size: 15pt; line-height: 1; }
  .print-sheet li p { margin-top: 2pt; color: #444; }
  .print-sheet .print-foot { margin-top: 18pt; font-size: 10pt; color: #444; }
}
