/* =============================================================
   NCZM Design Tokens
   Extracted from Figma file: APTCyQPP4zjhjmxtwWiXQ3
   ============================================================= */
@import 'fonts.css';

:root {
    /* --- Colors --- */
    --color-bg: #e7e7e7;
    --color-primary: #e73c3c;
    --color-dark: #191919;
    --color-text: #1e1e1e;
    --color-text-muted: #999999;
    --color-white: #ffffff;
    --color-black: #000000;

    /* --- Typography --- */
    --font-heading: 'Kumbh Sans', sans-serif;
    --font-body: 'Recursive', sans-serif;
    --font-ui: 'Inter', sans-serif;

    /* --- Font sizes --- */
    --fs-xs: 12px;
    --fs-sm: 15px;
    --fs-base: 16px;
    --fs-md: 18px;
    --fs-lg: 20px;
    --fs-xl: 25px;
    --fs-2xl: 30px;
    --fs-3xl: 40px;
    --fs-hero: 47px;
    --fs-page: 60px;

    /* --- Line heights --- */
    --lh-tight: 1.2;
    --lh-base: 1.5;
    --lh-loose: 1.75;

    /* --- Spacing --- */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-nav: 32px;
    --space-lg: 48px;
    --space-xl: 64px;
    --space-2xl: 96px;
    --space-3xl: 116px;

    /* --- Border radius --- */
    --radius-sm: 8px;
    --radius-md: 17px;
    --radius-lg: 26px;
    --radius-xl: 41px;
    --radius-2xl: 51px;

    /* --- Layout --- */
    --container-max: 1280px;
    --container-pad: 116px;

    /* (1512 - 1280) / 2 */
}

/* =============================================================
   Reset & Base
   ============================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

/* Custom Scrollbar Styles */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--color-text-muted) var(--color-bg);
}

/* Webkit-specific styles (Chrome, Edge, Safari) */
html::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

html::-webkit-scrollbar-track {
    background: var(--color-bg);
}

html::-webkit-scrollbar-thumb {
    background-color: var(--color-primary);
    border-radius: 0;

    /* border: 3px solid var(--color-bg); */
}

html::-webkit-scrollbar-thumb:hover {
    background-color: #d32f2f;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: var(--lh-loose);
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;

    /* max-width: 100% */
    height: auto;
}

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

/* =============================================================
   Shared Layout
   ============================================================= */
.container {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--space-lg);
}

.padding-global {
    padding-right: 0.375rem;
    padding-left: 0.375rem;
}

.all-caps {
    text-transform: uppercase;
}

.muted {
    color: var(--color-text-muted);
}

/* =============================================================
   Header / Nav
   ============================================================= */
.site-header {
    background-color: var(--color-bg);
    height: 114px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: border-bottom-color 0.4s ease;
}

