/* ==========================================================================
   Mystique — Salon lepote i zdravlja Vranje
   Visual identity: "classical hammam" — Trajan display capitals, Cormorant
   editorial serif, Poppins UI; dusty-rose & sage on warm charcoal + paisley.
   ========================================================================== */

/* ---- Fonts -------------------------------------------------------------- */
@font-face {
  font-family: "Trajan Pro 3";
  src: url("../fonts/TrajanPro3Light.woff2") format("woff2"),
       url("../fonts/TrajanPro3Light.woff") format("woff"),
       url("../fonts/TrajanPro3Light.ttf") format("truetype");
  font-weight: 300 400;
  font-style: normal;
  font-display: swap;
}

/* Cormorant Garamond + Poppins — self-hosted (latin + latin-ext for šđčćž).
   Downloaded from Google Fonts; no external CDN request at runtime. */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-500-italic-latinext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-500-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-400-latinext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-500-latinext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-600-latinext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/poppins-300-latinext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/poppins-300-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-400-latinext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/poppins-500-latinext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/poppins-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-600-latinext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/poppins-700-latinext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/poppins-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Design tokens ------------------------------------------------------ */
:root {
  /* Palette — warm, feminine, classical */
  --ink: #211c1b;            /* warm near-black (dark sections, headings)   */
  --ink-soft: #4a4340;       /* body text on light                          */
  --ink-muted: #857b76;      /* captions, secondary text                    */
  --rose: #ad7a7a;           /* dusty-rose accent ("the metal")             */
  --rose-deep: #8c5d59;      /* rose hover / deeper                         */
  --sage: #6a9784;           /* sage secondary                             */
  --sage-deep: #3f5d50;      /* sage hover                                 */
  --porcelain: #f7f2ef;      /* warm blush light section                   */
  --sand: #e4d8d1;           /* hairlines, borders                         */
  --white: #ffffff;

  --font-display: "Trajan Pro 3", "Cormorant Garamond", Georgia, serif;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1180px;
  --container-wide: 1320px;
  --container-text: 820px;

  --radius: 2px;
  --radius-lg: 3px;

  --shadow-sm: 0 6px 24px -12px rgba(33, 28, 27, 0.35);
  --shadow-md: 0 24px 60px -28px rgba(33, 28, 27, 0.45);
  --shadow-img: 0 30px 70px -35px rgba(33, 28, 27, 0.55);

  /* One spacing scale — used everywhere for rhythm */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2.25rem;
  --sp-5: 3.5rem;
  --section-y: clamp(4.5rem, 8vw, 8rem);
  --gap-split: clamp(2.5rem, 5vw, 5.5rem);

  --header-h: 88px;
  --header-h-shrink: 66px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t: 260ms var(--ease);
}

/* ---- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
a { color: var(--sage-deep); text-decoration: none; transition: color var(--t); }
a:hover, a:focus-visible { color: var(--rose-deep); }

:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink-soft);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ---- Typographic roles -------------------------------------------------- */
h1, h2, h3, h4 { color: var(--ink); font-weight: 400; line-height: 1.15; }

.display, h1 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.12;
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
}

/* Section & subsection titles use the editorial serif for warmth + legibility */
h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  letter-spacing: 0.005em;
}
h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}

p { margin: 0; }
p + p { margin-top: 1.15rem; }

.lead {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: 0.005em;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: var(--sp-2);
}

strong, b { font-weight: 600; color: var(--ink); }

/* ---- Layout primitives -------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-3);
}
.container-wide { max-width: var(--container-wide); }

.section { padding-block: var(--section-y); }
.section-flush-top { padding-top: 0; }   /* prose/media that continues the section above it */

/* ---- Ornament (signature) — echoes the │ in the MYSTIQUE│FIT logo ------- */
.ornament {
  display: block;
  width: 148px;
  height: 12px;
  margin: var(--sp-3) auto 0;
  position: relative;
  background:
    linear-gradient(var(--sand), var(--sand)) left center / 58px 1px no-repeat,
    linear-gradient(var(--sand), var(--sand)) right center / 58px 1px no-repeat;
}
.ornament::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 9px; height: 9px;
  transform: translate(-50%, -50%) rotate(45deg);
  border: 1px solid var(--rose);
}
.ornament.is-left { margin-inline: 0; }
.dark-section .ornament {
  background:
    linear-gradient(rgba(255,255,255,0.28), rgba(255,255,255,0.28)) left center / 58px 1px no-repeat,
    linear-gradient(rgba(255,255,255,0.28), rgba(255,255,255,0.28)) right center / 58px 1px no-repeat;
}

