/* ==========================================================================
   1. GOOGLE FONTS & GLOBAL STYLES
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --color-primary: #000;
    --color-secondary: #f0f4f8;
    --color-accent: #50b3e5;
    --color-white: #fff;
    --color-text-light: #6b7280;
    --font-family-base: 'Poppins', sans-serif;
    --container-width: 1140px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-family-base);
    background-color: var(--color-white);
    color: var(--color-primary);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* ==========================================================================
   2. GENERAL & REUSABLE COMPONENTS
   ========================================================================== */

.section { padding: 5rem 0; }
.light-bg { background-color: var(--color-secondary); }
.light-grey-bg { background-color: #f7f9fa; }

.section-header { text-align: center; max-width: 700px; margin: 0 auto 3rem auto; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.section-header p { color: var(--color-text-light); font-size: 1.1rem; }

.section-header-split {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}
.section-header-split .section-header-content { text-align: left; }
.section-header-split h2 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.section-header-split p { color: var(--color-text-light); font-size: 1.1rem; max-width: 600px; }
.section-header-split .btn { flex-shrink: 0; }

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    transition: transform 0.2s ease, background-color 0.3s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background-color: var(--color-accent); color: var(--color-white); }
.btn-secondary { background-color: var(--color-accent); color: var(--color-white); font-size: 1.1rem; }

/* ==========================================================================
   3. HEADER & FOOTER
   ========================================================================== */

/* --- HEADER --- */
.main-header {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 1rem 0;
    position: relative; /* Crucial for mobile nav positioning */
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img { height: 60px; width: auto; display: block; }

/* --- DESKTOP NAVIGATION --- */
.main-nav ul { display: flex; list-style-type: none; gap: 2rem; }
.main-nav a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}
.main-nav a:hover,
.main-nav a.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}
.header-contact { display: flex; align-items: center; gap: 1.5rem; }
.header-contact .phone-number { color: var(--color-white); text-decoration: none; font-weight: 500; }

/* --- MOBILE NAVIGATION & HAMBURGER --- */
.hamburger-menu {
    display: none; /* Hidden by default, shown in media query */
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1010; /* Ensures it's above the mobile nav panel */
}
.hamburger-menu .line {
    width: 25px;
    height: 3px;
    background-color: var(--color-white);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
/* Animation for hamburger turning into an 'X' */
.hamburger-menu.active .line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-menu.active .line:nth-child(2) { opacity: 0; }
.hamburger-menu.active .line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-nav {
    display: none; 
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-primary);
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

/* The class we will add with JavaScript to show the menu (VISIBLE) */
.mobile-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}
.mobile-nav a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
}
.mobile-quote-btn {
    margin-top: 2rem;
    display: inline-block;
}

