/* ============================================================
   Travka — glavni stylesheet
   Mobile-first | Vanilla CSS | v1.0
   Sadržaj:
   01 Dizajn tokeni (varijable)
   02 Fontovi (@font-face)
   03 Reset i baza
   04 Tipografske i pomoćne klase
   05 Layout (container, section)
   06 Gumbi
   07 Header i navigacija
   08 Hero (naslovnica)
   09 Rub trave (SVG razdjelnik)
   10 Usluge (kartice + istaknuta laser kartica)
   11 O nama (slika, checklista, strojni park, brojke)
   12 Kako radimo (koraci)
   13 Galerija (preview + puna galerija)
   14 CTA traka
   15 Footer
   16 Pod-stranice (page-hero, detalji usluga)
   17 Kontakt (forma + info)
   18 Pravne stranice (prose)
   19 404
   20 Lightbox
   21 Cookie banner
   22 Natrag na vrh
   23 Reveal animacije
   24 Pristupačnost i reduced motion
   ============================================================ */


/* ============ 01 DIZAJN TOKENI ============ */
:root {
  /* Boje — tema: pokošeno polje */
  --pine-950: #0C2415;
  /* najtamnija borova — footer, overlay */
  --pine-900: #123723;
  /* tamna borova — tamne sekcije, header scroll tekst */
  --pine-700: #1C5234;
  /* srednja zelena — hover, ikone */
  --grass-600: #76A82C;
  /* trava tamnija — hover akcenta */
  --grass-500: #8DBE3C;
  /* glavni akcent — svježe pokošena trava */
  --grass-300: #C9E394;
  /* svijetla trava — detalji na tamnom */
  --field-50: #F3F5EB;
  /* pozadina stranice — jutarnje svjetlo na travi */
  --field-100: #E8EDD9;
  /* sekundarna pozadina sekcija */
  --ink: #15211A;
  /* tekst — zeleno-crna */
  --ink-soft: #4E5C50;
  /* sekundarni tekst */
  --line: #D9DFC9;
  /* obrubi, linije */
  --white: #FFFFFF;
  --error: #B3422E;
  --success: #2F7A45;

  /* Tipografija */
  --font-display: 'ZT Nature', Georgia, 'Times New Roman', serif;
  --font-script: 'Merienda', 'Segoe Script', cursive;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --fs-display: clamp(2.5rem, 6vw + 1rem, 4.6rem);
  /* h1 hero */
  --fs-h2: clamp(1.9rem, 3.2vw + .8rem, 3rem);
  --fs-h3: clamp(1.25rem, 1vw + 1rem, 1.5rem);
  --fs-lead: clamp(1.06rem, .4vw + 1rem, 1.2rem);
  --fs-body: 1rem;
  --fs-small: .875rem;

  /* Layout */
  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --radius: 18px;
  --radius-sm: 12px;

  /* Efekti */
  --shadow-sm: 0 2px 10px rgba(18, 55, 35, .07);
  --shadow-md: 0 14px 34px rgba(18, 55, 35, .12);
  --shadow-lg: 0 24px 60px rgba(12, 36, 21, .22);
  --ease: cubic-bezier(.22, .9, .3, 1);
  --header-h: 78px;
}


/* ============ 02 FONTOVI ============ */
/* NAPOMENA: nazivi datoteka moraju se 100% poklapati (Linux server razlikuje
   velika/mala slova!). Datoteke se nalaze u /fonts/ mapi. */
