:root {
    --pt-yellow: #f7bd16;
    --pt-yellow-deep: #dda207;
    --pt-navy: #071b2b;
    --pt-navy-2: #0b2638;
    --pt-ink: #0b1e2d;
    --pt-muted: #66727c;
    --pt-light: #f4f6f7;
}

html {
    scroll-behavior: smooth;
}

/* Home header */
body.home-page > header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 50;
    height: 108px;
    background: linear-gradient(180deg, rgba(3, 17, 28, 0.94), rgba(3, 17, 28, 0.68) 72%, transparent);
    color: #fff;
}

body.home-page > header .header-container {
    min-height: 98px;
    gap: 28px;
}

body.home-page > header .header-container > img {
    width: 86px !important;
    height: 86px !important;
    max-width: none !important;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.28));
}

body.home-page > header .nav-links {
    align-items: center;
    gap: clamp(18px, 2.6vw, 36px);
}

body.home-page > header .nav-links > li > a,
body.home-page > header .dropdown-toggle > a {
    color: rgba(255, 255, 255, 0.94);
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

body.home-page > header .nav-links a.active,
body.home-page > header .nav-links a:hover,
body.home-page > header .dropdown-toggle:hover > a {
    color: var(--pt-yellow);
}

body.home-page > header .nav-links a::after {
    bottom: -14px;
    height: 3px;
    background: var(--pt-yellow);
}

body.home-page > header .dropdown-toggle i {
    color: var(--pt-yellow);
}

body.home-page > header .header-buttons .btn {
    padding: 11px 18px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 3px;
    color: #fff;
    font-size: 12px;
    font-weight: 750;
    text-transform: uppercase;
}

body.home-page > header .header-buttons .btn:hover {
    border-color: var(--pt-yellow);
    background: var(--pt-yellow);
    color: var(--pt-navy);
}

body.home-page > header .mobile-toggle {
    color: #fff;
}

/* Hero slideshow */
.home-hero.hero {
    position: relative;
    isolation: isolate;
    display: block;
    min-height: 820px;
    height: max(820px, 100svh);
    padding: 108px 0 0;
    overflow: hidden;
    background: #07131e;
    color: #fff;
    text-align: left;
}

.home-hero .hero-slideshow,
.home-hero .hero-slide,
.home-hero .hero-overlay {
    position: absolute;
    inset: 0;
}

.home-hero .hero-slideshow {
    z-index: 0;
    overflow: hidden;
}

.home-hero .hero-slide {
    opacity: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transform: scale(1.02);
    transition: opacity 1.1s ease, transform 7s ease;
    will-change: opacity, transform;
}

.home-hero .hero-slide:nth-child(2) { background-position: center 62%; }
.home-hero .hero-slide:nth-child(3) { background-position: center 58%; }
.home-hero .hero-slide:nth-child(4) { background-position: center 52%; }

.home-hero .hero-slide.is-active {
    opacity: 1;
    transform: scale(1.075);
}

.home-hero .hero-overlay {
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(3, 13, 22, 0.91) 0%, rgba(3, 13, 22, 0.74) 40%, rgba(3, 13, 22, 0.31) 71%, rgba(3, 13, 22, 0.52) 100%),
        linear-gradient(180deg, rgba(3, 13, 22, 0.18) 45%, rgba(3, 13, 22, 0.9) 100%);
}

.home-hero::after {
    content: "";
    position: absolute;
    z-index: 4;
    left: -4%;
    bottom: -64px;
    width: 108%;
    height: 86px;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    background: #fff;
}

.home-hero .hero-layout {
    position: relative;
    z-index: 3;
    display: flex;
    min-height: calc(max(820px, 100svh) - 258px);
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    padding-top: 12px;
    padding-bottom: 32px;
}

.home-hero .hero-content {
    width: min(100%, 650px);
    max-width: 650px;
    margin: 0;
    padding: 0;
}

.home-hero .hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.77);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.2em;
}

.home-hero .hero-kicker::before {
    content: "";
    width: 36px;
    height: 2px;
    background: var(--pt-yellow);
}

.home-hero .hero-content h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(3rem, 5.35vw, 5.3rem);
    font-weight: 800;
    line-height: 0.96;
    letter-spacing: -0.045em;
    text-align: left;
    text-shadow: 0 5px 30px rgba(0, 0, 0, 0.42);
}

.home-hero .hero-content h1 span,
.home-hero .hero-content h1 strong {
    display: block !important;
    margin: 0 !important;
    font-size: inherit !important;
    font-weight: inherit;
    line-height: inherit;
}

.home-hero .hero-content h1 strong {
    color: var(--pt-yellow);
}

.home-hero .hero-rule {
    width: 118px;
    height: 3px;
    margin: 24px 0 20px;
    background: var(--pt-yellow);
}

