/*==================================================================
  MAIN CSS — PT. BAJA INTI GEMILANG
  Dipakai bersama oleh semua halaman (Home, Produk, Detail, Galeri, Tentang, Kontak)
==================================================================*/

/*====================   FONTS   ============================*/

@font-face {
    font-family: gotham;
    src: url(../Fonts/Poppins/Poppins-Bold.ttf);
    font-weight: bold;
}

@font-face {
    font-family: gotham;
    src: url(../Fonts/Poppins/Poppins-Regular.ttf);
}

* {
    font-family: gotham;
}

p {
    font-size: 16px;
}

.headerfont {
    font-size: 50px;
}

.headerfont2 {
    font-size: 35px;
}

.headerfont3 {
    font-size: 20px;
}

.text-make-blue {
    color: #1B1A4A;
}

.about-us-text {
    text-align: justify;
    color: #1B1A4A;
}

@media only screen and (max-width: 991px) {
    p { font-size: 12px; }
    .headerfont { font-size: 35px; }
    .headerfont2 { font-size: 25px; }
    .headerfont3 { font-size: 15px; }
}

/*=============================   GLOBAL / UTILITY   ==================================*/
/*Ini untuk browser lama*/
#contents {
    opacity: 0;
    overflow-x: hidden;
    overflow-y: visible;
}

/*Ini untuk browser baru chrome 90+, dll*/
@supports (overflow: clip) {
    #contents {
        overflow-x: clip;
        overflow-y: visible;
    }
}

.make-bold {
    font-weight: bold;
}

.bg-soft { background: #F3F4F7; }

.section-eyebrow {
    color: #E8871E;
    font-weight: 700;
    letter-spacing: .5px;
    font-size: .85rem;
    text-transform: uppercase;
}

/* Ikon SVG inline (dipakai di halaman yang belum dikonversi ke Bootstrap Icons) */
.icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: none;
}

/* Heading section rata kiri dengan garis aksen — dipakai di Home, Produk, Tentang, Galeri */
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { color: #1B1A4A; font-weight: 700; margin-bottom: 10px; }
.section-head p { color: #55566B; margin: 0; }

/*====================   ANIMATIONS   =======================*/

@keyframes fadeInTop {
    from { opacity: 0; transform: translateY(-300px); }
    to { opacity: 1; }
}

/*====================   NAVBAR   ============================*/

.navbar {
    background: #1B1A4A;
    font-weight: bold;
    opacity: 1;
    padding: 0px;
    box-shadow: 0px 8px 12px 0;
    animation: fadeInTop 1s ease-in-out;
    position: fixed;
    width: 100%;
    transition: background 0.5s ease, opacity 0.5s ease, box-shadow 0.5s ease;
}

.navbar.transparent {
    background: transparent;
    transition: background-color 0.3s ease;
    box-shadow: none;
    opacity: 1;
}

.navbar-brand {
    margin-left: 0px;
}

.navbar:hover {
    opacity: 1 !important;
}

.navbar img {
    width: 40px;
}

.navbar img.logo-brand {
    width: 60px;
}

#language button {
    transition: transform .5s;
}

#language button:hover {
    transform: scale(1.1);
}

button.language {
    color: #FFF;
    font-weight: 600;
}

button.language:hover {
    color: #F2A93B;
    font-weight: 600;
}

@media (max-width: 768px) {
    .navbar.transparent:hover {
        background-color: #1B1A4A;
    }
}

@media only screen and (max-width: 1199px) {
    .navbar .navbar-nav:first-child {
        border-top: 1px solid white;
    }
    .navbar .nav-item a {
        color: rgba(255, 255, 255, 1) !important;
        font-size: 14px;
    }
    #language {
        display: block;
    }
    .navbar.transparent {
        background: #1B1A4A;
        font-weight: bold;
        opacity: 1;
        box-shadow: 0px 8px 12px 0;
        animation: fadeInTop 1s ease-in-out;
        position: fixed;
        width: 100%;
        transition: background 0.5s ease, opacity 0.5s ease, box-shadow 0.5s ease;
    }
    .navbar img.logo-brand {
        width: 44px;
    }
    .navbar-brand {
        flex: 1;
        min-width: 0;
        margin-right: 0;
        padding: 0 8px;
        font-size: 1rem;
    }
    .navbar-toggler {
        margin: 0 8px;
    }
}