/* Section header block */
.section-head {
  max-width: var(--container-text);
  margin: 0 auto var(--sp-5);
  text-align: center;
}
.section-head h2 { margin: 0; }
.section-head .lead { margin-top: var(--sp-2); color: var(--ink-soft); }

/* ---- Skip link ---------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -999px; top: 0; z-index: 2000;
  background: var(--ink); color: #fff;
  padding: 0.75rem 1.25rem;
}
.skip-link:focus { left: 0; }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 2.3rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.btn .icon { transition: transform var(--t); }
.btn:hover .icon, .btn:focus-visible .icon { transform: translateX(4px); }

.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--rose); border-color: var(--rose); color: #fff; }

.btn-outline-dark { border-color: var(--ink); color: var(--ink); }
.btn-outline-dark:hover, .btn-outline-dark:focus-visible { background: var(--ink); color: #fff; }

.btn-outline-light { border-color: rgba(255,255,255,0.7); color: #fff; }
.btn-outline-light:hover, .btn-outline-light:focus-visible { background: #fff; border-color: #fff; color: var(--ink); }

.icon { width: 1.05em; height: 1.05em; fill: currentColor; flex: none; }

/* ==========================================================================
   Header / navigation
   ========================================================================== */
#header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--ink);
  backdrop-filter: saturate(120%) blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
/* Echo the info-card "šara" (pozadina.webp) behind the header bar.
   No overflow:hidden here — it would clip the Usluge dropdown / mobile menu. */
#header::before {
  content: "";
  position: absolute; inset: 0;
  background: url("../img/pozadina.webp") center / cover no-repeat;
  opacity: 0.5;
  pointer-events: none;
}
.header-inner {
  position: relative; z-index: 1;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--sp-3);
  height: var(--header-h-shrink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}
