/* ==========================================================================
   Colentum — base.css
   Zajednički stilovi za sve stranice: varijable, reset, tipografija,
   gumbi, zaglavlje i podnožje. Stilovi pojedine stranice idu u njen CSS.
   ========================================================================== */

:root {
  /* Boje */
  --c-bg: #FAF8F5;
  --c-white: #FFFFFF;
  --c-limestone: #F3EFEA;

  --c-terracotta: #E3724B;
  --c-terracotta-50: #FDF6F3;
  --c-terracotta-100: #FAE8E2;
  --c-terracotta-200: #F5C8BA;
  --c-terracotta-600: #CE5E37;
  --c-terracotta-700: #AC4926;
  --c-terracotta-800: #8E3A1D;

  --c-adria: #0F4C5C;
  --c-adria-light: #E6F0F2;

  --c-stone-100: #F5F5F4;
  --c-stone-150: #EEEDEB;
  --c-stone-200: #E7E5E4;
  --c-stone-300: #D6D3D1;
  --c-stone-400: #A8A29E;
  --c-stone-500: #78716C;
  --c-stone-600: #57534E;
  --c-stone-700: #44403C;
  --c-stone-800: #292524;
  --c-stone-900: #1C1917;
  --c-stone-950: #0C0A09;

  --c-text: #2D2A26;
  --c-border: rgba(231, 229, 228, 0.8);

  /* Tipografija */
  --f-serif: "Montserrat", system-ui, -apple-system, sans-serif; /* naslovi */
  --f-sans: "Montserrat", system-ui, -apple-system, sans-serif;  /* tekst */

  /* Oblici i sjene */
  --r-sm: 0.5rem;
  --r-md: 0.75rem;
  --r-lg: 1rem;
  --r-xl: 1.5rem;
  --r-full: 9999px;
  --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 35px -10px rgba(227, 114, 75, 0.12);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --container: 80rem;
  --header-h: 5rem;
}

/* Reset ------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

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

body {
  font-family: var(--f-sans);
  background-color: var(--c-bg);
  color: var(--c-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; }

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

ul { list-style: none; padding: 0; }

h1, h2, h3, h4 { font-weight: 700; }

/* Layout ------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 640px)  { .container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-inline: 2rem; } }

.section { padding-block: 6.5rem; }
@media (min-width: 1024px) { .section { padding-block: 8rem; } }

/* Zaglavlje sekcije (eyebrow + naslov + crta + uvod) ---------------------- */
.section-head {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 4rem;
}

.eyebrow {
  display: inline-block;
  color: var(--c-terracotta);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--f-serif);
  font-size: 1.875rem;
  line-height: 1.2;
  text-wrap: balance; /* ujednačeni redovi, bez jedne riječi u zadnjem redu */
  color: var(--c-stone-900);
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

@media (min-width: 640px) { .section-title { font-size: 2.25rem; } }

.divider {
  width: 3rem;
  height: 2px;
  background: var(--c-terracotta);
  margin-inline: auto;
}

.divider--start { margin-inline: 0; }                       /* lijevo poravnati naslovi */
.divider--light { background: rgba(255, 255, 255, 0.7); }  /* na narančastoj ili tamnoj podlozi */

.section-lead {
  color: var(--c-stone-600);
  font-size: 0.875rem;
  font-weight: 300;
  margin-top: 1rem;
}

@media (min-width: 640px) { .section-lead { font-size: 1rem; } }

/* Gumbi ------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s, color 0.2s;
  white-space: nowrap;
}

.btn--sm { padding: 0.625rem 1.25rem; }

.btn--primary {
  background: var(--c-terracotta);
  color: var(--c-white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn--primary:hover {
  background: var(--c-terracotta-600);
  box-shadow: 0 4px 12px -2px rgba(227, 114, 75, 0.4);
}

.btn--glass {
  background: rgba(255, 255, 255, 0.2);
  color: var(--c-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn--glass:hover { background: rgba(255, 255, 255, 0.3); }

.btn--light {
  background: var(--c-white);
  color: var(--c-terracotta);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn--light:hover { background: var(--c-stone-100); }

.btn--dark {
  background: var(--c-terracotta-700);
  color: var(--c-white);
  border: 1px solid var(--c-terracotta);
}

.btn--dark:hover { background: var(--c-terracotta-800); }

.btn--outline {
  background: var(--c-white);
  color: var(--c-terracotta-700);
  box-shadow: inset 0 0 0 1.5px var(--c-terracotta-200);
}

.btn--outline:hover { box-shadow: inset 0 0 0 1.5px var(--c-terracotta); }

/* Tekstualni link sa strelicom */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-terracotta);
  transition: color 0.2s;
}