.site-header.is-scrolled {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.site-logo img {
    height: 64px;
    width: auto;
}

.site-nav ul {
    display: flex;
    gap: var(--space-nav);
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav a {
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    font-weight: 400;
    color: var(--color-text);
    white-space: nowrap;
    transition: color .2s;
    display: inline-grid;
    grid-template-areas: "navlink";
    place-items: center;
    text-decoration: none;
}

.site-nav a::after {
    display: block;
    content: attr(data-text);
    grid-area: navlink;
    font-weight: 700;
    height: 0;
    overflow: hidden;
    visibility: hidden;
    user-select: none;
    pointer-events: none;
}

/* Stable Hover/Active States */
.site-nav a:hover,
.site-nav a.active,
.site-nav li.current-menu-item a,
.site-nav li.current_page_item a,
.site-nav li.current-menu-ancestor a {
    font-weight: 700;

    /* The grid-area ensures the text node (which defaults to 'navlink' area) 
       occupies the exact same space as the ::after spacer */
}

/* Ensure flex-items don't dance */
.site-nav li {
    flex: 0 0 auto;
}

/* =============================================================
   Utilities
   ============================================================= */
.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

/* =============================================================
   Footer
   ============================================================= */
.site-footer {
    background-color: var(--color-dark);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding-block: var(--space-3xl) var(--space-lg);
    color: var(--color-white);
    position: relative;
    z-index: 2;
    margin-top: -60px;
}

.site-footer .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.footer-contact {
    font-family: var(--font-ui);
    font-size: var(--fs-base);
    font-weight: 500;
    line-height: var(--lh-loose);
    letter-spacing: -0.01em;
}

.footer-contact address {
    margin-top: var(--space-xl);
    font-style: normal;
}

.footer-links {
    text-align: right;
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    display: block;
}

.footer-links a {
    color: var(--color-white);
    display: inline-block;
    margin-bottom: var(--space-xs);
    transition: opacity .2s;
}

.footer-links a:hover {
    opacity: .7;
}

.footer-copy {
    font-family: var(--font-ui);
    font-size: var(--fs-base);
    font-weight: 500;
    letter-spacing: -0.01em;
    padding-top: var(--space-2xl);
    grid-column: 1 / -1;
}

/* =============================================================
   Button
   ============================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: 600;
    line-height: var(--lh-loose);
    padding: 12px var(--space-xl);
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: opacity .2s;
    white-space: nowrap;
}

.btn:hover {
    opacity: .85;
}

/* =============================================================
   News Card (shared across pages)
   ============================================================= */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.news-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.news-card__img-wrap {
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: 413 / 240;
    background-color: var(--color-dark);
}

.news-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-card:hover .news-card__img {
    transform: scale(1.1);
}

.news-card__title {
    font-size: var(--fs-md);
    font-weight: 800;
    line-height: var(--lh-tight);
    color: var(--color-text);
    margin-top: var(--space-sm);
    transition: color 0.3s ease;
}

.news-card:hover .news-card__title {
    color: var(--color-primary);
}

.news-card__date {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    margin-top: 6px;
    text-transform: uppercase;
}

/* =============================================================
   Document Item (shared across document pages)
   ============================================================= */
.doc-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.doc-item__icon {
    width: 3.25rem;
    height: 3.25rem;
    flex-shrink: 0;
}

.doc-item__title {
    font-size: 17.5px;
    font-weight: 800;
    line-height: var(--lh-tight);
    color: var(--color-text);
}

.doc-item__date {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    margin-top: 4px;
    text-transform: uppercase;
}

.doc-group {
    margin-bottom: var(--space-2xl);
}

.doc-group__title {
    font-size: var(--fs-3xl);
    font-weight: 800;
    line-height: var(--lh-tight);
    color: var(--color-black);
    margin-bottom: var(--space-lg);
}

.doc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.doc-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* =============================================================
   Page Hero (section with red bg + image)
   ============================================================= */
.page-hero {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1280 / 686;
    background-color: var(--color-primary);
}

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

/* =============================================================
   Utility classes
   ============================================================= */
.section {
    padding-block: var(--space-2xl);
}

.section--red {
    background-color: var(--color-primary);
}

.section--white {
    background-color: var(--color-white);
    border-radius: var(--radius-2xl);
}

.page-title {
    font-family: var(--font-body);
    font-size: var(--fs-page);
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-black);
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-body);
    font-size: var(--fs-2xl);
    font-weight: 800;
    line-height: 1.4;
    color: var(--color-text);
    margin-bottom: var(--space-lg);
}

.text-body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: 400;
    line-height: var(--lh-loose);
}

/* =============================================================
   Homepage Hero
   ============================================================= */
.hero {
    position: relative;
    margin-inline: auto;
    max-width: var(--container-max);
    padding-inline: var(--space-lg);
}

.hero__image-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 760px;
    position: relative;
}

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

.hero__content {
    position: absolute;
    bottom: 48px;
    left: calc(var(--space-lg) + 48px);
    max-width: 105ch;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: var(--fs-hero);
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

.hero__lead {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: 400;
    line-height: 1.75;
    color: var(--color-black);
    margin-bottom: var(--space-md);
    max-width: 105ch;
}

/* =============================================================
   Advantages
   ============================================================= */
.advantages {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-xl);
}

.advantages__title {
    font-family: var(--font-body);
    font-size: var(--fs-xl);
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: var(--space-lg);
    line-height: 1.5;
}

