/* css/style.css */
:root {
    --primary: #c0392b;   /* Brand Red */
    --secondary: #2c3e50; /* Dark Blue/Grey */
    --accent: #f39c12;    /* Gold */
    --light: #f8f9fa;
    --whatsapp: #25D366;
    --call: #3498db;
}

body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; margin: 0; padding: 0; background-color: var(--light); color: #333; padding-bottom: 80px; }
.container { width: 90%; max-width: 1200px; margin: auto; }
a { text-decoration: none; }
img { max-width: 100%; }

/* --- HEADER (UPDATED) --- */
header { 
    background: var(--secondary); 
    color: white; 
    padding: 10px 0; 
    border-bottom: 4px solid var(--primary); 
    position: sticky; 
    top: 0; 
    z-index: 500; 
}

.header-row { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

/* New Logo Styling */
.main-logo {
    height: 70px; /* Adjust height to fit header */
    width: auto;  /* Width adjusts automatically */
    display: block;
}

/* ISO & Info Text Styling */
.header-info {
    text-align: right;
    font-size: 13px;
    color: white;
    line-height: 1.4;
    margin: 0 20px; /* Spacing between logo and nav */
}

nav ul { list-style: none; display: flex; gap: 20px; padding: 0; margin: 0; }
nav a { color: white; font-weight: 600; font-size: 16px; transition: 0.3s; text-transform: uppercase; }
nav a:hover, nav a.active { color: var(--accent); }

/* --- HERO & FORM --- */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/hero-bg.jpg');
    background-size: cover; background-position: center;
    color: white; padding: 60px 0; text-align: center;
}
.hero h2 { font-size: 36px; margin-bottom: 5px; }

.enquiry-box {
    background: white; max-width: 800px; margin: -40px auto 40px; 
    padding: 30px; border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    position: relative; z-index: 10;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 15px; }
.form-control { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box; }
.btn-submit { background: var(--primary); color: white; border: none; padding: 12px 25px; cursor: pointer; font-weight: bold; border-radius: 4px; width: 100%; transition: 0.3s; }
.btn-submit:hover { background: #a93226; }

/* --- CATALOG GRID --- */
.section-title { text-align: center; margin: 40px 0 10px; color: var(--secondary); text-transform: uppercase; }
.section-subtitle { text-align: center; color: #666; margin-bottom: 30px; }

.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; padding-bottom: 40px; }
.page-card { background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.1); transition: 0.3s; }
.page-card:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

.page-thumb-container { position: relative; overflow: hidden; cursor: pointer; height: 350px; border-bottom: 1px solid #eee; }
.page-thumb { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: 0.3s; }
.zoom-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center;
    color: white; opacity: 0; transition: 0.3s; font-size: 20px;
}
.page-thumb-container:hover .zoom-overlay { opacity: 1; }