.link-arrow:hover { color: var(--c-terracotta-700); }

.link-arrow svg,
.link-arrow .arrow {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s;
}

.link-arrow:hover svg,
.link-arrow:hover .arrow { transform: translateX(4px); }

/* Kartica s podizanjem na hover */
.card-float {
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.card-float:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* Okrugla značka s dvobojnom ikonom (koristi se na više stranica) */
.duo-badge {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--c-terracotta-50) 0%, var(--c-terracotta-100) 100%);
  box-shadow:
    inset 0 0 0 1px var(--c-terracotta-200),
    0 0 0 4px rgba(250, 232, 226, 0.45),
    0 6px 14px -6px rgba(206, 94, 55, 0.45);
  color: var(--c-terracotta-600);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.duo-badge svg { width: 1.5rem; height: 1.5rem; }

.duo-badge .ico-fill { fill: currentColor; fill-opacity: 0.18; stroke: none; }
.duo-badge .ico-sea  { stroke: var(--c-adria); }
.duo-badge .ico-dot  { fill: var(--c-adria); stroke: none; }
.duo-badge circle.ico-sea:not(.ico-dot) { fill: rgba(15, 76, 92, 0.15); }

.quick-info__item:hover .duo-badge,
.info-card:hover .duo-badge {
  transform: translateY(-2px) rotate(-6deg);
  box-shadow:
    inset 0 0 0 1px var(--c-terracotta-200),
    0 0 0 5px rgba(250, 232, 226, 0.7),
    0 10px 18px -6px rgba(206, 94, 55, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  .quick-info__item:hover .duo-badge,
  .info-card:hover .duo-badge { transform: none; }
}

/* Oznaka (chip) na slici */
.chip {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--r-full);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.chip--light { background: rgba(255, 255, 255, 0.9); color: var(--c-terracotta); }
.chip--light.chip--sea { color: var(--c-adria); }
.chip--dark  { background: rgba(28, 25, 23, 0.8); color: var(--c-stone-100); }

/* ==========================================================================
   Zaglavlje
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(231, 229, 228, 0.7);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand__logo {
  height: 3rem;
  width: auto;
  transition: transform 0.3s;
}

.brand:hover .brand__logo { transform: scale(1.05); }

.brand__text {
  display: none;
  border-left: 1px solid var(--c-stone-300);
  padding-left: 0.75rem;
  font-size: 0.75rem;
  line-height: 1.35;
}

.brand__kicker {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-stone-500);
  font-weight: 500;
}

.brand__place {
  display: block;
  letter-spacing: 0.05em;
  color: var(--c-stone-800);
  font-weight: 600;
}

@media (min-width: 640px) { .brand__text { display: block; } }

/* Navigacija — mobilni prikaz (padajući panel) */
.main-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  padding: 0.5rem 1rem 1.25rem;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-stone-200);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.08);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--c-stone-700);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.site-header.is-open .main-nav {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.main-nav__list > li {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  border-bottom: 1px solid var(--c-stone-150);
}

.main-nav__list > li:last-child { border-bottom: 0; }

.main-nav__list a {
  flex: 1;
  padding: 0.875rem 0;
  transition: color 0.2s;
}

.main-nav__list a:hover,
.main-nav__list .current-menu-item > a,
.main-nav__list .current-menu-ancestor > a { color: var(--c-terracotta); }

.submenu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--c-stone-500);
}

.submenu-toggle svg { width: 1.125rem; height: 1.125rem; transition: transform 0.2s; }
.submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.main-nav .sub-menu {
  display: none;
  width: 100%;
  padding: 0 0 0.75rem 1rem;
  border-left: 2px solid var(--c-terracotta-200);
  font-size: 0.875rem;
  font-weight: 400;
}

.main-nav .sub-menu a { display: block; padding: 0.5rem 0; }
.main-nav li.is-open > .sub-menu { display: block; }