.advantages-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.advantage-card {
    background-color: var(--color-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-nav) var(--space-nav);
    color: var(--color-white);
    min-height: 137px;
}

.advantage-card__title {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: 800;
    line-height: var(--lh-tight);
    margin-bottom: 6px;
}

.advantage-card__text {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: 400;
    line-height: var(--lh-loose);
}

/* =============================================================
   News Block
   ============================================================= */
.news {
    background-color: var(--color-white);
    border-radius: var(--radius-2xl);
    padding-block: var(--space-xl) var(--space-2xl);
    margin-top: var(--space-xl);
    position: relative;
    z-index: 1;
}

.news__header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: var(--space-md);
}

.news__title {
    font-family: var(--font-body);
    font-size: var(--fs-2xl);
    font-weight: 800;
    color: var(--color-text);
}

.news__footer {
    display: flex;
    justify-content: center;
    margin-top: var(--space-xl);
}

.u-overlap-parent {
    position: relative;
    z-index: 1;
    padding-bottom: 200px !important;
    margin-bottom: 0 !important;
}

.top-red-line {
    border-top: 15px solid var(--color-primary);
}

/* =============================================================
   Post Page
   ============================================================= */
.post-header-section {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-md);
    background-color: var(--color-bg);
}

.post-container {
    max-width: 48rem;
    margin-inline: auto;
    padding-inline: var(--space-md);
}

.post-header {
    /* text-align: center */
    max-width: 55rem;
    margin-inline: auto;
}

.post-header__title {
    font-family: var(--font-body);
    font-size: var(--fs-3xl);
    font-weight: 800;
    line-height: 1.15;
    color: var(--color-black);

    /* margin-bottom: var(--space-sm); */
}

.post-header__date {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;

    /* color: var(--color-text-muted) */
}

.post-media-full {
    /* width: calc(100% + 0.75rem) */
    /* margin-inline: -0.375rem */
    /* Counteract .padding-global on main */
    overflow: hidden;
    border-radius: var(--radius-2xl);
    aspect-ratio: 21 / 9;
    background-color: var(--color-dark);
    margin-block: var(--space-lg);
}

.post-media-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-content-section {
    border-radius: var(--radius-2xl);
    padding-top: var(--space-md);
    padding-bottom: var(--space-md);
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
}

.post-content {
    font-size: var(--fs-sm);
    line-height: var(--lh-loose);
    color: var(--color-text);
}

.post-content .lead {
    font-size: var(--fs-md);
    font-weight: 500;
    margin-bottom: var(--space-md);
    color: var(--color-black);
    line-height: var(--lh-base);
}

.post-content p {
    margin-bottom: var(--space-md);
}

.post-content a {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.post-content a:hover {
    text-decoration: none;
}

.post-content h1,
.post-content h2,
.post-content h3 {
    color: var(--color-black);
    font-weight: 850;
    line-height: var(--lh-tight);
    margin-top: var(--space-md);
    margin-bottom: var(--space-md);
}

.post-content h2 {
    font-size: var(--fs-3xl);
    text-transform: uppercase;
}

.post-content h3 {
    font-size: var(--fs-lg);
}

.post-content ul {
    margin-bottom: var(--space-lg);
    list-style: none;
}

.post-content li {
    position: relative;
    padding-left: var(--space-md);
    margin-bottom: var(--space-xs);
}

.post-content li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-black);
    font-weight: bold;
}

.post-content .btn {
    display: inline-flex;
    margin-bottom: var(--space-sm);
    text-decoration: none;
}

/* =============================================================
   Responsive — Desktop / Tablet (≤ 1024 px)
   ============================================================= */
@media (max-width: 1200px) {
    .hero__content {
        /* left: var(--space-lg) */
        bottom: var(--space-lg);
    }

    .post-media-full {
        border-radius: var(--radius-lg);
    }
}

/* --- Hamburger Button --- */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 110;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-dark);
    position: relative;
    transition: background-color 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--color-dark);
    transition: transform 0.3s ease, top 0.3s ease;
    left: 0;
}

.hamburger::before {
    top: -6px;
}

.hamburger::after {
    top: 6px;
}

