@font-face {
    font-family: "Untitled Sans";
    src: url("assets/fonts/untitled-sans-regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Untitled Sans";
    src: url("assets/fonts/untitled-sans-light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Untitled Sans";
    src: url("assets/fonts/untitled-sans-bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Untitled Serif";
    src: url("assets/fonts/untitled-serif-regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Untitled Serif";
    src: url("assets/fonts/untitled-serif-bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --ink: #00215c;
    --muted: #00215c;
    --blue: #00215c;
    --blue-dark: #00215c;
    --blue-soft: #edf2f5;
    --line: #d7dde2;
    --paper: #ffffff;
    --soft: #f4f7fa;
    --footer: #00215c;
    --accent: #00215c;
    --orange: #ff4819;
    --container: 1400px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Untitled Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

p {
    color: var(--ink);
    margin-bottom: 1rem;
}

h1,
h2,
h3,
h4 {
    color: var(--ink);
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 4.6rem);
}

h2 {
    font-size: clamp(1.75rem, 3vw, 2.6rem);
    margin-bottom: 1.3rem;
}

h3 {
    font-size: 1.35rem;
    margin-bottom: 0.8rem;
}

.container {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
}

.section {
    padding: 82px 0;
}

.section-soft {
    background: var(--soft);
}

.section-kicker {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.7rem;
}

.lead {
    color: var(--ink);
    font-size: 1.17rem;
    max-width: 760px;
}

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 22px rgba(18, 48, 71, 0.06);
}

.nav-container {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 48px;
}

.logo {
    margin-right: auto;
}

.logo img {
    height: 52px;
    width: auto;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--ink);
    font-size: 1.02rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border-bottom: 3px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--orange);
    border-bottom-color: var(--orange);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-toggle {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-left: 1px solid var(--line);
    background: transparent;
    color: var(--blue-dark);
    cursor: pointer;
}

.search-toggle:hover {
    color: var(--blue);
}

.search-panel {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: flex-start;
    justify-content: center;
    background: rgba(47, 67, 81, 0.72);
    padding: 120px 20px 20px;
}

.search-panel.active {
    display: flex;
}

.search-box-panel {
    width: min(720px, 100%);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 24px 60px rgba(47, 67, 81, 0.24);
    padding: 26px;
}

.search-box-panel form {
    display: flex;
    gap: 12px;
}

.search-box-panel input {
    flex: 1;
}

.search-close {
    float: right;
    border: 0;
    background: transparent;
    color: var(--blue-dark);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.hamburger {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    background: var(--paper);
    cursor: pointer;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--blue-dark);
    margin: 5px auto;
}

.hero {
    min-height: calc(100vh - 86px);
    display: grid;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--blue-dark) url('assets/orange-sun-first-frame.jpg') center / cover no-repeat;
}

.hero > video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.hero.video-ready > video.is-active {
    opacity: 1;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(47, 67, 81, 0.42);
    z-index: 2;
    pointer-events: none;
}

.page-hero {
    min-height: 560px;
    height: 64vh;
    max-height: 760px;
    position: relative;
    overflow: hidden;
    background: var(--blue-dark);
}

.page-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero::after {
    display: none;
}

.page-hero-content {
    position: relative;
    z-index: 1;
    padding: 0 0 58px;
    color: #fff;
}

.page-hero-content h1,
.page-hero-content p {
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.image-panel {
    min-height: 360px;
    overflow: hidden;
    border: 1px solid var(--line);
}

.image-panel img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
}

.container-gallery {
    min-height: 420px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 14px;
}

.container-gallery img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    border: 1px solid var(--line);
}

.container-gallery-secondary {
    object-position: 62% center;
}

.fact-grid,
.link-grid,
.career-grid,
.office-grid {
    display: grid;
    gap: 24px;
}

.fact-grid {
    grid-template-columns: repeat(4, 1fr);
}

.link-grid {
    grid-template-columns: repeat(4, 1fr);
}

.career-grid,
.office-grid {
    grid-template-columns: repeat(2, 1fr);
}

.fact {
    border-top: 4px solid var(--blue);
    background: var(--paper);
    padding: 24px;
    box-shadow: 0 12px 30px rgba(18, 48, 71, 0.08);
}

.fact strong {
    display: block;
    color: var(--blue);
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 8px;
}

.link-card,
.text-card,
.office-card {
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 26px;
    min-height: 180px;
    transition: 0.18s ease;
}

.link-card:hover {
    border-color: var(--blue);
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(18, 48, 71, 0.1);
}

.link-card span {
    color: var(--blue);
    font-weight: 700;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border: 2px solid var(--blue);
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.btn:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
}

.btn-light {
    background: #fff;
    color: var(--blue);
}

.btn-light:hover {
    color: #fff;
}

.fleet-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.form-control {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    padding: 11px 13px;
    font: inherit;
}

.form-control:focus {
    outline: 2px solid var(--blue-soft);
    border-color: var(--blue);
}

input[type="file"].form-control {
    padding: 8px;
    color: var(--muted);
    cursor: pointer;
}

input[type="file"].form-control::file-selector-button {
    min-height: 34px;
    margin-right: 14px;
    border: 0;
    background: var(--blue-dark);
    color: #fff;
    padding: 0 16px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s ease;
}

input[type="file"].form-control::file-selector-button:hover {
    background: var(--blue);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.form-response {
    margin-top: 14px;
    color: var(--blue-dark);
    font-weight: 600;
}

.fleet-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    background: #fff;
}

.fleet-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.fleet-table th,
.fleet-table td {
    padding: 15px 18px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

.fleet-table th {
    background: var(--blue-dark);
    color: #fff;
    font-size: 0.82rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.fleet-table tr:last-child td {
    border-bottom: 0;
}

.fleet-table tr:hover td {
    background: var(--blue-soft);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    color: var(--blue-dark);
    font-weight: 700;
    margin-bottom: 7px;
}

.map-wrapper {
    min-height: 430px;
    border: 1px solid var(--line);
    overflow: hidden;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    min-height: 430px;
    border: 0;
}

.footer {
    background: var(--footer);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding: 58px 0 26px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.4fr;
    gap: 48px;
    margin-bottom: 42px;
}

.footer img {
    height: 48px;
    width: auto;
    margin-bottom: 18px;
    filter: brightness(0) invert(1);
}

.footer h4 {
    color: #ffffff;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.footer ul {
    list-style: none;
}

.footer li {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.78);
}

.footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.78);
}