@font-face {
  font-family: 'ZT Nature';
  src: url('../fonts/ZTNature-Bold.woff2') format('woff2'),
    url('../fonts/ZTNature-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Merienda';
  src: url('../fonts/Merienda.woff2') format('woff2'),
    url('../fonts/Merienda.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


/* ============ 03 RESET I BAZA ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--field-50);
  overflow-x: hidden;
}

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

img {
  height: auto;
}

a {
  color: var(--pine-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--grass-600);
}

ul[class],
ol[class] {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  color: inherit;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--grass-500);
  color: var(--pine-950);
}

:focus-visible {
  outline: 3px solid var(--grass-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link za pristupačnost */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--pine-900);
  color: var(--white);
  padding: .8rem 1.4rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 300;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
  color: var(--white);
}

/* Vizualno skriveno (čitači zaslona) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}


/* ============ 04 TIPOGRAFIJA I POMOĆNE KLASE ============ */
h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: .01em;
  color: var(--pine-900);
  text-wrap: balance;
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

.lead {
  font-size: var(--fs-lead);
  color: var(--ink-soft);
  max-width: 62ch;
}

/* Rukopisni naglasak iznad naslova */
.eyebrow {
  display: inline-block;
  font-family: var(--font-script);
  font-size: clamp(1.3rem, 1.2vw + 1rem, 1.7rem);
  color: var(--grass-600);
  margin-bottom: .5rem;
  transform: rotate(-1.5deg);
}

.eyebrow--light {
  color: var(--grass-300);
}

.section-head {
  max-width: 680px;
  margin-bottom: clamp(2.2rem, 5vw, 3.5rem);
}

.section-head h2 {
  margin-bottom: .8rem;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.text-light {
  color: var(--field-50);
}


/* ============ 05 LAYOUT ============ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}

.section--tint {
  background: var(--field-100);
}

.section--dark {
  background: var(--pine-900);
}

.section--dark h2,
.section--dark h3 {
  color: var(--field-50);
}

.section--dark p {
  color: var(--grass-300);
}


/* ============ 06 GUMBI ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
  will-change: transform;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn .btn__arrow {
  transition: transform .25s var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

.btn--primary {
  background: var(--grass-500);
  color: var(--pine-950);
  box-shadow: 0 8px 22px rgba(141, 190, 60, .35);
}

.btn--primary:hover {
  background: var(--grass-600);
  color: var(--pine-950);
}

.btn--ghost {
  border-color: rgba(243, 245, 235, .55);
  color: var(--field-50);
}

.btn--ghost:hover {
  border-color: var(--grass-300);
  color: var(--grass-300);
  background: rgba(255, 255, 255, .06);
}

.btn--outline {
  border-color: var(--pine-700);
  color: var(--pine-700);
}

.btn--outline:hover {
  background: var(--pine-700);
  color: var(--field-50);
}

.btn--sm {
  padding: .65rem 1.25rem;
  font-size: .92rem;
}


/* ============ 07 HEADER I NAVIGACIJA ============ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  color: var(--field-50);
  transition: background-color .5s var(--ease), box-shadow .5s, color .5s, height .5s;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
}

/* Stanje nakon skrola */
.header.is-scrolled {
  background: rgba(255, 255, 255, 0.151);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  color: var(--pine-900);
  height: 66px;
}

.logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: .02em;
  color: currentColor;
  text-decoration: none;
  z-index: 120;
}

.logo:hover {
  color: currentColor;
}

/* Vlat trave koja "raste" iznad prvog slova — boja se prilagođava (currentColor) */
.logo__sprout {
  position: absolute;
  left: 1.12em;
  bottom: 70%;
  width: .68em;
  height: .82em;
  transform: translateY(34%);
  overflow: visible;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  position: relative;
  font-weight: 600;
  font-size: .98rem;
  color: currentColor;
  text-decoration: none;
  padding: .4rem 0;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--grass-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}

.nav__link:hover {
  color: currentColor;
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.header__cta {
  display: none;
}

/* Hamburger */
.burger {
  position: relative;
  z-index: 120;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.burger__lines,
.burger__lines::before,
.burger__lines::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .25s;
}

.burger__lines {
  position: relative;
}

.burger__lines::before {
  position: absolute;
  top: -7px;
}

.burger__lines::after {
  position: absolute;
  top: 7px;
}

body.nav-open .burger__lines {
  background: transparent;
}

body.nav-open .burger__lines::before {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .burger__lines::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobilna navigacija — puni zaslon */
@media (max-width:899.98px) {
  .nav {
    position: fixed;
    inset: 0;
    background: var(--pine-950);
    display: grid;
    place-items: center;
    transform: translateX(100%);
    transition: transform .45s var(--ease), visibility 0s linear .45s;
    visibility: hidden;
    z-index: 110;
  }

  body.nav-open .nav {
    transform: translateX(0);
    visibility: visible;
    transition: transform .45s var(--ease);
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .header {
    color: var(--field-50);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .nav__list {
    flex-direction: column;
    gap: 1.6rem;
    text-align: center;
  }

  .nav__link {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--field-50);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .4s var(--ease), transform .4s var(--ease);
  }

  body.nav-open .nav__link {
    opacity: 1;
    transform: translateY(0);
  }

  body.nav-open .nav__list li:nth-child(1) .nav__link {
    transition-delay: .10s;
  }

  body.nav-open .nav__list li:nth-child(2) .nav__link {
    transition-delay: .16s;
  }

  body.nav-open .nav__list li:nth-child(3) .nav__link {
    transition-delay: .22s;
  }

  body.nav-open .nav__list li:nth-child(4) .nav__link {
    transition-delay: .28s;
  }

  .nav__link::after {
    height: 3px;
  }
}

@media (min-width:900px) {
  .burger {
    display: none;
  }

  .header__cta {
    display: inline-flex;
  }
}


/* ============ 08 HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 7rem;
  isolation: isolate;
  background: var(--pine-950);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 768px) {
  .hero__media img {
    object-position: 0% center;
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg,
      rgba(12, 36, 21, .92) 0%,
      rgba(12, 36, 21, .72) 45%,
      rgba(12, 36, 21, .35) 100%);
}

.hero__content {
  max-width: 680px;
}

.hero__title {
  font-size: var(--fs-display);
  color: var(--field-50);
  margin: .4rem 0 1.2rem;
}

/* Naslov se "pokosi" s lijeva na desno (potpisna animacija) */
.hero__title .mow {
  display: inline-block;
  clip-path: inset(-10% 100% -10% 0);
  animation: mow-reveal 1.1s .35s var(--ease) forwards;
}

@keyframes mow-reveal {
  to {
    clip-path: inset(-10% -2% -10% 0);
  }
}

.hero__lead {
  color: rgba(243, 245, 235, .88);
  font-size: var(--fs-lead);
  max-width: 54ch;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.6rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}

.hero__trust li {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--grass-300);
  font-weight: 600;
  font-size: .95rem;
}

.hero__trust svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--grass-500);
}

/* Stagger ulazne animacije hero sadržaja */
.hero__content>* {
  opacity: 0;
  transform: translateY(22px);
  animation: fade-up .8s var(--ease) forwards;
}

.hero__content>.eyebrow {
  animation-delay: .15s;
}

.hero__content>.hero__title {
  animation-delay: .25s;
  transform: none;
}

.hero__content>.hero__lead {
  animation-delay: .85s;
}

.hero__content>.hero__actions {
  animation-delay: 1s;
}

.hero__content>.hero__trust {
  animation-delay: 1.15s;
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero .grass-edge {
  color: var(--field-50);
}


/* ============ 09 RUB TRAVE (SVG RAZDJELNIK) ============ */
.grass-edge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(34px, 5vw, 60px);
  pointer-events: none;
}

.grass-edge svg {
  width: 100%;
  height: 100%;
}

.grass-edge--top {
  bottom: auto;
  top: -1px;
  transform: scaleY(-1);
}


/* ============ 10 USLUGE ============ */
.services-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
}

