/* ============================================================================
   NEVAL HADŽIAVDIĆ — Sudski tumač za arapski jezik
   Dizajn-sistem: "Diplomatic Manuscript"
   Tinta-plava + pergament + brušeno zlato · Cormorant/Amiri + Hanken/IBM Plex
   Teme: light/dark preko [data-theme] · Jezici: bs (LTR) / ar (RTL)
   ========================================================================== */

/* ── Tokeni ─────────────────────────────────────────────────────────────── */
:root {
    /* color-scheme usklađuje native kontrole (select popup, autofill, scrollbar) s temom */
    color-scheme: light;

    --font-display: "Cormorant Garamond", "Amiri", Georgia, serif;
    --font-body: "Hanken Grotesk", "IBM Plex Sans Arabic", "Segoe UI", sans-serif;

    --bg: #f6f1e7;
    --bg-elev: #fdfaf3;
    --bg-soft: #eee7d8;
    --ink: #2a3344;
    --ink-strong: #141c2e;
    --muted: #5d6678;
    --gold: #9a772a;
    --gold-strong: #7e611f;
    --gold-soft: rgba(154, 119, 42, 0.12);
    --line: rgba(20, 28, 46, 0.14);
    --line-strong: rgba(20, 28, 46, 0.30);
    --danger: #a8463e;
    --danger-soft: rgba(168, 70, 62, 0.10);

    --band-ink: #141c2e;
    --band-ink-2: #1b2740;
    --on-ink: #f0ebde;
    --on-ink-muted: #aab1c0;
    --gold-on-ink: #c9a35c;

    --btn-bg: #141c2e;
    --btn-fg: #f6f1e7;
    --btn-bg-hover: #9a772a;
    --btn-fg-hover: #fdfaf3;

    --header-bg: rgba(246, 241, 231, 0.82);
    --shadow-lg: 0 24px 48px -18px rgba(20, 28, 46, 0.25);
    --shadow-sm: 0 10px 24px -12px rgba(20, 28, 46, 0.18);

    --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Cg fill='none' stroke='%239a772a' stroke-width='1'%3E%3Crect x='26' y='26' width='20' height='20'/%3E%3Crect x='26' y='26' width='20' height='20' transform='rotate(45 36 36)'/%3E%3C/g%3E%3C/svg%3E");
}

html[data-theme="dark"] {
    color-scheme: dark;

    --bg: #0d1422;
    --bg-elev: #131c2f;
    --bg-soft: #0a0f1b;
    --ink: #cfccc0;
    --ink-strong: #f3efe2;
    --muted: #97a0b2;
    --gold: #c9a35c;
    --gold-strong: #ddb976;
    --gold-soft: rgba(201, 163, 92, 0.13);
    --line: rgba(217, 213, 201, 0.13);
    --line-strong: rgba(217, 213, 201, 0.30);
    --danger: #d4847c;
    --danger-soft: rgba(212, 132, 124, 0.12);

    --band-ink: #0a0f1b;
    --band-ink-2: #10182a;
    --on-ink: #ece7da;
    --on-ink-muted: #9aa3b5;
    --gold-on-ink: #c9a35c;

    --btn-bg: #c9a35c;
    --btn-fg: #10182a;
    --btn-bg-hover: #ddb976;
    --btn-fg-hover: #0a0f1b;

    --header-bg: rgba(13, 20, 34, 0.82);
    --shadow-lg: 0 24px 48px -18px rgba(0, 0, 0, 0.6);
    --shadow-sm: 0 10px 24px -12px rgba(0, 0, 0, 0.5);

    --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Cg fill='none' stroke='%23c9a35c' stroke-width='1'%3E%3Crect x='26' y='26' width='20' height='20'/%3E%3Crect x='26' y='26' width='20' height='20' transform='rotate(45 36 36)'/%3E%3C/g%3E%3C/svg%3E");
}

/* Arapski: Amiri za naslove, IBM Plex Sans Arabic za tekst */
html[lang="ar"] {
    --font-display: "Amiri", "Cormorant Garamond", Georgia, serif;
    --font-body: "IBM Plex Sans Arabic", "Hanken Grotesk", "Segoe UI", sans-serif;
}

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

/* Bez globalnog scroll-behavior: smooth — enhanced navigacija bi animirala
   povratak na vrh kroz cijelu novu stranicu i usput okidala reveal animacije. */
html {
    -webkit-text-size-adjust: 100%;
    scrollbar-color: var(--line-strong) var(--bg-soft);
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16.5px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transition: background-color .35s ease, color .35s ease;
}

html[lang="ar"] body { font-size: 17px; }

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p, h1, h2, h3, h4, figure, blockquote { margin: 0; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

::selection { background: var(--gold); color: var(--bg-elev); }

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 2px;
}

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

.container {
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: 24px;
}

.section { padding-block: 96px; }

.icon { flex-shrink: 0; vertical-align: middle; }
html[dir="rtl"] .icon-arrow { transform: scaleX(-1); }