.header-logo img { height: 30px; width: auto; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  color: #fff;
}
.nav-toggle .icon { width: 1.4em; height: 1.4em; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
@media (min-width: 1200px) { .nav-toggle { display: none; } }

.main-nav { display: flex; align-items: center; gap: var(--sp-2); }
.nav-list { display: flex; align-items: center; gap: 0; }
.nav-list > li { position: relative; }
.nav-list a {
  display: block;
  padding: 0.5rem 0.62rem;
  color: rgba(255,255,255,0.78);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-list a:hover, .nav-list a:focus-visible { color: #fff; }
.nav-list a.is-active { color: var(--rose); }
.nav-item-dropdown > a { display: inline-flex; align-items: center; gap: 0.35rem; }
.nav-item-dropdown > a .icon { width: 0.68em; height: 0.68em; transition: transform var(--t); }
.nav-item-dropdown.is-open > a .icon { transform: rotate(180deg); }

.nav-cta {
  padding: 0.72rem 1.5rem;
  border: 1px solid var(--rose);
  border-radius: var(--radius);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background var(--t), color var(--t);
}
.nav-cta:hover, .nav-cta:focus-visible { background: var(--rose); color: #fff; }

.dropdown-menu { list-style: none; margin: 0; padding: 0.4rem; }

@media (min-width: 1200px) {
  .dropdown-menu {
    position: absolute; top: 100%; left: 0;
    min-width: 250px;
    background: #2a2422;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity var(--t), transform var(--t), visibility var(--t);
  }
  .nav-item-dropdown:hover .dropdown-menu,
  .nav-item-dropdown:focus-within .dropdown-menu,
  .nav-item-dropdown.is-open .dropdown-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
  }
  .dropdown-menu a { white-space: nowrap; text-transform: none; letter-spacing: 0.02em; font-size: 0.82rem; }
  .dropdown-menu a:hover { color: var(--rose); }
  .header-inner { justify-content: flex-start; }
  .main-nav { flex: 1; }
  .nav-list { flex: 1; justify-content: center; }
  .nav-cta { flex-shrink: 0; }
}

@media (max-width: 1199.98px) {
  /* backdrop-filter on #header traps fixed children — disable on mobile */
  #header { backdrop-filter: none; }

  .main-nav {
    position: fixed; top: var(--nav-top, var(--header-h-shrink)); left: 0; right: 0;
    bottom: 0;
    height: calc(100vh - var(--nav-top, var(--header-h-shrink)));   /* fallback bez dvh */
    height: calc(100dvh - var(--nav-top, var(--header-h-shrink)));
    z-index: 1001;
    background: var(--ink);
    padding: var(--sp-3) var(--sp-3) calc(var(--sp-3) + env(safe-area-inset-bottom));
    flex-direction: column; align-items: stretch;
    gap: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity var(--t), visibility var(--t);
  }
  .main-nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a { padding: 0.85rem 0.4rem; font-size: 0.95rem; border-bottom: 1px solid rgba(255,255,255,0.07); }

  .dropdown-menu { max-height: 0; overflow: hidden; padding-left: 1rem; transition: max-height var(--t); }
  .nav-item-dropdown.is-open .dropdown-menu { max-height: 800px; }
  .nav-cta { margin-top: var(--sp-3); text-align: center; }
}
/* Robust mobile scroll lock — works on iOS Safari */
html.nav-open,
body.nav-open {
  overflow: hidden !important;
  height: 100% !important;
  overscroll-behavior: contain;
}
/* Seamless seam: while the mobile menu is open, match the header to the nav
   panel and drop the hairline border so there's no visible gap between them. */
body.nav-open #header {
  background: var(--ink);
  border-bottom-color: transparent;
}

/* ---- Floating contact rail --------------------------------------------- */
.contact-rail {
  position: fixed; right: 0; top: 46%; transform: translateY(-50%);
  z-index: 900; display: none; flex-direction: column;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 992px) { .contact-rail { display: flex; } }
.contact-rail a {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  background: var(--ink); color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: background var(--t), transform var(--t);
}
.contact-rail a:hover { background: var(--rose); transform: translateX(-6px); }
.contact-rail .icon { width: 1.2em; height: 1.2em; }

/* ---- Floating action button (FAB) for mobile contact ---- */
.fab-container {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1500;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 12px;
}
@media (min-width: 992px) {
  .fab-container { display: none; }
}

.fab-trigger {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--rose);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(33, 28, 27, 0.4);
  border: none;
  transition: transform var(--t), background var(--t);
  cursor: pointer;
}
.fab-trigger .icon {
  width: 24px;
  height: 24px;
  transition: transform var(--t);
}
.fab-trigger .icon-close { display: none; }

.fab-container.is-active .fab-trigger {
  background: var(--rose-deep);
  transform: rotate(135deg);
}

.fab-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
  pointer-events: none;
}
.fab-container.is-active .fab-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.fab-item {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(33, 28, 27, 0.35);
  transition: transform var(--t);
}
.fab-item:hover {
  transform: scale(1.08);
}
.fab-item .icon {
  width: 20px;
  height: 20px;
}
.fab-item.viber { background: #7360f2; }
.fab-item.whatsapp { background: #25995a; }
.fab-item.phone { background: var(--rose-deep); }

/* Remove body padding since there's no fixed bottom bar anymore */
body.has-mobile-contact-bar { padding-bottom: 0; }

/* Hide the FAB while the mobile menu is open so it can't overlap nav links */
body.nav-open .fab-container { opacity: 0; visibility: hidden; pointer-events: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;   /* fallback za starije browsere (Samsung Internet < 21) bez svh podrske */
  height: 100svh;  /* moderni browseri: stabilna visina bez skoka od adresne trake */
  min-height: 540px;
  max-height: 940px;
  overflow: hidden;
  background: var(--ink);
}
/* Slides sit side by side and the track slides horizontally. The old crossfade
   plus a 9s Ken Burns zoom on a 1920px image stuttered badly on mid-range
   Android, so the image is now static and only the track is composited. */
.hero-track {
  display: flex; height: 100%;
  transition: transform 600ms var(--ease);
  will-change: transform;
  touch-action: pan-y;
}
.hero-slide { position: relative; flex: 0 0 100%; width: 100%; height: 100%; overflow: hidden; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) {
  .hero-track { transition: none; }
}
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,16,15,0.45) 0%, rgba(20,16,15,0.15) 38%, rgba(20,16,15,0.72) 100%);
}
.hero-caption {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff; padding: var(--sp-3);
}
.hero-caption .eyebrow { color: rgba(255,255,255,0.85); }
.hero-caption h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #fff;
  font-size: clamp(2.4rem, 6.5vw, 5rem);
  line-height: 1.1;
  max-width: 14ch;
  margin: 0.2rem 0 var(--sp-2);
}
.hero-caption p {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  max-width: 30ch;
  margin: 0 auto var(--sp-4);
  color: rgba(255,255,255,0.92);
}
.hero-caption .btn { margin-top: 0; }
/* Entrance. Captions rest visible so the outgoing one doesn't blink out while
   it slides away; the stagger replays only on the slide that becomes active. */