@media (min-width:640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width:1100px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  overflow: hidden;
}

.service-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--grass-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-card__icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  background: var(--field-100);
  border-radius: 16px;
  color: var(--pine-700);
}

.service-card__icon svg {
  width: 30px;
  height: 30px;
}

.service-card p {
  color: var(--ink-soft);
  font-size: .95rem;
  flex-grow: 1;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 700;
  font-size: .92rem;
  color: var(--pine-700);
  text-decoration: none;
}

.service-card__link:hover {
  color: var(--grass-600);
}

.service-card__link svg {
  width: 16px;
  height: 16px;
  transition: transform .25s var(--ease);
}

.service-card__link:hover svg {
  transform: translateX(4px);
}

/* Istaknuta kartica — lasersko mjerenje (diferencijator) */
.service-feature {
  margin-top: 1.4rem;
  background: var(--pine-900);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 3rem);
  display: grid;
  gap: 1.6rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.service-feature::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(141, 190, 60, .25), transparent 70%);
}

@media (min-width:900px) {
  .service-feature {
    grid-template-columns: auto 1fr auto;
    gap: 2.5rem;
  }
}

.service-feature__icon {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  background: rgba(141, 190, 60, .15);
  border: 1px solid rgba(141, 190, 60, .4);
  border-radius: 22px;
  color: var(--grass-300);
}

