:root {
    --stm-blue: #0b3c6f;     /* primary FMCG blue */
    --stm-blue-light: #eaf2fb;
    --stm-red: #c4161c;      /* principal red */
    --stm-dark: #0f172a;
    --stm-gray: #64748b;
}


/* NAVIGATION STYLE */

.navbar {
    padding-top: 18px;
    padding-bottom: 18px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    letter-spacing: 0.2px;
    color: #2c2c2c;
}

.navbar-nav .nav-link:hover {
    color: #000;
}
/* active page styling disabled 27.02.26 req pak Lisun karna di mobile kurang bagus
.navbar-nav .nav-link.active {
    border-bottom: 2px solid #7A1F2B;
    padding-bottom: 4px;
}
*/
.dropdown-menu {
    border-radius: 4px;
    border: 1px solid #e9ecef;
    padding-top: 8px;
    padding-bottom: 8px;
}

.dropdown-item {
    font-weight: 500;
    padding: 8px 18px;
}
/* active page styling disabled 27.02.26 req pak Lisun karna di mobile kurang bagus
.dropdown-item.active {
    background-color: transparent !important;
    color: #7A1F2B !important;
    font-weight: 600;
}
*/
/* === HEADER STARTS HERE === */

.navbar {
    background: linear-gradient(
        90deg,
        var(--stm-blue),
        #124a8a
    );
}

.navbar .nav-link,
.navbar-brand {
    color: #ffffff !important;
    font-weight: 600;
}

.navbar .nav-link:hover {
    text-decoration: underline;
}


body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: #1f2937;
}


/* ==========================================
   DESKTOP HOVER DROPDOWN
   ========================================== */

   @media (min-width: 992px) {

    .navbar .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }

    .navbar .dropdown-menu {
        margin-top: 0;
    }

    /* Optional subtle appearance */
    .navbar .dropdown-menu {
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.15s ease;
    }

    .navbar .dropdown:hover > .dropdown-menu {
        opacity: 1;
        visibility: visible;
    }
}

/* ===== HEADER ENDS HERE ===== */

/* ====== HERO STARTS HERE ===== */
/* ================= HERO SLIDER ================= */

.hero-slider {
    position: relative;
    min-height: 35vh;
    overflow: hidden;
}

.hero-slide {
    aspect-ratio: 1920 / 700;
    width: 100%;
    max-height: 700px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
   /* tidak perlu ada overlay agar image background terlihat jelas
    background: linear-gradient(
        to right,
        rgba(0,0,0,0.65),
        rgba(0,0,0,0.35)
    );
    */
}

.hero-content {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    left: 0;
    right: 0;
    z-index: 5;
    color: #fff;
}
.hero-title {
    font-size: 40px;   /* was 48px */
    max-width: 520px;
}

.hero-subtitle {
    font-size: 16px;
}

.carousel-fade .carousel-item {
    transition: opacity 0.8s ease-in-out;
}

.hero-text-wrapper {
    max-width: 520px;
}

.hero-title {
    font-weight: 700;
    letter-spacing: -0.3px;
}
@media (min-width: 992px) {

    .hero-slide {
        background-position: center center;
        background-size: cover;
    }

}
@media (max-width: 991px) {

    .hero-text-wrapper {
        max-width: 420px;
    }

    .hero-title {
        font-size: 28px;
        max-width: 300px;
    }

    .hero-subtitle {
        font-size: 15px;
    }
    .hero-slide {
        background-position: center 70%;
    }


   
}
@media (max-width: 767px) {

    .hero-slider,
    .carousel-item,
    .hero-slide {
        max-height: 200px;
    }

    .hero-slider {
        min-height:14vh;
    } 
    .hero-content {
        padding-left: 12px;
        padding-right: 12px;
    }

    .hero-title {
        font-size: 14px;
        max-width: 240px;
        
    }

    .hero-subtitle {
        font-size: 8px;
        line-height: 1;
        opacity: 0.9;
    }
    .hero-content {
        top: 12px;
        transform: none;
    }
    /* ---------- HERO TAGLINE HIERARCHY FIX ---------- */
.hero-tagline {
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    opacity: 0.85;
    line-height: 1;
    margin-bottom: 6px;
}
}
/* ===== HERO ENDS HERE ===== */