/*====================   BANNER HALAMAN DALAM (page-hero)   =======================*/
/* Dipakai di semua halaman selain Home: Produk, Detail Produk, Galeri, Tentang, Kontak */

.page-hero {
    position: relative; 
    overflow: hidden; 
    background: #14132E; 
}

.page-hero > img.main-banner-page {
    display: block;
    height: 46vh;
    min-height: 300px;
    object-fit: cover;
    filter: brightness(45%);
}

.page-hero-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 0 48px;
    color: #fff;
}

.page-hero-text h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; margin: 0 0 8px; }
.page-hero-text p { font-size: clamp(.95rem, 1.6vw, 1.15rem); color: rgba(255,255,255,.85); max-width: 560px; margin: 0; }
.page-hero-text .crumb { font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 10px; }
.page-hero-text .crumb a { color: #F2A93B; text-decoration: none; }

@media (max-width: 768px) {
    .page-hero-text { padding-bottom: 32px; }
}

/*====================   HOME - HERO   =======================*/

.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    padding-top: 130px;   
    padding-bottom: 96px;
    box-sizing: border-box;
    background: linear-gradient(180deg, rgba(19,18,51,.55) 0%, rgba(19,18,51,.75) 100%), url('../images/Gallery8.png');
    background-size: cover;
    background-position: center;
}

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

.hero-content h1 {
    font-size: clamp(1.9rem, 4.2vw, 3.4rem);
    font-weight: 700;
    line-height: 1.15;
    max-width: 780px;
}

.hero-content p.lead {
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    color: rgba(255,255,255,.85);
    max-width: 620px;
}