.service-feature__icon svg {
  width: 44px;
  height: 44px;
}

.service-feature__badge {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--pine-950);
  background: var(--grass-500);
  padding: .3rem .8rem;
  border-radius: 999px;
  margin-bottom: .7rem;
}

.service-feature h3 {
  color: var(--field-50);
  font-size: 1.5rem;
  margin-bottom: .5rem;
}

.service-feature p {
  color: var(--grass-300);
  max-width: 56ch;
}


/* ============ 11 O NAMA ============ */
.about {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width:900px) {
  .about {
    grid-template-columns: 5fr 6fr;
    gap: 4rem;
  }
}

.about__media {
  position: relative;
}

.about__media img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
}

/* Pomaknuti okvir iza fotografije */
.about__media::before {
  content: "";
  position: absolute;
  inset: -18px auto auto -18px;
  width: 60%;
  height: 60%;
  border: 3px solid var(--grass-500);
  border-radius: var(--radius);
}

.about__text h2 {
  margin-bottom: 1rem;
}

.about__text p {
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
}

.checklist {
  display: grid;
  gap: .7rem;
  margin: 1.4rem 0 1.8rem;
}

.checklist li {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  font-weight: 600;
  color: var(--ink);
}

.checklist svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--grass-600);
  margin-top: .15rem;
}

/* Strojni park — stvarna oprema kao "chips" */
.machine-park {
  margin-top: 1.8rem;
}

.machine-park h3 {
  font-size: 1.05rem;
  margin-bottom: .8rem;
  color: var(--pine-900);
}

.machine-park ul {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  list-style: none;
}

.machine-park li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .45rem 1rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--pine-700);
}

/* ============ 12 KAKO RADIMO (KORACI) ============ */
.steps {
  display: grid;
  gap: 2.2rem;
  counter-reset: step;
}

@media (min-width:640px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width:1100px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.8rem;
  }
}

.step {
  position: relative;
  padding-top: 1.2rem;
  border-top: 2px dashed var(--line);
}

.step__num {
  position: absolute;
  top: -1.05rem;
  left: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--grass-500);
  background: var(--field-50);
  padding-right: .8rem;
}

.section--tint .step__num {
  background: var(--field-100);
}

.step h3 {
  margin-bottom: .5rem;
  font-size: 1.18rem;
}

.step p {
  color: var(--ink-soft);
  font-size: .95rem;
}


/* ============ 13 GALERIJA ============ */
.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width:900px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
  }
}

.gallery-item {
  position: relative;
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--field-100);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 36, 21, .45), transparent 55%);
  opacity: 0;
  transition: opacity .35s;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item figcaption,
.gallery-item .gallery-item__cap {
  position: absolute;
  left: 1rem;
  bottom: .8rem;
  z-index: 1;
  color: var(--white);
  font-size: .85rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s, transform .35s var(--ease);
}

.gallery-item:hover figcaption,
.gallery-item:hover .gallery-item__cap {
  opacity: 1;
  transform: translateY(0);
}

.gallery-more {
  text-align: center;
  margin-top: 2.5rem;
}


/* ============ 14 CTA TRAKA ============ */
.cta-band {
  position: relative;
  background: var(--pine-900);
  padding-block: calc(var(--section-y) + 2rem);
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 120%, rgba(141, 190, 60, .22), transparent 60%);
}

