/* ==========================================================================
   Ritam Čačka — glavni stil
   Paleta: #D5360C (akcenat) · #E6D5BD (bež) · #101010 (crna)
   Mobile-first. Breakpointi: 40em (640px), 56em (896px), 70em (1120px)
   ========================================================================== */

:root {
  --black: #101010;
  --black-2: #171514;
  --black-3: #211e1c;
  --beige: #E6D5BD;
  --beige-2: #dcc8ac;
  --accent: #D5360C;
  --accent-hover: #b82e09;
  --accent-on-dark: #E8572F;   /* svetlija nijansa akcenta za sitan tekst na crnoj (AA) */
  --accent-on-light: #A82A08;  /* tamnija nijansa akcenta za sitan tekst na bež (AA) */
  --cream: #FFF8F0;            /* najsvetlija nijansa bež — tekst na akcentnim dugmadima */

  --text-dark: rgba(230, 213, 189, .78);
  --text-light: rgba(16, 16, 16, .78);
  --line-dark: rgba(230, 213, 189, .16);
  --line-light: rgba(16, 16, 16, .16);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --container: 78rem;
  --header-h: 4.25rem;
  --section-y: clamp(4rem, 9vw, 8rem);
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  min-height: 100vh;
  background: var(--black);
  color: var(--beige);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -.015em; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--accent); color: var(--cream); }

:focus-visible { outline: 3px solid var(--accent-on-dark); outline-offset: 3px; }
.section--light :focus-visible, .on-light :focus-visible { outline-color: var(--accent-on-light); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--accent); color: var(--cream); padding: .75rem 1.25rem; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Layout ---------- */
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.container--narrow { width: min(52rem, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section-y); position: relative; }
.section--light { background: var(--beige); color: var(--black); }
.section--light .text-muted, .section--light p { color: var(--text-light); }
.section--darker { background: var(--black-2); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--flush-top { padding-top: 0; }
.section + .section:not(.section--light):not(.section--darker) { border-top: 1px solid var(--line-dark); }

.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 46rem; }
.section-head--split { max-width: none; }
@media (min-width: 56em) {
  .section-head--split { grid-template-columns: 1.1fr 1fr; align-items: end; gap: 3rem; }
}

/* ---------- Tipografija ---------- */
h1, .h1 { font-size: clamp(2.5rem, 1.1rem + 5.4vw, 5.6rem); line-height: 1.02; }
h2, .h2 { font-size: clamp(2rem, 1.25rem + 3vw, 3.5rem); }
h3, .h3 { font-size: clamp(1.25rem, 1.05rem + .7vw, 1.6rem); line-height: 1.2; }
h1 em, h2 em, .statement em { font-style: italic; color: var(--accent-on-dark); }
.section--light h1 em, .section--light h2 em, .section--light .statement em { color: var(--accent-on-light); }
.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.6; color: var(--text-dark); max-width: 40rem; }
.section--light .lead { color: var(--text-light); }
.text-muted { color: var(--text-dark); }
.prose > * + * { margin-top: 1.1em; }
.prose h3 { margin-top: 2em; }
.prose a, .link { color: var(--accent-on-dark); text-underline-offset: .2em; text-decoration-thickness: 1px; }
.section--light .prose a, .section--light .link { color: var(--accent-on-light); }
.prose strong { color: var(--beige); font-weight: 700; }
.section--light .prose strong { color: var(--black); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-family: var(--font-body); font-size: .8125rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent-on-dark);
}
.eyebrow::before { content: ""; width: 2rem; height: 2px; background: currentColor; flex: none; }
.section--light .eyebrow { color: var(--accent-on-light); }

.statement {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.75rem); line-height: 1.2; letter-spacing: -.01em;
}

/* ---------- Ikonice ---------- */
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