/* transform-origin nema logičku varijantu — u RTL-u zlatne linije rastu od početka teksta */
html[dir="rtl"] .text-link::after,
html[dir="rtl"] .site-nav a::after,
html[dir="rtl"] .card::before {
    transform-origin: 100% 50%;
}

h1:focus { outline: none; }

/* ── Tipografija ────────────────────────────────────────────────────────── */
.display {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--ink-strong);
    line-height: 1.1;
    letter-spacing: -0.01em;
}

html[lang="ar"] .display {
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0;
}

h1.display { font-size: clamp(2.5rem, 5.2vw, 4.1rem); }
h2.display { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }

.display em {
    font-style: italic;
    color: var(--gold);
}

html[lang="ar"] .display em { font-style: normal; }

.eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 18px;
}

.eyebrow::before {
    content: "";
    width: 30px;
    height: 1px;
    background: var(--gold);
    flex-shrink: 0;
}

.lead {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--muted);
    max-width: 640px;
}

html[lang="ar"] :is(.eyebrow, .btn, .chip, .stat-label, .lang-switch, .footer-col h3, .text-link, .seal-text) {
    letter-spacing: 0;
}

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head .lead { margin-top: 16px; }
.section-more { text-align: center; margin-top: 44px; }

/* ── Dugmad ─────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 27px;
    border-radius: 3px;
    border: 1px solid transparent;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease,
                transform .25s ease, box-shadow .25s ease;
}

.btn-primary {
    background: var(--btn-bg);
    color: var(--btn-fg);
}

.btn-primary:hover {
    background: var(--btn-bg-hover);
    color: var(--btn-fg-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-gold {
    background: var(--gold-on-ink);
    color: #10182a;
}

.btn-gold:hover {
    background: #ddb976;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-ghost {
    border-color: var(--line-strong);
    color: var(--ink-strong);
    background: transparent;
}

.btn-ghost:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
    box-shadow: none;
    transition-duration: .08s;
}

.btn-lg { padding: 15px 34px; font-size: 15.5px; }
.btn-sm { padding: 9px 18px; font-size: 13px; }

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    font-weight: 600;
    font-size: 14.5px;
    position: relative;
}

.text-link::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: -3px;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform .3s ease;
}

.text-link:hover::after { transform: scaleX(1); }

/* ── Skip link ──────────────────────────────────────────────────────────── */
.skip-link {
    position: fixed;
    top: -60px;
    inset-inline-start: 16px;
    z-index: 200;
    background: var(--ink-strong);
    color: var(--bg-elev);
    padding: 12px 20px;
    border-radius: 0 0 4px 4px;
    transition: top .2s ease;
}

.skip-link:focus { top: 0; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    /* 8px umjesto 14px: vizuelno gotovo isto na traci od 78px, izrazito jeftinije pri skrolanju */
    backdrop-filter: blur(8px) saturate(1.2);
    -webkit-backdrop-filter: blur(8px) saturate(1.2);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    height: 78px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.brand-mark {
    width: 44px;
    height: 44px;
    color: var(--gold);
    flex-shrink: 0;
}

.brand-mark svg { width: 100%; height: 100%; display: block; }

.brand-text {
    line-height: 1.2;
    min-width: 0; /* dozvoli skraćivanje unutar flexa umjesto prelijevanja */
}

.brand-text strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--ink-strong);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

html[lang="ar"] .brand-text strong { font-weight: 700; }

.brand-text small {
    display: block;
    font-size: 10.5px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

html[lang="ar"] .brand-text small { letter-spacing: 0; font-size: 11.5px; }

.site-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.site-nav a {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--muted);
    position: relative;
    padding-block: 6px;
    transition: color .25s ease;
}

.site-nav a::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform .3s ease;
}

.site-nav a:hover { color: var(--ink-strong); }
.site-nav a.active { color: var(--ink-strong); }
.site-nav a.active::after, .site-nav a:hover::after { transform: scaleX(1); }

.header-tools {
    display: flex;
    align-items: center;
    gap: 13px;
    flex-shrink: 0; /* alatke se nikad ne sabijaju — skraćuje se brend tekst */
}

/* Prekidač jezika: jedna pilula, unutra linkovi na preostala dva jezika */
.lang-switch {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    overflow: hidden;
    transition: border-color .25s ease;
}

.lang-switch:hover { border-color: var(--gold); }

.lang-switch a {
    font-size: 12.5px;
    font-weight: 700;
    padding: 8px 13px;
    color: var(--ink-strong);
    white-space: nowrap;
    transition: color .25s ease, background-color .25s ease;
}

.lang-switch a:hover {
    color: var(--gold);
    background: var(--gold-soft);
}

.lang-switch a + a { border-inline-start: 1px solid var(--line); }

.theme-toggle {
    width: 40px;
    height: 40px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-strong);
    transition: border-color .25s ease, color .25s ease, transform .4s ease;
}

