/* Define the new primary color variable */
:root {
    --primary-red: #C02A26; 
}

/* Global Reset and Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    background-color: #f7f7f7; 
    color: #333; 
    overflow-x: hidden; 
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ------------------------------------------- */
/* --- 1. Preloader Styling --- */
/* ------------------------------------------- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff; 
    z-index: 9999; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    transition: opacity 0.5s, visibility 0.5s; 
}

.preloader-logo {
    width: 150px; 
    height: auto;
}


/* ----------------------------- */
/* --- 2. Header Styling --- */
/* ----------------------------- */
.main-header {
    background-color: #ffffff; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); 
    padding: 15px 0;
    position: sticky; 
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    max-width: 60px; 
    height: auto;
}

.logo-img {
    width: 100%;
    height: auto;
    display: block;
}

/* New: Mobile Menu Toggle Button (Hidden on Desktop) */
.menu-toggle {
    display: none; 
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s;
}

.menu-toggle:hover {
    color: var(--primary-red);
}


.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li a {
    text-decoration: none;
    color: #555;
    font-weight: 600;
    font-size: 1rem;
    margin-left: 30px;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s, border-bottom 0.3s;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: var(--primary-red); 
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-red); 
    transition: width 0.3s ease-in-out;
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 100%;
}


/* ------------------------------------- */
/* --- 3. Hero Section Styling --- */
/* ------------------------------------- */
.hero-section {
    background-color: #ffffff; 
    min-height: calc(100vh - 70px); 
    padding: 0; 
    display: flex;
    align-items: center; 
    text-align: left;
    overflow: hidden;
}

.hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px; 
    padding: 80px 15px; 
}

.hero-content {
    flex: 1;
    max-width: 50%; 
}

.tagline {
    font-size: 1.1rem; 
    font-weight: 400; 
    color: var(--primary-red); 
    letter-spacing: 3px; 
    text-transform: uppercase;
    margin-bottom: 15px;
}

.hero-content h2 {
    font-size: 4.5rem; 
    font-weight: 300; 
    margin-bottom: 25px;
    line-height: 1.1;
    color: #222;
}

.excellence-highlight {
    font-weight: 700; 
    color: #222; 
}

.description {
    font-size: 1.15rem; 
    color: #666;
    margin-bottom: 40px; 
    line-height: 1.8; 
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-red); 
    color: white;
    padding: 18px 40px; 
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px; 
    transition: background-color 0.3s, transform 0.2s;
    letter-spacing: 1px;
    box-shadow: 0 8px 20px rgba(192, 42, 38, 0.3); 
    border: none;
}

.cta-button:hover {
    background-color: #D65A5A; 
    transform: translateY(-2px); 
}

.hero-image {
    flex: 1;
    max-width: 50%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1); 
    display: flex; 
}

.hero-image .full-image {
    width: 100%;
    height: auto; 
    object-fit: cover; 
    display: block;
}


/* ------------------------------------------- */
/* --- 4. About Us Section Styling --- */
/* ------------------------------------------- */
.about-us-section {
    background-color: #f7f7f7; 
    padding: 100px 0;
}

.about-layout {
    display: flex;
    justify-content: space-between;
    align-items: center; 
    gap: 60px;
}

.about-content {
    flex: 1;
    max-width: 50%; 
}

.section-tagline {
    font-size: 1.1rem; 
    font-weight: 600;
    color: var(--primary-red); 
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 300;
    margin-bottom: 30px;
    line-height: 1.2;
    color: #222;
}

.title-highlight {
    font-weight: 700;
    color: #222; 
}

.section-title strong {
    font-weight: 700;
    color: var(--primary-red); 
}

.about-description {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.8;
}

.highlight-point {
    color: #333; 
    border-left: 4px solid var(--primary-red); 
    padding-left: 15px;
    margin-top: 30px;
    font-style: italic;
}

.secondary-cta-button {
    display: inline-block;
    background-color: transparent; 
    color: var(--primary-red); 
    border: 2px solid var(--primary-red); 
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    margin-top: 30px;
}

.secondary-cta-button:hover {
    background-color: var(--primary-red);
    color: white;
}