/* ---------- Dugmad ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--beige); --btn-bd: var(--line-dark);
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 3.25rem; padding: .8rem 1.5rem;
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd); border-radius: var(--radius);
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; letter-spacing: .01em; line-height: 1.2;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { --btn-bg: var(--accent); --btn-fg: var(--cream); --btn-bd: var(--accent); }
.btn--primary:hover { --btn-bg: var(--accent-hover); --btn-bd: var(--accent-hover); }
.btn--ghost { --btn-bd: rgba(230, 213, 189, .45); }
.btn--ghost:hover { --btn-bg: var(--beige); --btn-fg: var(--black); --btn-bd: var(--beige); }
.btn--dark { --btn-bg: var(--black); --btn-fg: var(--beige); --btn-bd: var(--black); }
.btn--dark:hover { --btn-bg: #000; }
.btn--outline-dark { --btn-fg: var(--black); --btn-bd: rgba(16, 16, 16, .5); }
.btn--outline-dark:hover { --btn-bg: var(--black); --btn-fg: var(--beige); --btn-bd: var(--black); }
.btn--lg { min-height: 3.75rem; padding: 1rem 1.75rem; font-size: 1.0625rem; }
.btn--block { display: flex; width: 100%; }
.btn-sub { font-weight: 500; opacity: .9; white-space: nowrap; }
.btn > span { white-space: nowrap; }
.btn { flex-wrap: wrap; row-gap: 0; }
.contact-grid > *, .split > *, .faq-layout > *, .generations > * { min-width: 0; }
@media (max-width: 22.5em) {
  .btn { padding-inline: .9rem; gap: .5rem; font-size: .95rem; }
  .btn--lg { font-size: 1rem; }
}
.btn .icon { width: 1.2em; height: 1.2em; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 39.99em) { .btn-row > .btn { flex: 1 1 100%; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(16, 16, 16, .94);
  -webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; min-width: 0; }
.brand-mark { width: 2.25rem; height: 2.25rem; flex: none; }
.brand-text { display: grid; line-height: 1.1; min-width: 0; }
.brand-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.brand-sub { font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dark); white-space: nowrap; }
@media (max-width: 23.5em) { .brand-sub { display: none; } .brand-name { font-size: 1.15rem; } }

.nav { display: none; }
.nav-list { display: flex; align-items: center; gap: .25rem; list-style: none; padding: 0; }
.nav-list > li { position: relative; }
.nav-list > li > a, .nav-dropdown-toggle {
  display: inline-flex; align-items: center; gap: .35rem; min-height: 2.75rem; padding: .5rem .85rem;
  background: none; border: 0; cursor: pointer; text-decoration: none;
  font-weight: 600; font-size: .9875rem; color: var(--beige); position: relative;
}
.nav-list > li > a::after, .nav-dropdown-toggle::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .35rem; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav-list > li > a:hover::after, .nav-list > li > a[aria-current="page"]::after,
.nav-dropdown-toggle:hover::after, .nav-dropdown-toggle.is-active::after { transform: scaleX(1); }
.nav-list > li > a[aria-current="page"], .nav-dropdown-toggle.is-active { color: var(--cream); }
.nav-dropdown-toggle .icon { width: 1rem; height: 1rem; transition: transform .2s var(--ease); }
.nav-dropdown-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + .5rem); left: 50%; translate: -50% 0; width: 22rem;
  background: var(--black-2); border: 1px solid var(--line-dark); border-top: 2px solid var(--accent);
  padding: .5rem; box-shadow: 0 24px 48px rgba(0, 0, 0, .5);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.dropdown::before { content: ""; position: absolute; inset: -.6rem 0 auto; height: .6rem; }
.has-dropdown.is-open .dropdown { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) { .has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: none; } }
.dropdown ul { list-style: none; padding: 0; display: grid; }
.dropdown a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem .85rem; text-decoration: none; font-weight: 600; font-size: .95rem; border-radius: var(--radius);
}
.dropdown a .icon { width: 1rem; height: 1rem; opacity: 0; transform: translateX(-4px); transition: .2s var(--ease); color: var(--accent-on-dark); }
.dropdown a:hover, .dropdown a[aria-current="page"] { background: var(--black-3); color: var(--cream); }
.dropdown a:hover .icon, .dropdown a[aria-current="page"] .icon { opacity: 1; transform: none; }

.header-phone {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem; flex: none;
  min-width: 2.9rem; min-height: 2.9rem; padding: .5rem;
  background: var(--accent); color: var(--cream); border-radius: var(--radius); text-decoration: none; font-weight: 700;
  transition: background-color .2s var(--ease);
}
.header-phone:hover { background: var(--accent-hover); }
.header-phone-text { display: none; }
.header-phone .icon { width: 1.25rem; height: 1.25rem; }

.nav-toggle {
  display: inline-grid; place-items: center; width: 2.9rem; height: 2.9rem; flex: none;
  background: transparent; border: 1.5px solid var(--line-dark); border-radius: var(--radius); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 1.25rem; height: 2px; background: var(--beige); transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 70em) {
  .nav { display: block; }
  .nav-toggle { display: none; }
  .header-inner { gap: 1.5rem; }
  .brand { margin-right: 0; }
  .nav { margin-inline: auto; }
  .header-phone { padding: .55rem 1.1rem .55rem .9rem; }
  .header-phone-text { display: grid; line-height: 1.1; text-align: left; }
  .header-phone-label { font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; opacity: .9; }
  .header-phone-number { font-size: 1.05rem; letter-spacing: .02em; white-space: nowrap; }
}

/* ---------- Mobilni meni ---------- */
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 90;
  background: var(--black); overflow-y: auto; overscroll-behavior: contain;
  padding: 1.5rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-nav-list { list-style: none; padding: 0; display: grid; }