.btn-hero-primary {
    background: #E8871E;
    color: #fff;
    border-radius: 40px;
    padding: 13px 30px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color .3s ease, transform .2s ease;
}
.btn-hero-primary:hover { background: #fff; color: #1B1A4A; transform: translateY(-2px); }

@media (max-width: 768px) {
    .hero { min-height: 78vh; text-align: center; }
    .hero-content p.lead { margin-left: auto; margin-right: auto; }
}
@media (max-width: 1199px) {
    .hero { padding-top: 120px; }
}

/*====================   HOME - QUICK FACTS   =======================*/

.facts-strip {
    background: #1B1A4A;
    color: #fff;
}
.facts-strip .fact { text-align: center; padding: 26px 10px; }
.facts-strip .fact .num { font-size: 1.9rem; font-weight: 700; color: #E8871E; }
.facts-strip .fact .label { font-size: .9rem; color: rgba(255,255,255,.75); }

.home-facts { position: relative; z-index: 3; margin-top: -56px; }
.home-facts .facts-card {
    background: #1B1A4A;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(20,19,46,.28);
    padding: 8px 12px;
}
.home-facts .fact { padding: 20px 10px; }
.home-facts .fact + .fact { border-left: 1px solid rgba(255,255,255,.12); }
@media (max-width: 767px) {
    .home-facts .fact:nth-child(3) { border-left: none; }
}

/*====================   HOME - KEUNGGULAN =======================*/

.why-card {
    height: 100%;
    background: #fff;
    border: 1px solid #E3E5EC;
    border-radius: 14px;
    padding: 28px 26px;
}
.why-icon {
    width: 52px; height: 52px; border-radius: 10px;
    background: #1B1A4A; color: #fff;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}
.why-icon .icon { width: 1.6rem; height: 1.6rem; }
.why-icon .bi { font-size: 1.6rem; }
.why-card h5 { color: #1B1A4A; font-weight: 700; margin-bottom: 8px; }
.why-card p { color: #55566B; margin: 0; font-size: .95rem; }

/*====================   HOME - CTA BANNER   =======================*/

.content-section {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}
.content-section::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
}
.content-section .container {
    position: relative;
    z-index: 2;
}

/* CTA versi Home: tidak lagi setinggi layar penuh */
.content-section.home-cta { padding: 110px 0; }

@media (max-width: 768px) {
    .content-section.home-cta {
        padding: 70px 10px;
    }
}

/*====================   WA FLOAT BUTTON   =======================*/

.wa-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9998;
    background: #25D366;
    color: #fff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 6px 16px rgba(0,0,0,.25);
    transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }

/*====================   TOMBOL DETAIL PRODUK =======================*/

.btn-detail {
    display: inline-block;
    padding: 10px 16px;
    background-color: #1B1A4A;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    border-top-left-radius: 15px;
    border-bottom-right-radius: 15px;
}
.btn-detail:hover {
    background-color: silver;
    color: #fff;
    font-weight: bold;
}

.btn-whatsapp,
.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #1B1A4A;
    color: #fff;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 40px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}
.btn-whatsapp:hover,
.btn-contact:hover { background-color: #E8871E; color: #fff; }

/*====================   PRODUK - HALAMAN (ourproducts)   =======================*/

.produk-section { background: #F3F4F7; }
.produk-intro { max-width: 640px; margin-bottom: 40px; }
.produk-intro h2 { color: #1B1A4A; font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 10px; }
.produk-intro p { color: #55566B; margin: 0; }

.produk-card {
    position: relative;
    background-color: #fff;
    padding: 0;
    text-align: left;
    border-radius: 14px;
    border: 1px solid #E3E5EC;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: box-shadow .3s ease, border-color .3s ease;
}

.produk-card:hover { box-shadow: 0 14px 32px rgba(27,26,74,.14); border-color: #1B1A4A; }
.produk-card:hover::before { width: 100%; }

.produk-media {
    background: #FFF;
    padding: 28px 20px 20px;
}
.produk-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 170px;
    object-fit: contain;
    margin: 0 auto;
}

.produk-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.produk-title { font-size: 1.2rem; font-weight: bold; color: #1B1A4A; margin-bottom: 6px; }
.produk-desc { font-size: .9rem; color: #55566B; margin-bottom: 14px; }
.produk-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.produk-chips span {
    font-size: .75rem; color: #1B1A4A;
    border: 1px solid #C9CCD8; border-radius: 4px; padding: 2px 9px;
}
.produk-body .btn-detail { margin-top: auto; align-self: flex-start; }
.produk-body .btn-detail:hover { background-color: #E8871E; }

@media (prefers-reduced-motion: reduce) {
    .produk-card::before { transition: none; }
}

/*====================   PRODUK - HALAMAN DETAIL   =======================*/

.detail-section { background: #F3F4F7; }
.produk-detail {
    position: relative;
    background: #fff;
    padding: 40px;
    border: 1px solid #E3E5EC;
    border-radius: 14px;
}

.detail-lead { text-align: center; color: #55566B; max-width: 640px; margin: 0 auto 24px; }
.detail-media {
    background: #FFF;
    border-radius: 12px;
    padding: 32px 24px;
}
.produk-img-detail {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}
.detail-media .produk-img-detail { max-height: 300px; display: block; margin: 0 auto; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }
.detail-back { text-align: center; margin-top: 40px; }

/* Tab varian produk (Besi Plat: Hitam / Galvanil / Galvanis) */
.plat-tabs {
    border-bottom: 2px solid #eee;
    gap: 6px;
}
.plat-tabs .nav-link {
    color: #1B1A4A;
    font-weight: 600;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: 12px 22px;
}
.plat-tabs .nav-link:hover { color: #E8871E; }
.plat-tabs .nav-link.active {
    color: #E8871E;
    background: transparent;
    border-bottom: 3px solid #E8871E;
}
.plat-cocok-untuk {
    background: #f7f7fa;
    border-left: 4px solid #1B1A4A;
    border-radius: 8px;
    padding: 18px 22px;
}

@media (max-width: 768px) {
    ul.plat-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 6px;
    }
    .plat-tabs .nav-link {
        width: 100%;
        padding: 10px 6px;
        font-size: .9rem;
        text-align: center;
    }
}

/* Daftar ukuran tersedia (Pipa Bulat, Pipa Hollow) */
.ukuran-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ukuran-list li {
    background: #fff;
    border: 1px solid #C9CCD8;
    color: #1B1A4A;
    font-weight: 600;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: .95rem;
}

@media (max-width: 768px) {
    .produk-detail { padding: 22px; }
}


/*====================   GALERI   =======================*/
/* CSS Grid murni, sengaja tidak bergantung pada grid Bootstrap */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
@media (max-width: 991px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.gallery-grid .gallery-item {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    cursor: zoom-in;
    box-shadow: 0 4px 14px rgba(27,26,74,.06);
    transition: box-shadow .25s ease, transform .25s ease;
}
.gallery-grid .gallery-item:hover {
    box-shadow: 0 10px 26px rgba(27,26,74,.14);
    transform: translateY(-3px);
}
.gallery-grid .gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.gallery-grid .gallery-item:hover img { transform: scale(1.04); }

#galeriModal .modal-content { background: transparent; border: none; }
#galeriModal .modal-body { padding: 0; text-align: center; }
#galeriModal img { max-width: 100%; max-height: 82vh; border-radius: 10px; }
#galeriModal .btn-close { filter: invert(1); position: absolute; top: -40px; right: 0; opacity: .9; }
#galeriModal figcaption { color: #fff; margin-top: 14px; font-size: .95rem; }

/*====================   TENTANG KAMI (fact card, visi, misi)   =======================*/

.fact-card {
    position: relative;
    background: #fff;
    border: 1px solid #E3E5EC;
    border-radius: 14px;
    padding: 30px 30px 22px;
}

.fact-card ul { list-style: none; padding: 0; margin: 0; }
.fact-card li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #1B1A4A;
}
.fact-card li:last-child { border-bottom: none; }
.fact-card li .icon { color: #E8871E; flex-shrink: 0; }
.fact-card li .bi { color: #E8871E; flex-shrink: 0; font-size: 1.25rem; }

.about-lead {
    font-size: 1.15rem;
    font-weight: 600;
}

@media (max-width: 991px) {
    p.about-lead {
        font-size: 1rem;
    }
    .about-us-text {
        font-size: 14px;
        text-align: left;
    }
}

.visi-banner {
    background: #1B1A4A;
    color: #fff;
    border-radius: 14px;
    padding: 64px 40px;
    position: relative;
    overflow: hidden;
}
.visi-banner::before {
    content: "";
    position: absolute;
    top: -80px; right: -60px;
    width: 260px; height: 260px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}
.visi-banner::after {
    content: "";
    position: absolute;
    bottom: -70px; left: -40px;
    width: 170px; height: 170px;
    border: 2px solid rgba(255, 255, 255, 0.10);
    border-radius: 50%;
}
.visi-banner h2 { position: relative; color: #F2A93B; }
.visi-banner p {
    position: relative;
    font-size: 1.25rem;
    max-width: 720px;
    margin: 10px auto 0;
}

.misi-card {
    background: #fff;
    border-left: 5px solid #E8871E;
    border-radius: 12px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}
.misi-card .icon { color: #1B1A4A; width: 1.7rem; height: 1.7rem; }
.misi-card .bi { color: #1B1A4A; font-size: 1.7rem; }

/*====================   KONTAK   =======================*/

.contact-card {
    position: relative;
    background: #fff;
    font-size: 1rem;
    border: 1px solid #E3E5EC;
    border-radius: 14px;
    padding: 34px;
}

@media (max-width: 575px) {
    .contact-card {
        padding: 24px 20px;
    }
    .btn-contact {
        padding: 12px 16px;
        font-size: .8rem;
        gap: 8px;
        min-width: 0;
        overflow-wrap: anywhere;
    }
}

.contact-item {
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 22px;
}
.contact-item .icon {
    color: #1B1A4A;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}
.contact-item i {
    color: #1B1A4A;
    width: 28px;
    font-size: 28px;
    flex-shrink: 0;
}

.contact-map {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #E3E5EC;
    min-height: 340px;
}
.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 340px;
    border: 0;
    border-radius: 0;
}

/*====================   FOOTER   =======================*/

.footer {
    background: #1B1A4A;
    color: #fff;
}
.footer a.footer-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 10px;
}
.footer a.footer-link:hover {
    color: #D9DCE1;
    text-decoration: underline;
}

/*====================   BACK TO TOP BUTTON   =======================*/

#btn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}
#btn-back-to-top button {
    background-color: #14132E;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
#btn-back-to-top button:hover {
    background-color: #E8871E;
    transform: translateY(-5px);
}