.cookie-banner {
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 80;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 16px 40px rgba(18, 48, 71, 0.18);
    padding: 16px 18px;
}

.cookie-banner.visible {
    display: flex;
}

.cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
}

.cookie-accept-btn {
    border: 0;
    background: var(--blue);
    color: #fff;
    padding: 10px 18px;
    font-weight: 700;
    cursor: pointer;
}

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 92px;
    z-index: 60;
    width: 44px;
    height: 44px;
    border: 0;
    background: var(--blue);
    color: #fff;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: 0.55s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1020px) {
    .nav-list {
        gap: 18px;
    }

    .link-grid,
    .fact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 820px) {
    .logo {
        min-width: 0;
    }

    .logo img {
        width: min(52vw, 240px);
        height: auto;
    }

    .hamburger {
        display: block;
    }

    .nav-list {
        position: fixed;
        inset: 86px 0 auto 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        padding: 12px 24px 24px;
        box-shadow: 0 18px 26px rgba(18, 48, 71, 0.12);
    }

    .nav-actions {
        margin-left: auto;
    }

    .nav-list.active {
        display: flex;
    }

    .nav-link {
        width: 100%;
        border-bottom: 1px solid var(--line);
    }

    .two-col,
    .career-grid,
    .office-grid,
    .footer-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 620px;
    }

    .container-gallery {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .container-gallery img {
        min-height: 280px;
        max-height: 360px;
    }
}

@media (max-width: 620px) {
    .container {
        width: min(100% - 28px, var(--container));
    }

    .section {
        padding: 58px 0;
    }

    .link-grid,
    .fact-grid {
        grid-template-columns: 1fr;
    }

    .fleet-toolbar,
    .footer-bottom,
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
    }
}


/* --- About Us Section: 3 Features with Lines + Safety Footer --- */
.about-features {
    display: flex;
    flex-direction: column;
    gap: 42px;
    margin-top: 10px;
}

.about-feature {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 48px;
    border-top: 2px solid var(--ink);
    padding-top: 24px;
}

.about-feature-title h3 {
    color: var(--ink);
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.3;
}

.about-feature-body p {
    color: var(--ink);
    font-size: 1.08rem;
    line-height: 1.75;
    margin-bottom: 1rem;
    text-align: justify;
    text-justify: inter-word;
}

.about-feature-body p:last-child {
    margin-bottom: 0;
}

.about-safety-footer {
    margin-top: 44px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-safety-footer p {
    color: var(--ink);
    font-size: 1.05rem;
    line-height: 1.75;
    text-align: justify;
    text-justify: inter-word;
    margin-bottom: 0;
}

@media (max-width: 860px) {
    .about-feature {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}



/* --- Navigation Photo Cards (Main Page) --- */
.photo-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.photo-card {
    position: relative;
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.photo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 33, 92, 0.12);
    border-color: var(--orange);
}

.photo-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #e8ecf0;
}

.photo-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.photo-card:hover .photo-card-image img {
    transform: scale(1.06);
}

.photo-card-content {
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--paper);
}