.mobile-nav-list > li { border-bottom: 1px solid var(--line-dark); }
.mobile-nav-list > li > a {
  display: flex; align-items: center; justify-content: space-between; min-height: 3.5rem;
  font-family: var(--font-display); font-size: 1.6rem; text-decoration: none;
}
.mobile-nav-list > li > a[aria-current="page"] { color: var(--accent-on-dark); }
.mobile-nav-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 3.5rem;
  padding: 0; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-size: 1.6rem; color: var(--beige);
}
.mobile-nav-toggle .icon { width: 1.5rem; height: 1.5rem; color: var(--accent-on-dark); transition: transform .25s var(--ease); }
.mobile-nav-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.mobile-nav-sub { list-style: none; padding: 0 0 1rem; display: grid; }
.mobile-nav-sub[hidden] { display: none; }
.mobile-nav-sub a { display: flex; align-items: center; gap: .75rem; min-height: 2.9rem; text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.mobile-nav-sub a::before { content: ""; width: .5rem; height: .5rem; background: var(--accent); flex: none; }
.mobile-nav-sub a[aria-current="page"] { color: var(--accent-on-dark); }
.mobile-nav-contact { margin-top: 2rem; display: grid; gap: .75rem; }
.mobile-nav-contact p { color: var(--text-dark); font-size: .95rem; }
body.nav-open { overflow: hidden; }
@media (min-width: 70em) { .mobile-nav { display: none; } }

/* ---------- Breadcrumb ---------- */
.breadcrumb ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem .6rem; font-size: .875rem; color: var(--text-dark); }
.breadcrumb li { display: inline-flex; align-items: center; gap: .6rem; }
.breadcrumb li + li::before { content: "/"; opacity: .5; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--beige); text-decoration: underline; text-underline-offset: .2em; }
.breadcrumb [aria-current] { color: var(--beige); }

/* ---------- Hero (početna) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(36rem, calc(100svh - var(--header-h)), 58rem);
  display: flex; align-items: flex-end;
}
.hero-media, .page-hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img, .page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after, .page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(16, 16, 16, .35) 0%, rgba(16, 16, 16, .15) 35%, rgba(16, 16, 16, .88) 82%, var(--black) 100%),
    linear-gradient(90deg, rgba(16, 16, 16, .8) 0%, rgba(16, 16, 16, 0) 70%);
}
.hero-inner { padding-block: clamp(5rem, 12vh, 8rem) clamp(2.5rem, 6vw, 4.5rem); display: grid; gap: 1.5rem; }
.hero h1 { max-width: 15ch; }
.hero .lead { color: rgba(230, 213, 189, .9); }
.hero-foot {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark); font-size: .9rem; color: var(--text-dark);
}
.hero-foot a { text-decoration: none; }
.hero-foot a:hover { color: var(--cream); }
.hero-foot li { display: inline-flex; align-items: center; gap: .6rem; }
.hero-foot li::before { content: ""; width: 5px; height: 5px; background: var(--accent); }
.hero-foot ul { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; padding: 0; }

/* ---------- Page hero (podstranice) ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(26rem, 68svh, 42rem); display: flex; align-items: flex-end;
}
.page-hero::after {
  background:
    linear-gradient(180deg, rgba(16, 16, 16, .55) 0%, rgba(16, 16, 16, .6) 40%, rgba(16, 16, 16, .92) 85%, var(--black) 100%),
    linear-gradient(90deg, rgba(16, 16, 16, .75) 0%, rgba(16, 16, 16, 0) 75%);
}
.page-hero-inner { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2.5rem, 5vw, 4rem); display: grid; gap: 1.25rem; }
.page-hero h1 { max-width: 18ch; }
.page-hero--plain { min-height: auto; background: var(--black); }
.page-hero--plain::after { display: none; }
.page-hero--plain .page-hero-inner { padding-top: clamp(2.5rem, 6vw, 5rem); }
.hero-actions { margin-top: .5rem; }

/* ---------- Split ---------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split-text { display: grid; gap: 1.25rem; align-content: start; }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.split-media--wide img { aspect-ratio: 3 / 2; }
.split-media figcaption { margin-top: .75rem; font-size: .85rem; color: var(--text-dark); }
.section--light .split-media figcaption { color: var(--text-light); }
.split-media::before {
  content: ""; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem; z-index: -1;
  border: 1.5px solid var(--accent); border-radius: var(--radius);
}
.split-media { isolation: isolate; margin-right: 1.25rem; }
@media (max-width: 55.99em) { .split-media { max-width: 30rem; } .split-media--wide { max-width: 40rem; } }
@media (min-width: 56em) {
  .split { grid-template-columns: 1.05fr .95fr; }
  .split--reverse .split-text { order: 2; }
  .split--reverse .split-media { margin-right: 0; margin-left: 0; }
  .split--top { align-items: start; }
}

/* ---------- Mini lista vrednosti ---------- */
.value-list { list-style: none; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line-light); margin-top: .5rem; }
.value-list li { display: flex; align-items: center; gap: .9rem; padding: .85rem 0; border-bottom: 1px solid var(--line-light); font-weight: 600; }
.value-list li::before { content: ""; width: .55rem; height: .55rem; background: var(--accent); flex: none; }
.section:not(.section--light) .value-list, .section:not(.section--light) .value-list li { border-color: var(--line-dark); }