/* ==== HOMEPAGE START HERE ==== */


.kpi-section {
    position: relative;
    margin-top: -120px;   /* THIS creates overlap */
    padding-bottom: 80px;
    z-index: 20;
}




/* ================= KPI FLOATING CARD ================= */

.kpi-card {
    background: #ffffff;
    border-radius: 14px;   /* less rounded */

    padding: 22px 0;

    box-shadow:
        0 12px 28px rgba(0,0,0,0.10),
        0 2px 6px rgba(0,0,0,0.05);

    position: relative;
}



.kpi-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;        /* thin edge */
    background: var(--stm-red);
    border-radius: 20px 20px 0 0;
}


.kpi-item:last-child .kpi-value {
    position: relative;
}

.kpi-item:last-child .kpi-value::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 46px;
    height: 4px;
    background: var(--stm-red);
    border-radius: 2px;
}



/* vertical divider like the mockup */
.kpi-divider {
    position: relative;
}
.kpi-divider::before {
    content: "";
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;   /* taller like mockup */
    width: 1px;
    background: #d1d5db;
}


.kpi-item:last-child .kpi-value {
    position: relative;
}

.kpi-item:last-child .kpi-label {
    position: relative;
}

.kpi-item:last-child .kpi-label::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 0;
    width: 34px;
    height: 3px;
    background: var(--stm-red);
    border-radius: 2px;
}
.kpi-card::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 10%;
    width: 80%;
    height: 20px;
    background: radial-gradient(
        ellipse at center,
        rgba(0,0,0,0.15),
        rgba(0,0,0,0) 70%
    );
    filter: blur(6px);
    z-index: -1;
}
.kpi-section {
    margin-top: -100px;
}


.about-section {
    padding: 100px 0;
    background: linear-gradient(
        180deg,
        #f8fbff,
        #ffffff
    );
}
.about-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--stm-dark);
    margin-bottom: 12px;
}

.about-tagline {
    font-weight: 700;
    color: var(--stm-red);
    margin-bottom: 20px;
}

.about-text {
    font-size: 16px;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 16px;
}

.about-image-wrapper img {
    border-radius: 14px;

    box-shadow:
        0 25px 50px rgba(0,0,0,0.15),
        0 8px 20px rgba(0,0,0,0.08);
}

.about-image-wrapper {
    position: relative;
}

.about-image-wrapper::before {
    content: "";
    position: absolute;
    inset: -20px;
    background: radial-gradient(
        ellipse at center,
        rgba(11, 60, 111, 0.15),
        rgba(11, 60, 111, 0) 70%
    );
    z-index: -1;
}

.brand-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 40px 30px;
    box-shadow:
        0 15px 35px rgba(0,0,0,0.08),
        0 5px 15px rgba(0,0,0,0.04);

    transition: all 0.3s ease;
}

.brand-card:hover {
    transform: translateY(-6px);
}

.brand-logo {
    max-height: 120px;
    object-fit: contain;
}

.brand-name {
    font-weight: 700;
    color: var(--stm-blue);
    margin-bottom: 12px;
}

.brand-desc {
    font-size: 14px;
    color: #64748b;
}

@media (max-width: 992px) {

    .about-section {
        padding: 70px 0;
        text-align: center;
    }

    .about-image-wrapper {
        margin-top: 40px;
    }
    .brands-panel {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        text-align: center;
    }

    .barista-overlay {
        display: none;
    }
}


@media (max-width: 768px) {
    .hero-split {
        padding: 80px 0 60px;
        text-align: center;
    }

    .hero-text {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .hero-visual {
        text-align: center;
    }

    .hero-products {
        max-height: 360px;
    }
    .kpi-divider::before {
        display: none;
    }
    
    .kpi-item {
        margin-bottom: 20px;
    }
    
}


.brands-section {
    padding: 100px 0 120px;
    background: linear-gradient(
        180deg,
        #ffffff,
        #f8fbff
    );
}
.brands-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--stm-dark);
}