.theme-toggle:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: rotate(40deg);
}

.theme-icon { display: none; line-height: 0; }
/* :not() umjesto [data-theme="light"] — tačno jedna ikona je vidljiva
   čak i ako atribut privremeno nestane (npr. enhanced navigacija) */
html:not([data-theme="dark"]) .theme-icon-moon { display: block; }
html[data-theme="dark"] .theme-icon-sun { display: block; }

.nav-burger {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    color: var(--ink-strong);
}

.burger-close { display: none; line-height: 0; }
.burger-open { line-height: 0; }
body.nav-open .burger-open { display: none; }
body.nav-open .burger-close { display: block; }

.mobile-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity .28s ease, transform .28s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0s linear .28s;
}

.mobile-nav nav {
    display: flex;
    flex-direction: column;
    padding: 18px 24px 26px;
    gap: 4px;
}

/* Brze akcije: poziv i WhatsApp odmah pri vrhu mobilnog menija.
   Selektori s tri klase — nadjačavaju kasnije .mobile-nav a pravilo. */
.mobile-nav-quick {
    display: flex;
    gap: 10px;
    padding-bottom: 14px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.mobile-nav .mobile-nav-quick a {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 12px 8px;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    font-weight: 600;
    font-size: 13.5px;
    color: var(--ink-strong);
    white-space: nowrap;
}

.mobile-nav-quick .icon { color: var(--gold); }

.mobile-nav a {
    padding: 13px 6px;
    font-size: 16.5px;
    font-weight: 500;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}

.mobile-nav a:last-child { border-bottom: none; }

.mobile-nav a.active {
    color: var(--gold);
    padding-inline-start: 12px;
    border-inline-start: 2px solid var(--gold);
}

.mobile-nav .mobile-nav-cta { color: var(--gold); font-weight: 700; }

.mobile-lang {
    display: flex;
    gap: 24px;
    padding: 13px 6px;
}

.mobile-lang a {
    color: var(--muted);
    font-size: 15px;
    font-weight: 500;
}

body.nav-open .mobile-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    transition: opacity .28s ease, transform .28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Zatamnjena pozadina ispod otvorene mobilne navigacije; klik na nju zatvara meni. */
@media (max-width: 900px) {
    body.nav-open { overflow: hidden; }

    body.nav-open::after {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 99;
        background: rgba(10, 15, 27, 0.45);
        -webkit-backdrop-filter: blur(2px);
        backdrop-filter: blur(2px);
    }
}

/* Na širokim ekranima mobilni meni ne postoji. */
@media (min-width: 901px) {
    .mobile-nav { display: none; }
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    overflow: hidden;
    padding-block: 92px 108px;
    background:
        radial-gradient(900px 480px at 12% -10%, var(--gold-soft), transparent 65%),
        var(--bg);
}

.hero-pattern,
.cta-pattern {
    position: absolute;
    inset: 0;
    background-image: var(--pattern);
    opacity: 0.06;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000, transparent 78%);
    mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000, transparent 78%);
}

.hero-watermark {
    position: absolute;
    top: -40px;
    inset-inline-end: -3%;
    font-family: "Amiri", serif;
    font-size: clamp(190px, 26vw, 380px);
    line-height: 1.15;
    color: var(--gold);
    opacity: 0.07;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}

html[lang="ar"] .hero-watermark {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 70px;
    align-items: center;
}

.hero-title { max-width: 560px; }

.hero .lead { margin-top: 24px; }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 30px;
    font-size: 14px;
    color: var(--muted);
}

.hero-note .icon { color: var(--gold); }

.hero-media { position: relative; }

.hero-frame {
    position: relative;
    z-index: 1;
}

.hero-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid var(--gold);
    transform: translate(18px, 18px);
    z-index: -1;
    opacity: 0.75;
}

html[dir="rtl"] .hero-frame::before { transform: translate(-18px, 18px); }

.hero-frame img {
    display: block;
    width: 100%;
    border: 1px solid var(--line);
    filter: saturate(0.94) contrast(1.02);
    box-shadow: var(--shadow-lg);
}

.hero-media figcaption {
    margin-top: 18px;
    padding-inline-start: 14px;
    border-inline-start: 2px solid var(--gold);
    font-size: 13.5px;
    color: var(--muted);
    max-width: 420px;
}

.hero-seal {
    position: absolute;
    z-index: 2;
    width: 150px;
    inset-inline-start: -44px;
    bottom: 46px;
}

/* ── Pečat ──────────────────────────────────────────────────────────────── */
.seal {
    border-radius: 50%;
    background: radial-gradient(closest-side, var(--bg-elev) 97%, transparent);
    box-shadow: var(--shadow-lg);
    transform: rotate(-8deg);
}

.seal svg { display: block; width: 100%; height: auto; }

.seal-ring {
    fill: none;
    stroke: var(--gold);
    stroke-width: 1.6;
}

