/* ============================
   PRELOADER OVERLAY
   ============================ */
#preloader {
    position: fixed;
    inset: 0;
    background: #ffffff;
    /* putih clean */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity .35s ease-out;
}

/* Fade out */
#preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ============================
   SPINNER (Tappi Maroon)
   ============================ */
.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(122, 12, 33, 0.2);
    /* maroon light */
    border-top-color: #7A0C21;
    /* maroon bold */
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

/* Rotation animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* ============================
   Form Contact Submit Btn
   ============================ */

.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: .8;
}

.btn-loading::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================
   1) CSS Variables
========================================= */
:root {
    /* Brand tokens */
    --brand: #340a1c;
    --brand-2: #b03a5b;

    /* Neutrals */
    --ink: #1f1f1f;
    --muted: #6c757d;
    --surface: #fff;
    --bg: #faf8fb;

    /* Sticky navbar offsets (auto diisi oleh JS) */
    --nav-h: 72px;
    /* desktop fallback */
    --nav-h-mobile: 72px;
    /* mobile fallback */
}

html {
    scroll-behavior: smooth;
}

/* Anchor targets berhenti tepat bawah navbar (gap 0) */
[id] {
    scroll-margin-top: var(--nav-h);
}

@media (max-width: 991.98px) {
    [id] {
        scroll-margin-top: var(--nav-h-mobile);
    }
}


/* =========================================
   2) Base
========================================= */
html,
body {
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
}

.fw-800 {
    font-weight: 800;
}


/* =========================================
   3) Layout: Navbar, Hero, Sections, Footer
========================================= */

/* Navbar */
.navbar {
    backdrop-filter: blur(6px);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: .2px;
}

.brand-dot {
    display: inline-block;
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
    background: var(--brand-2);
    margin-left: .35rem;
}

/* Hero (photo) */
.hero-photo {
    position: relative;
    min-height: 74vh;
    color: #fff;
    background-size: cover;
    background-position: 0% 50%;
    background-repeat: no-repeat;
    isolation: isolate;
}

.hero-photo .container {
    position: relative;
    z-index: 2;
}

.hero-center {
    padding: 8rem 0;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(1000px 600px at 85% -10%, rgba(176, 58, 91, .22) 0%, rgba(176, 58, 91, 0) 65%),
        radial-gradient(800px 500px at -10% 10%, rgba(176, 58, 91, .18) 0%, rgba(176, 58, 91, 0) 60%),
        linear-gradient(120deg, rgba(52, 10, 28, .78) 0%, rgba(52, 10, 28, .65) 50%, rgba(52, 10, 28, .5) 100%);
}

/* Hero text */
.hero .tag {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .75rem;
    border-radius: 999px;
    font-size: .875rem;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .25);
}

.hero h1 {
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}

.hero p.lead {
    color: rgba(255, 255, 255, .92);
    text-shadow: 0 1px 2px rgba(0, 0, 0, .18);
}

/* Sections (headings/subtitle) */
.section-title {
    font-weight: 800;
    letter-spacing: -.3px;
}

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

/* CTA (with background image + maroon overlay) */
.cta {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    color: #fff;
    isolation: isolate;
    background: url('../hero/warehouse_1.webp') center/cover no-repeat;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg,
            rgba(52, 10, 28, .75) 0%,
            rgba(176, 58, 91, .55) 50%,
            rgba(52, 10, 28, .65) 100%);
}

.cta .container {
    position: relative;
    z-index: 2;
}

.cta h3,
.cta p {
    color: #fff;
}

/* Footer */
.footer {
    color: #fff;
    background: linear-gradient(180deg, #3c0d22, #2b0817);
}

.footer a {
    color: rgba(255, 255, 255, .85);
}

.footer a:hover {
    color: #fff;
}


/* =========================================
   4) Components: Buttons, Cards, Badges, Icons
========================================= */

/* Dropdown & Select cursor pointer */
.dropdown-item,
.form-select {
    cursor: pointer;
}

/* Buttons */
.btn-brand {
    background: linear-gradient(135deg, var(--brand-2), #d05b86);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: .7rem 1.15rem;
    font-weight: 700;
}

.btn-brand:hover {
    filter: brightness(.96);
    color: #fff;
}

.btn-ghost {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    padding: .7rem 1.15rem;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

/* Cards */
.card {
    border: 1px solid #eee;
    border-radius: 1rem;
    overflow: hidden;
    background: var(--surface);
}

.card.hov {
    /* Elevated + accent-ready */
    border-width: 2px !important;
    border-style: solid !important;
    border-color: var(--accent, #dee2e6) !important;
    border-radius: 1rem;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    --accent: #dee2e6;
    --accent-rgb: 222, 226, 230;
}

.card.hov:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06),
        0 0 15px rgba(var(--accent-rgb), .35);
}

/* Product icon & badge */
.icon-pill {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(176, 58, 91, .1);
    color: var(--brand);
}

.icon-pill-pink {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(233, 30, 99, 0.12);
    /* soft pink background */
    color: #c2185b;
    /* deep modern pink */
}

.icon-pill-green {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(76, 175, 80, 0.12);
    /* soft green background */
    color: #2e7d32;
    /* medium modern green */
}

.icon-pill-orange {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255, 152, 0, 0.15);
    /* soft orange background */
    color: #ef6c00;
    /* deep modern orange */
}

.badge-soft {
    background: rgba(176, 58, 91, .12);
    color: var(--brand);
    border: 1px solid rgba(176, 58, 91, .25);
}

/* Product card accents */
/* Pink Modern */
.card.hov.product-geo {
    --accent: #e83e8c;
    --accent-rgb: 232, 62, 140;
}

/* Hijau Modern */
.card.hov.product-quo {
    --accent: #28a745;
    --accent-rgb: 40, 167, 69;
}

/* Oren Modern */
.card.hov.product-inv {
    --accent: #fd7e14;
    --accent-rgb: 253, 126, 20;
}


/* =========================================
   5) Utilities
========================================= */
/* (letak helper class lain kalau perlu) */


/* =========================================
   6) Responsive
========================================= */
@media (max-width: 991.98px) {
    .hero-photo {
        min-height: 70vh;
    }

    .hero-center {
        padding: 4.5rem 0;
    }

    .cta {
        min-height: 300px;
        background-position: center top;
    }
}

@media (max-width: 575.98px) {
    .hero-photo {
        min-height: 64vh;
        background-position: center top;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.1;
    }

    .hero-center {
        padding: 4.5rem 1.5rem;
    }
    
}


.tagline {
    margin-left: 80px;
    margin-right: 80px;
    padding-left: 40px;
    padding-right: 40px;
}

/* Bila skrin <= 768px (mobile/tablet), reset */
@media (max-width: 768px) {
    .tagline {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }
}