.cta-band .grass-edge--top {
  color: var(--field-50);
}

.cta-band h2 {
  color: var(--field-50);
  margin-bottom: 1rem;
}

.cta-band p {
  color: var(--grass-300);
  max-width: 54ch;
  margin: 0 auto 2.2rem;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
}

.cta-band__phone {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--field-50);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}

.cta-band__phone svg {
  width: 22px;
  height: 22px;
  color: var(--grass-500);
}

.cta-band__phone:hover {
  color: var(--grass-300);
}


/* ============ 15 FOOTER ============ */
.footer {
  background: var(--pine-950);
  color: rgba(243, 245, 235, .78);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 0;
  font-size: .95rem;
}

.footer__grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

@media (min-width:640px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width:1000px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 3rem;
  }
}

.footer .logo {
  color: var(--field-50);
  margin-bottom: 1rem;
}

.footer__about p {
  max-width: 32ch;
}

.footer h3 {
  color: var(--field-50);
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.footer ul {
  display: grid;
  gap: .6rem;
  list-style: none;
}

.footer a {
  color: rgba(243, 245, 235, .78);
  text-decoration: none;
}

.footer a:hover {
  color: var(--grass-300);
}

.footer__contact li {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
}

.footer__contact svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--grass-500);
  margin-top: .2rem;
}

.footer__bottom {
  border-top: 1px solid rgba(243, 245, 235, .12);
  padding-block: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 2rem;
  align-items: center;
  justify-content: space-between;
  font-size: .85rem;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}

.footer__legal button {
  color: rgba(243, 245, 235, .78);
  font-size: .85rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__legal button:hover {
  color: var(--grass-300);
}


/* Footer na mobitelu — centrirano i prozračnije */
@media (max-width:639.98px) {
  .footer__grid {
    text-align: center;
  }

  .footer__about p {
    margin-inline: auto;
  }

  .footer__contact li {
    justify-content: center;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .footer__legal {
    justify-content: center;
  }
}


/* ============ 16 POD-STRANICE ============ */
.page-hero {
  position: relative;
  background: var(--pine-900);
  padding: calc(var(--header-h) + clamp(3rem, 8vw, 5.5rem)) 0 clamp(4.5rem, 9vw, 7rem);
  isolation: isolate;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 80% 0%, rgba(141, 190, 60, .18), transparent 55%);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4.5vw + .5rem, 3.6rem);
  color: var(--field-50);
}

.page-hero .lead {
  color: var(--grass-300);
  margin-top: 1rem;
}

.page-hero .grass-edge {
  color: var(--field-50);
}

/* Pod-stranice s fotografijom u pozadini hero-a (usluge, galerija, kontakt) */
.page-hero--photo {
  background-size: cover;
  background-position: center;
  background-image:
    linear-gradient(105deg, rgba(12, 36, 21, .94) 0%, rgba(12, 36, 21, .78) 45%, rgba(12, 36, 21, .55) 100%),
    url('../images/galerija-06.jpg');
}



/* Slika po stranici — mijenjaš SAMO naziv datoteke u url(...) */
.page-hero--usluge {
  background-image:
    linear-gradient(105deg, rgba(12, 36, 21, .94) 0%, rgba(12, 36, 21, .78) 45%, rgba(12, 36, 21, .55) 100%),
    url('../images/galerija-03.jpg');
}

.page-hero--galerija {
  background-image:
    linear-gradient(105deg, rgba(12, 36, 21, .94) 0%, rgba(12, 36, 21, .78) 45%, rgba(12, 36, 21, .55) 100%),
    url('../images/galerija-09.jpg');
}

.page-hero--kontakt {
  background-image:
    linear-gradient(105deg, rgba(12, 36, 21, .94) 0%, rgba(12, 36, 21, .78) 45%, rgba(12, 36, 21, .55) 100%),
    url('../images/galerija-10.jpg');
}