.seal-ring-thin { stroke-width: 0.8; opacity: 0.75; }

.seal-ring-dashed {
    stroke-width: 1;
    stroke-dasharray: 3 5;
    opacity: 0.85;
}

.seal-rotor {
    animation: seal-spin 38s linear infinite;
    transform-origin: 85px 85px;
}

@keyframes seal-spin {
    to { transform: rotate(360deg); }
}

.seal-text {
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 10.6px;
    font-weight: 600;
    letter-spacing: 2.1px;
    fill: var(--gold);
}

.seal-center path {
    fill: none;
    stroke: var(--gold);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.seal-est {
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 8.5px;
    font-weight: 600;
    letter-spacing: 3px;
    fill: var(--gold);
    opacity: 0.9;
}

/* ── Statistike ─────────────────────────────────────────────────────────── */
.stats-band {
    position: relative;
    background: var(--band-ink);
    border-block: 1px solid rgba(201, 163, 92, 0.35);
    padding-block: 56px;
    overflow: hidden;
}

.stats-band::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--pattern);
    opacity: 0.05;
    pointer-events: none;
}

.stats-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stat {
    text-align: center;
    padding-inline: 10px;
}

.stat:not(:last-child) {
    border-inline-end: 1px solid rgba(240, 235, 222, 0.12);
}

.stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4vw, 3.3rem);
    font-weight: 600;
    color: var(--gold-on-ink);
    line-height: 1.1;
    font-variant-numeric: tabular-nums; /* cifre ne "šetaju" tokom brojanja */
}

.stat-label {
    display: block;
    margin-top: 8px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--on-ink-muted);
}

/* ── Kartice ────────────────────────────────────────────────────────────── */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.card {
    position: relative;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 30px 28px;
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.card::before {
    content: "";
    position: absolute;
    top: -1px;
    inset-inline: -1px;
    height: 2px;
    background: var(--gold);
    border-radius: 6px 6px 0 0;
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform .4s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-lg);
}

.card:hover::before { transform: scaleX(1); }

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 4px;
    background: var(--gold-soft);
    color: var(--gold);
    margin-bottom: 20px;
    flex-shrink: 0;
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--ink-strong);
    margin-bottom: 10px;
}

html[lang="ar"] .service-card h3 { font-weight: 700; }

.service-card p {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--muted);
}

/* Istaknuta usluga preko cijele širine ispod mreže (npr. časovi bosanskog) */
.service-feature {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 26px;
    margin-top: 22px;
    padding: 28px 32px;
    background: var(--gold-soft);
    border: 1px solid var(--line);
    border-inline-start: 3px solid var(--gold);
    border-radius: 6px;
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.service-feature:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
    box-shadow: var(--shadow-sm);
}

.service-feature .card-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 0;
    background: var(--bg-elev);
}

.service-feature h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ink-strong);
    margin-bottom: 6px;
}

html[lang="ar"] .service-feature h3 { font-weight: 700; }

.service-feature p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--muted);
    max-width: 680px;
}

.service-feature-cta { white-space: nowrap; }

@media (max-width: 760px) {
    .service-feature {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 24px 22px;
    }

    .service-feature-cta {
        justify-self: start;
        width: 100%;
    }
}

/* ── "Zašto ja" traka ───────────────────────────────────────────────────── */
.why-band {
    position: relative;
    background: linear-gradient(150deg, var(--band-ink), var(--band-ink-2));
    padding-block: 96px;
    overflow: hidden;
}

.why-band::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--pattern);
    opacity: 0.05;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(ellipse at 80% 20%, #000, transparent 70%);
    mask-image: radial-gradient(ellipse at 80% 20%, #000, transparent 70%);
}

.section-head-onink .display { color: var(--on-ink); }
.section-head-onink .lead { color: var(--on-ink-muted); }

.why-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.why-item {
    padding-top: 24px;
    border-top: 1px solid rgba(201, 163, 92, 0.4);
}

.why-icon {
    display: inline-flex;
    color: var(--gold-on-ink);
    margin-bottom: 14px;
}

.why-item h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--on-ink);
    margin-bottom: 8px;
}

html[lang="ar"] .why-item h3 { font-weight: 700; }

.why-item p {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--on-ink-muted);
}

/* ── Citat ──────────────────────────────────────────────────────────────── */
.quote-band {
    background: var(--bg-soft);
    padding-block: 92px;
    border-bottom: 1px solid var(--line);
}

.quote-inner {
    max-width: 840px;
    text-align: center;
}

.quote-mark {
    display: inline-flex;
    color: var(--gold);
    opacity: 0.9;
}

.quote-band blockquote {
    margin-top: 20px;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.9vw, 2.2rem);
    font-style: italic;
    font-weight: 600;
    color: var(--ink-strong);
    line-height: 1.45;
}

html[lang="ar"] .quote-band blockquote { font-style: normal; font-weight: 700; line-height: 1.7; }

.quote-author { margin-top: 28px; }