.about-image {
    flex: 1;
    max-width: 45%; 
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); 
    display: flex;
}

.about-image .full-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}


/* ------------------------------------------- */
/* --- 5. Products Section Styling --- */
/* ------------------------------------------- */
.products-section {
    background-color: #ffffff; 
    padding: 80px 0;
    text-align: center;
}

.section-header {
    margin-bottom: 40px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
    list-style: none;
    padding: 0;
}

.product-item {
    overflow: hidden;
    border-radius: 8px; 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); 
    background-color: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
    aspect-ratio: 1/1; 
}

.product-item:hover {
    transform: translateY(-5px); 
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.product-image {
    width: 100%;
    height: 100%; 
    object-fit: cover;
    display: block;
}


/* ------------------------------------------- */
/* --- 6. Quality Section Styling (Fixed Alignment) --- */
/* ------------------------------------------- */
.quality-section {
    background-color: #f7f7f7; 
    padding: 100px 0;
}

.quality-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.quality-grid {
    display: grid;
    grid-template-columns: 3fr 2fr; 
    gap: 40px;
    margin-bottom: 40px;
}

.grid-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.grid-item h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-red); 
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.grid-item h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #444;
    margin-top: 25px; 
    margin-bottom: 12px;
}

/* Styled List (Checkmarks) */
.styled-list {
    list-style: none;
    padding-left: 0;
}

.styled-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.styled-list li::before {
    content: '\2713'; 
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Two Column List (Quality Measurements) */
.two-column-list {
    list-style: none;
    padding: 0;
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 15px 10px; 
}

.two-column-list li {
    width: 100%; 
    margin-bottom: 0; 
    padding-left: 10px;
    position: relative;
    font-size: 0.95rem; 
}

.two-column-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-size: 1.5rem;
    line-height: 1;
}

/* Split List (Core Products & Materials) */
.split-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px; 
}

.split-list h5 {
    font-size: 1rem;
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.split-list .styled-list li {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 5px;
}

.finishing-box {
    display: flex;
    gap: 40px;
}

.half-box {
    flex: 1;
    background-color: #ffffff; 
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}


/* ------------------------------------------- */
/* --- 7. Contact Us Section Styling (Map Removed & Link Style Added) --- */
/* ------------------------------------------- */
.contact-section {
    background-color: #ffffff; 
    padding: 100px 0;
}

.contact-layout {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    align-items: flex-start;
}

.contact-form-container {
    flex: 1;
    max-width: 55%; 
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-red); 
    outline: none;
}

.form-button {
    width: 100%;
    border: none;
    text-align: center;
    cursor: pointer;
}

.contact-info-container {
    flex: 1;
    max-width: 45%; 
    display: flex;
    flex-direction: column;
    gap: 20px; 
}

.info-box {
    background-color: #f7f7f7;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); 
}

.info-box h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 15px;
}

.info-detail {
    font-size: 1rem;
    color: #555;
    margin-bottom: 10px; 
    line-height: 1.5;
}

.info-detail a {
    color: var(--primary-red); 
    text-decoration: none;
    transition: color 0.3s;
}

.info-detail a:hover {
    color: #D65A5A;
}

/* Style for the clickable address link */
.info-detail a.address-link {
    color: #555; 
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s;
    font-size: 1rem;
    font-weight: 400;
}

.info-detail a.address-link:hover {
    color: var(--primary-red); 
}

.info-detail .icon {
    color: var(--primary-red);
    margin-right: 10px;
    font-weight: 700;
}


/* ------------------------------------------- */
/* --- 8. Footer Styling --- */
/* ------------------------------------------- */
.main-footer {
    background-color: #222; 
    color: #ccc;
    padding-top: 50px;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr; 
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #444; 
}

