/* ============================================
   BetonIndustri.com - Industrial Modern Theme
   Colors: Gray, Black, White, Gold (#C9A84C)
   ============================================ */

/* --- CSS Variables --- */
:root {
    --primary: #C9A84C;
    --primary-dark: #A8893A;
    --dark: #1A1A1A;
    --gray-dark: #2D2D2D;
    --gray: #4A4A4A;
    --gray-medium: #6C757D;
    --gray-light: #E8E8E8;
    --light: #F5F5F5;
    --white: #FFFFFF;
    --font-main: 'Inter', sans-serif;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

/* --- Global --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--gray);
    background-color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Section Spacing --- */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.section-title-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    color: var(--gray-medium);
    font-size: 1.1rem;
    margin-top: 15px;
    margin-bottom: 40px;
}

/* --- Navbar --- */
.navbar {
    padding: 15px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(26, 26, 26, 0.97);
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--white) !important;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand img {
    height: 45px;
    width: auto;
}

.navbar-brand span {
    color: var(--primary);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 18px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28201, 168, 76, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* --- Internal page navbar (dark bg) --- */
.navbar-internal {
    background: var(--dark);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.92), rgba(45, 45, 45, 0.88)),
                url('../images/hero-bg.jpg') center/cover no-repeat;
    color: var(--white);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

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

.hero-badge {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--white);
}

.hero-title span {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 35px;
    max-width: 550px;
    line-height: 1.8;
}

/* --- Buttons --- */
.btn-primary-custom {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 14px 35px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 6px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary-custom:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 168, 76, 0.35);
}

.btn-outline-custom {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 30px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 6px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-outline-custom:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(201, 168, 76, 0.08);
}

.btn-wa {
    background: #25D366;
    color: var(--white);
    border: none;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 6px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-wa:hover {
    background: #1EBE57;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.btn-wa-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* --- Stats Bar --- */
.stats-bar {
    background: var(--dark);
    padding: 40px 0;
}

.stat-item {
    text-align: center;
    padding: 15px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Keunggulan / Features --- */
.feature-card {
    background: var(--white);
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--white);
}

.feature-card h4 {
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--gray-medium);
    margin-bottom: 0;
}

/* --- Product Cards --- */
.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: var(--gray-light);
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: var(--white);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-body h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.product-body p {
    font-size: 0.9rem;
    color: var(--gray-medium);
    flex: 1;
}

.product-body .btn-wa {
    margin-top: 15px;
    text-align: center;
    justify-content: center;
    width: 100%;
}

/* --- Product Category --- */
.product-category {
    margin-bottom: 60px;
    scroll-margin-top: 100px;
}

.product-category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary);
}

.product-category-header .category-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.product-category-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-category-header p {
    margin-bottom: 0;
    color: var(--gray-medium);
    font-size: 0.9rem;
}

.product-subitem {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-subitem:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.product-subitem .subitem-icon {
    width: 45px;
    height: 45px;
    background: rgba(201, 168, 76, 0.1);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.product-subitem .subitem-info h5 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.product-subitem .subitem-info p {
    font-size: 0.8rem;
    color: var(--gray-medium);
    margin-bottom: 0;
}

.product-spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-top: 15px;
}

.product-spec-table th {
    background: var(--dark);
    color: var(--white);
    padding: 10px 12px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.product-spec-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--gray-light);
    color: var(--gray);
}

.product-spec-table tr:hover td {
    background: rgba(201, 168, 76, 0.05);
}

.product-category .btn-wa {
    margin-top: 20px;
}

/* --- Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 250px;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay p {
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
}

/* --- About / Tentang --- */
.about-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--primary);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 10px;
    text-align: center;
}

.about-image-badge .number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.about-image-badge .text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-list {
    list-style: none;
    padding: 0;
}

.about-list li {
    padding: 8px 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.about-list li i {
    color: var(--primary);
    font-size: 1.2rem;
}

/* --- Contact Section --- */
.contact-info-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
    height: 100%;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}

.contact-info-item h5 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.contact-info-item p {
    font-size: 0.95rem;
    color: var(--gray-medium);
    margin: 0;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 100%;
    min-height: 350px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    min-height: 350px;
}

/* --- Maps Accordion --- */
#mapsAccordion .accordion-button {
    padding: 16px 20px;
    box-shadow: none;
    border: none;
}

#mapsAccordion .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
}

#mapsAccordion .accordion-button:not(.collapsed) i {
    color: var(--white) !important;
}

#mapsAccordion .accordion-button::after {
    filter: none;
}

#mapsAccordion .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

#mapsAccordion .accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(201, 168, 76, 0.25);
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, var(--dark), var(--gray-dark));
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.08;
}

.cta-section h2 {
    color: var(--white);
    font-size: 2.2rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

/* --- Footer --- */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 60px;
}

.footer h5 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 10px;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.footer p {
    font-size: 0.95rem;
    line-height: 1.8;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
    margin-top: 40px;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

/* --- Floating WhatsApp Button --- */
.floating-wa {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
}

.floating-wa-btn {
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    text-decoration: none;
    animation: waFloat 3s ease-in-out infinite;
}

.floating-wa-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
    color: var(--white);
}

.floating-wa-tooltip {
    background: var(--white);
    color: var(--dark);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
}

.floating-wa:hover .floating-wa-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@keyframes waFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* --- Page Header (inner pages) --- */
.page-header {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.93), rgba(45, 45, 45, 0.9)),
                url('../images/page-header-bg.jpg') center/cover no-repeat;
    padding: 140px 0 60px;
    color: var(--white);
    text-align: center;
}

.page-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.page-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

.breadcrumb-custom {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin-top: 15px;
    gap: 8px;
}

.breadcrumb-custom li {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-custom li a {
    color: var(--primary);
}

.breadcrumb-custom li + li::before {
    content: '/';
    margin-right: 8px;
    color: rgba(255, 255, 255, 0.3);
}

/* --- Background Variants --- */
.bg-light-custom {
    background-color: var(--light);
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    .navbar-collapse {
        background: var(--dark);
        padding: 15px;
        border-radius: 10px;
        margin-top: 10px;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .page-header {
        padding: 120px 0 40px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 12px;
    }

    .gallery-item {
        height: 180px;
    }

    .cta-section h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 575px) {
    .hero-section {
        min-height: 90vh;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .floating-wa-tooltip {
        display: none;
    }

    .btn-primary-custom,
    .btn-outline-custom {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .gallery-item {
        height: 150px;
    }
}

/* --- Lightbox --- */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    z-index: 10001;
}