.hero-caption > * { opacity: 1; transform: none; }
.hero-slide.is-active .hero-caption > * { animation: heroRise 900ms var(--ease) backwards; }
.hero-slide.is-active .hero-caption > *:nth-child(1) { animation-delay: 200ms; }
.hero-slide.is-active .hero-caption > *:nth-child(2) { animation-delay: 340ms; }
.hero-slide.is-active .hero-caption > *:nth-child(3) { animation-delay: 480ms; }
.hero-slide.is-active .hero-caption > *:nth-child(4) { animation-delay: 620ms; }
@keyframes heroRise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }

.hero-controls {
  position: absolute; left: 0; right: 0; bottom: var(--sp-4); z-index: 3;
  display: flex; align-items: center; justify-content: center; gap: var(--sp-3);
}
.hero-dots { display: flex; gap: 0.6rem; }
.hero-dots button {
  width: 9px; height: 9px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.75); background: transparent;
  transition: background var(--t), transform var(--t);
}
.hero-dots button.is-active { background: #fff; transform: scale(1.25); }
.hero-arrow {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5); color: #fff;
  transition: background var(--t);
}
.hero-arrow:hover { background: rgba(255,255,255,0.18); }
.hero-arrow .icon { width: 1.1em; height: 1.1em; }

/* ==========================================================================
   Page hero (interior pages)
   ========================================================================== */
.page-hero {
  background: var(--porcelain);
  border-bottom: 1px solid var(--sand);
  padding-block: clamp(3.5rem, 6vw, 6rem);
  text-align: center;
}
.page-hero h1 { margin: 0; }
.page-hero .lead { max-width: var(--container-text); margin: var(--sp-2) auto 0; color: var(--ink-soft); }

/* Dark paisley variant — same "šara" (pozadina.webp) as the header/footer */
.page-hero--pattern {
  position: relative;
  background: var(--ink);
  border-bottom-color: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  overflow: hidden;
}
.page-hero--pattern::before {
  content: "";
  position: absolute; inset: 0;
  background: url("../img/pozadina.webp") center / cover no-repeat;
  opacity: 0.5;
  pointer-events: none;
}
.page-hero--pattern > .container { position: relative; z-index: 1; }
.page-hero--pattern h1 { color: #fff; }
.page-hero--pattern .lead { color: #fff; }
.page-hero--pattern .ornament {
  background:
    linear-gradient(rgba(255,255,255,0.28), rgba(255,255,255,0.28)) left center / 58px 1px no-repeat,
    linear-gradient(rgba(255,255,255,0.28), rgba(255,255,255,0.28)) right center / 58px 1px no-repeat;
}

/* ==========================================================================
   Split (image + text) — content images shown WHOLE, never cropped
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-split);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.split-reverse .split-media { order: 2; }
  .split.split-reverse .split-body { order: 1; }
  .split.split-single { grid-template-columns: 1fr; max-width: var(--container-text); margin-inline: auto; text-align: center; }
}
.split-media { position: relative; }
.split-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-img);
}
/* thin rose mat offset behind the image — quiet signature detail */
.split-media::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--rose);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.55;
}
.split.split-reverse .split-media::before { inset: 14px 14px -14px -14px; }
@media (max-width: 899.98px) { .split-media::before { display: none; } }

.split-body .eyebrow { margin-bottom: var(--sp-1); }
.split-body h1, .split-body h2 { margin-bottom: var(--sp-3); }
.split-body .btn { margin-top: var(--sp-3); }

/* ==========================================================================
   Prose (long treatment copy)
   ========================================================================== */
.prose { max-width: 900px; margin-inline: auto; color: var(--ink-soft); }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 {
  margin-top: var(--sp-5);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--sand);
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  color: var(--ink);
}
.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h2 + p { margin-top: var(--sp-2); }
.prose ul { margin-top: var(--sp-2); }
.prose ul li { position: relative; padding-left: 1.7rem; margin-top: 0.55rem; }
.prose ul li::before {
  content: ""; position: absolute; left: 2px; top: 0.72em;
  width: 7px; height: 7px; transform: rotate(45deg);
  border: 1px solid var(--rose);
}
.prose img { border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); margin-block: var(--sp-3); }
.prose strong { color: var(--ink); }