/* Navigacija — desktop */
@media (min-width: 1200px) {
  .main-nav {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    font-size: 0.875rem;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

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

  .main-nav__list > li { border: 0; flex-wrap: nowrap; }

  .main-nav__list > li > a {
    padding: 1.75rem 0;
    white-space: nowrap;
  }

  .submenu-toggle { width: 1.25rem; height: 1.25rem; margin-left: 0.125rem; }
  .submenu-toggle svg { width: 0.875rem; height: 0.875rem; }

  /* Padajući podizbornik — Level 2 frosted limestone */
  .main-nav .sub-menu {
    display: block;
    position: absolute;
    top: calc(100% - 0.75rem);
    left: -1.25rem;
    min-width: 16rem;
    padding: 0.625rem;
    border: 1px solid rgba(200, 90, 50, 0.12);
    border-radius: var(--r-lg);
    background: rgba(253, 251, 247, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  }

  .main-nav .sub-menu a {
    padding: 0.5rem 0.75rem;
    border-radius: var(--r-sm);
    white-space: nowrap;
  }

  .main-nav .sub-menu a:hover { background: var(--c-terracotta-50); }

  .main-nav__list > li:hover > .sub-menu,
  .main-nav__list > li:focus-within > .sub-menu,
  .main-nav__list > li.is-open > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

@media (min-width: 1200px) and (max-width: 1320px) {
  .main-nav__list { gap: 1.25rem; }
  .main-nav { font-size: 0.8125rem; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switch {
  display: none;
  align-items: center;
  gap: 0.375rem;
  padding-right: 1rem;
  border-right: 1px solid var(--c-stone-300);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--c-stone-600);
}

.lang-switch a:hover { color: var(--c-stone-900); }
.lang-switch__active { color: var(--c-terracotta); font-weight: 600; }
.lang-switch__sep { color: var(--c-stone-300); }

@media (min-width: 768px) { .lang-switch { display: flex; } }

/* Hamburger gumb */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.625rem;
  margin-right: -0.625rem;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--c-stone-800);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1200px) { .nav-toggle { display: none; } }

@media (max-width: 479px) {
  .header-actions .btn--sm { padding: 0.5rem 0.875rem; font-size: 0.6875rem; }
}

/* ==========================================================================
   Plutajuće zaglavlje — tamni stakleni panel preko hero fotografije
   (na svim stranicama). Nakon skrolanja se zalijepi na vrh.
   ========================================================================== */

.site-header--overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 2.75rem 1rem 0; /* bočni razmak = razmak .container */
  background: none;
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-header--overlay .site-header__inner {
  position: relative;
  max-width: calc(var(--container) - 4rem); /* širina sadržaja blokova */
  height: var(--header-h);
  padding-inline: 1.25rem;
  gap: 2rem;
  border-radius: var(--r-lg);
  background: rgba(28, 25, 23, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 12px 32px -8px rgba(15, 23, 42, 0.25);
  transition: height 0.3s var(--ease-out), background-color 0.3s;
}

@media (min-width: 640px)  { .site-header--overlay { padding-inline: 1.5rem; } }

@media (min-width: 1024px) {
  .site-header--overlay { padding-inline: 2rem; }
  .site-header--overlay .site-header__inner { padding-inline: 2rem; }
}

.site-header--overlay .brand__logo { height: 3.75rem; }

.site-header--overlay .brand__text,
.site-header--overlay .header-actions .btn { display: none; }

.site-header--overlay .nav-toggle span { background: var(--c-white); }

/* Izbornik — bijeli tekst (samo glavne stavke na desktopu;
   padajući podizbornik i mobilni izbornik ostaju svijetli s tamnim tekstom) */
@media (max-width: 1199px) {
  .site-header--overlay .main-nav {
    top: calc(100% + 0.5rem);
    border: 1px solid rgba(200, 90, 50, 0.12);
    border-radius: var(--r-lg);
  }
}

@media (min-width: 1200px) {
  /* Izbornik centriran u panelu: logo lijevo, izbornik u sredini, akcije desno */
  .site-header--overlay .site-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-content: center; /* red ostaje točno u sredini i kad je zalijepljeni panel niži od poveznica izbornika */
  }

  .site-header--overlay .brand          { justify-self: start; }
  .site-header--overlay .main-nav       { justify-self: center; }
  .site-header--overlay .header-actions { justify-self: end; }
  .site-header--overlay .main-nav__list > li > a,
  .site-header--overlay .main-nav__list > li > .submenu-toggle { color: var(--c-white); }
  .site-header--overlay .main-nav__list > li > a:hover,
  .site-header--overlay .main-nav__list > .current-menu-item > a,
  .site-header--overlay .main-nav__list > .current-menu-ancestor > a { color: var(--c-terracotta-200); }
  .site-header--overlay .main-nav .sub-menu { top: calc(100% - 1rem); }
}

/* Jezik — mali gumbi iznad panela, gore desno */
.site-header--overlay .lang-switch {
  position: absolute;
  top: -2.375rem;
  right: 0;
  display: flex;
  gap: 0.375rem;
  padding: 0;
  border: 0;
  font-size: 0.75rem;
  font-weight: 600;
}

.site-header--overlay .lang-switch > * {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 1.875rem;
  padding-inline: 0.5rem;
  border-radius: var(--r-sm);
  transition: background-color 0.2s, color 0.2s;
}

.site-header--overlay .lang-switch > .lang-switch__sep { display: none; }

.site-header--overlay .lang-switch__active {
  background: rgba(255, 255, 255, 0.85);
  color: var(--c-stone-900);
}

.site-header--overlay .lang-switch a {
  color: var(--c-white);
  background: rgba(28, 25, 23, 0.3);
}

.site-header--overlay .lang-switch a:hover { background: rgba(255, 255, 255, 0.85); color: var(--c-stone-900); }

/* Nakon skrolanja — panel se zalijepi na vrh */
.site-header--overlay.is-stuck {
  position: fixed;
  padding-top: 0.75rem;
  animation: header-drop 0.35s var(--ease-out);
}

.site-header--overlay.is-stuck .site-header__inner {
  height: 4.25rem;
  background: rgba(28, 25, 23, 0.5);
}

.site-header--overlay.is-stuck .brand__logo { height: 3rem; }
.site-header--overlay.is-stuck .lang-switch { display: none; }

@keyframes header-drop {
  from { transform: translateY(-100%); }
  to   { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header--overlay.is-stuck { animation: none; }
}

/* ==========================================================================
   Podnožje
   ========================================================================== */
.site-footer {
  background: var(--c-stone-950);
  color: var(--c-stone-300);
  padding: 4rem 0 3rem;
  border-top: 1px solid var(--c-stone-800);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--c-stone-800);
}

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

@media (min-width: 1024px) {
  .site-footer__grid { grid-template-columns: 5fr 2fr 2fr 3fr; }
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.site-footer__brand { display: inline-flex; }
.site-footer__brand img { height: 5rem; width: auto; transition: opacity 0.2s; }
.site-footer__brand:hover img { opacity: 0.85; }

.site-footer__about p {
  max-width: 24rem;
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--c-stone-400);
}

.social {
  display: flex;
  gap: 1rem;
  padding-top: 1.5rem;
  color: var(--c-stone-400);
}

.social svg { width: 1.25rem; height: 1.25rem; }
.social a { transition: color 0.2s; }
.social a:hover { color: var(--c-terracotta); }

.site-footer__col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-stone-100);
  margin-bottom: 0.75rem;
}

