@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    background: #f8fbff;
    color: #333;
    padding-top: 80px; /* fixed header space */
}

/* ================= HEADER ================= */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    z-index: 1000;
}

.header_content {
    max-width: 1200px;
    margin: auto;
    height: 70px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 100px;
}

.nav a {
    margin-left: 24px;
    text-decoration: none;
    color: #333;
    font-size: 15px;
}

.nav a:hover,
.nav a.active {
    color: #1a73e8;
}

.btn {
    padding: 8px 18px;
    background: #1a73e8;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
}

/* ================= PAGE HERO ================= */
.page-hero {
    background: linear-gradient(
        rgba(26, 115, 232, 0.9),
        rgba(26, 115, 232, 0.9)
    );
    color: white;
    padding: 80px 20px;
}

.page-hero-content {
    max-width: 900px;
    margin: auto;
}

.page-hero h1 {
    font-size: 40px;
    margin-bottom: 10px;
}

.page-hero p {
    font-size: 16px;
    line-height: 1.5;
}

/* ================= CONTENT ================= */
.content-section {
    max-width: 1000px;
    margin: auto;
    padding: 80px 20px;
}

.content-block {
    max-width: 800px;
}

.content-block h2 {
    font-size: 26px;
    margin-bottom: 12px;
    color: #1a73e8;
}

.content-block p {
    font-size: 16px;
    line-height: 1.7;
}

/* ================= PRINCIPLES ================= */
.principles-section {
    max-width: 1100px;
    margin: auto;
    padding: 80px 20px;
}

.principles-section.light {
    background: white;
}

.principles-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.principle-card {
    background: #f4f8ff;
    padding: 24px;
    border-radius: 16px;
}

.principle-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #1a73e8;
}

.principle-card p {
    font-size: 15px;
    line-height: 1.6;
}

/* ================= CERTIFICATIONS ================= */
.cert-section {
    max-width: 1000px;
    margin: auto;
    padding: 80px 20px;
}

.cert-section.light {
    background: white;
}

.cert-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.cert-list {
    list-style: none;
}

.cert-list li {
    font-size: 16px;
    margin-bottom: 10px;
    color: #444;
}

/* ================= FOOTER ================= */
.footer {
    background: #0a2540;
    color: white;
    text-align: center;
    padding: 30px;
    margin-top: 40px;
}

/* ================= RESPONSIVE ================= */
/* ================= GLOBAL MOBILE FIX ================= */
@media (max-width: 768px) {

    /* BODY */
    body {
        padding-top: 64px;
    }

    /* HEADER */
    .header_content {
        height: 64px;
        padding: 0 16px;
    }

    /* LOGO */
    .logo img {
        height: 40px;
        max-width: 150px;
    }

    /* DESKTOP NAV */
    .desktop-nav,
    .nav {
        display: none;
    }

    /* HAMBURGER */
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }

    /* MOBILE MENU */
    .mobile-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -260px;
        width: 260px;
        height: 100%;
        background: white;
        padding: 90px 24px;
        box-shadow: -3px 0 12px rgba(0,0,0,0.15);
        transition: right 0.3s ease;
        z-index: 2000;
    }

    .mobile-menu.open {
        right: 0;
    }

    /* HERO SECTIONS */
    .hero,
    .page-hero {
        min-height: auto;
        padding: 80px 20px 60px;
        text-align: center;
        background-position: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content h1,
    .page-hero h1 {
        font-size: 28px;
    }

    .hero-content p,
    .page-hero p {
        font-size: 15px;
    }

    /* HERO BUTTONS */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 260px;
        text-align: center;
    }

    /* SECTIONS */
    .section,
    .content-section,
    .contact-section,
    .product-grid,
    .principles-section,
    .cert-section {
        padding: 60px 16px;
    }

    /* GRIDS → SINGLE COLUMN */
    .contact-section,
    .quality-grid,
    .principles-grid,
    .stats-section {
        grid-template-columns: 1fr;
    }

    /* PRODUCT CARDS */
    .product-card img,
    .carousel-card img {
        height: 140px;
    }

    .product-card h3 {
        font-size: 16px;
    }

    /* CAROUSEL */
    .carousel-track {
        padding: 10px 20px;
    }

    .carousel-btn {
        display: none;
    }

    /* FORMS */
    .contact-form form {
        padding: 20px;
    }

    /* FOOTER */
    .footer {
        padding: 24px 16px;
        font-size: 14px;
    }
}


/* ================= NAV VISIBILITY FIX ================= */

/* Desktop defaults */
.desktop-nav {
    display: flex;
}

.mobile-menu {
    display: none;
}

.hamburger {
    display: none;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

    /* Hide desktop navigation */
    .desktop-nav {
        display: none;
    }

    /* Show hamburger */
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }

    /* Mobile menu base state */
    .mobile-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -260px;
        width: 260px;
        height: 100%;
        background: white;
        padding: 90px 24px;
        box-shadow: -3px 0 12px rgba(0,0,0,0.15);
        transition: right 0.3s ease;
        z-index: 2000;
    }

    /* When opened via JS */
    .mobile-menu.open {
        right: 0;
    }
}