/* --- FOOTER --- */
.main-footer { background-color: var(--color-primary); color: #a0aec0; padding: 5rem 0 2rem 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 3rem; margin-bottom: 4rem; }
.footer-logo { display: block; margin-bottom: 1rem; }
.footer-logo img { height: 70px; width: auto; }
.footer-about p { margin-bottom: 1.5rem; line-height: 1.7; }
.footer-links h4, .footer-contact h4 { color: var(--color-white); font-size: 1.1rem; font-weight: 600; margin-bottom: 1.5rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a, .footer-contact a { color: #a0aec0; text-decoration: none; transition: color 0.3s ease; }
.footer-links a:hover, .footer-contact a:hover { color: var(--color-white); text-decoration: underline; }
.footer-contact p { margin-bottom: 1rem; line-height: 1.7; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 2rem; text-align: center; font-size: 0.9rem; }
.footer-bottom a { color: var(--color-white); text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* ==========================================================================
   4. PAGE-SPECIFIC HERO SECTIONS (FINAL, CORRECTED VERSION)
   ========================================================================== */

#hero, #product-hero-rotator {
    position: relative; /* The main container for all layered elements */
    overflow: hidden;
}

/* The new "Sizer" div */
.hero-sizer {
    /* This padding creates the aspect ratio for 1920x1080 images (1080 / 1920 = 0.5625) */
    padding-top: 56.25%; 
    display: block;
    width: 100%;
}

/* This makes ONLY the HOMEPAGE banner taller for its 1920x1300 images (1300 / 1920 = 0.677) */
#hero .hero-sizer {
    padding-top: 67.7%;
}

/* Both image tags are now absolutely positioned to fill the sizer's space */
.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills the banner space */
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-background-image.active {
    opacity: 1;
}

/* The Content is NOW perfectly centered using the standard transform method */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
    color: var(--color-white);
    z-index: 2;
}

/* Text styling remains the same */
.hero-content h1 {
    font-size: 4.2rem;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.1rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    margin-bottom: 2rem;
}

/* --- ABOUT PAGE HERO (Remains untouched) --- */
.hero-about { background-color: var(--color-secondary); padding: 5rem 0; }
.hero-about-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4rem; }
.hero-about-content h1 { font-size: 3.5rem; line-height: 1.2; font-weight: 700; margin-bottom: 1rem; }
.hero-about-content p { font-size: 1.1rem; color: var(--color-text-light); margin-bottom: 2rem; }
.hero-about-image img { width: 100%; height: auto; border-radius: var(--border-radius-md); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); }
/* ==========================================================================
   5. SHARED CONTENT COMPONENTS
   ========================================================================== */

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.stat-card { background-color: var(--color-white); padding: 2rem; border-radius: var(--border-radius-md); text-align: left; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); }
.stat-card h3 { font-size: 3rem; font-weight: 700; }
.stat-card h3 .highlight { color: var(--color-accent); }
.stat-card h4 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.5rem; }
.stat-card p { color: var(--color-text-light); }

.solutions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.solution-card { background-color: var(--color-white); padding: 2rem; border-radius: var(--border-radius-md); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); }
.solution-icon { margin-bottom: 1rem; }
.solution-icon img { height: 90px; width: auto; }
.solution-card h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.solution-card p { color: var(--color-text-light); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: left;
}
.features-grid .feature-item img {
    width: 100%;
    border-radius: var(--border-radius-md);
    margin-bottom: 1rem;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.features-grid .feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.features-grid .feature-item p {
    color: var(--color-text-light);
}

.features-grid-product {
    display: flex;           
    flex-wrap: wrap;         
    justify-content: center; 
    gap: 2.5rem;
}
.feature-item img { width: 100%; border-radius: var(--border-radius-md); margin-bottom: 1rem; aspect-ratio: 4 / 3; object-fit: cover; }
.feature-item h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.feature-item p { color: var(--color-text-light); }

.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.value-card { background-color: var(--color-white); border-radius: var(--border-radius-md); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.value-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); }
.value-card img { width: 100%; height: auto; display: block; }
.value-card-content { padding: 2rem; }
.value-card h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.value-card p { color: var(--color-text-light); line-height: 1.7; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.gallery-item { position: relative; border-radius: var(--border-radius-md); overflow: hidden; box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); transition: transform 0.3s ease; aspect-ratio: 2 / 3; }
.gallery-item:hover { transform: translateY(-5px); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-item .overlay { position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(to top, rgba(0,0,0,0.85), transparent); padding: 3rem 1.5rem 1.5rem 1.5rem; z-index: 2; }
.gallery-item .overlay h3 { color: var(--color-white); font-size: 1.5rem; font-weight: 600; }

.contact-form .form-row { display: flex; gap: 1.5rem; }
.contact-form .form-group { margin-bottom: 1.5rem; flex: 1; }
.contact-form label { display: block; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.9rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: 0.85rem 1rem; border: 1px solid #ddd; border-radius: var(--border-radius-sm); font-family: var(--font-family-base); font-size: 1rem; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(80, 179, 229, 0.3); }
.contact-form textarea { resize: vertical; }

.quote-banner { background-color: var(--color-accent); color: white; padding: 5rem 2rem; text-align: center; }
.quote-banner blockquote { font-size: 2rem; font-weight: 600; border: none; margin: 0 auto 1.5rem auto; max-width: 800px; line-height: 1.4; }
.quote-banner cite { display: flex; align-items: center; justify-content: center; gap: 1rem; font-style: normal; }
.quote-banner cite img { width: 60px; height: 60px; border-radius: 50%; border: 2px solid var(--color-white); }
.quote-banner cite span { display: block; font-size: 0.9rem; opacity: 0.8; }

/* ==========================================================================
   6. PRODUCT & SOLUTIONS PAGE COMPONENTS
   ========================================================================== */

.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.product-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    text-decoration: none;
    display: flex; flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); }