.home-hero .hero-content > p {
    max-width: 560px;
    margin: 0 0 27px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(15px, 1.3vw, 18px);
    line-height: 1.75;
    text-align: left;
}

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

.hero-btn {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border: 1px solid transparent;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}

.hero-btn:hover,
.hero-btn:focus-visible {
    transform: translateY(-2px);
    outline: none;
}

.hero-btn--primary {
    background: var(--pt-yellow);
    color: #081723;
    box-shadow: 0 12px 26px rgba(247, 189, 22, 0.23);
}

.hero-btn--primary:hover,
.hero-btn--primary:focus-visible {
    background: #ffd13e;
}

.hero-btn--ghost {
    border-color: rgba(255, 255, 255, 0.72);
    background: rgba(3, 13, 22, 0.34);
    color: #fff;
    backdrop-filter: blur(8px);
}

.hero-btn--ghost:hover,
.hero-btn--ghost:focus-visible {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.hero-dots {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: height 0.25s ease, border-radius 0.25s ease, background-color 0.25s ease;
}

.hero-dot.is-active {
    height: 31px;
    border-color: var(--pt-yellow);
    border-radius: 8px;
    background: var(--pt-yellow);
}

.hero-stats {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 25px 0 42px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(180deg, rgba(3, 15, 25, 0.58), rgba(3, 15, 25, 0.94));
    backdrop-filter: blur(8px);
}

.hero-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 0 20px;
}

.hero-stat {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 2px 22px;
    border-right: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-stat:last-child { border-right: 0; }

.hero-stat > i {
    color: var(--pt-yellow);
    font-size: 31px;
}

.hero-stat div {
    display: flex;
    flex-direction: column;
}

.hero-stat strong {
    color: #fff;
    font-size: clamp(1.8rem, 2.8vw, 2.45rem);
    line-height: 1;
}

.hero-stat span {
    margin-top: 9px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.home-hero .hero-scroll {
    position: absolute;
    z-index: 6;
    left: 50%;
    bottom: 5px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    transform: translateX(-50%);
}

.home-hero .hero-scroll svg {
    width: 30px;
    height: 30px;
    animation: pt-arrow-bounce 1.8s ease-in-out infinite;
}

@keyframes pt-arrow-bounce {
    0%, 100% { transform: translateY(-2px); }
    50% { transform: translateY(5px); }
}

/* Welcome and service shortcuts */
.home-welcome {
    padding: 96px 0 92px;
    background: #fff;
}

.section-heading {
    max-width: 780px;
    margin: 0 auto 55px;
    text-align: center;
}

.section-heading > span,
.section-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--pt-yellow-deep);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.16em;
}

.section-heading h2 {
    margin: 0;
    color: var(--pt-ink);
    font-size: clamp(2.2rem, 4vw, 3.55rem);
    font-weight: 850;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.section-heading > i {
    display: block;
    width: 54px;
    height: 3px;
    margin: 19px auto 17px;
    background: var(--pt-yellow);
}

.section-heading p {
    max-width: 670px;
    margin: 0 auto;
    color: var(--pt-muted);
    font-size: 16px;
    line-height: 1.75;
}

.service-shortcuts {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 26px;
}

.service-shortcut {
    display: flex;
    min-width: 0;
    align-items: center;
    flex-direction: column;
    padding: 8px 8px 18px;
    text-align: center;
    transition: transform 0.23s ease;
}

.service-shortcut:hover,
.service-shortcut:focus-visible {
    transform: translateY(-7px);
    outline: none;
}

.service-shortcut > span {
    display: grid;
    width: 92px;
    height: 82px;
    place-items: center;
    margin-bottom: 19px;
    border: 1px solid #ebedef;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(17, 35, 49, 0.09);
    color: var(--pt-navy);
    font-size: 34px;
    transition: color 0.23s ease, border-color 0.23s ease, background-color 0.23s ease;
}

.service-shortcut:hover > span,
.service-shortcut:focus-visible > span {
    border-color: var(--pt-yellow);
    background: var(--pt-yellow);
    color: var(--pt-navy);
}

.service-shortcut h3 {
    margin: 0;
    color: var(--pt-ink);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.45;
    text-transform: uppercase;
}

.welcome-actions {
    margin-top: 36px;
    text-align: center;
}

.welcome-actions a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    color: var(--pt-ink);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.welcome-actions a i { color: var(--pt-yellow-deep); }

/* Home values */
.home-values {
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    background:
        linear-gradient(105deg, rgba(5, 24, 38, 0.97), rgba(5, 24, 38, 0.88)),
        url("../img/slikaparalax.jpg") center / cover no-repeat;
    color: #fff;
}

.home-values::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 88% 0%, rgba(247, 189, 22, 0.16), transparent 38%);
}

.home-values .container {
    position: relative;
    z-index: 1;
}

.home-values__intro {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 70px;
    align-items: end;
    margin-bottom: 48px;
}

