/* NGB — blocks for the inner pages: page hero, Ko smo, Šta radimo, Region.
   Same tokens as the homepage: navy #002145, gold #ECB62E, Montserrat. */

.ngb-phero,
.ngb-kosmo,
.ngb-radimo,
.ngb-region {
    --p-navy: #002145;
    --p-gold: #ECB62E;
    --p-muted: #55657C;
    --p-line: #94A9C2;
    --p-soft: #F4F6F9;
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}

/* shared bits ------------------------------------------------------------ */
.ngb-eyebrow {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--p-gold);
}
.ngb-sec-title {
    margin: 0;
    font-size: clamp(1.625rem, 1rem + 2vw, 2.5rem);
    font-weight: 700;
    line-height: 1.12;
    color: var(--p-navy);
    text-wrap: balance;
}
.ngb-sec-sub {
    margin: 16px 0 0;
    max-width: 52ch;
    font-size: 15px;
    line-height: 1.55;
    color: var(--p-muted);
}
.ngb-btn {
    display: inline-flex;
    align-items: center;
    padding: 13px 26px;
    border: 2px solid transparent;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.ngb-btn--gold {
    background: var(--p-gold);
    border-color: var(--p-gold);
    color: var(--p-navy);
}
.ngb-btn--gold:hover,
.ngb-btn--gold:focus-visible {
    background: var(--p-navy);
    border-color: var(--p-navy);
    color: #fff;
}
.ngb-btn--outline {
    background: transparent;
    border-color: var(--p-navy);
    color: var(--p-navy);
}
.ngb-btn--outline:hover,
.ngb-btn--outline:focus-visible {
    background: var(--p-navy);
    color: #fff;
}

/* framed 4:3 photo with a navy place-caption */
.ngb-framed {
    position: relative;
    overflow: hidden;
    margin: 0;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--p-line);
    background: #fff;
}
.ngb-framed img.ngb-framed__img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}
.ngb-framed__cap {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 12px 18px;
    background: var(--p-navy);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* page hero -------------------------------------------------------------- */
/* the hero breaks out to the full page width: the photo has to reach both edges,
   which a background-only bleed cannot do. The inner is then measured back to the
   page gutters by home-blocks.js, the same as every other section. */
.ngb-phero {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: var(--ngb-page-w, 100vw);
    display: flex;
    align-items: center;
    overflow: hidden;
    min-height: var(--phero-h, 340px);
    margin: 0;
    background: var(--p-navy);
    color: #fff;
}
html:has(.ngb-phero) { overflow-x: clip; }
.ngb-phero img.ngb-phero__bg {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    opacity: 0.55;
}
.ngb-phero__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 21, 45, 0.92) 0%, rgba(0, 21, 45, 0.7) 55%, rgba(0, 21, 45, 0.35) 100%);
}
.ngb-phero__inner {
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    min-width: 0;
    padding: 72px 0;
}
.ngb-phero__crumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}
.ngb-phero__crumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}
.ngb-phero__crumb a:hover { color: #fff; }
.ngb-phero__crumb span[aria-hidden] { color: var(--p-gold); }
.ngb-phero__crumb span[aria-current] { color: #fff; }
.ngb-phero__title {
    margin: 18px 0 0;
    font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.875rem);
    font-weight: 700;
    line-height: 1.06;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.38);
}
.ngb-phero__title::after {
    content: "";
    display: block;
    width: 64px;
    height: 3px;
    margin: 20px 0 18px;
    background: var(--p-gold);
}
.ngb-phero__text {
    margin: 0;
    max-width: 34em;
    font-size: clamp(1rem, 1rem + 0.4vw, 1.25rem);
    line-height: 1.58;
    color: rgba(255, 255, 255, 0.92);
    text-wrap: pretty;
}

/* Ko smo ----------------------------------------------------------------- */
.ngb-kosmo {
    margin: 0;
    padding: 80px 0;
    background: #fff;
    border-image: linear-gradient(#fff, #fff) fill 0 / 0 / 0 100vmax;
}
.ngb-kosmo__inner,
.ngb-region__inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
}
.ngb-kosmo__title,
.ngb-region__title {
    margin: 0;
    font-size: clamp(1.625rem, 1rem + 2vw, 2.5rem);
    font-weight: 700;
    line-height: 1.12;
    color: var(--p-navy);
    text-wrap: balance;
}
.ngb-kosmo__p,
.ngb-region__p {
    margin: 22px 0 0;
    max-width: 52ch;
    font-size: 15px;
    line-height: 1.7;
    color: var(--p-muted);
    text-wrap: pretty;
}
.ngb-kosmo__p + .ngb-kosmo__p { margin-top: 16px; }
.ngb-kosmo__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

/* Šta radimo ------------------------------------------------------------- */
.ngb-radimo {
    margin: 0;
    padding: 80px 0;
    background: var(--p-soft);
    border-image: linear-gradient(var(--p-soft), var(--p-soft)) fill 0 / 0 / 0 100vmax;
}
.ngb-radimo__head { margin-bottom: 44px; }
.ngb-radimo__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
.ngb-radimo__card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
    padding: 32px 28px;
    background: #fff;
    border: 1px solid var(--p-line);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.ngb-radimo__card:hover {
    border-color: var(--p-navy);
    box-shadow: 0 12px 30px rgba(0, 33, 69, 0.11);
    transform: translateY(-3px);
}
/* the gold bar along the bottom, as on every other card on the site */
.ngb-radimo__card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--p-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.ngb-radimo__card:hover::after { transform: scaleX(1); }
.ngb-radimo__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    background: var(--p-navy);
    color: var(--p-gold);
}
.ngb-radimo__title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--p-navy);
}
.ngb-radimo__text {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--p-muted);
}

/* Region ----------------------------------------------------------------- */
.ngb-region {
    margin: 0;
    padding: 80px 0;
    background: #fff;
    border-image: linear-gradient(#fff, #fff) fill 0 / 0 / 0 100vmax;
}
.ngb-region__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}
.ngb-region__chips li {
    display: inline-flex;
    white-space: nowrap;
    padding: 6px 12px;
    border: 1px solid #C9D4E2;
    font-size: 13px;
    font-weight: 500;
    color: var(--p-navy);
}

@media (max-width: 900px) {
    .ngb-kosmo,
    .ngb-radimo,
    .ngb-region { padding: 3.5rem 0; }
    .ngb-kosmo__inner,
    .ngb-region__inner { grid-template-columns: 1fr; gap: 2rem; }
    .ngb-phero__inner { padding: 3rem 0; }
}
@media (max-width: 600px) {
    .ngb-btn { justify-content: center; width: 100%; }
}