.quote-author strong {
    display: block;
    font-size: 15px;
    color: var(--ink-strong);
}

.quote-author span {
    font-size: 13.5px;
    color: var(--muted);
}

/* ── CTA traka ──────────────────────────────────────────────────────────── */
.cta-band {
    position: relative;
    background: linear-gradient(135deg, var(--band-ink) 20%, var(--band-ink-2));
    border-top: 1px solid rgba(201, 163, 92, 0.35);
    padding-block: 84px;
    overflow: hidden;
}

.cta-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.cta-copy .display { color: var(--on-ink); font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.cta-copy .lead { color: var(--on-ink-muted); margin-top: 12px; }

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.cta-or {
    font-size: 14px;
    color: var(--on-ink-muted);
}

.cta-or a {
    color: var(--gold-on-ink);
    font-weight: 700;
}

.cta-or a:hover { text-decoration: underline; }

/* Kredencijal uz samu tačku konverzije */
.cta-trust {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    font-size: 13px;
    color: var(--on-ink-muted);
}

.cta-trust .icon { color: var(--gold-on-ink); }

/* ── Page hero (podstranice) ────────────────────────────────────────────── */
.page-hero {
    position: relative;
    overflow: hidden;
    padding-block: 84px 64px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(800px 400px at 85% -20%, var(--gold-soft), transparent 65%),
        var(--bg);
}

.page-hero .container { position: relative; z-index: 1; }
.page-hero .lead { margin-top: 18px; }

/* ── Usluge (redovi) ────────────────────────────────────────────────────── */
.service-rows { display: grid; }

.service-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 40px;
    padding-block: 44px;
    border-bottom: 1px solid var(--line);
}

.service-row:first-child { padding-top: 0; }
.service-row:last-child { border-bottom: none; padding-bottom: 0; }

.service-row-aside {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.service-num {
    font-family: var(--font-display);
    font-size: 2.7rem;
    font-weight: 600;
    line-height: 1;
    color: var(--gold);
    opacity: 0.45;
}

.service-row-body h2 {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--ink-strong);
    margin-bottom: 12px;
}

html[lang="ar"] .service-row-body h2 { font-weight: 700; }

.service-summary {
    font-size: 16.5px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 12px;
    max-width: 720px;
}

.service-desc {
    font-size: 15px;
    line-height: 1.8;
    color: var(--muted);
    max-width: 760px;
}

/* ── Dokumenti / chips ──────────────────────────────────────────────────── */
.docs-band,
.clients-band {
    background: var(--bg-soft);
    border-block: 1px solid var(--line);
    padding-block: 68px;
}

.docs-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.4vw, 1.9rem);
    font-weight: 600;
    color: var(--ink-strong);
    text-align: center;
    margin-bottom: 36px;
}

html[lang="ar"] .docs-title { font-weight: 700; }

.chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 900px;
    margin-inline: auto;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 19px;
    background: var(--bg-elev);
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    transition: border-color .25s ease, transform .25s ease;
}

.chip .icon { color: var(--gold); }

/* Bez podizanja: chip nije link, hover ne smije obećavati klik */
.chip:hover { border-color: var(--gold); }

/* ── Proces ─────────────────────────────────────────────────────────────── */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.process-step {
    position: relative;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 30px 26px;
    overflow: hidden;
}

.process-num {
    position: absolute;
    top: 6px;
    inset-inline-end: 18px;
    font-family: var(--font-display);
    font-size: 4.4rem;
    font-weight: 600;
    line-height: 1;
    color: var(--gold);
    opacity: 0.16;
    pointer-events: none;
}

.process-step h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--ink-strong);
    margin-bottom: 10px;
    position: relative;
}

html[lang="ar"] .process-step h3 { font-weight: 700; }

.process-step p {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--muted);
    position: relative;
}

/* ── Česta pitanja ──────────────────────────────────────────────────────── */
.faq-section {
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
}

.faq-list {
    max-width: 820px;
    display: grid;
    gap: 12px;
}

.faq-item {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 6px;
    transition: border-color .25s ease;
}

.faq-item[open] { border-color: var(--gold); }

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 24px;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ink-strong);
    line-height: 1.4;
}

html[lang="ar"] .faq-item summary h3 { font-weight: 700; }

.faq-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    color: var(--gold);
    transition: transform .3s ease, border-color .3s ease, background-color .3s ease;
}

.faq-marker .icon { transform: rotate(90deg); }
html[dir="rtl"] .faq-marker .icon { transform: rotate(90deg) scaleY(-1); }

.faq-item[open] .faq-marker {
    transform: rotate(180deg);
    border-color: var(--gold);
    background: var(--gold-soft);
}

.faq-item summary:hover .faq-marker { border-color: var(--gold); }

.faq-item > p {
    padding: 0 24px 22px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--muted);
    max-width: 720px;
}

/* ── O meni ─────────────────────────────────────────────────────────────── */
.about-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 64px;
    align-items: start;
}

