:root{
    --primary: #7F1D1D;
    --secondary: #F59E0B;
    --dark: #111827;
    --background: #F5F5F5;
    --white: #FFFFFF;
    --text: #222222;

    --font-main: Verdana, Arial, Helvetica, sans-serif;

    --container-width: 1200px;
    --radius: 6px;
    --transition: all 0.3s ease;
}

/* =========================
   RESET
========================= */

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: var(--font-main);
    background: var(--background);
    color: var(--text);
    line-height: 1.7;
}

img{
    max-width: 100%;
    display: block;
}

/* =========================
   CONTAINER
========================= */

.container{
    width: 90%;
    max-width: var(--container-width);
    margin: auto;
}

/* =========================
   NAVBAR
========================= */

.top-navbar{
    width: 100%;
    background: white;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 15px 5%;

    box-shadow: 0 4px 15px rgba(0,0,0,0.1);

    position: relative;
    z-index: 1000;
}

/* Logo */

.logo-area{
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-area img{
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.logo-text h1{
    font-size: 30px;
    color: var(--primary);
    line-height: 1.2;
}

.logo-text p{
    font-size: 14px;
    color: #555;
}

/* Navigation */

.main-navbar ul{
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-navbar a{
    text-decoration: none;
    color: var(--dark);

    font-weight: bold;
    font-size: 16px;

    transition: 0.3s;
}

.main-navbar a:hover{
    color: var(--secondary);
}

.main-navbar a.active{
    color: var(--primary);
    border-bottom: 3px solid var(--primary);
    padding-bottom: 5px;
}

.main-navbar a.active{
    color: var(--primary);
}

/* Mobile Menu */

.mobile-menu-btn{
    display: none;

    background: none;
    border: none;

    font-size: 32px;
    cursor: pointer;

    color: var(--primary);
}

/* =========================
   SLIDER
========================= */

.slider{
    position: relative;
    width: 100%;
    height: 85vh;
    overflow: hidden;
}

.slides{
    display: none;
    position: relative;

    width: 100%;
    height: 100%;
}

.slides img{
    width: 100%;
    height: 100%;
}

/* Overlay */

.slides::after{
    content: "";
    position: absolute;
    inset: 0;

    background: rgba(0,0,0,0.35);
}

/* Buttons */

.prev,
.next{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    z-index: 10;

    color: white;
    font-size: 35px;
    font-weight: bold;

    padding: 10px 16px;

    cursor: pointer;

    background: rgba(0,0,0,0.4);

    transition: 0.3s;
}

.prev{
    left: 15px;
}

.next{
    right: 15px;
}

.prev:hover,
.next:hover{
    background: var(--primary);
}

/* Fade */

.fade{
    animation: fadeEffect 1s;
}

@keyframes fadeEffect{

    from{
        opacity: 0.4;
    }

    to{
        opacity: 1;
    }
}

/* =========================
   MAIN CONTENT
========================= */

/* =========================
   MAIN CONTENT
========================= */
main {
    background: var(--background);
    padding: 40px 0;
}

/* =========================
   SECTION
========================= */
.section {
    margin-bottom: 60px;
}

.section-title {
    background: var(--primary);
    color: var(--white);
    padding: 15px 20px;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: bold;
    border-left: 6px solid var(--secondary);
}

/* =========================
   INTRO GRID (2 COLUMNS)
========================= */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}

/* INTRO IMAGE */
.intro-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    border: 3px solid var(--white);
}

/* INTRO TEXT */
.intro-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--black);
}

.intro-text h2 {
    color: var(--primary);
}

/* =========================
   SIDEBAR
   (Kept for other pages)
========================= */
.sidebar {
    background: #fff4d6;
    border: 1px solid var(--secondary);
    border-radius: var(--radius);
    padding: 20px;
}

.sidebar h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.sidebar input {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.sidebar button {
    width: 100%;
    padding: 12px;
    border: none;
    background: var(--primary);
    color: var(--white);
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    transition: var(--transition);
}

.sidebar button:hover {
    background: var(--secondary);
    color: var(--primary);
}

.sidebar hr {
    margin: 20px 0;
    border: none;
    border-top: 1px solid #ccc;
}

/* =========================
   BUTTONS
========================= */
.btn-primary {
    display: inline-block;
    padding: 12px 20px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--secondary);
    color: var(--primary);
}

/* =========================
   PRODUCTS GRID
========================= */
.fire-protection-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 products per row */
    gap: 25px;
}

.fire-protection-product-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    border: 1px solid #ddd;
    transition: var(--transition);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 products per row */
    gap: 25px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    border: 1px solid #ddd;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.download-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    border: 1px solid #ddd;
    transition: var(--transition);
}

