/* --- Base Reset & Layout --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Navigation & Logo --- */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    padding: 10px 50px;
    display: flex;
    align-items: center; /* Vertical center */
    border-bottom: 1px solid #f1f5f9;
    height: 90px;
}

.logo {
    flex: 0 0 150px; /* Gives the logo a fixed area on the left */
}

.logo img {
    height: 185px; /* Fixed height to match reference image */
    width: 90px;  /* Maintains aspect ratio (No stretching) */
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px; 
    margin: 0 auto; /* MAGIC: Centers the links in the remaining space */
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #000000;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

/* Red hover to match the Maathari logo accent */
.nav-links a:hover {
    color: #b91c1c; 
}


/* --- Hero Section & Fading Slideshow --- */
.hero {
    position: relative;
    height: 90vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #000;
}

.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex; 
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 33.33%; 
    height: 100%;
    object-fit: cover; 
    filter: brightness(0.4); 
}

.hero-content {
    position: relative;
    z-index: 10;
    color: white;
    text-align: center;
    max-width: 850px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    color: #e2e8f0;
}

/* --- Buttons --- */
.btn-group {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-main {
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, background 0.3s;
}

.btn-white { background: white; color: #1e293b; }
.btn-blue { background: #b91c1c; color: white; } /* Changed to red for branding */

.btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* --- Catalog Grid --- */
.max-width-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #0f172a;
    text-align: center;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.3s;
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-info {
    padding: 25px;
    text-align: center;
}

.btn-select {
    width: 100%;
    padding: 12px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-select:hover {
    background: #b91c1c;
    color: white;
}

/* --- Quote Form --- */
.quote-container {
    background: #0f172a;
    padding: 80px 20px;
}

.quote-box {
    max-width: 550px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
}

.submit-btn {
    width: 100%;
    background: #b91c1c;
    color: white;
    padding: 16px;
    border-radius: 8px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
    nav {
        padding: 10px 20px;
        justify-content: space-between;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }

    .menu-toggle span {
        width: 25px;
        height: 3px;
        background: #000;
        border-radius: 3px;
    }

    .nav-links {
        position: fixed;
        top: 90px;
        left: -100%;
        flex-direction: column;
        background: white;
        width: 100%;
        height: calc(100vh - 90px);
        padding: 40px 20px;
        transition: 0.4s ease;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        margin: 0;
        gap: 0;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #f1f5f9;
        padding: 15px 0;
    }

    .btn-group {
        flex-direction: column;
        padding: 0 20px;
    }

    .hero {
        height: 90vh;
    }

    .slide img:nth-child(2), .slide img:nth-child(3) {
        display: none;
    }
    .slide img:nth-child(1) {
        width: 100%;
    }
}
/* --- Brand Identity & Layout --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    /* Using 'Inter' for a clean, modern, and high-end feel */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #ffffff;
    color: #000000; /* Rich Black from Logo */
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Professional Navigation --- */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    padding: 10px 60px;
    display: flex;
    align-items: center;
    /* Red accent border-bottom pulls the branding through the whole page */
    border-bottom: 3px solid #D31018; 
    height: 100px;
}

.logo {
    flex: 0 0 160px;
}

.logo img {
    height: 230px; 
    width: 100px;
    display: block;
    margin-left: -45px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px; 
    margin: 0 auto; /* Centers the navigation links exactly */
}

.nav-links a {
    text-decoration: none;
    color: #000000;
    font-size: 1.1rem;
    font-weight: 600; /* Heavier weight for a solid, reliable feel */
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

/* Hover: Maathari Crimson Red */
.nav-links a:hover {
    color: #D31018; 
}


/* --- Hero Section & Fading Slideshow --- */
.hero {
    position: relative;
    height: 90vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #000000;
}

.slide img {
    width: 33.33%; 
    height: 100%;
    object-fit: cover; 
    filter: brightness(0.45); /* Darkens images so white text is crystal clear */
}

.hero-content h1 {
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    color: #ffffff;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.25rem;
    color: #f1f5f9;
    margin-bottom: 35px;
}

/* --- Themed Buttons --- */
.btn-blue { 
    background: #D31018; /* Primary Brand Red */
    color: #ffffff; 
    box-shadow: 0 4px 15px rgba(211, 16, 24, 0.3);
}

.btn-blue:hover {
    background: #000000; /* Flips to black on hover */
    color: #ffffff;
}

.btn-white { 
    background: transparent; 
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-white:hover {
    background: #ffffff;
    color: #000000;
}

/* --- Catalog Grid --- */
.section-title {
    font-size: 2.4rem;
    color: #000000;
    border-left: 5px solid #D31018; /* Red accent on section titles */
    padding-left: 15px;
    margin-bottom: 50px;
    display: inline-block;
}

.product-card {
    border-radius: 0; /* Square edges look more like cut stone/granite */
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.product-card:hover {
    border-color: #D31018;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.btn-select:hover {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

/* --- Quote Form Section --- */
.quote-container {
    background: #000000; /* Solid black section for high contrast */
    padding: 100px 20px;
}

.quote-box {
    border-top: 5px solid #D31018; /* Brand accent on the form */
}

.submit-btn {
    background: #D31018;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- Mobile Fixes --- */
@media (max-width: 992px) {
    nav { padding: 10px 20px; }
    
    .nav-links {
        background: #ffffff;
        border-top: 5px solid #D31018;
    }
}
/* --- Navigation Buttons --- */
.nav-links {
    display: flex;
    list-style: none;
    gap: 15px; /* Reduced gap to accommodate button widths */
    margin: 0 auto;
    align-items: center;
}

.nav-links li {
    display: flex;
}

.nav-links a {
    text-decoration: none;
    color: #000000;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 20px; /* Vertical and Horizontal padding creates the button shape */
    border-radius: 8px; /* Rounded corners for a modern look */
    background-color: #f1f5f9; /* Light grey background for the "button" */
    border: 1px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Hover: The button flips to Brand Red with white text */
.nav-links a:hover {
    background-color: #D31018; /* Maathari Red */
    color: #ffffff; /* White text */
    transform: translateY(-2px); /* Subtle lift effect */
    box-shadow: 0 4px 10px rgba(211, 16, 24, 0.2);
}

/* Optional: Active State (shows which page you are on) */
.nav-links a.active {
    background-color: #000000;
    color: #ffffff;
}

/* --- Mobile Adjustment --- */
@media (max-width: 992px) {
    .nav-links {
        padding: 20px;
        gap: 10px;
    }
    .nav-links a {
        width: 100%; /* Full width buttons on mobile menu */
        text-align: center;
    }
}
/* --- Navigation Buttons --- */
.nav-links {
    display: flex;
    list-style: none;
    gap: 15px; /* Reduced gap to accommodate button widths */
    margin: 0 auto;
    align-items: center;
}

.nav-links li {
    display: flex;
}

.nav-links a {
    text-decoration: none;
    color: #000000;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 20px; /* Vertical and Horizontal padding creates the button shape */
    border-radius: 8px; /* Rounded corners for a modern look */
    background-color: #f1f5f9; /* Light grey background for the "button" */
    border: 1px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Hover: The button flips to Brand Red with white text */
.nav-links a:hover {
    background-color: #D31018; /* Maathari Red */
    color: #ffffff; /* White text */
    transform: translateY(-2px); /* Subtle lift effect */
    box-shadow: 0 4px 10px rgba(211, 16, 24, 0.2);
}

/* Optional: Active State (shows which page you are on) */
.nav-links a.active {
    background-color: #000000;
    color: #ffffff;
}

/* --- Mobile Adjustment --- */
@media (max-width: 992px) {
    .nav-links {
        padding: 20px;
        gap: 10px;
    }
    .nav-links a {
        width: 100%; /* Full width buttons on mobile menu */
        text-align: center;
    }
}
/* --- 1. Force Screen Lock --- */
* {
    box-sizing: border-box !important;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important; /* STOPS THE LEFT/RIGHT SHAKING */
    position: relative;
    touch-action: pan-y; /* Disables horizontal touch movement */
}

/* --- 2. Mobile Responsive Navigation --- */
nav {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    padding: 10px 20px !important;
    border-bottom: 4px solid #D31018 !important;
    height: 70px !important;
}

.logo img {
    height: 45px !important;
    width: auto !important;
    margin-left: -15px;
}

@media (max-width: 992px) {
    .nav-links {
        position: fixed !important;
        top: 70px !important;
        left: -100% !important;
        width: 100% !important;
        height: auto !important;
        background: #ffffff !important;
        display: flex !important;
        flex-direction: column !important;
        transition: 0.4s ease-in-out !important;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1) !important;
    }

    .nav-links.active {
        left: 0 !important; /* Slide menu in */
    }

    .nav-links a {
        width: 100% !important;
        display: block !important;
        text-align: center !important;
        padding: 15px !important;
        border: 1px solid #D31018 !important;
        margin-bottom: 5px !important;
    }
}

/* --- 3. Responsive Hero & Slideshow --- */
.hero {
    width: 100% !important;
    height: 90vh !important;
    overflow: hidden !important;
    position: relative !important;
}

.slide {
    width: 100% !important;
    height: 100% !important;
}

.slide img {
    height: 100% !important;
    object-fit: cover !important;
}

@media (max-width: 600px) {
    /* Shows only 1 image on mobile to prevent layout stretch */
    .slide img:nth-child(2), .slide img:nth-child(3) { 
        display: none !important; 
    }
    .slide img:nth-child(1) { 
        width: 100% !important; 
    }
    
    .hero-content h1 {
        font-size: 2.2rem !important;
        line-height: 1.1 !important;
    }

    .btn-group {
        flex-direction: column !important;
        width: 100% !important;
        padding: 0 20px !important;
    }

    .btn-hero-ghost, .btn-hero-solid {
        width: 100% !important;
        margin-bottom: 10px !important;
    }
}

/* --- 4. Grid Fix --- */
.catalog-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    width: 100% !important;
    gap: 20px !important;
}

.product-card {
    width: 100% !important;
    max-width: 100% !important;
}
/* Force the logo container to show */
.logo {
    display: block !important;
    flex: 0 0 auto !important;
    min-width: 120px !important; /* Ensures space is reserved */
    z-index: 1001 !important;
}

.logo img {
    height: 185px !important; /* Mobile height */
    width: 90px !important;
    display: block !important;
}

/* Desktop Adjustment for Logo */
@media (min-width: 993px) {
    nav {
        padding: 0 50px !important;
        height: 100px !important;
    }
    .logo img {
        height: 200px !important; /* Desktop height */
    }
}

/* --- Menu Toggle Fix --- */
.menu-toggle {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    cursor: pointer !important;
    margin-left: -20px;
}