.about-para {
    font-size: 17px;
    line-height: 1.9;
    margin-bottom: 24px;
}

.about-para-first::first-letter {
    font-family: var(--font-display);
    font-size: 3.6em;
    font-weight: 600;
    line-height: 0.8;
    float: inline-start;
    padding-inline-end: 14px;
    padding-top: 6px;
    color: var(--gold);
}

/* Arapski je kurzivno pismo: izdvojeno prvo slovo kida spajanje unutar riječi */
html[lang="ar"] .about-para-first::first-letter {
    float: none;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    padding: 0;
    color: inherit;
}

.about-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
}

.about-quote {
    margin-top: 40px;
    padding: 30px 34px;
    background: var(--gold-soft);
    border-inline-start: 3px solid var(--gold);
    border-radius: 4px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.about-quote .quote-mark { color: var(--gold); flex-shrink: 0; }

.about-quote p {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    font-style: italic;
    font-weight: 600;
    color: var(--ink-strong);
    line-height: 1.5;
}

html[lang="ar"] .about-quote p { font-style: normal; font-weight: 700; line-height: 1.7; }

.about-aside { position: relative; }

.about-photo img {
    display: block;
    border: 1px solid var(--line);
    border-radius: 4px;
    filter: saturate(0.94);
    box-shadow: var(--shadow-sm);
}

.about-photo figcaption {
    margin-top: 14px;
    padding-inline-start: 14px;
    border-inline-start: 2px solid var(--gold);
    font-size: 13px;
    color: var(--muted);
}

.facts-card {
    margin-top: 30px;
    padding-top: 34px;
}

.facts-card h3 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--ink-strong);
    margin-bottom: 18px;
}

html[lang="ar"] .facts-card h3 { font-weight: 700; }

.facts-list {
    display: grid;
    gap: 13px;
}

.facts-list li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 15px;
    line-height: 1.6;
}

.facts-list .icon { color: var(--gold); margin-top: 4px; }

.facts-seal {
    position: absolute;
    width: 104px;
    top: -36px;
    inset-inline-end: -22px;
}

/* ── Reference ──────────────────────────────────────────────────────────── */
.t-grid { grid-template-columns: repeat(3, 1fr); }

.t-card { padding: 32px 30px; display: flex; flex-direction: column; }

.t-card .quote-mark { color: var(--gold); }

.t-card blockquote {
    margin-top: 14px;
    font-size: 15.5px;
    line-height: 1.8;
    color: var(--ink);
    flex-grow: 1;
}

.t-card figcaption {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.t-card figcaption strong {
    display: block;
    font-size: 15px;
    color: var(--ink-strong);
}

.t-card figcaption span {
    font-size: 13px;
    color: var(--muted);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.client-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 11px;
    padding: 26px 14px;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 6px;
    transition: border-color .25s ease, transform .25s ease;
}

.client-item .icon { color: var(--gold); }

.client-item span {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--muted);
    line-height: 1.4;
}

/* Bez podizanja: stavka nije link, hover ne smije obećavati klik */
.client-item:hover { border-color: var(--gold); }

/* ── Kontakt ────────────────────────────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 36px;
    align-items: start;
}

.contact-info {
    display: grid;
    gap: 16px;
}

.info-card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 24px;
}

.info-card .card-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 0;
}

.info-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ink-strong);
    margin-bottom: 5px;
}

html[lang="ar"] .info-card h3 { font-weight: 700; }

.info-card p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.6;
}

.info-card a { transition: color .2s ease; }
.info-card a:hover { color: var(--gold); }

.wa-link { margin-top: 10px; font-size: 13.5px; }

/* ── Forma ──────────────────────────────────────────────────────────────── */
.form-card { padding: 38px 36px; }

.form-title {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--ink-strong);
}

html[lang="ar"] .form-title { font-weight: 700; }

.form-lead {
    font-size: 14.5px;
    color: var(--muted);
    margin-top: 6px;
    margin-bottom: 28px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-wide { grid-column: 1 / -1; }

.field > span {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-strong);
}

.field i {
    color: var(--gold);
    font-style: normal;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    padding: 12px 14px;
    font: inherit;
    font-size: 15px;
    color: var(--ink-strong);
    transition: border-color .25s ease, box-shadow .25s ease;
}

.field textarea { resize: vertical; min-height: 130px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-soft);
}

.field-invalid input,
.field-invalid textarea {
    border-color: var(--danger);
}

.field-err {
    font-size: 12.5px;
    font-style: normal;
    color: var(--danger);
}

.form-err-global {
    margin-top: 16px;
    padding: 13px 16px;
    background: var(--danger-soft);
    border: 1px solid var(--danger);
    border-radius: 4px;
    font-size: 14px;
    color: var(--danger);
}

.form-submit {
    margin-top: 24px;
    width: 100%;
}

.form-submit:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

.hp-field {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    border: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding-block: 36px;
}

