:root {
    --brand-orange: #F26716;
    --brand-navy: #1A3C57;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
}

main {
    overflow-x: clip;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6,
.fw-bold, .fw-semibold {
    font-family: 'Poppins', sans-serif;
}

h1, .display-4 { font-size: calc(1.8rem + 0.8vw); }
h2 { font-size: calc(1.4rem + 0.6vw); }
h3 { font-size: calc(1.2rem + 0.4vw); }
.display-5 { font-size: calc(1.8rem + 0.6vw); }
.lead { font-size: 1.05rem; }
.btn-lg { font-size: 1rem; }

.navbar .nav-link,
.navbar .navbar-brand {
    font-size: 0.95rem;
}

.navbar .nav-link {
    position: relative;
    transition: color 0.2s ease;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: var(--brand-orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    transform: scaleX(1);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--brand-orange) !important;
}

.btn-lang-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    background: transparent;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    text-decoration: none;
    padding: 0;
}

.btn-lang-toggle:hover {
    border-color: var(--brand-orange);
    background-color: rgba(242,103,22,0.1);
}

/* Mobile offcanvas navbar */
.navbar-toggler {
    border: none;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.navbar-toggler:focus {
    box-shadow: none;
}
.navbar-toggler .bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.navbar-toggler[aria-expanded="true"] .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.navbar-toggler[aria-expanded="true"] .bar:nth-child(2) {
    opacity: 0;
}
.navbar-toggler[aria-expanded="true"] .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Offcanvas backdrop */
.offcanvas-backdrop.show {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 1 !important;
    background-color: rgba(0,0,0,0.5);
}

/* Offcanvas panel */
.offcanvas-lg {
    border-left: none !important;
}

/* Close button */
.offcanvas-lg .btn-close {
    width: 40px;
    height: 40px;
    background-size: 18px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}
.offcanvas-lg .btn-close:hover {
    background-color: rgba(255,255,255,0.15);
}

@media (max-width: 991.98px) {
    .offcanvas-lg .offcanvas-header {
        padding: 1rem 1.25rem;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .offcanvas-lg .nav-link {
        font-size: 1.05rem;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .offcanvas-lg .nav-link::after {
        display: none;
    }

    .offcanvas-lg .nav-link:hover,
    .offcanvas-lg .nav-link.active {
        color: var(--brand-orange) !important;
        background: rgba(242,103,22,0.08);
        border-radius: 6px;
    }

    .offcanvas-lg .btn-lang-toggle {
        margin: 1rem 0 0 1rem;
    }
}

/* Parallax about section */
.parallax-about {
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa;
}

.parallax-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('https://images.unsplash.com/photo-1497435334941-8c899ee9e8e9?auto=format&fit=crop&w=1920&q=80');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    opacity: 0.06;
}

@media (max-width: 991.98px) {
    .parallax-overlay {
        background-attachment: scroll;
        opacity: 0.04;
    }
}

/* Parallax legalitas section */
.parallax-legal {
    position: relative;
    overflow: hidden;
    background-image: url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?auto=format&fit=crop&w=1920&q=80');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.parallax-legal::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: var(--brand-navy);
    opacity: 0.82;
}

.parallax-legal-light::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: #fff;
    opacity: 0.75;
}

@media (max-width: 991.98px) {
    .parallax-legal {
        background-attachment: scroll;
    }
    .parallax-legal::before {
        opacity: 0.88;
    }
    .parallax-legal-light::before {
        opacity: 0.85;
    }
}

/* Parallax QA section */
.parallax-qa {
    position: relative;
    overflow: hidden;
    background-image: url('/images/qa.webp');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}
.parallax-qa::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: var(--brand-navy);
    opacity: 0.85;
}
@media (max-width: 991.98px) {
    .parallax-qa {
        background-attachment: scroll;
    }
    .parallax-qa::before {
        opacity: 0.9;
    }
}

/* Hero about section */
.hero-about {
    position: relative;
    overflow: hidden;
    background-image: url('/images/about.webp');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}
.hero-about::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: var(--brand-navy);
    opacity: 0.82;
}
@media (max-width: 991.98px) {
    .hero-about {
        background-attachment: scroll;
    }
    .hero-about::before {
        opacity: 0.88;
    }
}