/* ---------- Kartice proslava ---------- */
.event-grid { list-style: none; padding: 0; display: grid; gap: 1rem; }
.event-card { position: relative; }
.event-card a {
  position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 22rem; height: 100%; padding: clamp(1.25rem, 3vw, 2rem); overflow: hidden;
  text-decoration: none; border-radius: var(--radius); background: var(--black-2);
}
.event-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transition: transform .6s var(--ease);
}
.event-card a::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(16, 16, 16, .1) 0%, rgba(16, 16, 16, .55) 45%, rgba(16, 16, 16, .95) 80%);
}
.event-card a:hover img { transform: scale(1.04); }
.event-card-num { font-size: .8125rem; font-weight: 700; letter-spacing: .16em; color: var(--accent-on-dark); }
.event-card h3 { margin: .35rem 0 .5rem; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); }
.event-card p { color: rgba(230, 213, 189, .85); font-size: .975rem; max-width: 30rem; }
.event-card-link { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem; font-weight: 700; font-size: .95rem; }
.event-card-link .icon { transition: transform .25s var(--ease); color: var(--accent-on-dark); }
.event-card a:hover .event-card-link .icon { transform: translateX(4px); }
@media (min-width: 40em) {
  .event-grid { grid-template-columns: repeat(2, 1fr); }
  .event-card:first-child { grid-column: 1 / -1; }
}
@media (min-width: 64em) {
  .event-grid { grid-template-columns: repeat(12, 1fr); gap: 1.25rem; }
  .event-card { grid-column: span 4; }
  .event-card:nth-child(1) { grid-column: span 7; }
  .event-card:nth-child(2) { grid-column: span 5; }
  .event-card:nth-child(6) { grid-column: span 5; }
  .event-card:nth-child(7) { grid-column: span 7; }
  .event-card:nth-child(1) a, .event-card:nth-child(2) a { min-height: 28rem; }
}

/* ---------- Numerisane liste (pristup, koraci) ---------- */
.feature-list { list-style: none; padding: 0; display: grid; gap: 0; counter-reset: f; }
.feature-list > li {
  display: grid; gap: .5rem; padding: 1.75rem 0; border-top: 1px solid var(--line-dark);
}
.section--light .feature-list > li { border-color: var(--line-light); }
.feature-num { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--accent-on-dark); }
.section--light .feature-num { color: var(--accent-on-light); }
.feature-list p { color: var(--text-dark); max-width: 40rem; }
.section--light .feature-list p { color: var(--text-light); }
@media (min-width: 56em) {
  .feature-list > li { grid-template-columns: 5rem 1fr 1.4fr; gap: 2rem; align-items: baseline; padding: 2rem 0; }
}
.feature-list--cols { gap: 1rem; }
@media (min-width: 56em) {
  .feature-list--cols { grid-template-columns: repeat(2, 1fr); gap: 0 3rem; }
  .feature-list--cols > li { grid-template-columns: 1fr; gap: .5rem; }
}

