/* =============================================================
   INTAL-DOM 2026 — HEADER + HERO v1.2.0
   ORIGINALNI CRVENO-CRNI LOGO; TAMNOZELENA + TOPLA BIJELA
   Ova datoteka se učitava NAKON v1.0 i v1.1.
   ============================================================= */
:root {
    --id-v12-green: #183d32;
    --id-v12-green-hover: #102e25;
    --id-v12-ink: #192126;
    --id-v12-cream: #f7f5f0;
    --id-v12-line: #eae8e1;
}

/* Header je vlastiti HTML, pa se originalni Astra Header Builder ne prikazuje.
   Stari PHP, Astra tema i v1.0/v1.1 datoteke NISU obrisane. */
#masthead, .intaldom-topbar { display: none !important; }

.intaldom-v12-header,
.intaldom-v12-header *,
.intaldom-v12-hero,
.intaldom-v12-hero * { box-sizing: border-box; }

.intaldom-v12-header {
    position: sticky;
    top: 0;
    z-index: 9998;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #ecece9;
    box-shadow: 0 3px 14px rgba(10, 28, 23, .045);
}
.admin-bar .intaldom-v12-header { top: 32px; }
.intaldom-v12-header__inner {
    max-width: 1380px;
    width: 100%;
    min-height: 93px;
    padding: 10px 28px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(15px, 2vw, 42px);
}
.intaldom-v12-header__brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none;
}
.intaldom-v12-header__brand img {
    display: block;
    width: 215px;
    height: auto;
    max-height: 78px;
    object-fit: contain;
}
.intaldom-v12-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(12px, 1.7vw, 28px);
    flex: 1 1 auto;
}
.intaldom-v12-nav__items {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: clamp(12px, 1.35vw, 26px);
    padding: 0 !important;
    margin: 0 !important;
}
.intaldom-v12-nav__item { list-style: none; margin: 0 !important; padding: 0 !important; }
.intaldom-v12-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    white-space: nowrap;
    color: var(--id-v12-ink);
    text-decoration: none !important;
    font-family: Inter, 'Segoe UI', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    transition: color .18s ease;
}
.intaldom-v12-nav__link:hover,
.intaldom-v12-nav__link.is-current { color: var(--id-v12-green); }
.intaldom-v12-nav__link.is-current::after {
    content: '';
    position: absolute;
    height: 2px;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--id-v12-green);
    border-radius: 4px;
}
.intaldom-v12-header__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-height: 46px;
    flex-shrink: 0;
    padding: 12px 20px;
    white-space: nowrap;
    color: #fff !important;
    background: var(--id-v12-green);
    border: 1px solid var(--id-v12-green);
    border-radius: 6px;
    text-decoration: none !important;
    font: 700 13px/1.2 Inter, 'Segoe UI', system-ui, sans-serif;
    box-shadow: 0 4px 12px rgba(24, 61, 50, .1);
    transition: background .18s ease, transform .18s ease;
}
.intaldom-v12-header__cta:hover {
    background: var(--id-v12-green-hover);
    transform: translateY(-1px);
}
.intaldom-v12-menu-toggle { display: none; }
.intaldom-v12-header :is(a, button):focus-visible,
.intaldom-v12-hero a:focus-visible {
    outline: 3px solid #b9854e;
    outline-offset: 4px;
}

/* HERO: web slika je VEĆ gotova sa svijetlim preljevom lijevo.
   Tekst i gumbi su pravi HTML, nisu dio slike. */
.intaldom-v12-hero {
    width: 100vw;
    max-width: none !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    position: relative;
    min-height: clamp(500px, 42vw, 630px);
    background: var(--id-v12-cream);
    isolation: isolate;
    display: flex;
    align-items: stretch;
    overflow: clip;
}
.intaldom-v12-hero__photo {
    position: absolute;
    z-index: 0;
    inset: 0;
    background-image: var(--intaldom-hero-image);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.intaldom-v12-hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    padding: clamp(45px, 6vw, 85px) 38px;
    display: flex;
    align-items: center;
}
.intaldom-v12-hero__content {
    width: min(100%, 550px);
    color: #192126;
    font-family: Inter, 'Segoe UI', system-ui, sans-serif;
}
.intaldom-v12-hero__eyebrow {
    color: #4b5556 !important;
    margin: 0 0 18px !important;
    font: 600 12px/1.4 Inter, 'Segoe UI', system-ui, sans-serif;
    letter-spacing: .16em;
}
.intaldom-v12-hero__title {
    color: #142129 !important;
    font: 800 clamp(46px, 5vw, 77px)/.98 Inter, 'Segoe UI', system-ui, sans-serif !important;
    letter-spacing: -.045em;
    margin: 0 0 21px !important;
    text-transform: uppercase;
}
.intaldom-v12-hero__lead {
    max-width: 480px;
    color: #3e4445 !important;
    font: 400 clamp(16px, 1.3vw, 19px)/1.55 Inter, 'Segoe UI', system-ui, sans-serif;
    margin: 0 0 23px !important;
}
.intaldom-v12-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}
.intaldom-v12-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    padding: 13px 20px;
    border: 1px solid var(--id-v12-green);
    border-radius: 5px;
    font: 700 14px/1.2 Inter, 'Segoe UI', system-ui, sans-serif;
    text-decoration: none !important;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.intaldom-v12-hero__button:hover { transform: translateY(-1px); }
