:root {
    --bg: linear-gradient(135deg, #f0f4f7, #e8eef2);
    --card: #ffffff;
    --muted: #444;
    --accent: #157d84;
    --shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 28px rgba(0, 0, 0, 0.12);
    --radius: 14px;
    --font-main: "Montserrat", system-ui, Arial, sans-serif;
}

* {
    box-sizing: border-box ;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background: var(--bg);
    color: #1a1a1a;
    padding: 28px 20px;
    /* keep some breathing room on small screens */
    line-height: 1.6;
}

.wrap {
    max-width: 1300px;
    margin: 0 auto;
}

/* Header */
h1 {
    margin: 0 0 20px;
    font-weight: 700;
    font-size: 35px;
    text-align: center;
    color: var(--accent);
    margin-top: 20px;
}

p.lead {
    color: var(--muted);
    margin: 12px 0 28px;
    text-align: center;
    font-size: 22px;
}

/* GRID
   - center content with justify-content
   - use auto-fit for smaller screens, but force 3 columns on large screens via media query
*/
.grid {
    display: grid;
    gap: 28px;
    justify-content: center;
    /* centers the whole grid area inside the wrap */
    align-items: start;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* default fluid */
    padding: 0 8px;
    /* small side padding so cards never touch screen edge */
}

/* Force exactly 3 columns on large screens (adjust breakpoint as needed) */
@media (min-width: 1200px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
        column-gap: 32px;
    }
}