.steps { list-style: none; padding: 0; display: grid; gap: 1rem; }
.step {
  position: relative; padding: 2rem 1.5rem 1.75rem; background: rgba(16, 16, 16, .04);
  border: 1px solid var(--line-light); border-radius: var(--radius); display: grid; gap: .75rem; align-content: start;
}
.step-num { font-family: var(--font-display); font-size: 3.5rem; line-height: 1; color: var(--accent-on-light); font-style: italic; }
.section:not(.section--light) .step { background: var(--black-2); border-color: var(--line-dark); }
.section:not(.section--light) .step-num { color: var(--accent-on-dark); }
@media (min-width: 56em) { .steps { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }

.checklist { list-style: none; padding: 0; display: grid; gap: .25rem; }
.checklist li { display: grid; grid-template-columns: 1.5rem 1fr; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid var(--line-dark); }
.section--light .checklist li { border-color: var(--line-light); }
.checklist li::before {
  content: ""; width: 1.1rem; height: .6rem; margin-top: .45rem;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg);
}
@media (min-width: 56em) { .checklist--2 { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }

/* ---------- Kartice (trio) ---------- */
.card-grid { list-style: none; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 40em) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } .card-grid--5 { grid-template-columns: repeat(6, 1fr); } .card-grid--5 > li { grid-column: span 2; } .card-grid--5 > li:nth-child(4), .card-grid--5 > li:nth-child(5) { grid-column: span 3; } }
.card {
  display: grid; gap: .75rem; align-content: start; padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--black-2); border: 1px solid var(--line-dark); border-radius: var(--radius);
  border-top: 3px solid var(--accent);
}
.card p { color: var(--text-dark); }
.section--light .card { background: #efe3d1; border-color: var(--line-light); border-top-color: var(--accent); }
.section--light .card p { color: var(--text-light); }
.card-kicker { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-on-dark); }
.section--light .card-kicker { color: var(--accent-on-light); }

/* ---------- Generacije ---------- */
.generations { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 56em) { .generations { grid-template-columns: 1fr 1fr; align-items: start; } .generations-sticky { position: sticky; top: calc(var(--header-h) + 2rem); } }

/* ---------- Galerija ---------- */
.gallery-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; grid-auto-rows: 42vw; grid-auto-flow: dense; }
.gallery-item { position: relative; min-width: 0; }
.gallery-item.is-tall { grid-row: span 2; }
.gallery-item.is-wide { grid-column: span 2; }
.gallery-item a { display: block; height: 100%; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--black-2); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), opacity .3s; }
.gallery-item a::after {
  content: ""; position: absolute; inset: 0; background: rgba(16, 16, 16, 0); transition: background-color .3s var(--ease);
}
.gallery-zoom {
  position: absolute; right: .75rem; bottom: .75rem; z-index: 1; width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center; background: var(--accent); color: var(--cream); border-radius: var(--radius);
  opacity: 0; transform: translateY(6px); transition: .25s var(--ease);
}
.gallery-item a:hover img, .gallery-item a:focus-visible img { transform: scale(1.04); }
.gallery-item a:hover::after { background: rgba(16, 16, 16, .25); }
.gallery-item a:hover .gallery-zoom, .gallery-item a:focus-visible .gallery-zoom { opacity: 1; transform: none; }
@media (hover: none) { .gallery-zoom { opacity: .95; transform: none; width: 2.1rem; height: 2.1rem; } }
.gallery-item[hidden] { display: none; }
@media (min-width: 40em) {
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; grid-auto-rows: clamp(11rem, 22vw, 17rem); }
}
@media (min-width: 64em) { .gallery-grid--full { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.gallery-grid--mosaic .gallery-item:first-child { grid-column: span 2; }
@media (min-width: 40em) {
  .gallery-grid--mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gallery-grid--mosaic .gallery-item:first-child { grid-row: span 2; }
}
@media (max-width: 39.99em) { .gallery-grid--mosaic .gallery-item:nth-child(n+6) { display: none; } }

.gallery-grid--strip .gallery-item:first-child { grid-column: span 2; }
@media (min-width: 40em) { .gallery-grid--strip .gallery-item:first-child { grid-column: auto; } .gallery-grid--strip { grid-auto-rows: clamp(12rem, 24vw, 20rem); } }

.gallery-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.filter-btn {
  min-height: 2.75rem; padding: .5rem 1rem; background: transparent; color: var(--beige);
  border: 1.5px solid var(--line-dark); border-radius: var(--radius); font-weight: 600; font-size: .925rem; cursor: pointer;
  transition: .2s var(--ease);
}
.filter-btn:hover { border-color: var(--beige); }
.filter-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--cream); }
.gallery-status { margin-top: 1rem; font-size: .9rem; color: var(--text-dark); }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(8, 8, 8, .97); color: var(--beige);
}
.lightbox::backdrop { background: rgba(8, 8, 8, .9); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem var(--gutter); }
.lightbox-counter { font-size: .9rem; color: var(--text-dark); font-variant-numeric: tabular-nums; }
.lightbox-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 var(--gutter); }
.lightbox-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: var(--radius); user-select: none; }
.lightbox-caption { padding: 1rem var(--gutter) 1.5rem; text-align: center; color: var(--text-dark); font-size: .95rem; min-height: 3.5rem; }
.lightbox-btn {
  display: inline-grid; place-items: center; width: 3rem; height: 3rem; flex: none;
  background: rgba(16, 16, 16, .7); color: var(--beige); border: 1.5px solid var(--line-dark); border-radius: var(--radius); cursor: pointer;
  transition: .2s var(--ease);
}
.lightbox-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--cream); }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; translate: 0 -50%; z-index: 1; }
.lightbox-prev { left: .5rem; }
.lightbox-next { right: .5rem; }
@media (min-width: 56em) { .lightbox-prev { left: 1.5rem; } .lightbox-next { right: 1.5rem; } .lightbox-stage { padding: 0 6rem; } }