.site-footer__col ul {
  display: grid;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--c-stone-400);
}

.site-footer__col a { transition: color 0.2s; }
.site-footer__col a:hover { color: var(--c-white); }

.site-footer__contact p {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--c-stone-400);
}

.site-footer__contact .site-footer__intro {
  display: block;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.site-footer__contact svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: var(--c-terracotta);
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--c-stone-500);
  text-align: center;
}

.site-footer__legal,
.site-footer__legal ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.site-footer__legal a:hover { color: var(--c-stone-400); }

@media (min-width: 640px) {
  .site-footer__bottom { flex-direction: row; text-align: left; }
}

/* ==========================================================================
   Zajedničke komponente (naslovnica, novosti, stranice)
   ========================================================================== */

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--c-stone-900);
  color: var(--c-white);
  border-radius: var(--r-sm);
}

.skip-link:focus { top: 1rem; }

.section--tight { padding-block: 5rem; }
@media (min-width: 1024px) { .section--tight { padding-block: 6rem; } }

.empty-note {
  text-align: center;
  color: var(--c-stone-500);
  font-weight: 300;
  padding-block: 1rem;
}

/* Mreža kartica (3 stupca) ------------------------------------------------ */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

/* Novosti ----------------------------------------------------------------- */
.news-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.news-head .section-title { margin-bottom: 0; }

@media (min-width: 640px) {
  .news-head { flex-direction: row; align-items: flex-end; }
}

/* Kartica novosti — topla kamena pozadina, kategorija kao pil, datum kao značka */
.news-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-radius: var(--r-xl);
  background: var(--c-limestone);
  box-shadow: inset 0 0 0 1px rgba(214, 211, 209, 0.6);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1px var(--c-terracotta-200), var(--shadow-hover);
}

.news-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.news-card__cat {
  display: inline-flex;
  align-items: center;
  margin-top: 0.375rem;
  padding: 0.3125rem 0.75rem;
  border-radius: var(--r-full);
  background: var(--c-white);
  box-shadow: inset 0 0 0 1px var(--c-terracotta-200);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-terracotta);
}