.home-values__intro h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(2.15rem, 4vw, 3.55rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.home-values__intro > p {
    margin: 0 0 5px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 1.8;
}

.home-values .values-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
}

.home-values .value-card {
    min-height: 245px;
    padding: 30px 26px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.055);
    box-shadow: none;
    text-align: left;
    backdrop-filter: blur(8px);
}

.home-values .value-card:hover {
    transform: translateY(-5px);
    border-color: rgba(247, 189, 22, 0.62);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
}

.home-values .value-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    margin-bottom: 24px;
    border: 1px solid rgba(247, 189, 22, 0.55);
    border-radius: 3px;
    color: var(--pt-yellow);
    font-size: 22px;
}

.home-values .value-title {
    margin: 0 0 12px;
    color: #fff;
    font-size: 19px;
}

.home-values .value-description {
    margin: 0;
    color: rgba(255, 255, 255, 0.66);
    font-size: 14px;
    line-height: 1.75;
}

/* Old homepage blocks are retained in the file as a safe fallback only. */
body.home-page > .stats,
body.home-page > .values-section,
body.home-page > .parallax {
    display: none !important;
}

@media (max-width: 1100px) {
    body.home-page > header .header-buttons { display: none; }
    .service-shortcuts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .home-values .values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 992px) {
    body.home-page > header .header-container > img {
        width: 72px !important;
        height: 72px !important;
    }

    body.home-page > header .nav-links {
        top: 88px;
        gap: 7px;
        align-items: stretch;
        padding: 22px 24px 28px;
        background: rgba(5, 24, 38, 0.98);
        box-shadow: 0 22px 45px rgba(0, 0, 0, 0.3);
    }

    body.home-page > header .nav-links a::after { bottom: -3px; }
    body.home-page > header .dropdown-menu { background: rgba(255, 255, 255, 0.04); }
    body.home-page > header .dropdown-item { color: rgba(255, 255, 255, 0.78); }

    .home-hero .hero-layout { padding-right: 48px; }
    .hero-stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-stat:nth-child(2) { border-right: 0; }
    .hero-stat:nth-child(-n + 2) { padding-bottom: 14px; }
    .hero-stat:nth-child(n + 3) { padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
    .hero-stats { padding-top: 18px; }
    .home-hero.hero { min-height: 910px; height: max(910px, 100svh); }
    .home-hero .hero-layout { min-height: calc(max(910px, 100svh) - 338px); }

    .home-values__intro { grid-template-columns: 1fr; gap: 25px; }
}

@media (max-width: 680px) {
    body.home-page > header { height: 88px; }
    body.home-page > header .header-container { min-height: 82px; }
    body.home-page > header .header-container > img {
        width: 64px !important;
        height: 64px !important;
    }

    .home-hero.hero {
        min-height: 910px;
        height: 100svh;
        max-height: 960px;
        padding-top: 88px;
    }

    .home-hero .hero-layout {
        min-height: calc(100% - 278px);
        align-items: center;
        padding: 24px 42px 16px 20px;
    }

    .home-hero .hero-content h1 {
        font-size: clamp(2.65rem, 13vw, 4.1rem);
        line-height: 0.97;
    }

    .home-hero .hero-kicker { font-size: 10px; }
    .home-hero .hero-content > p { max-width: 94%; font-size: 14px; line-height: 1.65; }
    .hero-actions { gap: 10px; }
    .hero-btn { min-height: 48px; padding: 12px 16px; font-size: 11px; }
    .hero-dots { position: absolute; right: 16px; }

    .hero-stats { padding: 15px 0 35px; }
    .hero-stats__grid { padding: 0 10px; }
    .hero-stat { min-height: 68px; gap: 10px; padding-right: 8px; padding-left: 8px; }
    .hero-stat > i { font-size: 22px; }
    .hero-stat strong { font-size: 1.65rem; }
    .hero-stat span { margin-top: 5px; font-size: 8px; letter-spacing: 0.02em; }
    .home-hero .hero-scroll { bottom: 0; }

    .home-welcome { padding: 76px 0 70px; }
    .section-heading { margin-bottom: 40px; }
    .section-heading p { font-size: 14px; }
    .service-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
    .service-shortcut:last-child { grid-column: 1 / -1; }
    .service-shortcut > span { width: 82px; height: 72px; font-size: 29px; }
    .service-shortcut h3 { font-size: 11px; }

    .home-values { padding: 76px 0; }
    .home-values .values-grid { grid-template-columns: 1fr; }
    .home-values .value-card { min-height: 0; }
}

@media (max-width: 410px) {
    .home-hero .hero-content h1 { font-size: 2.55rem; }
    .hero-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .home-hero .hero-slide,
    .home-hero .hero-scroll svg,
    .hero-btn,
    .hero-dot,
    .service-shortcut {
        animation: none !important;
        transition: none !important;
    }
}