/* Detalji usluga — izmjenični redovi */
.service-row {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.service-row+.service-row {
  border-top: 1px solid var(--line);
}

@media (min-width:900px) {
  .service-row {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .service-row--flip .service-row__media {
    order: 2;
  }
}

.service-row__media img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.service-row__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: var(--field-100);
  border-radius: 14px;
  color: var(--pine-700);
  margin-bottom: 1rem;
}

.service-row__icon svg {
  width: 28px;
  height: 28px;
}

.service-row h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin-bottom: .9rem;
}

.service-row p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.service-row .checklist {
  margin: 1.2rem 0 1.6rem;
}

.service-row .checklist li {
  font-weight: 500;
}


/* ============ 17 KONTAKT ============ */
.contact {
  display: grid;
  gap: 2.5rem;
}

@media (min-width:1000px) {
  .contact {
    grid-template-columns: 7fr 5fr;
    gap: 4rem;
    align-items: start;
  }
}

.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}

.form__grid {
  display: grid;
  gap: 1.2rem;
}

@media (min-width:640px) {
  .form__grid {
    grid-template-columns: 1fr 1fr;
  }

  .form__field--full {
    grid-column: 1 / -1;
  }
}

.form__field label {
  display: block;
  font-weight: 600;
  font-size: .92rem;
  margin-bottom: .4rem;
  color: var(--pine-900);
}

.form__field label span {
  color: var(--error);
}

.form__field input,
.form__field select,
.form__field textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--field-50);
  transition: border-color .25s, box-shadow .25s;
}

.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--grass-600);
  box-shadow: 0 0 0 3px rgba(141, 190, 60, .25);
}

.form__field textarea {
  min-height: 140px;
  resize: vertical;
}

.form__field.has-error input,
.form__field.has-error select,
.form__field.has-error textarea {
  border-color: var(--error);
}

.form__hint {
  color: var(--ink-soft);
  font-size: .83rem;
  margin-top: .35rem;
}

/* Odabrane fotografije uz upit */
.form__field input[type="file"] {
  cursor: pointer;
}

.form__field input[type="file"]::file-selector-button {
  font: inherit;
  font-weight: 600;
  font-size: .88rem;
  color: var(--pine-700);
  background: var(--field-100);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: .45rem 1rem;
  margin-right: .9rem;
  cursor: pointer;
  transition: background-color .25s, border-color .25s;
}

.form__field input[type="file"]::file-selector-button:hover {
  background: var(--field-50);
  border-color: var(--grass-600);
}

.file-list {
  list-style: none;
  display: grid;
  gap: .35rem;
  margin-top: .6rem;
}

.file-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--field-100);
  border-radius: 8px;
  padding: .4rem .8rem;
  font-size: .85rem;
  color: var(--ink-soft);
}

.file-list li span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-list li span:last-child {
  flex: none;
  font-weight: 600;
}

.form__error {
  display: none;
  color: var(--error);
  font-size: .83rem;
  margin-top: .35rem;
}

.form__field.has-error .form__error {
  display: block;
}

.form__consent {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  font-size: .88rem;
  color: var(--ink-soft);
}

.form__consent input {
  width: 18px;
  height: 18px;
  margin-top: .2rem;
  accent-color: var(--grass-600);
  flex: none;
}

/* Honeypot — skriveno polje protiv spama */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  opacity: 0;
  pointer-events: none;
}

.form__status {
  display: none;
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
}

.form__status.is-success {
  display: block;
  background: #E5F2E4;
  color: var(--success);
}

.form__status.is-error {
  display: block;
  background: #F7E5E1;
  color: var(--error);
}

.contact-info {
  display: grid;
  gap: 1.4rem;
  align-content: start;
}

.contact-card {
  background: var(--pine-900);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--field-50);
}

.contact-card h3 {
  color: var(--field-50);
  margin-bottom: 1.2rem;
}

.contact-card ul {
  display: grid;
  gap: 1.1rem;
}

.contact-card li {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
}

.contact-card li svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--grass-500);
  margin-top: .15rem;
}