.footer-mission .footer-logo {
    width: 80px; 
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li a {
    color: #ffffff; 
    text-decoration: none;
    line-height: 2.2;
    transition: color 0.3s;
}

.footer-links li a:hover {
    color: var(--primary-red); 
}

.red-icon {
    color: var(--primary-red);
    font-weight: 700;
    margin-right: 5px;
}

.footer-contact-info a,
.website-link a {
    color: var(--primary-red);
}

.footer-contact-info a:hover,
.website-link a:hover {
    color: #D65A5A;
}

/* Style for the clickable address link in the footer */
.footer-col .footer-address a {
    color: #ccc; 
    text-decoration: none;
}

.footer-col .footer-address a:hover {
    color: var(--primary-red);
}

.footer-bottom {
    background-color: #1a1a1a; 
    padding: 15px 0;
    text-align: center;
    font-size: 0.85rem;
    color: #888;
}


/* ------------------------------------- */
/* --- 9. Responsive Design (Finalized with Center Alignment) --- */
/* ------------------------------------- */

/* Tablet & Smaller Desktop (Max 992px) */
@media (max-width: 992px) {
    /* Global Spacing Reductions */
    .hero-layout {
        padding: 40px 15px; 
    }
    .about-us-section, .quality-section, .contact-section { 
        padding: 70px 0; 
    }
    .products-section {
        padding: 60px 0; 
    }
    .hero-layout, .about-layout, .contact-layout { 
        gap: 30px; 
    }

    /* Main Layout Stacking */
    .hero-layout, .about-layout, .contact-layout { 
        flex-direction: column; 
        text-align: center; 
    }
    .hero-content, .hero-image, .about-content, .about-image, .contact-form-container, .contact-info-container { 
        max-width: 100%; 
    }
    .about-layout { 
        flex-direction: column-reverse; 
    }
    .hero-image {
        order: -1; 
    }

    /* Grid Adjustments */
    .products-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 20px;
    }
    .quality-grid { 
        grid-template-columns: 1fr; 
    }
    .finishing-box { 
        flex-direction: column; 
        gap: 20px; 
    }
    .half-box { 
        flex: none; 
        width: 100%; 
    }

    /* Footer Adjustment */
    .footer-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 30px;
    }
    .footer-col:nth-child(1) { grid-column: 1 / 3; } 
    .footer-mission { text-align: center; }
    .footer-mission .footer-logo { margin: 0 auto 15px auto; }
}


/* Mobile Breakpoint (Max 768px) */
@media (max-width: 768px) {
    /* Header/Navigation Setup for Hamburger Menu */
    .main-header .container {
        padding: 0 15px; 
    }
    
    .menu-toggle {
        display: block; 
        z-index: 1001; 
    }
    
    .main-nav {
        display: block; 
    }
    
    /* Mobile Menu Dropdown */
    .main-nav {
        position: absolute;
        top: 70px; 
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        max-height: 0; 
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        z-index: 999; 
    }

    .main-nav.active {
        max-height: 300px; 
        display: block; 
    }

    .main-nav ul { 
        flex-direction: column; 
        align-items: center; /* FIX: Center the list items horizontally */
        padding: 10px 0;
        width: 100%; 
    }
    
    .main-nav ul li { 
        border-bottom: 1px solid #f0f0f0;
        padding: 8px 0;
        width: 100%; 
        text-align: center; /* FIX: Center the link text */
    }
    
    .main-nav ul li a { 
        margin: 0; 
        display: block; 
        padding: 5px 0;
        font-size: 0.95rem;
    }
    
    .main-nav ul li a::after {
        display: none; 
    }

    /* Content Reductions */
    .about-us-section, .quality-section, .contact-section { 
        padding: 50px 0; 
    }
    .products-grid { 
        grid-template-columns: 1fr; 
    }
    .two-column-list {
        grid-template-columns: 1fr; 
    }
    .split-list {
        grid-template-columns: 1fr; 
    }
    .footer-grid { 
        grid-template-columns: 1fr; 
        text-align: center;
    }
    .footer-col:nth-child(1) { grid-column: 1; } 
}

/* Very Small Mobile/Portrait Mode (Max 480px) */
@media (max-width: 480px) {
    .container {
        width: 95%;
    }
    .hero-content h2 { font-size: 2rem; }
    .description { font-size: 1rem; }
    .cta-button { padding: 15px 30px; }
    .section-title { font-size: 1.8rem; }
}