/* ==========================================================================
   Dark paisley sections
   ========================================================================== */
.dark-section {
  position: relative;
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  overflow: hidden;
}
.dark-section::before {
  content: "";
  position: absolute; inset: 0;
  background: url("../img/pozadina.webp") center / cover no-repeat;
  opacity: 0.5;
}
.dark-section > * { position: relative; z-index: 1; }
.dark-section h1, .dark-section h2, .dark-section h3 { color: #fff; }
.dark-section strong { color: #fff; }
.dark-section .lead { color: #fff; }
.dark-section .split-media::before { border-color: rgba(255,255,255,0.5); }

/* CTA band */
.cta-band { padding-block: clamp(3rem, 5vw, 4.5rem); }
.cta-band .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--sp-3);
}
.cta-band h2 { color: #fff; margin: 0; }
.cta-band .cta-sub {
  display: block; margin-top: 0.4rem;
  font-family: var(--font-serif); font-style: italic; font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
}

/* Info cards (pre-footer) */
.info-cards { padding-block: clamp(3.5rem, 6vw, 6rem); }
.info-cards .container {
  display: grid; gap: var(--sp-3); grid-template-columns: 1fr;
}
@media (min-width: 900px) { .info-cards .container { grid-template-columns: 1fr 1.2fr 0.9fr; } }
.info-card {
  padding: 0;
}
.info-card > img { max-width: 210px; margin-bottom: var(--sp-3); }
.info-card h3 { color: var(--sage); margin-bottom: 0.5rem; }
.info-card .muted { color: rgba(255,255,255,0.65); }
.info-card ul { display: flex; flex-direction: column; gap: 0.7rem; }
.info-card li { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.92rem; color: rgba(255,255,255,0.82); }
.info-card li .icon { color: var(--rose); margin-top: 0.3em; }
.info-card li a { color: rgba(255,255,255,0.9); }
.info-card li a:hover { color: var(--rose); }
.social-row { display: flex; gap: 0.6rem; }
.social-row a {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.08); color: #fff;
  transition: background var(--t);
}
.social-row a:hover { background: var(--rose); }

/* ==========================================================================
   Footer
   ========================================================================== */
#footer { background: var(--ink); border-top: 1px solid rgba(255,255,255,0.08); padding-block: var(--sp-3); }
#footer .container {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem;
  align-items: center; justify-content: center; text-align: center;
}
#footer p { color: rgba(255,255,255,0.55); font-size: 0.82rem; }
#footer a { color: rgba(255,255,255,0.78); }
#footer a:hover { color: var(--rose); }

/* ==========================================================================
   Services strip (home) — deliberate portrait tiles
   ========================================================================== */
.services-strip { background: var(--porcelain); }
.services-wrap { position: relative; }
.services-track {
  display: flex; gap: var(--sp-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--sp-2);
  scrollbar-width: none;
  /* pan-x lets the browser scroll this strip itself, so a finger gets inertia
     and eases into the snap; pan-y keeps vertical page scrolling working. */
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
}
.services-track::-webkit-scrollbar { display: none; }
.services-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);   /* transform umesto novijeg `translate` svojstva radi starijeg Samsung Interneta */
  z-index: 2;
  width: 44px; height: 44px;
  border-radius: var(--radius-lg);
  border: none;
  background: var(--rose); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--t);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.services-arrow:hover { background: var(--rose-deep); }
.services-arrow.is-disabled { opacity: 0.3; pointer-events: none; }
.services-arrow .icon { width: 24px; height: 24px; }
.services-prev { left: 0.5rem; }
.services-next { right: 0.5rem; }
/* Keep arrows on mobile too — slightly smaller, positioned over the thumbnail.
   The card is thumb (aspect 4/5) + a label line, so center on the image itself. */