.photo-card-content h3 {
    color: var(--ink);
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0;
    transition: color 0.2s ease;
}

.photo-card:hover .photo-card-content h3 {
    color: var(--orange);
}

.photo-card-content p {
    color: var(--ink);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

.photo-card-content span {
    margin-top: auto;
    padding-top: 14px;
    color: var(--orange);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 900px) {
    .photo-card-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Sortable Fleet Table --- */
.fleet-table th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 28px;
    transition: background 0.2s ease;
}

.fleet-table th.sortable:hover {
    background: #001640;
    color: #fff;
}

.fleet-table th.sortable::after {
    content: " ↕";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    opacity: 0.55;
}

.fleet-table th.sort-asc::after {
    content: " ▲";
    opacity: 1;
    color: var(--orange);
}

.fleet-table th.sort-desc::after {
    content: " ▼";
    opacity: 1;
    color: var(--orange);
}

/* --- Clean Page Title (without background image) --- */
.page-title-clean {
    padding: 54px 0 20px;
    background: #ffffff;
}

.page-title-clean h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
}

/* --- Contact Us Panoramic Office Cards --- */
.offices-vertical {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.office-row-item {
    display: grid;
    grid-template-columns: 380px 1fr;
    align-items: stretch;
    background: #ffffff;
    border: 1px solid var(--line);
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 33, 92, 0.04);
}

.office-row-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 38px 34px;
    background: #ffffff;
    z-index: 2;
}

.office-row-info .section-kicker {
    margin-bottom: 8px;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
}

.office-row-info h2 {
    font-size: 2rem;
    margin-bottom: 14px;
    color: var(--ink);
}

.office-row-info p {
    font-size: 1.02rem;
    line-height: 1.65;
    margin-bottom: 10px;
    color: var(--ink);
}

.office-row-info a {
    color: var(--ink);
    transition: color 0.2s ease;
}

.office-row-info a:hover {
    color: var(--orange);
}

.office-row-image {
    width: 100%;
    height: 100%;
    min-height: 320px;
    overflow: hidden;
    border: none;
}

.office-row-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.office-row-image:hover img {
    transform: scale(1.02);
}

@media (max-width: 860px) {
    .page-title-clean {
        padding: 36px 0 16px;
    }
    .page-title-clean h1 {
        font-size: 2.2rem;
    }
    .office-row-item {
        grid-template-columns: 1fr;
    }
    .office-row-info {
        padding: 28px 22px;
    }
    .office-row-image {
        min-height: 240px;
        max-height: 300px;
    }
    .nav-container {
        padding: 0 20px;
    }
}

.footer-grid.no-head-office {
    grid-template-columns: 2fr 1fr;
    max-width: 840px;
}


/* Uniform body paragraph styling */
.section p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--ink);
    margin-bottom: 1.1rem;
}


/* --- Justified Text Alignment (Obostrano poravnanje) --- */
.section p,
.about-feature-body p,
.lead {
    text-align: justify;
    text-justify: inter-word;
}

/* Keep office details, footer, forms, and cards left aligned */
.office-row-info p,
.footer p,
.cookie-banner p,
.form-group p,
.photo-card-content p {
    text-align: left;
}

/* --- Safety Hero (Same Height as Fleet & Careers) --- */
.hero-safety {
    min-height: 560px;
    height: 64vh;
    max-height: 760px;
}

.hero-safety img {
    object-position: center 12%;
}

/* --- Careers Hero and Layouts --- */
.hero-careers {
    min-height: 560px;
    height: 64vh;
    max-height: 760px;
}

.hero-careers img {
    object-position: center 25%;
}

/* Join Our Team Image (Slightly Reduced & Compact) */
.careers-intro-grid {
    grid-template-columns: 1.25fr 0.75fr;
    gap: 56px;
    align-items: center;
}

.careers-intro-image {
    max-width: 480px;
    width: 100%;
    margin-left: auto;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 4px 20px rgba(0, 33, 92, 0.06);
}

.careers-intro-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

/* Careers Form Image (Slightly Increased) */
.careers-form-layout {
    display: grid;
    grid-template-columns: 440px 1fr;
    gap: 60px;
    align-items: center;
}

.careers-form-image {
    max-width: 440px;
    width: 100%;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 4px 20px rgba(0, 33, 92, 0.06);
}

.careers-form-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

@media (max-width: 960px) {
    .careers-intro-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .careers-intro-image {
        max-width: 440px;
        margin: 0 auto;
    }
}

@media (max-width: 860px) {
    .page-hero,
    .hero-careers,
    .hero-safety {
        min-height: 380px;
        height: 50vh;
    }
    .hero-safety img {
        object-position: center top;
    }
    .careers-form-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .careers-form-image {
        max-width: 340px;
        margin: 0 auto;
    }
}