.brands-subtitle {
    color: #64748b;
}

.brands-panel {
    background: linear-gradient(
        180deg,
        #f8fbff,
        #ffffff
    );

    border-top: 3px solid #e5e7eb;
    padding: 50px 40px;
    min-height: 420px;
}

.principal {
    border-right: 1px solid #e5e7eb;
}

.brands-panel-title {
    font-weight: 700;
    color: var(--stm-blue);
    margin-bottom: 12px;
}

.brands-panel-label {
    font-weight: 600;
    color: #64748b;
    margin-bottom: 30px;
}

.brands-products {
    max-height: 220px;
    object-fit: contain;
}


.card img {
    height: 400px;
    object-fit: cover;
}

img.rounded {
    border-radius: 12px;
}

section .row.mb-5 {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 40px;
}


footer {
    background: #111827;
    color: #9ca3af;
    padding: 40px 0;
}

/* ================= CTA BAND ================= */

.cta-band {
    background: linear-gradient(
        90deg,
        var(--stm-red),
        #a51217
    );
    padding: 60px 20px;
}

.bg-light {
    background: linear-gradient(
        180deg,
        #f8fbff,
        #ffffff
    );
}
/* ================= BARISTA OVERLAY ================= */

.brands-barista-wrapper {
    position: relative;
    /*overflow: hidden;*/
    margin-bottom: 0;
   /*   min-height: 560px;  prevents collapse */
}

.barista-overlay {
    position: absolute;
    right: 2%;
    bottom: -120px;
    height: 520px;
    z-index: 5;
    pointer-events: none;
}



/* FORCE KPI FLOAT */


.hero-split {
    padding-bottom: 140px; /* creates room for overlap */
}

.kpi-value {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.3px;
    margin-bottom: 6px;
}

/* end for index php /*

/* ====== ABOUT PAGE ======= */

.about-strategy-section {
    padding: 100px 0;
}

.bg-light-blue {
    background: #f8fbff;
}

.section-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #dc2626;
    margin-bottom: 12px;
    display: inline-block;
}

.section-title {
    font-size: 38px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 20px;
}

.section-text {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 18px;
}

.vm-block {
    padding: 40px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.vm-title {
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 15px;
}

.strategy-list {
    padding-left: 18px;
    color: #64748b;
}

.pillar-title {
    font-weight: 600;
    color: #1e3a8a;
    margin-top: 15px;
}

.pillar-text {
    color: #64748b;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 34px;
    font-weight: 700;
    color: #1e3a8a;
}

.stat-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
}

/* ===== Stats Reveal Animation ===== */

.stats-wrapper {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.stats-wrapper.revealed {
    opacity: 1;
    transform: translateY(0);
}
/* end of about page */


/* ======= brands page start ======== */

/* ================= BRAND LOGO GRID ================= */

.brand-logo-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;

    padding: 18px;

    height: 90px;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: all 0.25s ease;
}

.brand-logo-box:hover {
    transform: translateY(-4px);
    border-color: #cbd5e1;
}

.brand-logo-box img {
    max-height: 55px;
    object-fit: contain;
}

/* ======== BRANDS END HERE ========= */

/* ===== PARTNERS PROCESS STEPS ===== */


/* ===== Partnership begins ===== */

.process-step-number {
    width: 64px;
    height: 64px;
    margin: 0 auto;

    border-radius: 50%;
    background: var(--stm-blue-light);
    color: var(--stm-blue);

    font-weight: 800;
    font-size: 20px;

    display: flex;
    align-items: center;
    justify-content: center;
}
/* ===== Partnership ends ===== */


/* ===== MANAGEMENT PAGE ===== */

/* MANAGEMENT PAGE */

.management-section-title {
    font-weight: 600;
    letter-spacing: 1px;
}

.section-divider {
    width: 60px;
    height: 2px;
    background: #000;
    margin: 15px auto 0;
}