/* Datum kao okrugla značka (isti stil kao značke s ikonama) */
.news-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--c-terracotta-50) 0%, var(--c-terracotta-100) 100%);
  box-shadow:
    inset 0 0 0 1px var(--c-terracotta-200),
    0 0 0 4px rgba(250, 232, 226, 0.55),
    0 6px 14px -6px rgba(206, 94, 55, 0.45);
  color: var(--c-terracotta-700);
  line-height: 1;
  text-align: center;
  transition: transform 0.35s var(--ease-out);
}

.news-card:hover .news-date { transform: translateY(-2px) rotate(-6deg); }

.news-date__day   { font-size: 1.25rem; font-weight: 700; }
.news-date__month { margin-top: 0.125rem; font-size: 0.625rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.news-date__year  { margin-top: 0.1875rem; font-size: 0.5625rem; font-weight: 600; letter-spacing: 0.04em; color: var(--c-adria); }

.news-card__title {
  font-family: var(--f-serif);
  font-size: 1.3125rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--c-stone-900);
  margin-bottom: 0.75rem;
}

.news-card__title a { transition: color 0.2s; }
.news-card__title a:hover { color: var(--c-terracotta); }

.news-card__text {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--c-stone-600);
}

.news-card__foot {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(214, 211, 209, 0.8);
}

@media (prefers-reduced-motion: reduce) {
  .news-card:hover,
  .news-card:hover .news-date { transform: none; }
}

/* Mreža novosti */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

/* Paginacija */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3.5rem;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding-inline: 0.875rem;
  border: 1px solid var(--c-stone-200);
  border-radius: var(--r-full);
  background: var(--c-white);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--c-stone-700);
  transition: border-color 0.2s, color 0.2s;
}

.pagination a.page-numbers:hover { border-color: var(--c-terracotta); color: var(--c-terracotta); }
.pagination .page-numbers.current { background: var(--c-terracotta); border-color: var(--c-terracotta); color: var(--c-white); }
.pagination .page-numbers.dots { border: 0; background: none; }

/* Hero podstranice — fotografija, preko nje plutajuće zaglavlje i naslov */
.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 26rem;
  /* gore: razmak zaglavlja (2.75rem) + visina zaglavlja + zrak */
  padding: calc(2.75rem + var(--header-h) + 3rem) 0 4rem;
  text-align: center;
  color: var(--c-white);
  background: var(--c-stone-900);
  overflow: hidden;
  isolation: isolate;
}

@media (min-width: 1024px) {
  .page-hero {
    min-height: 32rem;
    padding-bottom: 5rem;
  }
}

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

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

.page-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(12, 10, 9, 0.62) 0%,
    rgba(12, 10, 9, 0.6) 50%,
    rgba(12, 10, 9, 0.75) 100%);
}

.page-hero__inner { position: relative; }

.page-hero__back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
}

.page-hero__back:hover { color: var(--c-white); }

.page-hero__eyebrow {
  display: block;
  text-shadow: 0 1px 8px rgba(12, 10, 9, 0.6);
}

.page-hero__title {
  font-family: var(--f-serif);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: #FAFAF9;
  margin: 0.5rem auto 1.25rem;
  max-width: 48rem;
}

@media (min-width: 768px) { .page-hero__title { font-size: 3.25rem; } }

.page-hero__meta {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-terracotta-200);
}

.page-hero__lead {
  max-width: 40rem;
  margin: 1.25rem auto 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--c-stone-200);
}

/* Sadržaj iz WordPress uređivača (stranice i novosti) */
.entry-content {
  max-width: 46rem;
  margin-inline: auto;
  padding-inline: 1rem;
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--c-stone-700);
}

.entry-content > * + * { margin-top: 1.5rem; }

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: var(--f-serif);
  color: var(--c-stone-900);
  line-height: 1.3;
  margin-top: 2.75rem;
  font-weight: 700;
}

.entry-content h2 { font-size: 1.875rem; }
.entry-content h3 { font-size: 1.5rem; }
.entry-content h4 { font-size: 1.25rem; }

.entry-content strong { font-weight: 600; color: var(--c-stone-800); }