/* 2 columns on medium screens */
@media (min-width: 800px) and (max-width: 1199px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* CARD
   - remove fixed width; use max-width to bound card size
   - margin:auto centers each card cell content (useful when grid columns are wider)
*/
.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.28s ease;
    border: 1px solid #f0f0f0;
    width: 100%;
    max-width: 360px;
    /* card won't grow beyond this */
    margin: 0 auto;
    /* center inside its grid cell */
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

/* VISUAL
   - responsive image area
*/
.visual {
    position: relative;
    height: 365px;
    /* large on desktop */
    background: #f3f3f3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.visual img.active {
    opacity: 1;
}

/* Card body & typography (increased sizes) */
.body {
    padding: 20px 18px 24px;
}

.body h3 {
    margin: 0;
    font-size: 24px;
    color: #222;
    font-weight: 700;
}

.meta {
    color: var(--muted);
    margin-top: 8px;
    font-size: 18px;
}

.code {
    margin-top: 10px;
    font-weight: 800;
    font-size: 18px;
    color: var(--accent);
}

.specs {
    margin-top: 16px;
    font-size: 18px;
    color: var(--muted);
    line-height: 1.6;
}

.specs strong {
    color: #222;
    display: block;
    margin-bottom: 6px;
    font-size: 20px;
}

/* MOBILE adjustments: stack nicely and center */
@media (max-width: 560px) {
    body {
        padding: 20px 12px;
    }

    .visual {
        height: 220px;
    }

    h1 {
        font-size: 26px;
    }

    p.lead {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .card {
        max-width: 90%;
    }

    /* allow cards to breathe on narrow phones */
    .body h3 {
        font-size: 20px;
    }

    .meta,
    .specs,
    .code {
        font-size: 16px;
    }
}


/* Section Heading */
.section-heading {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    color: var(--accent);
    margin: 50px 0 25px;
    position: relative;
}

.section-heading::after {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    background: var(--accent);
    margin: 10px auto 0;
    border-radius: 2px;
}

.sub-para {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 35px;
    font-size: 20px;
    color: #555;
    line-height: 1.7;
}

/* Download Brochure Button */
.download-btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    padding: 14px 34px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.download-btn:hover {
    background: #125d62;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

/* Centering the button at bottom */
.download-wrapper {
    text-align: center;
    margin: 30px 0 60px;
}

.section-subheading {
    font-size: 30px;
    font-weight: 700;
    text-align: center;
    color: #222;
    margin: 40px 0 30px;
    letter-spacing: 0.5px;
    position: relative;
}

.section-subheading::after {
    content: "";
    display: block;
    width: 120px;
    height: 4px;
    background: var(--accent);
    margin: 12px auto 0;
    border-radius: 2px;
}



/* 🔹 Reset & Font */
body {
    font-family: 'Montserrat', sans-serif;
    color: #4a4a4a;
    margin: 0;
    padding: 0;
}

/* 🔹 Section Styling */
.alis-soffit-section {
    padding: 60px 0;
    background-color: #ffffff;
}

/* 🔹 Title */
.alis-title {
    font-size: 1.8em;
    font-weight: 600;
    padding: 15px;
    padding-top: 30px;
    margin-bottom: 20px;
    color: #2c2c2c;
}

/* 🔹 Text Styling */
.alis-text p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 15px;
    padding: 10px 20px;
}

/* 🔹 Image Styling */
.alis-image img {
    width: 100%;
    height: 300px;
    display: block;
    object-fit: cover;
}

/* 🔹 Container */
.alis-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 🔹 Row & Columns */
.alis-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.alis-col {
    flex: 1;
}

/* This class only applies the reverse direction on DESKTOP */
.flex-md-row-reverse {
    flex-direction: row-reverse;
}

/* 🔹 Larger Screens (UNCHANGED) */
@media (min-width: 768px) {
    .alis-image {
        padding: 0;
    }
}

/* 🔹 Mobile View (UPDATED for Step-by-Step Order) */
@media (max-width: 767px) {
    .alis-soffit-section {
        padding: 30px 10px;
    }

    /* Override flex-direction for all rows on mobile */
    .alis-row {
        flex-direction: column !important; /* Force all rows to stack vertically */
    }
    
    /* Ensure text (title/body) always comes first, and image last */
    .alis-text {
        order: 1; /* Place text first */
        width: 100%;
        padding: 0 10px 20px 10px;
    }
    
    .alis-image {
        order: 2; /* Place image second/last */
        width: 100%;
        padding: 10px 0;
    }

    .alis-image img {
        height: auto;
        margin-bottom: 15px;
    }

    .alis-title {
        font-size: 1.4em;
        text-align: left;
        margin-bottom: 15px;
    }

    .alis-text p {
        font-size: 15px;
        line-height: 1.7;
        /* Adjust padding for mobile text paragraphs */
        padding: 0 10px; 
    }
}




/* --- Section Heading Style --- */
.section-header {
    text-align: center;
    margin-bottom: 40px; /* Space below the heading */
    padding: 0 15px; /* Add some padding for smaller screens */
}

.section-header h1 {
    color: #000000; /* Full Black color */
    font-family: 'Impact', 'Arial Black', sans-serif; /* Different font style (Impact is very bold/distinct) */
    font-size: 3em; /* Large font size for prominence */
    font-weight: normal; /* Impact is already bold, so normal weight */
    text-transform: uppercase; /* Makes it stand out more */
    letter-spacing: 2px; /* Adds some spacing between letters */
    margin: 0; /* Remove default margin */
}

/* Adjust font size for responsiveness on smaller screens */
@media (max-width: 768px) {
    .section-header h1 {
        font-size: 2.2em;
    }
}

@media (max-width: 480px) {
    .section-header h1 {
        font-size: 1.8em;
        letter-spacing: 1px;
    }
}




        /* Responsive Grid (Using custom container if Bootstrap is not linked) */
        .container1 {
            width: 100%;
            max-width: 900px;
            /* Max width for content */
            margin: 0 auto;
            padding: 0 15px;
        }

        .row1 {
            display: flex;
            flex-wrap: wrap;
            margin-left: -15px;
            margin-right: -15px;
        }

        /* Simplified custom grid columns for responsiveness if Bootstrap is NOT used */
        .col-lg-4,
        .col-md-6 {
            padding-left: 15px;
            padding-right: 15px;
            margin-bottom: 30px;
            box-sizing: border-box;
        }

        /* Default: 1 column on extra small screens */
        .col-lg-4,
        .col-md-6 {
            width: 100%;
        }

        /* Medium screens (e.g., tablets): 2 columns */
        @media (min-width: 768px) {
            .col-md-6 {
                width: 50%;
            }

            .col-lg-4 {
                width: 50%;
                /* Keep 2 columns on tablets */
            }
        }

        /* Large screens (e.g., desktops): 3 columns */
        @media (min-width: 992px) {
            .col-lg-4 {
                width: 33.333%;
                /* 3 panels per row */
            }
        }

        /* --- Product Card Styling to Match Image --- */

        .product-catalog-section {
            padding: 40px 0;
        }

        .product-card {
            height: 100%;
            /* Ensure all cards in a row are the same height */
            display: flex;
            flex-direction: column;
            border: 1px solid #e0e0e0;
            border-radius: 4px;
            overflow: hidden;
            text-align: center;
            cursor: pointer;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
            background-color: #ffffff;
            transition: box-shadow 0.3s;
        }

        .product-card:hover {
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        /* Image Area Styling */
.panel-image {
    background-color: #fff;
    padding: 0px; /* Still set to 0 to eliminate any CSS-added borders */
    height: 180px; /* Fixed height for the container */
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e0e0e0;
    box-sizing: border-box; /* Ensure padding doesn't affect the 280px height */
    overflow: hidden; /* IMPORTANT: Hides content that overflows the container */
}

.panel-image img {
    /* Use 'cover' to force the image to fill the container, effectively cropping the transparent parts */
    object-fit: cover; 
    
    /* You might need to adjust width/height percentages or specific pixel values 
       to ensure the *visible part* of the panel fills adequately without being cut off.
       Start with 100% and then experiment if necessary. */
    width: 70%;    
    height: 100%; /* Make the image fill the container completely */
    
    display: block;
    margin: 0;
    padding: 0;
}
        /* Details Area Styling */
        .panel-details {
            display: flex;
            flex-direction: column;
            flex-grow: 1;
            /* Allows details to stretch vertically */
        }

        /* Panel Name (Dark Gray background) */
        .panel-name {
            font-size: 18px;
            font-weight: 500;
            background-color: #dedede;
            /* Dark Gray background matching the image */
            color: #333;
            padding: 15px 10px;
            margin: 0;
            line-height: 1.2;
            text-transform: uppercase;
        }

        /* Specifications Area Styling (Light Gray background) */
        .specifications,
        .effective-size {
            background-color: #f5f5f5;
            /* Light Gray background matching the image */
            padding: 10px 15px;
            margin: 0;
            text-align: left;
            font-size: 18px;
            line-height: 1.5;
            border-top: 1px solid #e8e8e8;
        }

        /* Area Coverage Block (Pushed to bottom) */
        .area-coverage {
            margin-top: auto;
            /* Pushes this block to the bottom of the card */
            background-color: #f0f0f0;
            /* Slightly different shade for the bottom block */
            padding: 15px;
            border-top: 1px solid #e8e8e8;
        }

        .specifications p,
        .effective-size p {
            margin: 0;
            padding: 0;
            color: #555;
        }

        /* Title within Specifications */
        .spec-title {
            font-size: 19px;
            font-weight: 600;
            margin: 0 0 5px 0;
            padding: 0;
            color: #777;
            text-transform: uppercase;
        }

        /* Area Coverage content style */
        .area-coverage p {
            font-size: 22px;
            font-weight: bold;
            color: #333;
            margin: 0;
        }

        /* --- Lightbox/Modal Styling --- */
        .lightbox-modal {
            display: none;
            /* Hidden by default */
            position: fixed;
            z-index: 9999;
            padding-top: 50px;
            /* Space from the top */
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0, 0, 0, 0.9);
            /* Dark overlay */
        }

        .modal-content {
            margin: auto;
            display: block;
            width: 90%;
            max-width: 900px;
            max-height: 90vh;
            object-fit: contain;
        }

        .close-btn {
            position: absolute;
            top: 15px;
            right: 35px;
            color: #f1f1f1;
            font-size: 40px;
            font-weight: bold;
            transition: 0.3s;
            cursor: pointer;
        }

        .close-btn:hover,
        .close-btn:focus {
            color: #bbb;
        }
   

/* --- Accessories Section Styles (Includes necessary base styles) --- */
.accessories-section {
    padding: 60px 0;
    background-color: #f8f8f8; 
    font-family: Arial, sans-serif; 
    color: #444;
}

/* --- Accessories Section Styles --- */
.accessories-section {
    padding: 60px 0;
    background-color: #f8f8f8; /* Light background matching the image */
    font-family: Arial, sans-serif; /* Keep consistent font */
    color: #444;
}

.acc-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styling */
.acc-header {
    text-align: center;
    margin-bottom: 40px;
}

.acc-title {
    font-size: 2.5em;
    font-weight: 500;
    color: #222; /* Dark text for the main title */
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.acc-subtitle {
    font-size: 16px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    color: #555;
}

/* Responsive Grid (Simplified) */
.acc-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center the two cards */
    gap: 30px; /* Space between cards */
}

.acc-col-md-6 {
    /* Base width for 2 cards (or full width on mobile) */
    width: 100%;
    max-width: 400px; /* Optional: limit max width of each card */
    box-sizing: border-box;
}

/* Tablet/Desktop (2 Columns) */
@media (min-width: 768px) {
    .acc-col-md-6 {
        width: calc(50% - 15px); /* 50% width minus half the gap */
    }
}

/* Card Styling */
.acc-card {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    text-align: center;
    background-color: #ffffff;
    height: 100%; /* Ensure both cards are same height */
    display: flex;
    flex-direction: column;
}

/* Image Area */
.acc-image-wrapper {
    background-color: #fff;
    padding: 20px;
    height: 200px; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.acc-img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Heading Bar (Dark Gray) */
.acc-name-bar {
    font-size: 20px;
    font-weight: 500;
    background-color: #dedede; /* Dark Gray background matching the image */
    color: #333; 
    padding: 15px 10px;
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
}

/* Specifications Area (Light Gray) */
.acc-details-wrapper {
    flex-grow: 1; /* Allows details to fill remaining space */
    display: flex;
    flex-direction: column;
}

.acc-spec-area {
    background-color: #f5f5f5; /* Light Gray background matching the image */
    padding: 15px;
    margin: 0;
    text-align: left;
    flex-grow: 1; /* Ensures this area fills space above the price (if there was one) */
}

.acc-spec-label {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 5px 0;
    padding: 0;
    color: #777; 
    text-transform: uppercase;
}

.acc-spec-value {
    font-size: 22px;
    font-weight: normal;
    color: #333;
    margin: 0;
    padding: 0;
}

/* ... (acc-container, acc-header, acc-title, acc-subtitle, acc-row, acc-col-md-6, acc-card are unchanged) ... */

/* Heading Bar (Dark Gray) */
.acc-name-bar {
    font-size: 20px;
    font-weight: 500;
    background-color: #dedede; 
    color: #333; 
    padding: 15px 10px;
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
}

/* Specifications Area (Light Gray) - REVERTED TO SIMPLE STYLE */
.acc-spec-area {
    background-color: #f5f5f5; 
    padding: 15px;
    margin: 0;
    text-align: left;
    /* Removed flex-grow to make space for the usage block below */
}

/* Styles for Profile Size details (matching original card look) */
.acc-spec-label {
    font-size: 22px;
    font-weight: 600;
    color: #777; 
    margin: 0;
    padding: 0;
    text-transform: uppercase;
}

.acc-spec-value {
    font-size: 22px;
    font-weight: normal;
    color: #333;
    margin: 0 0 10px 0; 
    padding: 0;
}

/* New Block for Trim Usage Details (Placed right below specifications) */
.acc-usage-block {
    background-color: #f0f0f0; /* Slightly different shade for separation */
    padding: 15px;
    text-align: left;
    flex-grow: 1; /* Pushes the card content to the bottom */
}

.acc-usage-text {
    font-size: 19px;
    line-height: 1.4;
    color: #555;
    margin: 0;
    padding: 0;
}

.acc-usage-text strong {
    font-weight: bold;
    color: #333;
}


/* Installation Instructions Note (Placed below the cards row) */
.acc-installation-note {
    width: 100%;
    max-width: 800px;
    margin: 30px auto 0;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.acc-note-heading {
    font-size: 1.8em;
    font-weight: 600;
    color: #333;
    margin-top: 0;
    margin-bottom: 10px;
}

.acc-note-text {
    font-size: 19px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}


/* Specifications Area (Light Gray) */
.acc-spec-area {
    background-color: #f5f5f5; 
    padding: 15px;
    margin: 0;
    text-align: left;
    flex-grow: 1;
}

/* New CSS for Detailed Specs/Usage */
.acc-detail-heading {
    font-size: 18px;
    font-weight: bold;
    color: #555;
    margin: 0;
    padding: 5px;
    text-transform: uppercase;
}

.acc-detail-text {
    font-size: 17px;
    font-weight: normal;
    color: #333;
    margin: 0 0 10px 0; /* Add bottom margin for separation */
    padding: 0;
}

.acc-size-mt {
    margin-top: 10px; /* Space between Usage and Size details */
}



/* --- Custom Sizing Section Styles --- */
.custom-sizing-section {
    padding: 60px 0;
    background-color: #ffffff; /* Use white background or match your primary content background */
    font-family: Arial, sans-serif;
    color: #444;
}

.custom-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.custom-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center; /* Vertically centers content in the columns */
    margin-left: -15px;
    margin-right: -15px;
}

/* Base column styles (full width on mobile) */
.custom-col-md-6 {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 30px; /* Space between sections when stacked on mobile */
    box-sizing: border-box;
}

/* Desktop layout (50/50 split) */
@media (min-width: 768px) {
    .custom-col-md-6 {
        width: 50%;
        margin-bottom: 0;
    }
}

/* Image Area Styling */
.custom-image-area {
    text-align: center;
}

.custom-img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Text Area Styling */
.custom-text-area {
    padding: 20px 0;
}

.custom-title {
    font-size: 2.2em;
    font-weight: 700;
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
}

.custom-main-text {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #555;
}

.custom-length-details {
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
}

.custom-length-label {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.custom-length-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex; /* Display list items inline */
    flex-wrap: wrap;
}

.custom-length-list li {
    font-size: 15px;
    font-weight: 500;
    background-color: #dedede; /* Match the dark gray header bar color */
    color: #000;
    padding: 5px 10px;
    margin-right: 10px;
    margin-bottom: 10px;
    border-radius: 3px;
    white-space: nowrap; /* Prevents long labels from wrapping mid-number */
}



@media (max-width: 768px) {
  .hero-area img {
    height: 40vh !important;
    object-fit: cover;  /* optional: ensures image doesn’t stretch */
  }
}