.product-card-content { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.product-card-content h3 { font-size: 1.8rem; margin-bottom: 0.5rem; color: var(--color-primary); }
.product-card-content p { font-size: 1rem; color: var(--color-text-light); margin-bottom: 1.5rem; flex-grow: 1; }
.learn-more {
    font-weight: 600; display: inline-block; align-self: flex-start;
    background-color: #e5e7eb; color: var(--color-text-light);
    padding: 0.6rem 1.2rem; border-radius: var(--border-radius-sm);
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.product-card:hover .learn-more { background-color: var(--color-accent); color: var(--color-white); }

.product-selector-menu { background-color: var(--color-white); padding: 1rem 0; border-bottom: 1px solid #e0e0e0; }
.product-main-nav { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.product-main-nav a, .product-main-nav button {
    color: var(--color-text-light); text-decoration: none;
    font-weight: 600; font-size: 1.1rem; padding: 0.5rem 0;
    border-bottom: 3px solid transparent; transition: color 0.3s, border-color 0.3s;
    background: none; border: none; cursor: pointer;
}
.product-main-nav a:hover, .product-main-nav button:hover { color: var(--color-primary); }
.product-main-nav a.active, .product-main-nav button.active { color: var(--color-accent); border-bottom-color: var(--color-accent); }

.system-tabs { display: flex; justify-content: center; gap: 1rem; margin-bottom: 3rem; border-bottom: 1px solid #e0e0e0; flex-wrap: wrap; }
.system-tab {
    padding: 1rem 1.5rem; cursor: pointer; background: none; border: none;
    border-bottom: 3px solid transparent; font-size: 1.1rem; font-weight: 600;
    color: var(--color-text-light); transform: translateY(1px);
}
.system-tab.active { color: var(--color-accent); border-bottom-color: var(--color-accent); }

.system-content-panel { display: none; }
.system-content-panel.active { display: block; }

.product-grid-display { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.four-column-grid { grid-template-columns: repeat(3, 1fr); }
.product-display-card {
    border: 1px solid #e5e7eb; border-radius: var(--border-radius-md);
    text-align: left; overflow: hidden; display: flex; flex-direction: column;
}
.product-display-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.product-display-card-content { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.product-display-card h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.product-display-card p { color: var(--color-text-light); margin-bottom: 1.5rem; flex-grow: 1; }

.finishes-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.finish-card { position: relative; border-radius: var(--border-radius-md); overflow: hidden; aspect-ratio: 1 / 1; }
.finish-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.finish-card:hover img { transform: scale(1.05); }
.finish-card span {
    position: absolute; bottom: 0; left: 0; width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white; padding: 2rem 1rem 1rem 1rem; text-align: center; font-weight: 500;
}
.finishes-grid--7-items { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.6rem; }


.features-grid-product {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}
.feature-card-product {
    text-align: center;
}
.features-grid--centered {
    display: flex;           
    flex-wrap: wrap;         
    justify-content: center; 
    gap: 2.5rem;             
}
.features-grid--centered .feature-card-product {
    flex: 0 1 320px;
}
.feature-card-product img { width: 100%; height: 210px; object-fit: cover; margin-bottom: 1rem; border-radius: var(--border-radius-md); }
.feature-card-product h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.feature-card-product p { color: var(--color-text-light); }

.testimonial-grid-product { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.testimonial-card-product {
    background-color: var(--color-white); padding: 2rem; border-radius: var(--border-radius-md);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); display: flex; flex-direction: column;
    align-items: center; text-align: center;
}
.testimonial-card-product img { width: 100%; height: 300px; border-radius: var(--border-radius-md); object-fit: cover; margin-bottom: 1.5rem; }
.testimonial-card-product blockquote { color: var(--color-text-light); font-style: italic; margin-bottom: 1rem; flex-grow: 1; }
.testimonial-card-product cite { font-style: normal; font-weight: 600; }
.testimonial-card-product cite span { display: block; font-weight: 400; font-size: 0.9rem; color: var(--color-text-light); }

.how-we-work-layout-product { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.how-we-work-image-product img { width: 100%; border-radius: var(--border-radius-md); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.how-we-work-steps-product { display: flex; flex-direction: column; gap: 2rem; }
.work-step-product { display: flex; align-items: flex-start; gap: 1.5rem; }
.step-number-product {
    background-color: var(--color-accent); color: var(--color-white);
    font-size: 1.5rem; font-weight: 700;
    min-width: 50px; height: 50px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.step-content-product h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.step-content-product p { color: var(--color-text-light); }

/* ==========================================================================
   7. PORTFOLIO PAGE & MODAL (CORRECTED)
   ========================================================================== */

.portfolio-filters-container { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; margin-bottom: 2rem; }
.filter-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem 1rem; }
.primary-filters { border-bottom: 1px solid #e0e0e0; width: 100%; padding-bottom: 1.5rem; }
.primary-filters .filter-btn {
    background: none; border: none; border-bottom: 3px solid transparent;
    border-radius: 0; padding: 0.25rem; margin: 0 0.5rem;
    color: var(--color-text-light); font-size: 1.25rem; font-weight: 600;
    cursor: pointer; transition: all 0.3s ease;
}
.primary-filters .filter-btn:hover { color: var(--color-primary); }
.primary-filters .filter-btn.active { color: var(--color-accent); border-bottom-color: var(--color-accent); }

.secondary-filters .filter-btn {
    background-color: #f0f4f8; border: 1px solid transparent; border-radius: 2rem;
    padding: 0.6rem 1.2rem; font-size: 0.9rem; font-weight: 500;
    cursor: pointer; transition: all 0.3s ease;
}
.secondary-filters .filter-btn:hover { background-color: #eaf6fc; }
.secondary-filters .filter-btn.active { background-color: var(--color-accent); color: var(--color-white); }

/* --- PORTFOLIO MODAL --- */
.modal-overlay {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Darkened for better contrast */
    display: flex; justify-content: center; align-items: center;
    z-index: 1000; opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
}
.modal-overlay.active { opacity: 1; }

.modal-content {
    background-color: transparent; /* ★★★ THIS IS THE KEY FIX ★★★ */
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 100%; max-width: 900px;
    display: grid; grid-template-columns: 2fr 1fr;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    /* NO padding or border-radius here */
}
.modal-overlay.active .modal-content { transform: scale(1); }

.modal-image-slider {
    position: relative;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    /* Apply corners ONLY to the image slider part */
    border-radius: var(--border-radius-md) 0 0 var(--border-radius-md);
    overflow: hidden; /* This is crucial */
}
.modal-image-slider::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: inherit; background-size: cover; background-position: center;
    transform: scale(1.1); filter: blur(20px) brightness(0.6); z-index: 1;
}
.modal-image-slider img {
    width: 100%; height: 100%; object-fit: contain; display: block;
    transition: opacity 0.4s ease-in-out; position: relative; z-index: 2;
}
.modal-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8); border: none; border-radius: 50%;
    width: 40px; height: 40px; font-size: 1.5rem;
    cursor: pointer; z-index: 10;
    display: flex; align-items: center; justify-content: center;
    transition: background-color 0.2s;
}
.modal-arrow:hover { background-color: var(--color-white); }
.modal-arrow.prev { left: 1rem; }
.modal-arrow.next { right: 1rem; }

.modal-details {
    background-color: var(--color-white);
    padding: 2rem; display: flex; flex-direction: column;
    /* Apply corners ONLY to the details box part */
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
}
.modal-details h3 { font-size: 1.8rem; margin-bottom: 1rem; }
.modal-details p { color: var(--color-text-light); line-height: 1.7; margin-bottom: 2rem; flex-grow: 1; }

.modal-close-btn {
    position: absolute; top: 1rem; right: 1rem;
    background: rgba(0,0,0,0.4); color: white;
    border: none; border-radius: 50%;
    width: 35px; height: 35px;
    font-size: 1.5rem; line-height: 1;
    cursor: pointer; z-index: 1010;
    transition: background-color 0.2s;
}
.modal-close-btn:hover { background: rgba(0,0,0,0.7); }

/* ==========================================================================
   8. MISCELLANEOUS & PAGE-SPECIFIC STYLES
   ========================================================================== */

/* --- Clickable Solution Cards --- */
.solution-link { text-decoration: none; color: inherit; display: block; height: 100%; }
.solution-card { height: 100%; display: flex; flex-direction: column; text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.solution-icon { margin-left: auto; margin-right: auto; }
.solution-link:hover .solution-card { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); }
.solution-card p { flex-grow: 1; margin-bottom: 2rem; }
.solution-card .learn-more { align-self: center; }
.solution-link:hover .learn-more { background-color: var(--color-accent); color: var(--color-white); }

/* --- CTA Banner --- */
#cta-banner { background-color: var(--color-accent); color: var(--color-white); padding: 5rem 1rem; text-align: center; }
#cta-banner h2 { font-size: 2.8rem; margin-bottom: 1rem; line-height: 1.2; }
#cta-banner p { font-size: 1.1rem; max-width: 600px; margin: 0 auto 2.5rem auto; opacity: 0.9; }
.btn-cta {
    background-color: var(--color-white); color: var(--color-accent); font-size: 1.2rem;
    padding: 1rem 2.5rem; font-weight: 700; border: 2px solid var(--color-white); transition: all 0.3s ease;
}
.btn-cta:hover { background-color: transparent; color: var(--color-white); }

/* --- Enhanced Contact Page --- */
.contact-page-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: flex-start; }
.contact-details-column { display: flex; flex-direction: column; gap: 2rem; }
.contact-info-block h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--color-primary); }
.contact-info-block p, .contact-info-block ul { font-size: 1rem; color: var(--color-text-light); line-height: 1.8; }
.contact-info-block ul { list-style: none; padding: 0; }
.contact-info-block a { color: var(--color-accent); text-decoration: none; font-weight: 500; transition: color 0.3s ease; }
.contact-info-block a:hover { color: var(--color-primary); text-decoration: underline; }
.contact-map-full-width { padding: 0; }

/* --- Homepage "About Us" CTA --- */
#about-us-cta h2 { font-size: 2.8rem; line-height: 1.2; font-weight: 700; margin-bottom: 1rem; }

/* --- Grid Modifiers --- */
.product-grid-display--3-items { grid-template-columns: repeat(3, 1fr); }
.features-grid-product--2x2 { display: grid; grid-template-columns: repeat(2, 1fr); max-width: 900px; margin: 0 auto; }
.finishes-grid--4-items { grid-template-columns: repeat(4, 1fr); }
.finishes-grid--7-items { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* --- Homepage Product Carousel --- */
.product-card-carousel {
    position: relative; width: 100%; aspect-ratio: 4 / 3;
    overflow: hidden; border-top-left-radius: var(--border-radius-md);
    border-top-right-radius: var(--border-radius-md); flex-shrink: 0;
}
.carousel-images-wrapper { display: flex; width: 100%; height: 100%; transition: transform 0.5s ease-in-out; }
.carousel-images-wrapper img { width: 100%; height: 100%; object-fit: cover; flex-shrink: 0; }
.carousel-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4); color: var(--color-white);
    border: none; border-radius: 50%; width: 35px; height: 35px;
    font-size: 1.5rem; cursor: pointer; z-index: 10;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: background-color 0.3s ease, opacity 0.3s ease;
}
.product-card:hover .carousel-arrow { opacity: 1; }
.carousel-arrow:hover { background-color: rgba(0, 0, 0, 0.7); }
.carousel-arrow.prev { left: 10px; }
.carousel-arrow.next { right: 10px; }
.carousel-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.carousel-dot { width: 10px; height: 10px; background-color: rgba(255, 255, 255, 0.5); border-radius: 50%; cursor: pointer; transition: background-color 0.3s ease, transform 0.3s ease; }
.carousel-dot.active { background-color: var(--color-white); transform: scale(1.2); }

/* ==========================================================================
   9. RESPONSIVE STYLES
   ========================================================================== */

/* --- TABLET & MOBILE --- */
@media (max-width: 1024px) {
    .main-nav, .header-contact {
        display: none;
    }
    .hamburger-menu {
        display: flex;
    }
}

/* --- TABLET --- */
@media (max-width: 992px) {
    .stats-grid, .solutions-grid, .features-grid, .gallery-grid, .values-grid,
    .product-grid, .product-grid-display, .testimonial-grid-product,
    .product-grid-display--3-items, .features-grid-product--2x2 {
        grid-template-columns: 1fr 1fr;
    }

    .hero-about-layout, .how-we-work-layout-product, .contact-page-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .hero-about-layout { text-align: center; }
    .hero-about-image { grid-row: 1; } /* Move image above text */

    .finishes-grid, .finishes-grid--4-items, .finishes-grid--7-items {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .footer-about .footer-logo { margin: 0 auto 1rem auto; }
    .footer-links ul { padding: 0; }

    .modal-content {
        grid-template-columns: 1fr;
        max-height: 90vh;
        overflow-y: auto;
    }
    .modal-image-slider { border-radius: var(--border-radius-md) var(--border-radius-md) 0 0; }
    .modal-details { border-radius: 0 0 var(--border-radius-md) var(--border-radius-md); }
    
    /* --- TABLET HERO FIX --- */
    #hero, #product-hero-rotator {
    min-height: 600px; /* Give it a solid min-height for tablets */
    display: flex;
    align-items: center;
    justify-content: center;
}

    .hero-background-image {
    /* Force the image to cover the new fixed-height area */
    height: 100%;
    object-fit: cover;
}

    .hero-content {
    /* Use flexbox centering instead of the padding hack */
    padding-top: 0;
    padding-bottom: 0;
    width: 90%;
    }
    
}

/* --- MOBILE --- */
@media (max-width: 768px) {
    .section { 
        padding: 3.5rem 0; 
    }
    
    h1, .hero-about-content h1, .hero-content-container h1 { 
        font-size: 2.0rem; 
    }
    h2, .section-header-split h2, #about-us-cta h2, #cta-banner h2 { 
        font-size: 1.9rem; 
    }
    .section-header p { 
        font-size: 1rem; 
    }

    .logo img { 
        height: 50px; 
    }

    .stats-grid, .solutions-grid, .features-grid, .gallery-grid, .values-grid,
    .product-grid, .product-grid-display, .testimonial-grid-product,
    .product-grid-display--3-items, .features-grid-product--2x2 {
        grid-template-columns: 1fr;
    }

    .contact-form .form-row { 
        flex-direction: column; 
        gap: 0; 
    }
    
    .section-header-split {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }
    .section-header-split .section-header-content { 
        text-align: center; 
    }
    
    .quote-banner blockquote { 
        font-size: 1.5rem; 
    }

    /* === THIS IS THE NEWLY INTEGRATED HERO BANNER FIX === */
    #hero, 
    #product-hero-rotator {
        /* Reduce the height from 90vh to a much shorter 55vh */
        height: 55vh;
        
        /* A safety net. This ensures the banner is never shorter than 400px */
        min-height: 400px;
    }
    #hero h1, 
    .hero-content-container h1 {
        font-size: 2.05rem; 
        line-height: 1.3;  
    }
    .section-header h2 { 
        font-size: 1.9rem; 
        line-height: 1.3;
    }
    /* --- MOBILE HERO FIX --- */
    #hero, #product-hero-rotator {
        min-height: 500px; /* Prevents the banner from shrinking too much */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-background-image {
        /* On mobile, we force the image to cover the 500px tall space */
        height: 100%;
        object-fit: cover;
    }

    .hero-content {
        /* Remove the padding hack on mobile and use flexbox centering */
        padding-top: 0;
        padding-bottom: 0;
        width: 90%;
    }
}