/*
Theme Name: BLOK Parkir Custom
Author: BLOK Parkir Team
Version: 2.0
*/

:root {
    --navy: #202641; /* Matches logo-header.png exactly */
    --orange: #E88E36; /* Matches your footer orange */
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: #333333;
    background-color: #ffffff;
    overflow-x: hidden; /* Prevents the diagonal wedge from creating horizontal scrollbars */
}

/* --- HEADER --- */
.site-header {
    background-color: var(--navy);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
}

.logo img {
    height: 90px; /* Increased from 60px. Change to 100px or 110px if you want it even bigger */
    width: auto;
    display: block;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-navigation ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
}

.main-navigation ul li a:hover {
    color: var(--orange);
}

.main-navigation ul li a.active {
    color: var(--orange);
    border-bottom: 2px solid var(--orange); /* The clean underline */
    padding-bottom: 5px; /* Gives the text some breathing room above the line */
}

/* --- BULLETPROOF TWO-TIER FOOTER --- */
.site-footer-wrapper {
    margin-top: 0; /* <-- Changed from 50px to kill the white gap */
    width: 100%;
    display: block;
}

.footer-orange {
    position: relative; /* CRITICAL: Keeps the wedge and logo from flying up the page */
    background-color: var(--orange);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 30px 5%;
    height: 160px; /* Hard-locked height */
    overflow: hidden; /* CRITICAL: Literally chops off any part of the B that tries to be bigger than 160px */
}

.footer-logo-giant {
    position: absolute;
    bottom: 0;
    left: -10px; /* Bleeds it perfectly off the edge */
    margin: 0;
    padding: 0;
    line-height: 0;
    height: 160px; /* Locks it to the container height */
}

.footer-logo-giant img {
    height: 100%;
    width: auto;
    display: block;
}

.footer-text {
    text-align: right;
    color: var(--navy);
    z-index: 2;
    margin-right: 200px;
}

.footer-text h3 {
    margin: 0 0 5px 0;
    font-weight: 900;
    font-size: 20px;
    text-transform: uppercase;
}

.footer-text p {
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
}

.footer-wedge {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 250px;
    background-color: var(--navy);
    clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 1;
}

/* Bottom Navy Bar */
.footer-navy {
    background-color: var(--navy);
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-nav-logo img {
    height: 40px;
    width: auto;
    display: block;
}

.footer-nav-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-nav-links a {
    color: #ffffff !important; /* Forces white text, bypassing any default HTML blue */
    text-decoration: none !important;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 13px;
}

.footer-nav-links a:hover {
    color: var(--orange) !important;
}

.footer-nav-links .divider {
    color: #ffffff;
}

/* --- SLIDER & GRIDS --- */
.hero-slider {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    background: var(--navy);
}
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }

.grid-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}
.section-title {
    text-align: center;
    color: var(--navy);
    font-weight: 800;
    margin-bottom: 40px;
    text-transform: uppercase;
    font-size: 36px; /* Bumps the title size up by roughly 50% */
}
.grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.grid-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    border: none; /* <-- This completely removes the blue square border */
    padding: 10px; /* Reduced padding since the box is gone */
}
.grid-item img, .grid-item .img-placeholder {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    line-height: 80px;
}
.grid-item h3 { margin: 0 0 10px 0; color: var(--navy); }
    .grid-item h3 span { color: var(--orange); margin-right: 5px; }
.img-placeholder {
    display: block; width: 100%; min-height: 200px; background-color: #eaeaea; border: 2px dashed #ccc; text-align: center; line-height: 200px; color: #666; font-size: 12px; text-transform: uppercase;
}

/* --- REKANAN GRID --- */
.rekanan-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* This is the magic rule that centers the bottom row */
    align-items: center;
    gap: 40px;
    
    /* 4 logos (150px each) + 3 gaps (40px each) = 720px. 
       We cap the container at 800px so a 5th logo physically cannot fit and gets pushed down to center. */
    max-width: 800px; 
    margin: 0 auto 60px auto; 
}

.rekanan-logo {
    max-height: 80px; 
    width: 150px; /* Locks the size so the columns stay uniform */
    object-fit: contain; 
}

/* --- TENTANG KAMI SINGLE COLUMN --- */
.proses-kerjasama-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 900px; /* Keeps the text from stretching too wide on big monitors */
    margin: 0 auto;
}

.list-item-single {
    display: flex;
    gap: 30px;
    align-items: center; /* Centers the icon perfectly with the text block vertically */
}

.list-item-single img, .list-item-single .img-placeholder {
    width: 120px; /* Scaled up the icons to match the larger typography */
    height: 120px;
    flex-shrink: 0;
}

.list-item-single h3 {
    margin: 0 0 10px 0;
}

.list-item-single p {
    margin: 0;
}

/* --- GALLERY GRIDS --- */
.gallery-grid-small {
    display: grid;
    grid-template-columns: repeat(3, 160px); 
    gap: 30px;
    justify-content: center; /* <-- Changed from start to center */
}

.gallery-photo, .video-thumbnail {
    width: 100%;
    aspect-ratio: 1 / 1; 
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 2px solid var(--navy); /* Adds the crisp box border seen in the PDF */
}

/* Video specific styling */
.video-thumbnail {
    position: relative;
    background: #eee;
}
.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: white;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    pointer-events: none; /* Let clicks pass through to the container */
}

/* --- LIGHTBOX OVERLAY --- */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9); /* Heavy dimming */
    display: none; /* Hidden until clicked */
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

#lightbox-img {
    max-width: 80%;
    max-height: 85vh;
    border: 3px solid #fff; 
}

/* Top Right X Button */
.lightbox-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #fff;
    font-size: 60px;
    cursor: pointer;
    line-height: 1;
}

/* Navigation Controls */
.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 70px;
    cursor: pointer;
    user-select: none;
    padding: 20px;
}

.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

/* Darkened state at beginning and end */
.disabled-arrow {
    opacity: 0.2;
    pointer-events: none; /* Prevents clicking when disabled */
}