@media (max-width: 767px) {
  .services-arrow {
    width: 38px; height: 38px;
    top: calc(50% - 0.9rem);
    background: rgba(173, 122, 122, 0.92);
  }
  .services-arrow .icon { width: 20px; height: 20px; }
  .services-prev { left: 0.4rem; }
  .services-next { right: 0.4rem; }
}
.service-card { scroll-snap-align: start; flex: 0 0 220px; text-align: center; }
/* One service fills the viewport on phones — the arrows step through them. */
@media (max-width: 767px) {
  .service-card { flex: 0 0 100%; }
  .service-card .thumb { aspect-ratio: 1 / 1; }
  .service-card span:last-child { font-size: 1.3rem; }
}
.service-card .thumb {
  display: block; position: relative; overflow: hidden;
  aspect-ratio: 4 / 5; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); margin-bottom: var(--sp-2);
}
.service-card .thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(20,16,15,0.35));
  transition: opacity var(--t); opacity: 0;
}
.service-card:hover .thumb::after { opacity: 1; }
.service-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.service-card:hover img { transform: scale(1.06); }
.service-card span:last-child {
  font-family: var(--font-serif); font-weight: 600; font-size: 1.1rem; color: var(--ink);
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-filters {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem;
  margin-bottom: var(--sp-5);
}
.gallery-filters button {
  padding: 0.5rem 1.15rem; border: 1px solid var(--sand); border-radius: var(--radius);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-muted); transition: all var(--t);
}
.gallery-filters button:hover { border-color: var(--rose); color: var(--rose); }
.gallery-filters button.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-2); }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-item { overflow: hidden; aspect-ratio: 1; border-radius: var(--radius); background: var(--porcelain); }
.gallery-item.is-hidden { display: none; }
.gallery-item button { display: block; width: 100%; height: 100%; padding: 0; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.gallery-item:hover img { transform: scale(1.07); }

.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(15,12,11,0.94);
  display: flex; align-items: center; justify-content: center; padding: var(--sp-3);
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: var(--radius); }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: #fff;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.24); }
.lightbox-close { top: var(--sp-3); right: var(--sp-3); }
.lightbox-prev { left: var(--sp-3); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: var(--sp-3); top: 50%; transform: translateY(-50%); }
.lightbox .icon { width: 1.3em; height: 1.3em; }

/* ==========================================================================
   Tabs (edukacije)
   ========================================================================== */
.tabs-list { display: grid; gap: var(--sp-3); grid-template-columns: 1fr; margin-bottom: var(--sp-5); }
@media (min-width: 768px) { .tabs-list { grid-template-columns: repeat(3, 1fr); } }
.tab-trigger {
  position: relative; overflow: hidden; border: 1px solid transparent;
  border-radius: var(--radius-lg); text-align: left; aspect-ratio: 4 / 3;
  transition: border-color var(--t);
}
.tab-trigger[aria-selected="true"] { border-color: var(--rose); }
.tab-trigger img { width: 100%; height: 100%; object-fit: cover; }
.tab-trigger .tab-label {
  position: absolute; inset: auto 0 0 0; padding: var(--sp-3);
  background: linear-gradient(0deg, rgba(20,16,15,0.9), transparent); color: #fff;
}
.tab-trigger .tab-label strong { display: block; font-family: var(--font-serif); font-size: 1.15rem; color: #fff; margin-bottom: 0.3rem; }
.tab-trigger .tab-label span {
  display: block; font-size: 0.82rem; line-height: 1.5;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height var(--t), opacity var(--t);
}
/* Vidi se samo naslov; opis se otkriva na hover (mis) ili fokus (tastatura).
   Na telefonu (bez hover-a) ostaju samo naslovi — pun tekst je u panelu koji se
   otvara tapom na karticu. */
.tab-trigger:focus-visible .tab-label span { max-height: 16rem; opacity: 0.85; }
@media (hover: hover) {
  .tab-trigger:hover .tab-label span { max-height: 16rem; opacity: 0.85; }
}
.tab-panel[hidden] { display: none; }
.tab-panel { max-width: 900px; margin-inline: auto; }

/* Podnaslov iznad kartica — signal da su kartice klikabilne */
.tabs-head { text-align: center; margin-bottom: var(--sp-4); }
.tabs-head h2 { margin-bottom: 0.3rem; }
.tabs-head p { color: var(--ink-muted); font-size: 0.95rem; }

/* ==========================================================================
   Video / map
   ========================================================================== */
.video-embed { max-width: 960px; margin-inline: auto; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.video-embed video { width: 100%; display: block; }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.map-frame iframe { width: 100%; height: 480px; border: 0; display: block; }
.contact-list { display: flex; flex-direction: column; gap: 0.9rem; }
.contact-list li { display: flex; gap: 0.75rem; align-items: flex-start; }
.contact-list .icon { color: var(--rose); margin-top: 0.3em; }
.contact-block + .contact-block { margin-top: var(--sp-4); }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.text-center { text-align: center; }
.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;
}