.card-body { padding: 15px; text-align: center; }
.card-title { margin: 0 0 10px; font-size: 16px; color: var(--secondary); font-weight: bold; }
.btn-whatsapp { display: block; background: var(--whatsapp); color: white; padding: 8px; border-radius: 4px; font-size: 14px; margin-top: 5px; transition: 0.3s; }
.btn-whatsapp:hover { background: #1da851; }

/* --- ABOUT PAGE STYLES --- */
.about-section { background: white; padding: 40px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); margin-top: 30px; }
.about-header { border-bottom: 2px solid #eee; padding-bottom: 15px; margin-bottom: 30px; }
.about-header h1 { color: var(--primary); margin: 0; font-size: 28px; }
.about-header h3 { color: #666; margin: 5px 0 0; font-weight: normal; }

.about-grid { display: flex; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.about-text { flex: 2; min-width: 300px; line-height: 1.8; color: #444; }
.about-image { flex: 1; min-width: 300px; }
.about-image img { width: 100%; border-radius: 5px; box-shadow: 0 5px 15px rgba(0,0,0,0.2); border: 4px solid white; }

.quote-box { background: #fff8e1; border-left: 5px solid var(--accent); padding: 15px; font-style: italic; margin: 20px 0; color: #555; }

/* --- CERTIFICATIONS SECTION --- */
.cert-section { margin-top: 40px; background: white; padding: 40px; border-radius: 8px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.cert-section h2 { color: var(--secondary); margin-bottom: 5px; }

.cert-grid { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 30px; }

.cert-card { 
    background: var(--light); padding: 20px; border-radius: 8px; 
    width: 180px; border: 1px solid #eee; transition: 0.3s; 
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.cert-card:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); background: white; border-color: var(--primary); }
.cert-card img { height: 80px; object-fit: contain; margin-bottom: 15px; mix-blend-mode: multiply; }
.cert-card h4 { margin: 0 0 5px; color: var(--primary); font-size: 16px; }
.cert-card p { font-size: 12px; color: #666; margin: 0; }

/* --- LIGHTBOX (ZOOM) --- */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.9); overflow: auto; }
.modal-content { margin: auto; display: block; width: auto; max-width: 95%; max-height: 95vh; padding: 10px 0; animation: zoom 0.3s; }
.close-modal { position: absolute; top: 20px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.close-modal:hover { color: var(--primary); }
.modal-caption { margin: auto; display: block; width: 80%; text-align: center; color: #ccc; padding: 10px 0; }

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

/* --- FLOATING BUTTONS --- */
.float-btn {
    position: fixed; bottom: 20px; width: 55px; height: 55px;
    border-radius: 50%; color: white; text-align: center; font-size: 28px;
    line-height: 55px; box-shadow: 2px 2px 10px rgba(0,0,0,0.3); z-index: 900;
    transition: 0.3s;
}
.float-btn:hover { transform: scale(1.1); }
.float-wa { right: 20px; background: var(--whatsapp); }
.float-call { left: 20px; background: var(--call); }

/* --- FOOTER --- */
footer { background: #222; color: #bbb; padding: 50px 0 20px; font-size: 14px; margin-top: 50px; }
.footer-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.footer-box h3 { color: white; border-bottom: 2px solid var(--primary); display: inline-block; padding-bottom: 5px; margin-bottom: 15px; }

/* Mobile (UPDATED) */
/* --- MOBILE OPTIMIZATION (Perfect View) --- */
@media (max-width: 768px) {
    
    /* 1. Header Container */
    header {
        position: relative; /* Un-stick header on mobile so it scrolls away */
        padding: 10px 0;
    }

    .header-row { 
        flex-direction: column; 
        text-align: center; 
        gap: 10px; 
    }

    /* 2. Logo - Perfect Size for Mobile */
    .main-logo { 
        height: 55px; /* Readable but compact */
        margin: 0 auto;
    }

    /* 3. Hide Text Info to Save Space */
    /* The ISO info is good, but on mobile it makes the header too tall.
       We hide it here, but it stays visible on Desktop. */
    .header-info { 
        display: none; 
    }

    /* 4. Navigation - Touch Friendly Buttons */
    nav {
        width: 100%;
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-top: 10px;
    }

    nav ul { 
        justify-content: center; 
        flex-wrap: wrap; 
        gap: 10px; /* Space between buttons */
    }

    nav a {
        display: inline-block;
        padding: 8px 15px;
        background: rgba(255,255,255,0.15); /* Semi-transparent button background */
        border-radius: 20px; /* Rounded pill shape */
        font-size: 13px;
        letter-spacing: 0.5px;
    }

    nav a:active {
        background: var(--accent); /* Light up when touched */
        color: #000;
    }

    /* 5. General Layout Fixes */
    .hero { padding: 40px 0; }
    .hero h2 { font-size: 28px; } /* Smaller heading */
    
    .form-grid { grid-template-columns: 1fr; } /* Stack form inputs */
    .footer-row { grid-template-columns: 1fr; text-align: center; }
    
    .about-grid { flex-direction: column; }
    .about-image { width: 100%; order: -1; margin-bottom: 20px; } /* Show image first on mobile */
    
    .cert-grid { gap: 15px; }
    .cert-card { width: 140px; } /* Smaller certificate boxes for mobile */
}
/* Add/Check this in css/style.css */

.catalog-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 30px; 
    padding-bottom: 40px; 
}

.page-card { 
    background: white; 
    border-radius: 8px; 
    overflow: hidden; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
    transition: 0.3s; 
}

.page-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); 
}

.page-thumb-container { 
    position: relative; 
    overflow: hidden; 
    cursor: pointer; 
    height: 350px; 
    border-bottom: 1px solid #eee;
    background-color: #f0f0f0; /* Grey placeholder while loading */
}

.page-thumb { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    object-position: top; 
    transition: 0.3s;
}

.zoom-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center;
    color: white; opacity: 0; transition: 0.3s; font-size: 20px;
}
.page-thumb-container:hover .zoom-overlay { opacity: 1; }