.entry-content a {
  color: var(--c-terracotta-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content ul,
.entry-content ol { padding-left: 1.5rem; }
.entry-content ul { list-style: disc; }
.entry-content li + li { margin-top: 0.5rem; }
.entry-content li::marker { color: var(--c-terracotta); }

.entry-content blockquote {
  padding: 1.25rem 1.5rem;
  background: var(--c-white);
  border-left: 4px solid var(--c-terracotta);
  border-radius: var(--r-md);
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.1875rem;
  color: var(--c-stone-700);
}

.entry-content blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--f-sans);
  font-style: normal;
  font-size: 0.8125rem;
  color: var(--c-stone-500);
}

.entry-content figure { margin-inline: 0; }
.entry-content img { border-radius: var(--r-lg); }

.entry-content figcaption {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  text-align: center;
  color: var(--c-stone-500);
}

.entry-content .alignwide { max-width: 64rem; margin-inline: calc(50% - min(32rem, 50vw - 1rem)); }
.entry-content .alignfull { width: 100vw; max-width: none; margin-inline: calc(50% - 50vw); }
.entry-content .alignfull img { border-radius: 0; }

/* Galerija */
.entry-content .wp-block-gallery { gap: 0.75rem; }
.entry-content .wp-block-gallery img { border-radius: var(--r-md); }

.entry-content .wp-block-button__link {
  display: inline-flex;
  padding: 0.875rem 2rem;
  border-radius: var(--r-full);
  background: var(--c-terracotta);
  color: var(--c-white);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
}

.entry-content .wp-block-button__link:hover { background: var(--c-terracotta-600); }

/* ==========================================================================
   Sadržajni blokovi podstranica (plaža, staze…)
   .split      — red s tekstom i fotografijom (.split--reverse obrnuto)
   .fact-strip — traka s činjenicama koja do pola ulazi u hero
   .banner     — široka fotografija sa staklenom karticom teksta
   ========================================================================== */

/* Red: tekst + fotografija (svaki drugi obrnut) */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .split {
    grid-template-columns: 1fr 1.1fr;
    gap: 4.5rem;
  }

  .split--reverse .split__text { order: 2; }
  .split--reverse .split__photo     { order: 1; }
}

.split__text .divider { margin-inline: 0; }

.split__text p {
  margin-top: 1.25rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--c-stone-600);
}

.split__text .divider + p { margin-top: 1.5rem; }

.split__photo {
  position: relative;
  margin: 0;
}

.split__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-xl);
  box-shadow: 0 24px 48px -20px rgba(15, 23, 42, 0.35);
}

/* Topla mrlja iza fotografije */
.split__photo::before {
  content: "";
  position: absolute;
  inset: 10% -4% -6% 10%;
  z-index: -1;
  border-radius: var(--r-xl);
  background: linear-gradient(140deg, var(--c-terracotta-50) 0%, var(--c-terracotta-100) 100%);
}

.split--reverse .split__photo::before { inset: 10% 10% -6% -4%; }

/* Činjenice — traka do pola ulazi u hero (kao na naslovnici) */
.page-hero:has(+ .fact-strip-wrap) { padding-bottom: 7rem; }

@media (min-width: 1024px) { .page-hero:has(+ .fact-strip-wrap) { padding-bottom: 8rem; } }

.fact-strip-wrap {
  position: relative;
  z-index: 2;
  margin-top: -3.5rem;
}

@media (min-width: 900px) { .fact-strip-wrap { margin-top: -3.25rem; } }

.fact-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 1.5rem;
  list-style: none;
  border-radius: var(--r-xl);
  background: var(--c-white);
  box-shadow:
    inset 0 0 0 1px var(--c-stone-200),
    0 20px 40px -24px rgba(15, 23, 42, 0.3);
}

@media (min-width: 900px) {
  .fact-strip {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 2rem;
  }

  .fact { padding-inline: 1.5rem; border-left: 1px solid var(--c-stone-150); }
  .fact:first-child { border-left: 0; padding-left: 0.5rem; }
}

.fact {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.fact strong {
  display: block;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--c-terracotta);
}

.fact span:not(.duo-badge) {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--c-stone-600);
}

/* Široka fotografija s karticom teksta */
.banner {
  position: relative;
  padding-block: 6rem;
  overflow: hidden;
  isolation: isolate;
}

@media (min-width: 1024px) { .banner { padding-block: 9rem; } }

.banner__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.banner__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(12, 10, 9, 0.35);
}

.banner__card {
  padding: 2rem;
  text-align: center;
  border-radius: var(--r-xl);
  /* Matirano staklo — fotografija se nazire kroz karticu */
  background: rgba(253, 251, 247, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 24px 48px -20px rgba(15, 23, 42, 0.45);
}

@media (min-width: 768px)  { .banner__card { padding: 3rem; } }
@media (min-width: 1024px) { .banner__card { padding: 3.5rem 5rem; } }

.banner__title {
  margin: 0.5rem 0 0;
  text-wrap: balance;
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--c-stone-900);
}