.success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--gold-soft);
    color: var(--gold);
}

.form-success h3 {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--ink-strong);
}

.form-success p { color: var(--muted); max-width: 360px; }

/* ── Mapa ───────────────────────────────────────────────────────────────── */
.map-section { padding-bottom: 96px; }

.map-frame {
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    height: 400px;
    box-shadow: var(--shadow-sm);
    background: var(--bg-soft); /* placeholder u boji teme dok se mapa učitava */
}

.map-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: var(--bg-soft);
    filter: saturate(0.85) contrast(1.02);
}

html[data-theme="dark"] .map-frame iframe {
    filter: invert(0.89) hue-rotate(180deg) saturate(0.6) contrast(0.92) brightness(0.92);
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
    position: relative;
    background: var(--band-ink);
    color: var(--on-ink-muted);
    border-top: 1px solid rgba(201, 163, 92, 0.35);
    padding-top: 72px;
    overflow: hidden;
}

.site-footer::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--pattern);
    opacity: 0.04;
    pointer-events: none;
}

.footer-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1.2fr;
    gap: 52px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--on-ink);
    line-height: 1.2;
}

.footer-logo-echo {
    font-family: "Amiri", "Cormorant Garamond", serif;
    font-size: 1.35rem;
    color: var(--gold-on-ink);
    margin-top: 4px;
}

html[lang="ar"] .footer-logo-echo {
    font-family: "Cormorant Garamond", "Amiri", serif;
    font-style: italic;
}

.footer-about {
    margin-top: 18px;
    font-size: 14.5px;
    line-height: 1.8;
    max-width: 380px;
}

.footer-col h3 {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--on-ink);
    margin-bottom: 20px;
}

.footer-col ul {
    display: grid;
    gap: 12px;
}

.footer-col a {
    font-size: 14.5px;
    transition: color .2s ease;
}

.footer-col a:hover { color: var(--gold-on-ink); }

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 14.5px;
    line-height: 1.6;
}

.footer-contact .icon {
    color: var(--gold-on-ink);
    margin-top: 4px;
}

.footer-bottom {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 60px;
    padding-block: 24px;
    border-top: 1px solid rgba(240, 235, 222, 0.1);
    font-size: 13px;
}

/* Oznaka na suprotnom pismu: Amiri za arapski tekst na bs stranicama,
   Cormorant italic za latinični tekst na ar stranicama */
.footer-tag {
    color: var(--gold-on-ink);
    font-family: "Amiri", "Cormorant Garamond", serif;
    font-size: 15px;
}

html[lang="ar"] .footer-tag {
    font-family: "Cormorant Garamond", "Amiri", serif;
    font-style: italic;
    font-size: 14.5px;
}

/* ── Plutajuće WhatsApp dugme ───────────────────────────────────────────── */
.wa-float {
    position: fixed;
    bottom: 22px;
    inset-inline-end: 22px;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--band-ink);
    color: var(--gold-on-ink);
    border: 1px solid rgba(201, 163, 92, 0.55);
    box-shadow: var(--shadow-lg);
    transition: transform .25s ease, background-color .25s ease, color .25s ease;
}

.wa-float:hover {
    transform: translateY(-3px);
    background: var(--gold-on-ink);
    color: #10182a;
}

@media (max-width: 640px) {
    .wa-float { width: 50px; height: 50px; bottom: 16px; inset-inline-end: 16px; }
}

/* ── Greške (404/500) ───────────────────────────────────────────────────── */
.error-hero {
    position: relative;
    overflow: hidden;
    padding-block: 110px 130px;
    text-align: center;
}

.error-hero .container { position: relative; z-index: 1; }

.error-code {
    font-family: var(--font-display);
    font-size: clamp(5rem, 13vw, 9rem);
    font-weight: 600;
    line-height: 1;
    color: var(--gold);
    opacity: 0.3;
}

.error-hero h1 { margin-top: 10px; }

.error-hero .lead {
    margin: 18px auto 32px;
}

.error-request-id {
    margin-top: 34px;
    font-size: 12px;
    color: var(--muted);
}

/* ── Blazor okviri (greška / ponovno povezivanje / validacija) ──────────── */
#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    inset-inline: 0;
    z-index: 1000;
    background: var(--band-ink);
    color: var(--on-ink);
    border-top: 2px solid var(--gold-on-ink);
    padding-block: 14px;
    padding-inline: 22px 56px; /* logički — dismiss ✕ je na inline-end i u RTL-u */
    font-size: 14.5px;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.25);
}

#blazor-error-ui .reload {
    color: var(--gold-on-ink);
    font-weight: 600;
    text-decoration: underline;
    margin-inline-start: 10px;
}

#blazor-error-ui .dismiss {
    position: absolute;
    top: 12px;
    inset-inline-end: 18px;
    cursor: pointer;
    font-size: 16px;
}

.blazor-error-boundary {
    background: var(--danger);
    color: #fff;
    padding: 1rem;
    border-radius: 4px;
}