/* ---------- Video ---------- */
.video-grid { list-style: none; padding: 0; display: grid; gap: 1rem; margin-top: clamp(2rem, 4vw, 3rem); }
@media (min-width: 56em) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: var(--black-2); border-radius: var(--radius); overflow: hidden; }
.video-frame iframe, .video-frame video, .video-facade img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-facade { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; cursor: pointer; background: var(--black-2); }
.video-play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 4.5rem; height: 4.5rem;
  display: grid; place-items: center; background: var(--accent); color: var(--cream); border-radius: 50%;
}
.video-title { margin-top: .75rem; font-weight: 600; }
.video-empty {
  display: grid; gap: 1.25rem; align-items: center; margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.5rem, 4vw, 2.5rem); border: 1.5px dashed var(--line-dark); border-radius: var(--radius);
}
.video-empty-icon { width: 4rem; height: 4rem; display: grid; place-items: center; border: 1.5px solid var(--accent); color: var(--accent-on-dark); border-radius: 50%; }
.video-empty p { color: var(--text-dark); max-width: 38rem; }
@media (min-width: 40em) { .video-empty { grid-template-columns: auto 1fr auto; gap: 2rem; } }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; gap: 2.5rem; }
@media (min-width: 56em) { .faq-layout { grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: start; } .faq-layout .section-head { position: sticky; top: calc(var(--header-h) + 2rem); margin-bottom: 0; } }
.faq-list { border-top: 1px solid var(--line-dark); }
.section--light .faq-list { border-color: var(--line-light); }
.faq-item { border-bottom: 1px solid var(--line-dark); }
.section--light .faq-item { border-color: var(--line-light); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.35rem 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); line-height: 1.3;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--cream); }
.section--light .faq-item summary:hover { color: var(--accent-on-light); }
.faq-icon { position: relative; width: 1.75rem; height: 1.75rem; flex: none; border: 1.5px solid currentColor; border-radius: 50%; opacity: .8; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: .7rem; height: 1.5px; background: currentColor; translate: -50% -50%; transition: transform .25s var(--ease); }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon { background: var(--accent); border-color: var(--accent); color: var(--cream); opacity: 1; }
.faq-item[open] .faq-icon::after { transform: rotate(0); }
.faq-answer { padding: 0 3rem 1.5rem 0; color: var(--text-dark); }
.section--light .faq-answer { color: var(--text-light); }
.faq-answer a { color: var(--accent-on-dark); font-weight: 600; }
.section--light .faq-answer a { color: var(--accent-on-light); }