.intaldom-v12-hero__button--primary {
    background: var(--id-v12-green);
    color: #fff !important;
}
.intaldom-v12-hero__button--primary:hover { background: var(--id-v12-green-hover); }
.intaldom-v12-hero__button--secondary {
    background: rgba(255,255,255,.87);
    color: var(--id-v12-ink) !important;
    border-color: #aebdb4;
}
.intaldom-v12-hero__button--secondary:hover { background: #fff; }
.intaldom-v12-hero__trust {
    display: flex;
    align-items: center;
    gap: 13px;
    font: 500 12px/1.45 Inter, 'Segoe UI', system-ui, sans-serif;
    color: #37423e;
}
.intaldom-v12-hero__trust-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 50%;
    background: #e7dfc8;
    color: var(--id-v12-green);
    display: grid;
    place-items: center;
}
.intaldom-v12-hero__trust-icon svg { display: block; width: 27px; height: 27px; }

/* Izbjegava dvostruke rubove u Astrinom layoutu kod shortcode sekcije. */
.entry-content > .intaldom-v12-hero:first-child { margin-top: 0 !important; }

@media (max-width: 1170px) {
    .intaldom-v12-header__inner { min-height: 78px; padding: 9px 20px; }
    .intaldom-v12-header__brand img { width: 184px; max-height: 68px; }
    .intaldom-v12-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 48px;
        height: 46px;
        margin-left: auto;
        padding: 0;
        background: transparent;
        color: var(--id-v12-ink);
        border: 1px solid #e3e6e1;
        border-radius: 6px;
        cursor: pointer;
    }
    .intaldom-v12-menu-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        border-radius: 2px;
        background: var(--id-v12-green);
        transition: transform .2s ease, opacity .2s ease;
    }
    .intaldom-v12-menu-toggle[aria-expanded='true'] span:first-child { transform: translateY(7px) rotate(45deg); }
    .intaldom-v12-menu-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
    .intaldom-v12-menu-toggle[aria-expanded='true'] span:last-child { transform: translateY(-7px) rotate(-45deg); }
    .intaldom-v12-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 18px max(20px, calc((100vw - 1000px)/2));
        background: #fff;
        border-bottom: 1px solid #e5e8e3;
        box-shadow: 0 20px 30px rgba(0,0,0,.12);
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
        max-height: calc(100dvh - 90px);
        overflow-y: auto;
    }
    .intaldom-v12-nav.is-open { display: flex; }
    .intaldom-v12-nav__items { flex-direction: column; gap: 0; align-items: stretch; }
    .intaldom-v12-nav__link { display: flex; width: 100%; padding: 12px 4px; font-size: 15px; border-bottom: 1px solid #f0f0ed; }
    .intaldom-v12-nav__link.is-current::after { height: 100%; width: 3px; right: auto; top: 0; bottom: auto; left: -10px; }
    .intaldom-v12-header__cta { justify-content: center; padding: 14px; }
}

@media (max-width: 780px) {
    .intaldom-v12-hero {
        display: flex;
        flex-direction: column;
        min-height: auto;
        overflow: visible;
        background: var(--id-v12-cream);
    }
    .intaldom-v12-hero__photo {
        position: relative;
        z-index: 0;
        order: 0;
        inset: auto;
        width: 100%;
        height: clamp(230px, 54vw, 390px);
        background-position: 77% center;
        background-size: cover;
    }
    .intaldom-v12-hero__inner { order: 1; padding: 30px 24px 42px; }
    .intaldom-v12-hero__content { width: 100%; }
    .intaldom-v12-hero__title { font-size: clamp(38px, 8vw, 61px) !important; }
    .intaldom-v12-hero__lead { max-width: 520px; }
}
@media (max-width: 600px) {
    .admin-bar .intaldom-v12-header { top: 46px; }
    .intaldom-v12-header__inner { min-height: 70px; padding: 9px 15px; }
    .intaldom-v12-header__brand img { width: 155px; max-height: 60px; }
    .intaldom-v12-hero__inner { padding: 28px 20px 38px; }
    .intaldom-v12-hero__eyebrow { font-size: 11px; letter-spacing: .13em; }
    .intaldom-v12-hero__title { font-size: clamp(37px, 10vw, 49px) !important; }
    .intaldom-v12-hero__lead { font-size: 16px; }
    .intaldom-v12-hero__actions { align-items: stretch; gap: 10px; }
    .intaldom-v12-hero__button { width: 100%; }
    .intaldom-v12-hero__trust { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
    .intaldom-v12-header *, .intaldom-v12-hero * { transition-duration: .01ms !important; }
}