.management-card {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.management-card:hover {
    transform: scale(1.04);
}

.management-photo-lg,
.management-photo-md,
.management-photo-sm {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.management-name {
    font-weight: 600;
}

.management-title {
    font-size: 0.9rem;
    color: #6c757d;
    text-transform: uppercase;
}

.management-disclosure {
    font-size: 0.8rem;
    color: #6c757d;
    font-style: italic;
}

.management-intro-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
}

/* ================================
   MANAGEMENT MODAL
================================ */

.management-modal .modal-content {
    border: none;
    border-radius: 0;
}

.management-modal .modal-body {
    position: relative;
}

.modal-close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
}

.modal-photo {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.modal-name {
    font-weight: 600;
    margin-bottom: 10px;
}

.modal-position {
    font-size: 0.95rem;
    text-transform: uppercase;
    color: #6c757d;
    letter-spacing: 0.5px;
}

.modal-bio {
    font-size: 1rem;
    line-height: 1.85;
    color: #444;
}

.management-modal .modal-dialog {
    max-width: 1100px;
}

/* ================================
   MANAGEMENT GRID INTERACTION
================================ */

.management-card {
    cursor: pointer;
}

.management-image-wrapper {
    position: relative;
    overflow: hidden;
}

/* Unified portrait behavior */
.management-photo-lg,
.management-photo-md,
.management-photo-sm {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Subtle zoom */
.management-card:hover .management-photo-lg,
.management-card:hover .management-photo-md,
.management-card:hover .management-photo-sm {
    transform: scale(1.05);
}
.management-modal .modal-body {
    padding: 60px;
}

.modal-name {
    font-weight: 600;
    font-size: 1.6rem;
}

.modal-position {
    margin-bottom: 10px;
}

/* Overlay */
.management-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.management-overlay span {
    color: #ffffff;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.management-card:hover .management-overlay {
    opacity: 1;
}

/* ====== MANAGEMENT ENDS HERE ======= */

/* ====== Products Starts ======= */
/* INTRO */
.products-intro {
    padding: 100px 0 80px;
    background: #ffffff;
}

.section-label {
    font-size: 13px;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: #777;
}

.section-title {
    font-weight: 600;
}

.section-description {
    max-width: 720px;
    margin: 0 auto;
    color: #666;
}


/* PRODUCT SECTION */
.products-section {
    background: #fafafa;
    padding: 100px 0;
}

/* TABS */
.products-tabs {
    border-bottom: 1px solid #e5e5e5;
}

.products-tabs .nav-link {
    border: none;
    border-radius: 0;
    font-size: 14px;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: #666;
    padding: 15px 25px;
}
/* active page styling disabled 27.02.26 req pak Lisun karna di mobile kurang bagus
.products-tabs .nav-link.active {
    color: #000;
    border-bottom: 2px solid #000;
    background: transparent;
}
*/
/* SUBCATEGORY */
.subcategory-block {
    margin-top: 60px;
}

.subcategory-title {
    font-size: 14px;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.subcategory-divider {
    height: 1px;
    background: #e9e9e9;
    margin: 15px 0 40px;
}

/* PRODUCT CARD */
.product-card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    padding: 7px 5px;
    text-align: center;
    transition: all 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.25);
}

.product-image {
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-height: 100%;
    transition: 0.3s ease;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
}

.product-size {
    font-size: 13px;
    color: #777;
}

/* Mobile */
@media (max-width: 575px) {
    .product-image {
        height: 340px;
    }
}

/* Tablet */
@media (min-width: 576px) and (max-width: 991px) {
    .product-image {
        height: 300px;
    }
}

/* Desktop */
@media (min-width: 992px) {
    .product-image {
        height: 260px;
    }
}

/* ===== Products Ends Here ====== */

/* ======= Alamat Cabang Start ======== */

/* ============================= */
/* BRANCHES PAGE */
/* ============================= */

.section-title {
    font-weight: 600;
    letter-spacing: 0.3px;
}

.section-intro {
    max-width: 720px;
    color: #6c757d;
    font-size: 15px;
    line-height: 1.7;
}

.entity-card {
    border: 1px solid #e9ecef;
    padding: 24px;
    background: #ffffff;
}

.entity-name {
    font-weight: 600;
    margin-bottom: 12px;
}

.office-group-title {
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
}

.subsidiary-title {
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 15px;
}

.office-item {
    border: 1px solid #e9ecef;
    padding: 20px;
    background: #ffffff;
    height: 100%;
}

.office-name {
    font-weight: 600;
    margin-bottom: 10px;
}

.office-address {
    font-size: 14px;
    line-height: 1.7;
    color: #495057;
}

.office-map iframe {
    border-radius: 6px;
}

/* ======= Alamat Cabang Ends Here ======== */

/* ====== Karir Start ===== */
/* =========================
   KARIR PAGE
========================= */

.page-karir section {
    padding: 90px 0;
}

@media (max-width: 991px) {
    .page-karir section {
        padding: 70px 0;
    }
}

@media (max-width: 576px) {
    .page-karir section {
        padding: 50px 0;
    }
}


/* Hero */
.page-karir .karir-hero h1 {
    font-weight: 600;
}

.page-karir .karir-hero .lead {
    font-size: 1.15rem;
}


/* Ladder Section */
.page-karir .karir-image-wrapper {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.page-karir .karir-level-list {
    list-style: none;
    padding-left: 0;
    margin: 30px 0;
}

.page-karir .karir-level-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f1f1;
    font-weight: 500;
}

.page-karir .karir-level-list li:last-child {
    border-bottom: none;
}


/* Development Section */
.page-karir .karir-development h5 {
    font-weight: 600;
}

.page-karir .karir-development p {
    margin-bottom: 0;
}


/* Contact Section */
.page-karir .karir-contact {
    background-color: #f9fafb;
}

.page-karir .karir-email a {
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    color: inherit;
}

.page-karir .karir-email a:hover {
    text-decoration: underline;
}

/* =========================
   KARIR TYPOGRAPHY REFINEMENT
========================= */

/* Global text rhythm */
.page-karir {
    line-height: 1.75;
}

.page-karir p {
    margin-bottom: 1rem;
}


/* Section Divider */
.page-karir section + section {
    border-top: 1px solid #f1f3f5;
}


/* H1 Refinement */
.page-karir h1 {
    font-weight: 700;
    letter-spacing: -0.3px;
}


/* H2 Refinement */
.page-karir h2 {
    font-weight: 600;
    margin-bottom: 1.5rem;
}


/* Development Section Titles */
.page-karir .karir-development h5 {
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}


/* Ladder List Refinement */
.page-karir .karir-level-list {
    margin: 35px 0;
}

.page-karir .karir-level-list li {
    padding: 10px 0;
    padding-left: 8px;
    font-weight: 500;
    color: #212529;
}


/* Contact Section Typography */
.page-karir .karir-contact h3 {
    font-weight: 600;
}

.page-karir .karir-contact p {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Karir Ends Here ===== */


/* ====== FOOTER STARTS ====== */
/* =========================
   Footer
========================= */

.site-footer {
    background-color: #f8f9fa;
    padding: 70px 0 45px;
    border-top: 1px solid rgba(0,0,0,0.06);
    font-size: 14px;
}

.footer-logo {
    max-width: 130px;
    height: auto;
}

.footer-heading {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #27496D;
    letter-spacing: 0.3px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #6c757d;
    text-decoration: none;
}

.footer-links a:hover {
    color: #212529;
    text-decoration: underline;
}

.footer-contact p {
    margin-bottom: 14px;
    line-height: 1.6;
}

.footer-contact a {
    color: #6c757d;
    text-decoration: none;
}

.footer-contact a:hover {
    color: #212529;
    text-decoration: underline;
}

.footer-copyright {
    font-size: 13px;
    color: #6c757d;
    white-space: nowrap;
}
.footer-contact strong {
    color: #212529;
    font-weight: 800;
}

.footer-wa i {
    margin-right: 6px;
    font-size: 14px;
    color: #1F3A5F; /* same old blue as headings */
}

/* === FOOTER ENDS HERE === */