@media (min-width: 768px) { .banner__title { font-size: 1.875rem; } }

.banner__card p {
  margin: 1rem 0 0;
  color: var(--c-stone-700) !important;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--c-stone-600);
}

/* Citat s ikonom navodnika (koristi se na više podstranica) */
.quote-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 1.375rem 1.5rem;
  border-radius: var(--r-lg);
  background: linear-gradient(140deg, var(--c-terracotta-50) 0%, rgba(250, 232, 226, 0.75) 100%);
  box-shadow:
    inset 0 0 0 1px var(--c-terracotta-200),
    0 10px 24px -14px rgba(206, 94, 55, 0.45);
}

.quote-card .duo-badge { background: var(--c-white); }

.quote-card p {
  margin: 0;
  font-size: 0.9375rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.7;
  color: var(--c-terracotta-800);
}

.quote-card cite {
  display: block;
  margin-top: 0.625rem;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--c-terracotta-700);
}

/* ==========================================================================
   Segmenti teksta (template-parts/story-blocks.php) — oznaka i naslov lijevo,
   tekst desno. Koriste ih „Stari pisci o Colentumu”, „Rimski grad”…
   ========================================================================== */
.story {
  display: grid;
  gap: 1.5rem;
}

/* Segment: oznaka i naslov lijevo, tekst desno */
.story-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem 3rem;
  padding: 2rem;
  border-radius: var(--r-xl);
  background: var(--c-limestone);
  box-shadow: inset 0 0 0 1px rgba(214, 211, 209, 0.6);
}

@media (min-width: 900px) {
  .story-block {
    grid-template-columns: 18rem 1fr;
    padding: 2.5rem;
  }
}

.story-block__tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3125rem 0.75rem;
  border-radius: var(--r-full);
  background: var(--c-white);
  box-shadow: inset 0 0 0 1px var(--c-terracotta-200);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-terracotta);
}

.story-block__title {
  margin-top: 0.875rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  text-wrap: balance;
  color: var(--c-stone-900);
}

.story-block__body > p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--c-stone-600);
}

.story-block__body > * + * { margin-top: 1rem; }

.story-block__body strong { color: var(--c-stone-900); }

.story-block__body .quote-card { margin-top: 1.25rem; }
.story-block__body .quote-card + p { margin-top: 1.25rem; }

/* Popis s točkicama */
.dot-list {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) { .dot-list { grid-template-columns: repeat(2, 1fr); column-gap: 1.5rem; } }

.dot-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--c-stone-700);
}

.dot-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--c-terracotta);
  box-shadow: 0 0 0 3px var(--c-terracotta-100);
}

/* ==========================================================================
   Poglavlja (template-parts/chapters.php) — velika fotografija i kartica teksta
   koja preklapa njen rub. Koriste ih „Rimski grad” i „Liburnski grad”.
   ========================================================================== */
.chapters {
  display: grid;
  gap: 4rem;
}

@media (min-width: 1024px) { .chapters { gap: 7rem; } }

.chapter {
  position: relative;
  display: grid;
  scroll-margin-top: calc(var(--header-h) + 3rem);
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .chapter {
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
  }

  /* Fotografija se rasteže do visine teksta (najmanje 34rem) */
  .chapter__media {
    grid-column: 1 / span 8;
    grid-row: 1;
    align-self: stretch;
    min-height: 34rem;
  }

  .chapter__media > img {
    position: absolute;
    inset: 0;
    height: 100%;
    aspect-ratio: auto;
  }

  /* Dinamika: I i III — fotografija niža od kartice; II — fotografija viša */
  .chapter--short .chapter__media {
    min-height: 0;
    margin-block: 4.5rem;
  }

  /* Kratki tekstovi: kartica ima najmanju visinu da fotografija ne bude premala */
  .chapter--short .chapter__card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-height: 32rem;
  }

  .chapter--short .chapter__text { width: 100%; }

  .chapter--tall .chapter__media { min-height: 40rem; }
  .chapter__card  { grid-column: 7 / span 6; grid-row: 1; }

  .chapter--reverse .chapter__media { grid-column: 5 / span 8; }
  .chapter--reverse .chapter__card  { grid-column: 1 / span 6; }
}