.blazor-error-boundary::after {
    content: "Došlo je do greške.";
}

.validation-message {
    color: var(--danger);
    font-size: 12.5px;
}

#components-reconnect-modal {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg-elev);
    color: var(--ink);
    padding: 34px 40px;
    max-width: 420px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

#components-reconnect-modal::backdrop {
    background: rgba(10, 15, 27, 0.65);
    backdrop-filter: blur(4px);
}

#components-reconnect-modal button {
    margin-top: 14px;
    padding: 11px 24px;
    background: var(--btn-bg);
    color: var(--btn-fg);
    border-radius: 3px;
    font-weight: 600;
}

.components-rejoining-animation {
    position: relative;
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
}

.components-rejoining-animation > div {
    position: absolute;
    inset: 0;
    border: 2px solid var(--gold);
    border-radius: 50%;
    opacity: 0;
    animation: components-rejoin-pulse 1.6s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.components-rejoining-animation > div:nth-child(2) {
    animation-delay: -0.8s;
}

@keyframes components-rejoin-pulse {
    0% { transform: scale(0.25); opacity: 0.9; }
    100% { transform: scale(1); opacity: 0; }
}

/* ── Animacije ──────────────────────────────────────────────────────────── */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: translateY(0); }
}

.anim-1, .anim-2, .anim-3, .anim-4, .anim-5 {
    animation: fade-up 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.anim-1 { animation-delay: 0.05s; }
.anim-2 { animation-delay: 0.16s; }
.anim-3 { animation-delay: 0.28s; }
.anim-4 { animation-delay: 0.4s; }
.anim-5 { animation-delay: 0.52s; }

/* LCP kandidati (H1 i hero slika) ne smiju čekati u opacity:0 — browser ne
   bilježi LCP dok je element proziran. Ulaze samo kroz pomak, bez fade-a. */
@keyframes rise-only {
    from { transform: translateY(26px); }
    to { transform: translateY(0); }
}

.hero-title, .hero-media, .page-hero h1 {
    animation-name: rise-only;
    animation-delay: 0s;
}

/* Skrivanje prije otkrivanja vrijedi SAMO kad JS radi (html.js-reveal postavlja
   inline skripta prije prvog iscrtavanja) — crawleri bez JS-a vide sav sadržaj. */
html.js-reveal [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--d, 0ms);
}

html.js-reveal [data-reveal].in {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }

    html.js-reveal [data-reveal] { opacity: 1; transform: none; }
    .seal-rotor { animation: none; }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .t-grid { grid-template-columns: repeat(2, 1fr); }
    .clients-grid { grid-template-columns: repeat(3, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .hero-media { max-width: 620px; }

    .hero-watermark { font-size: clamp(160px, 24vw, 280px); }

    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .site-nav, .header-cta { display: none; }
    .nav-burger { display: flex; }

    /* Kompaktniji header — brend i alatke stanu bez preklapanja */
    .header-inner { gap: 14px; height: 66px; }
    .brand { gap: 10px; }
    .brand-mark { width: 36px; height: 36px; }
    .brand-text strong { font-size: 1.12rem; }
    .brand-text small { font-size: 9.5px; letter-spacing: 0.1em; }
    .header-tools { gap: 8px; }
    .lang-switch a { padding: 7px 10px; font-size: 11.5px; }
    .theme-toggle { width: 38px; height: 38px; }
    .nav-burger { width: 38px; height: 38px; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .container { padding-inline: 18px; }
    .section { padding-block: 64px; }

    .cards-grid, .t-grid, .process-grid, .why-grid { grid-template-columns: 1fr; }
    .clients-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 26px; }

    .stat:not(:last-child) { border-inline-end: none; }
    .stat:nth-child(odd) { border-inline-end: 1px solid rgba(240, 235, 222, 0.12); }

    .hero { padding-block: 60px 76px; }
    .hero-actions .btn { width: 100%; }

    .hero-seal {
        width: 110px;
        inset-inline-start: auto;
        inset-inline-end: -14px;
        bottom: -26px;
    }

    /* Pečat visi preko donjeg ruba figure — potpis se lomi mimo njegovog kruga */
    .hero-media figcaption {
        padding-inline-end: 104px;
        min-height: 88px;
    }

    .facts-seal { width: 88px; top: -28px; inset-inline-end: -10px; }

    .service-row {
        grid-template-columns: 1fr;
        gap: 18px;
        padding-block: 34px;
    }

    .service-row-aside {
        flex-direction: row;
        align-items: center;
    }

    .form-grid { grid-template-columns: 1fr; }
    .form-card { padding: 28px 22px; }

    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }

    /* Kredencijal ostaje vidljiv i na najmanjim ekranima — ključni signal povjerenja */
    .brand-text small { font-size: 9px; letter-spacing: 0.06em; }
    .brand-text strong { font-size: 1.05rem; }
    .map-frame { height: 300px; }
}