/* ---------- CTA traka ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; background: var(--accent); color: var(--cream); padding-block: clamp(4rem, 9vw, 7rem); }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background: repeating-linear-gradient(115deg, transparent 0 46px, rgba(16, 16, 16, .14) 46px 47px);
}
.cta-inner { display: grid; gap: 1.5rem; }
.cta-band h2 { max-width: 20ch; font-size: clamp(2.1rem, 1.2rem + 3.6vw, 4rem); }
.cta-band h2 em { color: var(--black); }
.cta-band p { max-width: 38rem; font-size: 1.125rem; }
.cta-band .eyebrow { color: var(--cream); }
.cta-band .btn--primary { --btn-bg: var(--black); --btn-bd: var(--black); --btn-fg: var(--cream); }
.cta-band .btn--primary:hover { --btn-bg: #000; --btn-bd: #000; }
.cta-band .btn--ghost { --btn-bd: rgba(255, 248, 240, .7); --btn-fg: var(--cream); }
.cta-band .btn--ghost:hover { --btn-bg: var(--cream); --btn-fg: var(--black); --btn-bd: var(--cream); }
.cta-band .cta-area { font-size: .95rem; display: flex; align-items: center; gap: .5rem; }
.cta-band :focus-visible { outline-color: var(--cream); }

/* ---------- Telefon panel ---------- */
.phone-panel {
  display: grid; gap: 1.25rem; padding: clamp(1.75rem, 4vw, 3rem);
  background: var(--black); color: var(--beige); border-radius: var(--radius); border-left: 4px solid var(--accent);
}
.phone-panel-label { font-size: .8125rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-on-dark); }
.phone-panel-number { font-family: var(--font-display); font-size: clamp(2rem, 1.2rem + 4vw, 3.75rem); line-height: 1; text-decoration: none; letter-spacing: -.01em; overflow-wrap: anywhere; }
.phone-panel-number:hover { color: var(--accent-on-dark); }
.phone-panel p { color: var(--text-dark) !important; }
.phone-panel--bordered { border: 1px solid var(--line-dark); border-left: 4px solid var(--accent); }
@media (min-width: 56em) { .phone-panel--row { grid-template-columns: 1fr auto; align-items: center; } }

/* ---------- Lokacija ---------- */
.area-block { display: grid; gap: 2rem; }
.area-word { margin-top: 1.25rem; padding-top: .12em; font-family: var(--font-display); font-size: clamp(3.5rem, 2rem + 9vw, 9rem); line-height: .9; letter-spacing: -.03em; font-style: italic; color: var(--accent-on-dark); }
.section--light .area-word { color: var(--accent-on-light); }
@media (min-width: 56em) { .area-block { grid-template-columns: 1fr 1fr; align-items: end; } }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 60em) { .contact-grid { grid-template-columns: .9fr 1.1fr; align-items: start; } }
.contact-info { display: grid; gap: 1.5rem; }
.contact-list { list-style: none; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.contact-list li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line-dark); align-items: start; }
.contact-list .icon { width: 1.5rem; height: 1.5rem; color: var(--accent-on-dark); margin-top: .15rem; }
.contact-list strong { display: block; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dark); font-weight: 700; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--accent-on-dark); }