/* Fotografija */
.chapter__media {
  position: relative;
  margin: 0;
}

.chapter__media > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: var(--r-xl);
  box-shadow: 0 24px 48px -20px rgba(15, 23, 42, 0.4);
}


/* Umetak — manja slika na svijetloj podlozi (s neobaveznim natpisom) */
.chapter__inset {
  margin: 0;
  position: absolute;
  left: 1rem;
  bottom: -1.5rem;
  display: block;
  width: min(48%, 16rem);
  padding: 0.75rem;
  border-radius: var(--r-lg);
  background: linear-gradient(140deg, var(--c-terracotta-50) 0%, var(--c-terracotta-100) 100%);
  box-shadow:
    inset 0 0 0 1px var(--c-terracotta-200),
    0 20px 40px -16px rgba(15, 23, 42, 0.45);
  transform: rotate(-3deg);
}

/* Umetak uvijek na strani fotografije koju ne prekriva kartica */
.chapter--reverse .chapter__inset { left: auto; right: 1rem; transform: rotate(3deg); }

.chapter__inset img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 12px rgba(12, 10, 9, 0.25));
}

/* Kartica teksta */
.chapter__card {
  position: relative;
  z-index: 1;
  margin: -3rem 1rem 0;
  padding: 2rem;
  border-radius: var(--r-xl);
  background: var(--c-white);
  box-shadow:
    inset 0 0 0 1px var(--c-stone-200),
    0 30px 60px -28px rgba(15, 23, 42, 0.35);
  overflow: hidden;
}

@media (min-width: 640px)  { .chapter__card { padding: 2.5rem; } }

@media (min-width: 1024px) {
  .chapter__card { margin: 0; padding: 3rem; }
}

/* Veliki rimski broj u pozadini kartice */
.chapter__num {
  position: absolute;
  top: -0.75rem;
  right: 1.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 7rem;
  font-weight: 700;
  line-height: 1;
  color: var(--c-terracotta-100);
  pointer-events: none;
}

.chapter__tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.3125rem 0.75rem;
  border-radius: var(--r-full);
  background: var(--c-white);
  box-shadow: inset 0 0 0 1px var(--c-terracotta-200);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-terracotta);
}

.chapter__title {
  position: relative;
  margin-top: 1rem;
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-stone-900);
}

@media (min-width: 768px) { .chapter__title { font-size: 2.25rem; } }

.chapter__text { position: relative; margin-top: 0.5rem; }

.chapter__text p {
  margin-top: 1rem;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--c-stone-600);
}

.chapter__text strong { color: var(--c-stone-900); }

.chapter__list {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.chapter__list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--c-stone-700);
}

.chapter__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--c-terracotta);
  box-shadow: 0 0 0 3px var(--c-terracotta-100);
}

.chapter__inset figcaption {
  margin-top: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--c-terracotta-700);
}

/* ==========================================================================
   Prilagođeni kursor — narančasti krug koji prati miš (assets/js/main.js)
   Samo na uređajima s mišem; na mobitelu i tabletu ostaje obični.
   ========================================================================== */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 0.75rem;
  height: 0.75rem;
  margin: -0.375rem 0 0 -0.375rem;
  border-radius: 50%;
  background: var(--c-terracotta);
  pointer-events: none;
  opacity: 0;
  transition:
    width 0.25s var(--ease-out),
    height 0.25s var(--ease-out),
    margin 0.25s var(--ease-out),
    background-color 0.25s,
    box-shadow 0.25s,
    opacity 0.2s;
  will-change: transform;
}

.cursor.is-visible { opacity: 1; }

/* Iznad poveznica i gumba — veći prozirni krug s narančastim rubom */
.cursor.is-hover {
  width: 2.75rem;
  height: 2.75rem;
  margin: -1.375rem 0 0 -1.375rem;
  background: rgba(227, 114, 75, 0.14);
  box-shadow:
    inset 0 0 0 1.5px var(--c-terracotta),
    0 0 0 1.5px rgba(255, 255, 255, 0.75); /* vidljiv i na narančastim gumbima */
}

.cursor.is-down { width: 0.5rem; height: 0.5rem; margin: -0.25rem 0 0 -0.25rem; }
.cursor.is-hover.is-down { width: 2.25rem; height: 2.25rem; margin: -1.125rem 0 0 -1.125rem; }

/* Sakrij strelicu (osim u poljima za unos teksta) */
.has-cursor,
.has-cursor * { cursor: none !important; }

.has-cursor input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.has-cursor textarea,
.has-cursor select { cursor: text !important; }