/* Hero services section */
.hero-services {
    position: relative;
    overflow: hidden;
    background-image: url('/images/about.webp');
    background-attachment: fixed;
    background-size: cover;
    background-position: center -120px;
}
.hero-services::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: var(--brand-navy);
    opacity: 0.50;
}
@media (max-width: 991.98px) {
    .hero-services {
        background-attachment: scroll;
    }
    .hero-services::before {
        opacity: 0.60;
    }
}

/* Hero contact section */
.hero-contact {
    position: relative;
    overflow: hidden;
    background-image: url('/images/contact.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}
.hero-contact::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: var(--brand-navy);
    opacity: 0.82;
}
@media (max-width: 991.98px) {
    .hero-contact {
        background-attachment: scroll;
    }
    .hero-contact::before {
        opacity: 0.88;
    }
}

/* Parallax vision section */
.parallax-vision {
    position: relative;
    overflow: hidden;
    background-color: #fff;
}

.parallax-vision::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('../images/mapvector.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.12;
    filter: grayscale(1);
}

@media (max-width: 991.98px) {
    .parallax-vision::before {
        background-attachment: scroll;
        opacity: 0.08;
    }
}

/* Parallax why choose us section */
.parallax-why {
    position: relative;
    overflow: hidden;
    background-color: var(--brand-navy);
}
.parallax-why::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('../images/mapvector.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.1;
    filter: grayscale(1);
}
@media (max-width: 991.98px) {
    .parallax-why::before {
        background-attachment: scroll;
        opacity: 0.06;
    }
}

.bg-brand-orange { background-color: var(--brand-orange); }
.bg-brand-navy { background-color: var(--brand-navy); }
.text-brand-orange { color: var(--brand-orange); }
.text-brand-navy { color: var(--brand-navy); }
.btn-brand-orange {
    background-color: var(--brand-orange);
    border-color: var(--brand-orange);
    color: #fff;
}
.btn-brand-orange:hover {
    background-color: #d85910;
    border-color: #d85910;
    color: #fff;
}
.btn-brand-navy {
    background-color: var(--brand-navy);
    border-color: var(--brand-navy);
    color: #fff;
}
.btn-brand-navy:hover {
    background-color: #0f2a3f;
    border-color: #0f2a3f;
    color: #fff;
}
.border-brand-orange { border-color: var(--brand-orange) !important; }
.btn-outline-brand-orange {
    color: var(--brand-orange);
    border-color: var(--brand-orange);
    background: transparent;
}
.btn-outline-brand-orange:hover {
    color: #fff;
    background-color: var(--brand-orange);
    border-color: var(--brand-orange);
}

/* Supply Chain Step Cards */
.step-card {
    background: #fff;
    border: none;
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.1) !important;
}
.step-card p {
    color: #212529 !important;
}
/* Footer */
.footer-link:hover {
    color: var(--brand-orange) !important;
}

/* Language dropdown */
.navbar .dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    padding: 0.5rem;
    min-width: 180px;
}
.navbar .dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    transition: background-color 0.15s ease;
}
.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background-color: rgba(242,103,22,0.1);
    color: var(--brand-orange);
}
.navbar .dropdown-item.active,
.navbar .dropdown-item:active {
    background-color: var(--brand-orange);
    color: #fff;
}

.step-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--brand-navy);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
}
.step-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--brand-navy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Hero product section */
.hero-product {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1A3C57 0%, #0f2a3f 100%);
}
.hero-product::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url('/images/hero-product.webp') center center / cover no-repeat;
    opacity: 0.45;
}
@media (max-width: 991.98px) {
    .hero-product {
        background-attachment: scroll;
    }
}

/* Spec table */
.spec-table thead th {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}
.spec-table tbody td {
    font-size: 0.92rem;
}
.spec-table tbody tr:hover {
    background-color: rgba(242,103,22,0.05);
}

/* Disclaimer box */
.disclaimer-box {
    transition: box-shadow 0.3s ease;
}
.disclaimer-box:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

/* Placeholder images */
.placeholder-img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.placeholder-img:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important;
}

/* Highlight cards */
.highlight-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.highlight-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.1) !important;
}
.highlight-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(242,103,22,0.1);
    color: var(--brand-orange);
    font-size: 1.75rem;
}

/* Grid background */
.bg-grid {
    background-image:
        linear-gradient(rgba(0,0,0,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}