.form-card { background: var(--beige); color: var(--black); padding: clamp(1.5rem, 4vw, 2.75rem); border-radius: var(--radius); }
.form-card h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); }
.form-card > p { color: var(--text-light); margin-top: .5rem; }
.form-grid { display: grid; gap: 1.1rem; margin-top: 1.75rem; }
@media (min-width: 40em) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: grid; gap: .4rem; align-content: start; }
.field label { font-weight: 700; font-size: .925rem; }
.field .req { color: var(--accent-on-light); }
.field .hint { font-size: .825rem; color: var(--text-light); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3.1rem; padding: .7rem .9rem;
  background: #fbf6ee; color: var(--black); border: 1.5px solid rgba(16, 16, 16, .3); border-radius: var(--radius);
  font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23101010' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.5rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 3px rgba(213, 54, 12, .35); }
.field [aria-invalid="true"] { border-color: var(--accent-on-light); background: #fff1ea; }
.field-error { display: flex; gap: .4rem; align-items: flex-start; font-size: .875rem; font-weight: 600; color: var(--accent-on-light); }
.field-error:empty { display: none; }
.form-actions { margin-top: 1.5rem; display: grid; gap: 1rem; }
.form-note { font-size: .85rem; color: var(--text-light); }
.form-status { padding: 1.1rem 1.25rem; border-radius: var(--radius); border-left: 4px solid var(--accent); background: #fbf6ee; display: grid; gap: .75rem; }
.form-status[hidden] { display: none; }
.form-status p { color: var(--black); }
.form-status--error { background: #fff1ea; }
.form-status .btn-row { margin-top: .25rem; }

.social-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.social-list a { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1.5px solid var(--line-dark); border-radius: var(--radius); transition: .2s var(--ease); }
.social-list a:hover { background: var(--accent); border-color: var(--accent); color: var(--cream); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); border-top: 1px solid var(--line-dark); padding-top: clamp(3.5rem, 7vw, 6rem); }
.footer-top { display: grid; gap: 1.5rem; padding-bottom: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line-dark); }
.footer-top .statement { max-width: 22ch; }
.footer-phone { display: inline-flex; align-items: center; gap: .9rem; font-family: var(--font-display); font-size: clamp(1.75rem, 1.2rem + 2.5vw, 3rem); text-decoration: none; color: var(--beige); }
.footer-phone .icon { color: var(--accent-on-dark); width: .9em; height: .9em; }
.footer-phone:hover { color: var(--accent-on-dark); }
@media (min-width: 56em) { .footer-top { grid-template-columns: 1fr auto; align-items: end; } }
.footer-grid { display: grid; gap: 2.25rem; padding-block: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 40em) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64em) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 3rem; } }
.footer-title { font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-on-dark); margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; display: grid; gap: .15rem; }
.footer-links a { display: inline-flex; min-height: 2.25rem; align-items: center; text-decoration: none; color: var(--text-dark); font-size: .975rem; }
.footer-links a:hover, .footer-links a[aria-current="page"] { color: var(--cream); }
.footer-about p { color: var(--text-dark); font-size: .975rem; margin-top: .9rem; max-width: 26rem; }
.footer-about .brand { margin: 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; padding-block: 1.5rem; border-top: 1px solid var(--line-dark); font-size: .875rem; color: var(--text-dark); }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--cream); }

/* ---------- Napomena ---------- */
.note { font-size: .875rem; color: var(--text-dark); border-left: 2px solid var(--accent); padding-left: 1rem; }
.section--light .note { color: var(--text-light); }

/* ---------- Punoletstva: energičnija varijanta ---------- */
.page--energetic .page-hero h1 { text-transform: none; font-size: clamp(2.75rem, 1.2rem + 6vw, 6.25rem); }
.big-number {
  font-family: var(--font-display); font-style: italic; font-weight: 600; line-height: .8;
  font-size: clamp(7rem, 4rem + 18vw, 18rem); letter-spacing: -.05em; color: var(--accent);
}
.ticker { overflow: hidden; border-block: 1px solid var(--line-dark); background: var(--black-2); }
.ticker ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 2.25rem; padding: 1.25rem var(--gutter); font-family: var(--font-display); font-style: italic; font-size: clamp(1.1rem, 1rem + .8vw, 1.6rem); }
.ticker li { display: inline-flex; align-items: center; gap: 2.25rem; }
.ticker li + li::before { content: ""; width: .5rem; height: .5rem; background: var(--accent); }

/* ---------- 404 ---------- */
.error-page { min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; padding-block: 4rem; }
.error-code { font-family: var(--font-display); font-style: italic; font-size: clamp(6rem, 3rem + 16vw, 14rem); line-height: .85; color: var(--accent); letter-spacing: -.04em; }
.error-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.error-links a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .5rem 1rem; border: 1.5px solid var(--line-dark); border-radius: var(--radius); text-decoration: none; font-weight: 600; }
.error-links a:hover { border-color: var(--accent); color: var(--cream); }

/* ---------- Pomoćne ---------- */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: clamp(2rem, 4vw, 3rem); }
.center { text-align: center; }
.stack { display: grid; gap: 1.25rem; }

/* ---------- Diskretna animacija pri pojavljivanju (sadržaj je uvek vidljiv; samo blago klizanje) ---------- */
.js .reveal { transition: transform .7s var(--ease); }
.js .reveal:not(.is-visible) { transform: translateY(14px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal:not(.is-visible) { transform: none; }
}

@media print {
  .site-header, .mobile-nav, .cta-band, .lightbox { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
}