/* =========================
   DOWNLOAD CARD IMAGE
========================= */
.download-card {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 25px 20px;
    text-align: center;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Center the download image */
.download-card a {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

/* Style the image */
.download-card a img {
    display: block;
    max-width: 180px;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

/* Zoom effect on hover */
.download-card:hover a img {
    transform: scale(1.05);
}

/* Download title */
.download-card h3 {
    color: #660000;
    font-size: 22px;
    margin-top: 10px;
    font-weight: bold;
}

.gallery-image{
    width: 142px;
    height: 142px;
    object-fit: cover;
    margin: 0 auto 15px;
}

.protection-gallary {
    width: 142px;
    height: 142px;
    object-fit: cover;
    margin: 0 auto 15px;
}

.product-card h3 {
    color: var(--primary);
    font-size: 16px;
}

/* =========================
   CONTACT BOX
========================= */
.contact-box {
    background: var(--primary);
    padding: 30px;
    border-radius: var(--radius);
    color: var(--white);
}

.contact-box p {
    margin-bottom: 12px;
    font-size: 15px;
}

/* =========================
   IMAGES
========================= */
.responsive-image {
    width: 100%;
    border-radius: var(--radius);
}

.bordered-image {
    border: 4px solid var(--white);
}

/* =========================
   FOOTER
========================= */
footer {
    background: #440000;
    color: var(--white);
    padding: 40px 20px;
    text-align: center;
}

footer nav {
    margin-bottom: 20px;
}

footer nav a {
    color: var(--white);
    text-decoration: none;
    margin: 0 10px;
    font-size: 14px;
    transition: var(--transition);
}

footer nav a:hover {
    color: var(--secondary);
}

footer p {
    font-size: 14px;
    line-height: 1.8;
}


/* =========================
   RESPONSIVE
========================= */

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 items per row on desktop */
    gap: 25px;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width: 992px){

    .top-navbar{
        padding: 15px 25px;
    }

    .main-navbar ul{
        gap: 20px;
    }

    .slider{
        width: 100%;
        height: 500px;
    }

    .fire-protection-product-grid{
        grid-template-columns: repeat(2,1fr);
    }
}

@media(max-width: 768px){

    .mobile-menu-btn{
        display: block;
    }

    .main-navbar ul{
        display: none;

        position: absolute;

        top: 90px;
        right: 20px;

        width: 220px;

        background: white;

        flex-direction: column;

        padding: 20px;

        border-radius: 8px;

        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    }

    .main-navbar ul.show{
        display: flex;
    }
}

@media(max-width: 576px){

    .top-navbar{
        padding: 12px 20px;
    }

    .logo-area img{
        width: 45px;
        height: 45px;
    }

    .logo-text h1{
        font-size: 22px;
    }

    .logo-text p{
        font-size: 11px;
    }

    .slider{
        width: 100%;
        height: 200px;
    }

    .slides img{
        object-fit: contain;
    }

    .prev,
    .next{
        font-size: 20px;
        padding: 6px 10px;
    }

    .fire-protection-product-grid{
        grid-template-columns: 1fr;
    }

    .section-title{
        font-size: 20px;
    }
}

@media (max-width: 992px) {
    .downloads-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 576px) {
    .downloads-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}



/* =========================
   IMAGE ZOOM POPUP
========================= */

.zoomable{
    cursor:pointer;
    transition:0.3s;
}

.zoomable:hover{
    transform:scale(1.05);
}

/* POPUP BACKGROUND */

.image-popup{
    display:none;
    position:fixed;
    z-index:9999;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.95);

    /* CENTER IMAGE */
    justify-content:center;
    align-items:center;
}

/* POPUP IMAGE */

.popup-image{
    width: 500px;
    max-width: 95%;
    height: auto;
    border-radius: 10px;
    animation: zoomIn 0.3s;
    box-shadow: 0 0 30px rgba(255,255,255,0.2);
}

/* ANIMATION */

@keyframes zoomIn{

    from{
        transform:scale(0.7);
        opacity:0;
    }

    to{
        transform:scale(1);
        opacity:1;
    }

}

/* CLOSE BUTTON */

.close-popup{
    position:absolute;
    top:20px;
    right:35px;
    color:white;
    font-size:45px;
    font-weight:bold;
    cursor:pointer;
    z-index:10000;
}

.close-popup:hover{
    color:#ffcc00;
}



/* =========================
   IMAGE ZOOM POPUP
========================= */

.zoomable{
    cursor:pointer;
    transition:0.3s;
}

.zoomable:hover{
    transform:scale(1.05);
}

/* POPUP BACKGROUND */

.image-popup{
    display:none;
    position:fixed;
    z-index:9999;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.95);

    /* CENTER IMAGE */
    justify-content:center;
    align-items:center;
}

/* POPUP IMAGE */

.popup-image{
    width: 500px;
    max-width: 95%;
    height: auto;
    border-radius: 10px;
    animation: zoomIn 0.3s;
    box-shadow: 0 0 30px rgba(255,255,255,0.2);
}

/* ANIMATION */

@keyframes zoomIn{

    from{
        transform:scale(0.7);
        opacity:0;
    }

    to{
        transform:scale(1);
        opacity:1;
    }

}

/* CLOSE BUTTON */

.close-popup{
    position:absolute;
    top:20px;
    right:35px;
    color:white;
    font-size:45px;
    font-weight:bold;
    cursor:pointer;
    z-index:10000;
}

.close-popup:hover{
    color:#ffcc00;
}