.contact-card a {
  color: var(--field-50);
  text-decoration: none;
}

.contact-card a:hover {
  color: var(--grass-300);
}

.contact-card small {
  display: block;
  color: var(--grass-300);
  font-size: .82rem;
}

.contact-note {
  background: var(--field-100);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  font-size: .92rem;
  color: var(--ink-soft);
}

/* Rezervirano mjesto za kartu (Google Maps embed ide kasnije, uz privolu) */
.map-placeholder {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  min-height: 280px;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  text-align: center;
  padding: 2rem;
}


/* ============ 18 PRAVNE STRANICE (PROSE) ============ */
.prose {
  max-width: 760px;
}

.prose h2 {
  font-size: 1.5rem;
  margin: 2.4rem 0 .8rem;
}

.prose h3 {
  font-size: 1.15rem;
  margin: 1.8rem 0 .6rem;
}

.prose p,
.prose li {
  color: var(--ink-soft);
  margin-bottom: .9rem;
}

.prose ul {
  padding-left: 1.3rem;
  margin-bottom: 1rem;
}

.prose ul li {
  list-style: disc;
  margin-bottom: .4rem;
}

.prose strong {
  color: var(--ink);
}

.prose .updated {
  font-size: .88rem;
  color: var(--ink-soft);
  font-style: italic;
}


/* ============ 19 404 ============ */
.error-page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: var(--pine-950);
  text-align: center;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 4rem;
  position: relative;
  overflow: hidden;
}

.error-page__code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 20vw, 13rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--grass-500);
}

.error-page h1 {
  color: var(--field-50);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin: .5rem 0 1rem;
}

.error-page p {
  color: var(--grass-300);
  margin-bottom: 2rem;
  max-width: 42ch;
  margin-inline: auto;
}

.error-page .grass-edge {
  color: var(--pine-900);
}


/* ============ 20 LIGHTBOX ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(12, 36, 21, .95);
  display: none;
  place-items: center;
  padding: 2rem;
}

.lightbox.is-open {
  display: grid;
}

.lightbox__figure {
  max-width: min(1100px, 92vw);
  text-align: center;
}

.lightbox__figure img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  margin-inline: auto;
}

.lightbox__caption {
  color: var(--grass-300);
  margin-top: 1rem;
  font-size: .95rem;
}

.lightbox__counter {
  color: rgba(243, 245, 235, .6);
  font-size: .85rem;
  margin-top: .3rem;
}

.lightbox__btn {
  position: absolute;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(243, 245, 235, .1);
  color: var(--field-50);
  transition: background-color .25s;
}

.lightbox__btn:hover {
  background: rgba(141, 190, 60, .3);
}

.lightbox__btn svg {
  width: 24px;
  height: 24px;
}

.lightbox__close {
  top: 1.2rem;
  right: 1.2rem;
}

.lightbox__prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width:640px) {
  .lightbox__prev {
    left: .4rem;
  }

  .lightbox__next {
    right: .4rem;
  }
}


/* ============ 21 COOKIE BANNER ============ */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  transform: translate(-50%, 140%);
  width: min(720px, calc(100% - 2rem));
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem 1.7rem;
  z-index: 250;
  transition: transform .5s var(--ease);
}

.cookie-banner.is-visible {
  transform: translate(-50%, 0);
}

.cookie-banner h2 {
  font-size: 1.1rem;
  margin-bottom: .5rem;
}

.cookie-banner p {
  font-size: .9rem;
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
}

.cookie-banner p a {
  color: var(--pine-700);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}


/* ============ 22 NATRAG NA VRH ============ */
.to-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--pine-900);
  color: var(--field-50);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s var(--ease), visibility .3s, background-color .25s;
  z-index: 90;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--pine-700);
}

.to-top svg {
  width: 22px;
  height: 22px;
}


/* ============ 23 REVEAL ANIMACIJE (scroll) ============ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============ 24 PRISTUPAČNOST / REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .hero__content>* {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .hero__title .mow {
    clip-path: none;
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}