/* When expanded, transform to 'X' */
.nav-toggle[aria-expanded="true"] .hamburger {
    background-color: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* =============================================================
   Responsive — Mobile (≤ 768 px)
   ============================================================= */
@media (max-width:1100px) {
    .hero {
        padding-inline: var(--space-sm);
    }

    .hero__image-wrap {
        height: 480px;
    }

    .hero__content {
        position: static;
        margin-top: var(--space-md);
        padding-inline: 0;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .news__header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }

    :root {
        --container-pad: var(--space-md);
        --fs-hero: 32px;
        --fs-page: 36px;
        --fs-3xl: 28px;
    }

    .container {
        padding-inline: var(--space-sm);
    }

    .site-header {
        height: auto;
        padding-block: var(--space-sm);
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background-color: var(--color-bg);
        z-index: 100;
        padding: 100px var(--space-lg) var(--space-lg) var(--space-lg);
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        overflow-y: auto;
    }

    .site-nav.is-active {
        transform: translateY(0);
    }

    .site-nav ul {
        flex-direction: column;
        align-items: center;
        gap: var(--space-md);
        margin-top: var(--space-xl);
    }

    .site-nav a {
        font-size: var(--fs-xl);
    }

    .logo-size {
        width: 10rem;
    }

    .btn {
        padding-inline: var(--space-md);
        white-space: normal;
        text-align: center;
        width: 100%;
        max-width: 100%;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .doc-grid {
        grid-template-columns: 1fr;
    }

    .site-footer .container {
        grid-template-columns: 1fr;
    }

    .footer-links {
        text-align: left;
    }

    .post-header__title {
        font-size: var(--fs-2xl);
    }

    .post-media-full {
        aspect-ratio: 16 / 9;
        border-radius: var(--radius-md);
    }

    /* .post-content-section {
        margin-top: calc(var(--space-xl) * -1);
    } */
}

.logo-size {
    width: 12rem;
}

/* =============================================================
   Page Intro & Sections
   ============================================================= */
.page-intro {
    padding-block: var(--space-3xl) var(--space-md);
}

.podnosenje-section,
.docs-section {
    background-color: var(--color-white);
    border-radius: var(--radius-2xl);
    padding-block: var(--space-xl);
    margin-bottom: var(--space-xl);
}

/* =============================================================
   Podnošenje zahtjeva Styles
   ============================================================= */
.request-group {
    max-width: 688px;
    margin-bottom: var(--space-2xl);
}

.request-group:last-child {
    margin-bottom: 0;
}

.request-group__title {
    font-family: var(--font-body);
    font-size: var(--fs-3xl);
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-black);
    margin-bottom: var(--space-md);
}

.request-group__intro {
    font-family: var(--font-body);
    font-size: var(--fs-md);
    font-weight: 400;
    line-height: var(--lh-loose);
    color: var(--color-black);
    margin-bottom: var(--space-md);
}

.request-group__body {
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 400;
    line-height: var(--lh-loose);
    color: var(--color-black);
    margin-top: var(--space-md);
}

.request-group__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

@media (max-width: 768px) {
    .request-group__title {
        font-size: var(--fs-2xl);
    }
}

/* =============================================================
   Dokumenti Styles
   ============================================================= */
.doc-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doc-icon svg {
    width: 100%;
    height: 100%;
}

/* ── Obavijesti-specific styles ── */
.obavijesti-section {
    background-color: var(--color-white);
    border-radius: var(--radius-2xl);
    padding-block: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.news-grid--spaced {
    margin-bottom: var(--space-xl);
}

.news-card__title--lg {
    font-size: 18px;
}

/* ── Registri-specific styles ── */
.registri-section {
    border-radius: var(--radius-2xl);
    padding-block: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.registri-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
    margin-bottom: var(--space-xl);
}

.registri-body {
    max-width: 607px;
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 400;
    line-height: var(--lh-loose);
    color: var(--color-black);
}

.registri-body ul {
    list-style: none;
    padding: 0;
    margin-top: var(--space-xs);
}

.registri-body li {
    padding-block: 2px;
}

@media (max-width: 768px) {
    .registri-actions {
        gap: var(--space-sm);
    }
}