/* RESPONSIVE-GUARDS: nothing may exceed the viewport on any device */
html, body { max-width: 100%; overflow-x: clip; }  /* clip, not hidden: keeps the sticky header working */
img, video, iframe, canvas, table { max-width: 100%; }
* { min-width: 0; }

/* ==========================================
   All Phase Roofing - Main Stylesheet
   ========================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* ==========================================
   Header & Navigation - Fixed for Spacing
   ========================================== */

/* ==========================================
   NAV 3: DARK FULL-WIDTH NAVIGATION
   Dark gray header, orange bottom border,
   underline tab indicators, phone + CTA right
   ========================================== */

header {
    background: #4a4a4a;
    padding: 0;
    border-bottom: 3px solid rgb(253, 85, 33);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
    gap: 2rem;
}

.logo-section {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-image {
    max-height: 58px;
    width: auto;
    display: block;
    object-fit: contain;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    height: 100%;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 0;
    padding: 0;
    margin: 0;
    height: 100%;
    align-items: stretch;
    background: none;
    border: none;
    border-radius: 0;
}

.main-nav li {
    display: flex;
    align-items: stretch;
}

.main-nav a {
    display: flex;
    align-items: center;
    text-align: center;
    padding: 0 1.15rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 600;
    background: transparent;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
    transition: color 0.25s, border-color 0.25s;
    white-space: nowrap;
    font-size: 0.88rem;
    letter-spacing: 0.01em;
    border-right: none;
}

.main-nav li:last-child a {
    border-right: none;
}

.main-nav a:hover {
    color: #fff;
    border-bottom-color: rgb(253, 85, 33);
    background: none;
}

.main-nav a[aria-current="page"] {
    color: #fff;
    border-bottom-color: rgb(253, 85, 33);
    background: none;
}

/* Nav Right: Phone + CTA */
.nav-right {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.nav-phone {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.2s;
    letter-spacing: 0.01em;
}

.nav-phone:hover {
    color: #fff;
}

.nav-cta {
    background: rgb(253, 85, 33);
    color: #fff;
    padding: 11px 24px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.nav-cta:hover {
    background: rgb(233, 65, 13);
    transform: translateY(-1px);
}

/* Large screens */
@media (min-width: 1400px) {
    .nav-container {
        padding: 0 2.5rem;
    }
    .main-nav a {
        padding: 0 1.5rem;
        font-size: 0.92rem;
    }
    .nav-cta {
        padding: 12px 28px;
        font-size: 0.88rem;
    }
}

/* Mid screens */
@media (max-width: 1200px) {
    .nav-container {
        gap: 1.25rem;
    }
    .logo-image {
        max-height: 80px;
    }
    .main-nav a {
        padding: 0 0.75rem;
        font-size: 0.8rem;
    }
    .nav-phone {
        display: none;
    }
    .nav-cta {
        padding: 9px 18px;
        font-size: 0.8rem;
    }
}

/* Smaller screens */
@media (max-width: 1024px) {
    .main-nav a {
        padding: 0 0.55rem;
        font-size: 0.76rem;
    }
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -7px);
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-container {
        flex-wrap: wrap;
        height: auto;
        padding: 0.75rem 1rem;
        gap: 0;
        align-items: center;
        justify-content: space-between;
    }

    .main-nav {
        display: none;
        width: 100%;
        order: 3;
        height: auto;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        height: auto;
        background: #3a3a3a;
        border-radius: 5px;
        margin-top: 12px;
        border: 1px solid rgba(255,255,255,0.08);
    }

    .main-nav li {
        display: block;
    }

    .main-nav a {
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-right: none;
        margin-bottom: 0;
        padding: 1rem;
        font-size: 1rem;
        text-align: center;
    }

    .main-nav a:hover,
    .main-nav a[aria-current="page"] {
        background: rgba(253, 85, 33, 0.15);
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }

    .main-nav li:last-child a {
        border-bottom: none;
    }

    .logo-image {
        max-height: 58px;
    }

    .nav-right {
        display: none;
    }
}

/* ==========================================
   Dropdown Navigation
   ========================================== */

.main-nav li.has-dropdown {
    position: relative;
}

.main-nav .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    cursor: pointer;
}

.main-nav .dropdown-arrow {
    font-size: 0.65rem;
    transition: transform 0.3s ease;
}

.main-nav li.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.main-nav .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 190px;
    height: auto;
    background: #4a4a4a;
    border: none;
    border-top: 3px solid rgb(253, 85, 33);
    border-radius: 0 0 6px 6px;
    list-style: none;
    padding: 0.35rem 0;
    margin: 0;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.main-nav li.has-dropdown:hover .dropdown-menu {
    display: block;
}

.main-nav .dropdown-menu li {
    display: block;
}

.main-nav .dropdown-menu a {
    display: block;
    padding: 0.7rem 1.25rem;
    text-align: left;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 0;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
}

.main-nav .dropdown-menu li:last-child a {
    border-bottom: none;
    border-radius: 0 0 3px 3px;
}

.main-nav .dropdown-menu a:hover {
    background: rgba(253, 85, 33, 0.15);
    border-bottom-color: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.main-nav .dropdown-menu a[aria-current="page"] {
    background: rgba(253, 85, 33, 0.2);
    color: #fff;
}

/* Dropdown Responsive */
@media (max-width: 768px) {
    .main-nav .dropdown-menu {
        display: none;
        position: static;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.15);
    }

    .main-nav li.has-dropdown:hover .dropdown-menu,
    .main-nav li.has-dropdown.open .dropdown-menu {
        display: block;
    }

    .main-nav .dropdown-menu a {
        padding-left: 2rem;
        font-size: 0.95rem;
    }

    .main-nav .dropdown-toggle {
        justify-content: center;
    }
}

/* ==========================================
   Hero Section
   ========================================== */

.hero {
    background: #999;
    color: #fff;
    text-align: center;
    padding: 8rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn {
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s;
}

.btn-contact {
    background: rgb(253, 85, 33);
    color: #fff;
}

.btn-contact:hover {
    background: rgb(233, 65, 13);
}

.btn-projects {
    background: #fff;
    color: #fd5521;
    border: 2px solid #fd5521;
}

.btn-projects:hover {
    background: #fd5521;
    color: #fff;
}

/* ==========================================
   Tagline Section
   ========================================== */

.tagline {
    background: #f5f5f5;
    text-align: center;
    padding: 1.2rem 2rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    position: relative;
    overflow: hidden;
}

.tagline-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.25;
    z-index: 0;
}

.tagline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(245, 245, 245, 0.85), rgba(245, 245, 245, 0.7), rgba(245, 245, 245, 0.85));
    z-index: 1;
    pointer-events: none;
}

.tagline-text {
    position: relative;
    z-index: 2;
}

/* ==========================================
   Content Sections
   ========================================== */

.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: rgb(233, 65, 13);
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
}

/* ==========================================
   Residential Section
   ========================================== */

.residential-grid {
    display: grid;
    grid-template-columns: 1.25fr 1.15fr;
    gap: 3.5rem;
    align-items: start;
}

.residential-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.residential-content p {
    margin-bottom: 0.5rem;
    line-height: 1.8;
    color: #666;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
}

.residential-image {
    width: 130%;
    max-width: 1500px;
    height: 35rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

/* ==========================================
   Repairs Section
   ========================================== */

.repairs-section {
    background: #f5f5f5;
    padding: 4rem 2rem;
}

.repairs-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 1.25fr;
    gap: 3.5rem;
    align-items: center;
}

.repairs-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.repairs-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
}

/* ==========================================
   About/Stats Section
   ========================================== */

.about-section {
    position: relative;
    padding: 5rem 2rem;
    min-height: 500px;
    width: 100%;
    background: #1a1a1a;
}

.about-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    z-index: 1;
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.about-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.50);
    z-index: 2;
}

.about-content {
    position: relative;
    z-index: 3;
    max-width: 1080px;
    margin: 0 auto 0 2rem;
    padding: 0 2rem;
    text-align: left;
}

.about-

.about-subtitle {
    display: block;
    color: rgb(253, 85, 33);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: left;
}

.about-title {
    color: rgb(253, 85, 33);
    font-size: 2.5rem;
    font-weight: 700;
    font-style: italic;
    margin: 0;
    text-align: left;
}

.about-description {
    color: #fff;
    line-height: 1.9;
    font-size: 1.05rem;
    max-width: none;
    margin: 0 0 2.5rem;
    text-align: left;
}

.about-description strong {
    font-weight: 700;
}

.stats-container {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
    justify-content: flex-start;
}

.stat-box {
    text-align: left;
}

.stat-number {
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px rgba(253, 85, 33, 0.4), 0 0 30px rgba(253, 85, 33, 0.2);
}

/* Bright to dim glow animation - runs once during count-up */
.stat-number.counting {
    animation: glowFade 3s ease-out forwards;
}

@keyframes glowFade {
    0% {
        text-shadow: 0 0 25px rgba(253, 85, 33, 0.9), 0 0 50px rgba(253, 85, 33, 0.6), 0 0 75px rgba(253, 85, 33, 0.4);
    }
    100% {
        text-shadow: 0 0 15px rgba(253, 85, 33, 0.4), 0 0 30px rgba(253, 85, 33, 0.2);
    }
}

.stat-label {
    color: #fff;
    font-size: 0.9rem;
    display: block;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid rgb(253, 85, 33);
}

/* ==========================================
   Reviews Section - Split Layout
   ========================================== */

.reviews-section {
    background: #fff;
}

.reviews-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
}

.review-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 2rem;
    text-align: center;
}

/* Google Box */
.google-box {
    background: #fff;
    border-right: 1px solid #eee;
}

.google-g {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4285f4, #34a853, #fbbc05, #ea4335);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Angi Box */
.angi-box {
    background: #fff;
}

.angi-a {
    font-size: 2rem;
    font-weight: 700;
    color: #ff6153;
}

/* Review Header */
.review-header {
    margin-bottom: 1.5rem;
}

.review-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.review-platform {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.review-stars {
    color: #fbbf24;
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 0.25rem;
}

.review-rating {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Review Example Quote */
.review-example {
    max-width: 400px;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 3px solid rgb(253, 85, 33);
}

.review-text {
    font-size: 0.95rem;
    font-style: italic;
    color: #444;
    line-height: 1.6;
    margin: 0 0 0.75rem;
}

.review-author {
    font-size: 0.85rem;
    color: #888;
    margin: 0;
    font-weight: 500;
}

/* Review CTA Button */
.review-cta-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: rgb(253, 85, 33);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.review-cta-btn:hover {
    background: #d64d1a;
    transform: translateY(-2px);
}

/* Reviews Responsive */
@media (max-width: 768px) {
    .reviews-container {
        flex-direction: column;
    }
    
    .google-box {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    
    .review-box {
        padding: 2rem 1.5rem;
    }
    
    .review-example {
        max-width: 100%;
    }
}

/* ==========================================
   Scrolling Badges Section
   ========================================== */

.badges-section {
    background: #1a1a1a;
    padding: 1rem 0;
    overflow: hidden;
}

.badges-track {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.badges-scroll {
    display: flex;
    animation: scrollBadges 30s linear infinite;
    width: max-content;
    min-width: max-content;
    will-change: transform;
}

.scroll-badge {
    flex: 0 0 auto;
    margin-right: 3rem;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    padding: 0.5rem 0;
    opacity: 0.9;
}

@keyframes scrollBadges {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-25%);
    }
}

/* Pause on hover */
.badges-section:hover .badges-scroll {
    animation-play-state: paused;
}

/* Responsive - slower on mobile */
@media (max-width: 768px) {
    .badges-scroll {
        animation-duration: 25s;
    }
    .scroll-badge {
        margin-right: 2rem;
    }
    
    .scroll-badge {
        font-size: 0.85rem;
    }
}

/* ==========================================
   Services Section
   ========================================== */

.services-section {
    background: #f5f5f5;
    padding: 5rem 2rem;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.services-intro {
    max-width: 900px;
    margin: 0 auto 3rem;
    color: #666;
    line-height: 1.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.service-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-icon img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.service-card h3 {
    font-size: 1.25rem;
    color: #1a1a1a;
}

/* ==========================================
   Projects Section - Carousel
   ========================================== */

/* Carousel Arrows */
/* Carousel Dots */
/* ==========================================
   Service Areas Section - Interactive Map
   ========================================== */

.areas-section {
    background: #f5f5f5;
    padding: 5rem 2rem;
    text-align: center;
}

/* Address Checker Component */
.address-checker {
    max-width: 880px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}

.address-checker-inner {
    background: #fff;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid rgb(253, 85, 33);
}

.address-checker h3 {
    margin: 0 0 1rem;
    color: #333;
    font-size: 1.2rem;
}

.address-input-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: stretch;
}

/* Container for the new Places Autocomplete element */
#autocompleteContainer {
    flex: 1;
    min-width: 250px;
}

/* Style Google Places Autocomplete element */
#autocompleteContainer gmp-place-autocomplete {
    width: 100%;
    display: block;
    --gmp-color-surface: #fff !important;
    --gmp-color-on-surface: #333 !important;
    --gmp-color-on-surface-variant: #666 !important;
    --gmp-color-primary: rgb(253, 85, 33) !important;
    --gmp-color-outline: #ddd !important;
    background: #fff !important;
}

/* Remove inner border, let outer container handle it */
#autocompleteContainer gmp-place-autocomplete::part(input) {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    padding: 0.875rem 0.3rem !important;
    font-size: 1rem !important;
    color: #333 !important;
}

#autocompleteContainer gmp-place-autocomplete::part(input):focus {
    outline: none !important;
    border: none !important;
}

/* Legacy input styles (fallback) */
.address-input-group input {
    flex: 1;
    min-width: 250px;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.address-input-group input:focus {
    outline: none;
    border-color: rgb(253, 85, 33);
}

.address-input-group button {
    padding: 0.875rem 1.5rem;
    background: rgb(253, 85, 33);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.address-input-group button:hover {
    background: #e04a1a;
    transform: translateY(-2px);
}

.address-result {
    margin-top: 1rem;
    padding: 0;
    border-radius: 8px;
    font-weight: 500;
    display: none;
}

.address-result.show {
    display: block;
    padding: 1rem;
}

.address-result.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.address-result.error {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.address-result.outside {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.map-container {
    max-width: 1680px;
    margin: 2rem auto 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

#serviceAreaMap {
    width: 100%;
    height: 580px;
}

.areas-legend {
    max-width: 1200px;
    margin: 1.5rem auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.legend-color {
    width: 20px;
    height: 20px;
    background: rgba(253, 85, 33, 0.4);
    border: 2px solid rgb(253, 85, 33);
    border-radius: 4px;
}

.legend-note {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Keep old grid styles for fallback if map doesn't load */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(200px,100%), 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 2rem auto 0;
}

.area-box {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

/* ==========================================
   Footer
   ========================================== */

footer {
    background: #1a1a1a;
    color: #fff;
    padding: 3rem 2rem 1.5rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: rgb(253, 85, 33);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    text-decoration: none;
    display: block;
}

.footer-section a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    padding: 0.5rem 1.1rem;
    background: rgba(253, 85, 33, 0.14);
    border: 1.5px solid #fd5521;
    border-radius: 5px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.social-link:hover {
    background: rgb(253, 85, 33);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================
   Back to Top Button
   ========================================== */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgb(253, 85, 33);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s;
}

.back-to-top.visible {
    opacity: 1;
}

/* ==========================================
   Before/During/After Slider
   ========================================== */

.bda-slider.residential-image {
    position: relative;
    width: 100%;
    max-width: 640px;
    height: 33rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background: #1a1a1a;
}

.bda-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.bda-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

.bda-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.bda-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bda-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 1.5rem;
    padding: 1rem 0.75rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    z-index: 10;
}

.bda-arrow:hover {
    background: rgb(253, 85, 33);
}

.bda-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.bda-prev {
    left: 0;
    border-radius: 0 5px 5px 0;
}

.bda-next {
    right: 0;
    border-radius: 5px 0 0 5px;
}

/* ==========================================
   Responsive Design
   ========================================== */

@media (max-width: 1024px) {

    .residential-grid,
    .repairs-grid {
        gap: 3rem;
    }

    .residential-image,
    .bda-slider.residential-image {
        max-width: 100%;
        height: 26rem;
    }
}

@media (max-width: 768px) {
    

    .hero h2 {
        font-size: 2rem;
    }

    .hero {
        padding: 5rem 2rem;
    }

    .residential-grid,
    .repairs-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .residential-image,
    .bda-slider.residential-image {
        max-width: 100%;
        height: 20rem;
    }

    .stats-container {
        flex-wrap: wrap;
        gap: 2rem;
    }

    .stat-box {
        flex: 1 1 45%;
    }

    .stat-number {
        font-size: 3rem;
    }

    .about-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    /* Projects carousel responsive */
    /* Map responsive */
    #serviceAreaMap {
        height: 400px;
    }

    .areas-legend {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .stats-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat-box {
        flex: 1 1 100%;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .about-title {
        font-size: 1.75rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .residential-image,
    .bda-slider.residential-image {
        height: 16rem;
    }

    /* Map responsive for small screens */
    #serviceAreaMap {
        height: 300px;
    }

    .legend-note {
        font-size: 0.8rem;
    }
}
/* ==========================================
   Contact Page Styles
   ========================================== */

.contact-hero {
    background: #f5f5f5;
    padding: 3rem 2rem;
    text-align: center;
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.contact-info h4 {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: #666;
    line-height: 1.8;
}

.contact-info p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-details {
    margin-top: 2rem;
}

.contact-details h4 {
    font-size: 1rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
}

.contact-details p {
    margin: 0.25rem 0;
    color: #666;
}

.contact-details a {
    color: rgb(253, 85, 33);
    text-decoration: none;
    font-weight: 600;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-form-container {
    background: #fff;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contact-form-container h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgb(253, 85, 33);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    background: rgb(253, 85, 33);
    color: #fff;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.submit-btn:hover {
    background: rgb(233, 65, 13);
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   About Page Styles
   ========================================== */

.about-paragraph {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #666;
}

.about-summary {
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #666;
    line-height: 1.8;
}

.about-slogan {
    margin-top: 3rem;
    font-size: 2.5rem;
    color: rgb(253, 85, 33);
}

.cta-section {
    background: #fff;
    text-align: center;

    margin: 0;
    padding: 5rem 2rem;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: #666;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.cta-section .btn {
    display: inline-block;
    padding: 1rem 2rem;
}

.contact-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

//* ==========================================
   FAQ Section Styles (Accordion)
   ========================================== */

.faq-section {
    background: #fff;
    padding: 5rem 2rem;
}

.faq-container {
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 2px solid #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: rgb(253, 85, 33);
}

.faq-question {
    width: 100%;
    background: #fff;
    border: none;
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-size: 1.1rem;
    color: #1a1a1a;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    font-family: inherit;
}

.faq-question:hover {
    background: #f9f9f9;
}

.faq-icon {
    font-size: 1.5rem;
    color: rgb(253, 85, 33);
    font-weight: 700;
    transition: transform 0.3s;
    min-width: 30px;
    text-align: center;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background: #f9f9f9;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 1.25rem 1.5rem;
}

.faq-answer p {
    color: #666;
    line-height: 1.8;
    margin: 0;
}
/* ==========================================
   Projects Carousel - 3 Window Style
   ========================================== */

/* Navigation Arrows */
/* Dots Navigation */
/* Responsive */
@media (max-width: 1024px) {
    }

@media (max-width: 768px) {
    }

@media (max-width: 480px) {
    }

/* ==========================================
   Projects Carousel - Center Focus Style
   ========================================== */

/* Center slide (active) */
/* Left slide */
/* Right slide */
/* Far left slide */
/* Far right slide */
/* Hidden slides */
/* Navigation Arrows */
/* Dots Navigation */
/* Responsive */
@media (max-width: 1200px) {
    }

@media (max-width: 768px) {
    }

@media (max-width: 480px) {
    }
/* ==========================================
   Service Icons Consistent Sizing
   ========================================== */

.service-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.service-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: none;
}

.service-card:hover .service-icon {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(253, 85, 33, 0.3);
}

/* Ensure all service icons have consistent orange color */
.service-icon img {
    /* Images are already orange, no filter needed */
}

@media (max-width: 768px) {
    .service-icon {
        width: 100px;
        height: 100px;
        padding: 15px;
    }
    
    .service-icon img {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .service-icon {
        width: 90px;
        height: 90px;
        padding: 12px;
    }
    
    .service-icon img {
        width: 60px;
        height: 60px;
    }
}

/* ==========================================
   Service Icons - Uniform Size & Color
   ========================================== */

.service-icon {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: all 0.3s ease;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Images are already rgb(253, 85, 33) */
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card:hover .service-icon img {
    filter: drop-shadow(0 4px 15px rgba(253, 85, 33, 0.4));
}

@media (max-width: 768px) {
    .service-icon {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .service-icon {
        width: 100px;
        height: 100px;
    }
}

/* ==========================================
   Individual Service Icon Sizing
   ========================================== */
.service-icon-site img {
    width: 75%;
    height: 75%;
}
.service-icon-landscape img {
    width: 120%;
    height: 120%;
}
.service-icon-landscape img {
    /* Default: inherits 100% from .service-icon */
    /* Adjust individually: width: 95%; height: 95%; */
}
/* ==========================================
   Contact Form - Updated Layout
   ========================================== */

/* Form row for side-by-side fields */
.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-half {
    flex: 1;
    margin-bottom: 0 !important;
}

/* Dropdown select styling */
.form-group select {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.3s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group select:focus {
    outline: none;
    border-color: rgb(253, 85, 33);
}

/* Responsive - Stack name fields on mobile */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-half {
        margin-bottom: 1.5rem !important;
    }
}

/* ==========================================
   Full-Width 3-Slide Carousel
   ========================================== */

/* Position slides in 3-column layout */
/* Active slides visible */
/* Navigation Arrows */
/* Dots Navigation */
/* Tablet - 2 slides visible */
@media (max-width: 1024px) {
    

    }

/* Mobile - 1 slide visible */
@media (max-width: 768px) {
    

    }

@media (max-width: 480px) {
    

    }

/* ==========================================
   Full-Width 3-Slide Carousel
   ========================================== */

/* Position slides in 3-column layout */
/* Active slides visible */
/* Navigation Arrows */
/* Dots Navigation */
/* Tablet - 2 slides visible */
@media (max-width: 1024px) {
    

    }

/* Mobile - 1 slide visible */
@media (max-width: 768px) {
    

    }

@media (max-width: 480px) {
    

    }

/* ==========================================
   Stats Counter Animation Styling
   ========================================== */

.stat-number {
    display: inline-block;
    font-variant-numeric: tabular-nums;
    transition: transform 0.3s ease;
}

.stat-box:hover .stat-number {
    transform: scale(1.1);
}

/* Optional: Add glow effect during animation */
@keyframes statGlow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(253, 85, 33, 0);
    }
    50% {
        text-shadow: 0 0 15px rgba(253, 85, 33, 0.6);
    }
}

.stat-number[data-target] {
    animation: statGlow 2s ease-in-out;
}

/* ==========================================
   Shingles & Accessories Page Styling
   ========================================== */

/* Shingles Container */
.shingles-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Shingles Brands Section */
.shingles-brands-section {
    background: #f9f9f9;
    padding: 4rem 2rem;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

.brand-card {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-top: 5px solid rgb(253, 85, 33);
}

.brand-

.brand-header h3 {
    font-size: 2rem;
    color: rgb(253, 85, 33);
    margin: 0;
}

.brand-badge {
    background: rgb(253, 85, 33);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: bold;
}

.brand-features h4,
.brand-products h4 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.brand-features ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.brand-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.brand-features li strong {
    color: rgb(253, 85, 33);
}

.brand-products {
    margin: 2rem 0;
}

.product-item {
    background: #f9f9f9;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-radius: 5px;
    border-left: 3px solid rgb(253, 85, 33);
}

.product-item strong {
    color: rgb(253, 85, 33);
}

.brand-warranty {
    background: #f0f8ff;
    padding: 1rem;
    border-radius: 5px;
    border-left: 4px solid #4a90e2;
    margin-top: 2rem;
}

/* Shingle Types Section */
.shingle-types-section {
    padding: 4rem 2rem;
    background: white;
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.type-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    border: 2px solid #ddd;
    position: relative;
    transition: all 0.3s;
}

.type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: rgb(253, 85, 33);
}

.type-card.featured {
    border-color: rgb(253, 85, 33);
    border-width: 3px;
    box-shadow: 0 4px 20px rgba(253, 85, 33, 0.2);
}

.recommended-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgb(253, 85, 33);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.875rem;
}

.type-card h3 {
    color: rgb(253, 85, 33);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.type-specs {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.type-specs p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.type-description {
    color: #666;
    line-height: 1.6;
}

/* Accessories Section */
.accessories-section {
    background: #f9f9f9;
    padding: 4rem 2rem;
}

.accessories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.accessory-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.accessory-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(253, 85, 33, 0.2);
}

.accessory-card h3 {
    color: rgb(253, 85, 33);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.accessory-card p {
    margin: 0.75rem 0;
    color: #666;
}

.accessory-card strong {
    color: #333;
}

/* System Benefits Section */
.system-benefits-section {
    padding: 4rem 2rem;
    background: white;
}

.lead-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 3rem;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.benefit-item {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid rgb(253, 85, 33);
}

.benefit-item h3 {
    color: rgb(253, 85, 33);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.benefit-item p {
    color: #666;
    line-height: 1.6;
}

/* Why All Phase Section */
.why-allphase-section {
    background: linear-gradient(135deg, #f9f9f9 0%, #fff 100%);
    padding: 4rem 2rem;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.why-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(253, 85, 33, 0.2);
}

.why-card h3 {
    color: rgb(253, 85, 33);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.why-card p {
    color: #666;
    line-height: 1.6;
}

/* CTA Phone */
.cta-phone {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    color: #fff;
}

.cta-phone a {
    color: #fff;
    font-weight: bold;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .brands-grid {
        grid-template-columns: 1fr;
    }

    .types-grid,
    .accessories-grid,
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .types-grid,
    .accessories-grid,
    .benefits-grid,
    .why-grid {
        grid-template-columns: 1fr;
    }

    .brand-

    .shingles-brands-section,
    .shingle-types-section,
    .accessories-section,
    .system-benefits-section,
    .why-allphase-section {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .brand-card,
    .type-card,
    .accessory-card,
    .why-card {
        padding: 1.5rem;
    }

    .brand-header h3 {
        font-size: 1.5rem;
    }

    .type-card h3,
    .accessory-card h3,
    .why-card h3 {
        font-size: 1.25rem;
    }
}

 ==========================================
   Interactive Shingle Selector Styling
   ========================================== */

/* ==========================================
   Updated Filter Sidebar - Scrollable & Wider
   ========================================== */

/* Filter Sidebar - Now Scrollable */
/* Custom Scrollbar for Filter Sidebar */
/* Products Grid - Now Scrollable */
/* Custom Scrollbar for Products Grid */
.shingle-products::-webkit-scrollbar {
    width: 10px;
}

.shingle-products::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.shingle-products::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.shingle-products::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Adjust filter group spacing for wider sidebar */
.filter-group {
    margin-bottom: 2rem;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;  /* Slightly increased from 0.75rem */
}

.filter-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: #555;
    padding: 0.25rem 0;  /* Added padding for easier clicking */
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .filter-sidebar,
    }

@media (max-width: 1024px) {
    /* Custom Scrollbar for Filter Sidebar */
}

@media (max-width: 768px) {
    /* Custom Scrollbar for Filter Sidebar */
}

/* Selector Container */
.shingle-selector-section {
    padding: 4rem 0;
    background: #f5f5f5;
}

.filter-

.filter-header h2 {
    font-size: 1.5rem;
    color: #333;
    margin: 0;
}

.filter-reset {
    background: none;
    border: none;
    color: rgb(253, 85, 33);
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
}

.filter-reset:hover {
    color: #d64d1a;
}

.filter-group {
    margin-bottom: 2rem;
}

.filter-title {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: #555;
}

.filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: rgb(253, 85, 33);
}

.filter-option:hover span {
    color: rgb(253, 85, 33);
}

.products-

.products-header h2 {
    font-size: 1.75rem;
    color: #333;
    margin: 0;
}

.results-count {
    color: #666;
    font-size: 1rem;
}

.results-count span {
    font-weight: bold;
    color: rgb(253, 85, 33);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
}

/* Product Card */
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(253, 85, 33, 0.2);
    border-color: rgb(253, 85, 33);
}

.product-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #fff;
}

.product-info {
    padding: 1.5rem;
}

.product-brand {
    font-size: 0.85rem;
    color: rgb(253, 85, 33);
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.product-price {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
}

.product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background: #f0f0f0;
    color: #555;
}

.badge.badge-wind {
    background: #e3f2fd;
    color: #1976d2;
}

.badge.badge-impact {
    background: #fff3e0;
    color: #f57c00;
}

.badge.badge-algae {
    background: #e8f5e9;
    color: #388e3c;
}

.product-cta {
    background: rgb(253, 85, 33);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 5px;
    width: 100%;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.product-cta:hover {
    background: #d64d1a;
    transform: scale(1.02);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results h3 {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 1rem;
}

.no-results p {
    color: #999;
    margin-bottom: 2rem;
}

/* Shingle Modal */
.shingle-modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.modal-content {
    position: relative;
    max-width: 900px;
    margin: 2rem auto;
    background: white;
    border-radius: 10px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10001;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgb(253, 85, 33);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #d64d1a;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.modal-image {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #fff;
}

.modal-details h2 {
    font-size: 1.75rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.modal-brand {
    color: rgb(253, 85, 33);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.modal-price {
    font-size: 1.5rem;
    color: #666;
    font-weight: bold;
    margin-bottom: 2rem;
}

.modal-specs,
.modal-features {
    margin-bottom: 2rem;
}

.modal-specs h3,
.modal-features h3 {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 1rem;
}

.modal-specs ul,
.modal-features ul {
    list-style: none;
    padding: 0;
}

.modal-specs li,
.modal-features li {
    padding: 0.5rem 0;
    color: #666;
    border-bottom: 1px solid #eee;
}

.modal-specs li:before,
.modal-features li:before {
    content: "\2713  ";
    color: rgb(253, 85, 33);
    font-weight: bold;
    margin-right: 0.5rem;
}

.btn-select-shingle {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 1024px) {
    

    /* Custom Scrollbar for Filter Sidebar */
.modal-body {
        grid-template-columns: 1fr;
    }

    .modal-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(200px,100%), 1fr));
        gap: 1.5rem;
    }

    /* Custom Scrollbar for Filter Sidebar */
.modal-content {
        margin: 1rem;
    }

    .modal-body {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    

    .products-grid {
        grid-template-columns: 1fr;
    }

    .products-
}

/* ==========================================
   Selected Shingle Display on Contact Page
   ========================================== */

.selected-shingle-display {
    background: linear-gradient(135deg, #fff9f5 0%, #fff 100%);
    border: 3px solid rgb(253, 85, 33);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.selected-shingle-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: center;
}

.selected-shingle-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.selected-shingle-info h3 {
    color: rgb(253, 85, 33);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.selected-shingle-info p {
    margin: 0.25rem 0;
    color: #333;
}

.selected-shingle-info strong {
    font-size: 1.1rem;
}

.change-shingle-btn {
    margin-top: 1rem;
    background: white;
    border: 2px solid rgb(253, 85, 33);
    color: rgb(253, 85, 33);
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.change-shingle-btn:hover {
    background: rgb(253, 85, 33);
    color: white;
}

@media (max-width: 768px) {
    .selected-shingle-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .selected-shingle-card img {
        margin: 0 auto;
    }
}

/* ==========================================
   Filter Instructions Section
   ========================================== */

.filter-instructions {
    background: linear-gradient(135deg, #fff9f5 0%, #ffe8dc 100%);
    border: 2px solid rgb(253, 85, 33);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.filter-instructions h3 {
    color: rgb(253, 85, 33);
    font-size: 1.15rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-instructions h3:before {
    content: "\2139  ";
    font-size: 1.25rem;
}

.filter-instructions ol {
    margin: 0 0 1rem 0;
    padding-left: 1.25rem;
    color: #333;
}

.filter-instructions li {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.filter-instructions li strong {
    color: rgb(253, 85, 33);
    font-weight: 700;
}

.instruction-tip {
    background: white;
    border-left: 4px solid rgb(253, 85, 33);
    padding: 0.75rem;
    margin: 0;
    font-size: 0.9rem;
    color: #555;
    border-radius: 4px;
}

@media (max-width: 1024px) {
    .filter-instructions {
        background: linear-gradient(135deg, #fff9f5 0%, #fff 100%);
    }
}

@media (max-width: 768px) {
    .filter-instructions {
        padding: 1.25rem;
    }
    
    .filter-instructions h3 {
        font-size: 1.1rem;
    }
    
    .filter-instructions li {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
}

/* ==========================================
   Interactive Shingle Selector Styling
   ========================================== */

/* Selector Container */
.shingle-selector-section {
    padding: 4rem 0;
    background: #f5f5f5;
}

.selector-container {
    max-width: 1650px;
    margin: 0 auto;
    padding: 0 1.5rem 0 0;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2rem;
}

/* Filter Sidebar */
.filter-sidebar {
    background: white;
    padding: 1.5rem 2.5rem 1.5rem 3rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: fit-content;
    overflow-y: auto;
    position: sticky;
    top: 20px;
}

/* Custom Scrollbar for Filter Sidebar */
.filter-sidebar::-webkit-scrollbar {
    width: 8px;
}

.filter-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.filter-sidebar::-webkit-scrollbar-thumb {
    background: rgb(253, 85, 33);
    border-radius: 10px;
}

.filter-sidebar::-webkit-scrollbar-thumb:hover {
    background: #d64d1a;
}

/* Filter Instructions */
.filter-instructions {
    background: linear-gradient(135deg, #fff9f5 0%, #ffe8dc 100%);
    border: 2px solid rgb(253, 85, 33);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.filter-instructions h3 {
    color: rgb(253, 85, 33);
    font-size: 1.15rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-instructions h3:before {
    content: "\2139  ";
    font-size: 1.25rem;
}

.filter-instructions ol {
    margin: 0 0 1rem 0;
    padding-left: 1.25rem;
    color: #333;
}

.filter-instructions li {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.filter-instructions li strong {
    color: rgb(253, 85, 33);
    font-weight: 700;
}

.instruction-tip {
    background: white;
    border-left: 4px solid rgb(253, 85, 33);
    padding: 0.75rem;
    margin: 0;
    font-size: 0.9rem;
    color: #555;
    border-radius: 4px;
}

.filter-.filter-header h2 {
    font-size: 1.5rem;
    color: #333;
    margin: 0;
}

.filter-reset {
    background: none;
    border: none;
    color: rgb(253, 85, 33);
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
}

.filter-reset:hover {
    color: #d64d1a;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-title {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: #555;
}

.filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: rgb(253, 85, 33);
}

.filter-option:hover span {
    color: rgb(253, 85, 33);
}

/* Products Grid */
.shingle-products {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.products-header h2 {
    font-size: 1.75rem;
    color: #333;
    margin: 0;
}

.results-count {
    color: #666;
    font-size: 1rem;
}

.results-count span {
    font-weight: bold;
    color: rgb(253, 85, 33);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(320px,100%), 1fr));
    max-width: 2000px;
    margin: 0 auto;
    gap: 1.75rem;
}

/* Product Card */
.product-card {
    background: white;
    border: 2px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(253, 85, 33, 0.2);
    border-color: rgb(253, 85, 33);
}

.product-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #fff;
}

.product-info {
    padding: 1.5rem;
}

.product-brand {
    font-size: 0.85rem;
    color: rgb(253, 85, 33);
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.product-price {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
}

.product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background: #f0f0f0;
    color: #555;
}

.badge.badge-wind {
    background: #e3f2fd;
    color: #1976d2;
}

.badge.badge-impact {
    background: #fff3e0;
    color: #f57c00;
}

.badge.badge-algae {
    background: #e8f5e9;
    color: #388e3c;
}

.product-cta {
    background: rgb(253, 85, 33);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 5px;
    width: 100%;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.product-cta:hover {
    background: #d64d1a;
    transform: scale(1.02);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results h3 {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 1rem;
}

.no-results p {
    color: #999;
    margin-bottom: 2rem;
}

/* Shingle Modal */
.shingle-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.shingle-modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.modal-content {
    position: relative;
    max-width: 900px;
    margin: 2rem auto;
    background: white;
    border-radius: 10px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10001;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgb(253, 85, 33);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #d64d1a;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.modal-image {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #fff;
}

.modal-details h2 {
    font-size: 1.75rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.modal-brand {
    color: rgb(253, 85, 33);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.modal-price {
    font-size: 1.5rem;
    color: #666;
    font-weight: bold;
    margin-bottom: 2rem;
}

.modal-specs,
.modal-features {
    margin-bottom: 2rem;
}

.modal-specs h3,
.modal-features h3 {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 1rem;
}

.modal-specs ul,
.modal-features ul {
    list-style: none;
    padding: 0;
}

.modal-specs li,
.modal-features li {
    padding: 0.5rem 0;
    color: #666;
    border-bottom: 1px solid #eee;
}

.modal-specs li:before,
.modal-features li:before {
    content: "\2713  ";
    color: rgb(253, 85, 33);
    font-weight: bold;
    margin-right: 0.5rem;
}

.btn-select-shingle {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* Selected Shingle Display on Contact Page */
.selected-shingle-display {
    background: linear-gradient(135deg, #fff9f5 0%, #fff 100%);
    border: 3px solid rgb(253, 85, 33);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.selected-shingle-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: center;
}

.selected-shingle-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.selected-shingle-info h3 {
    color: rgb(253, 85, 33);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.selected-shingle-info p {
    margin: 0.25rem 0;
    color: #333;
}

.selected-shingle-info strong {
    font-size: 1.1rem;
}

.change-shingle-btn {
    margin-top: 1rem;
    background: white;
    border: 2px solid rgb(253, 85, 33);
    color: rgb(253, 85, 33);
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.change-shingle-btn:hover {
    background: rgb(253, 85, 33);
    color: white;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .selector-container {
        grid-template-columns: 300px 1fr;
        gap: 1.5rem;
    }

    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .selector-container {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .filter-sidebar {
        position: static;
        margin-bottom: 2rem;
    }

    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-image {
        height: 300px;
    }

    .filter-instructions {
        background: linear-gradient(135deg, #fff9f5 0%, #fff 100%);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .filter-sidebar {
        padding: 1.5rem;
    }

    .shingle-products {
        padding: 1.5rem;
    }

    .modal-content {
        margin: 1rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .selected-shingle-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .selected-shingle-card img {
        margin: 0 auto;
    }

    .filter-instructions {
        padding: 1.25rem;
    }
    
    .filter-instructions h3 {
        font-size: 1.1rem;
    }
    
    .filter-instructions li {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .selector-container {
        padding: 0 1rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .products-}

/* ==========================================
   Full-Width Projects Carousel (3 Images Across)
   ========================================== */

.fullwidth-projects-section {
    background: #f5f5f5;
    padding: 2.25rem 0;
    width: 100%;
}

.fullwidth-projects-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.fullwidth-carousel {
    position: relative;
    width: 100%;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 500px;
    overflow: hidden;
    background: #f5f5f5;
}

.fullwidth-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.fullwidth-slide {
    flex: 0 0 33.333%;
    height: 100%;
    padding: 0 0.5rem;
    position: relative;   /* captions anchor to their own slide, not the carousel */
}

.fullwidth-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Navigation Arrows */
.fullwidth-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgb(253, 85, 33);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullwidth-arrow:hover {
    background: #d64d1a;
    transform: translateY(-50%) scale(1.1);
}

.fullwidth-prev {
    left: 2rem;
}

.fullwidth-next {
    right: 2rem;
}

/* Dots Navigation */
.fullwidth-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.fullwidth-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(100, 100, 100, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.fullwidth-dot:hover {
    background: rgba(100, 100, 100, 0.8);
}

.fullwidth-dot.active {
    background: rgb(253, 85, 33);
    width: 32px;
    border-radius: 6px;
}

/* Responsive */
@media (max-width: 1024px) {
    .fullwidth-carousel {
        height: 400px;
    }
    
    .fullwidth-slide {
        flex: 0 0 50%;
    }
    
    .fullwidth-arrow {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .fullwidth-carousel {
        height: 350px;
    }
    
    .fullwidth-slide {
        flex: 0 0 100%;
    }
    
    .fullwidth-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .fullwidth-prev {
        left: 1rem;
    }
    
    .fullwidth-next {
        right: 1rem;
    }
}

@media (max-width: 480px) {
    .fullwidth-carousel {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .fullwidth-slide > div {
        left: 12px !important;
        right: 12px !important;
        bottom: 54px !important;
        max-width: none !important;
        padding: 10px 12px !important;
    }
    .fullwidth-dots {
        bottom: 0.6rem;
        gap: 0.45rem;
        max-width: 92%;
        flex-wrap: wrap;
        justify-content: center;
    }
    .fullwidth-dot {
        width: 8px !important;
        height: 8px !important;
    }
    .fullwidth-slide > div h3 { font-size: 1em !important; }
    .fullwidth-slide > div p { font-size: 0.78em !important; }
}

/* ============================================================
   Shingle swatch rendering — 2026-07-31
   Swatches are small manufacturer downloads (148-800px) shown in a
   wide box. Scaling them to fit upscaled the small ones 2-3x and
   made them blurry. Instead the swatch is tiled at its NATIVE pixel
   size as a repeating background: fills the frame edge to edge, no
   letterboxing, and never enlarges a pixel.
   ============================================================ */
.product-image,
.modal-image {
    background-repeat: repeat;
    background-position: center center;
    background-size: auto;
    padding: 0;
    border: 0;
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.modal-image {
    width: 100%;
    height: 340px;
    overflow: hidden;
    border-radius: 10px;
    background-color: #e9e9e7;
}

/* the <img> stays in the DOM for alt text and the onerror fallback,
   but the tiled background is what's actually shown */
.product-image img,
.modal-image img {
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}


/* ==========================================
   Alignment pass — 2026-08-01
   One container width (1200px) and centered
   section headers, matching the rest of the page.
   ========================================== */
.content-section .section-header,
.content-section .section-header h2,
.content-section .section-header p {
    text-align: center;
}
.about-stats,
.stats-row {
    justify-content: flex-start;
}


/* ==========================================
   Full-span Installation & Repairs rows — 2026-08-01
   Owner request: paragraph at the left edge of the screen,
   photo at the right edge (and mirrored below). The section
   header stays centered; only the two content rows span.
   ========================================== */
.content-section {
    max-width: none;
    padding-left: 3.5rem;
    padding-right: 3.5rem;
}
.repairs-section {
    padding-left: 3.5rem;
    padding-right: 3.5rem;
}
.residential-grid,
.repairs-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
    max-width: 1680px;
    margin: 0 auto;
}
.residential-content {
    flex: 0 1 640px;
}
.repairs-grid > div:last-child {
    flex: 0 1 640px;
}
.residential-grid > div:last-child,
.repairs-grid > div:first-child {
    flex: 0 0 auto;
}
.residential-grid img.residential-image {
    width: clamp(480px, 42vw, 860px);
    max-width: none;
    height: 35rem;
}
.bda-slider.residential-image {
    width: clamp(480px, 42vw, 860px);
    max-width: none;
    height: 33rem;
}
@media (max-width: 1200px) {
    .content-section,
    .repairs-section {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    .residential-grid,
    .repairs-grid {
        flex-direction: column;
        align-items: stretch;
    }
    .repairs-grid {
        flex-direction: column-reverse;
    }
    .residential-content,
    .repairs-grid > div:last-child {
        flex: 1 1 auto;
    }
    .residential-grid img.residential-image,
    .bda-slider.residential-image {
        width: 100%;
        height: 26rem;
    }
}

/* Uniform service icon sizing — 2026-08-01
   Old per-icon modifiers compensated for mismatched source files;
   sources are now identical 400x400, so one size fits all. */
.service-icon img,
.service-icon.service-icon-site img,
.service-icon.service-icon-repair img,
.service-icon.service-icon-landscape img {
    width: 110px;
    height: 110px;
    object-fit: contain;
}


/* ==========================================
   Button + icon consistency — 2026-08-01
   ========================================== */
/* back-to-top always above carousel arrows and everything else */
.back-to-top {
    z-index: 9500;
}

/* ==========================================
   About background — parallax (2026-08-01)
   Replicates the live Wix site's photo-strip effect: the image
   layer is oversized and travels at ~1.2x scroll speed, sliding
   through its frame as the section crosses the viewport.
   JS sets --apx (px). Photo only; layout untouched.
   ========================================== */
.about-section { overflow: hidden; }
.about-bg-image {
    height: 145%;
    top: -22%;
    will-change: transform;
    transform: translateY(var(--apx, 0px));
}
@media (prefers-reduced-motion: reduce) {
    .about-bg-image { transform: none; height: 100%; top: 0; }
}

/* Badge scroller icons — 2026-08-01. Emoji-sized inline images. */
.scroll-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.badge-ico {
    height: 22px;
    width: auto;
    display: block;
    flex: 0 0 auto;
}

/* Badge scroller: explicit centering on every axis — 2026-08-01 */
.badges-track {
    display: flex;
    align-items: center;
}
.badges-scroll {
    align-items: center;
}
.scroll-badge {
    line-height: 1;
}
.badge-ico {
    align-self: center;
}

/* Hero: pull the subtitle up under the headline. The h2's 89.6px
   line-height on a 56px font leaves ~17px of invisible leading, so a
   24px margin reads as a ~41px gap. 2026-08-01 */
.hero h2:has(+ .hero-subtitle) {
    margin-bottom: 0;
    line-height: 1.15;
}
.hero .hero-subtitle {
    margin-top: 0.45rem;
}

/* ==========================================
   Free Estimate — split panel (Option D), 2026-08-02
   Dark pitch left, form right, edge to edge.
   ========================================== */
.est-split-section {
    max-width: none;
    padding: 0;
    margin: 0;
}
.est-split {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    align-items: stretch;
}
/* panels size to their content and centre it, so no dead black or white space */
.est-pitch, .est-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.est-pitch {
    background: #1a1a1a;
    color: #fff;
    padding: 64px 5% 64px 8%;
    display: flex;
    flex-direction: column;
}
.est-eyebrow {
    color: rgb(253, 85, 33);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.est-pitch h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.7rem, 2.4vw, 2.3rem);
    font-weight: 800;
    line-height: 1.14;
    margin: 0 0 14px;
    color: #fff;
}
.est-pitch > p {
    color: #bdbdbd;
    font-size: 0.95rem;
    line-height: 1.75;
    margin: 0 0 28px;
    max-width: 46ch;
}
.est-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}
.est-steps li {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 9px 0;
    font-size: 0.92rem;
    color: #e2e2e2;
}
.est-steps li span {
    flex: 0 0 26px;
    height: 26px;
    border-radius: 50%;
    background: rgb(253, 85, 33);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 0.8rem;
    font-weight: 800;
}
.est-stats {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 18px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.est-stats b {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: rgb(253, 85, 33);
    line-height: 1.1;
}
.est-stats span {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9a9a9a;
}
.est-call {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 2px solid rgb(253, 85, 33);
    text-decoration: none;
    display: block;
}
.est-call span {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9a9a9a;
}
.est-call strong {
    display: block;
    margin-top: 4px;
    font-size: 1.45rem;
    color: #fff;
}
.est-call:hover strong { color: rgb(253, 85, 33); }

.est-form {
    background: #fff;
    padding: 64px 8% 64px 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.est-form h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 4px;
}
.est-form-sub {
    color: #6a6a6a;
    font-size: 0.93rem;
    margin: 0 0 26px;
}
.est-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.est-form .form-half { width: auto; }

@media (max-width: 560px) {
    .est-split { grid-template-columns: 1fr; }
    .est-pitch { padding: 40px 24px; }
    .est-form { padding: 36px 24px 44px; }
    .est-stats { grid-template-columns: 1fr 1fr; }
    .est-form .form-row { grid-template-columns: 1fr; }
}

/* ==========================================
   Shingle grid: 7 per row on wide screens — 2026-08-02
   Container widened and the filter sidebar narrowed so seven cards
   still get a usable width; gap tightened to buy back space.
   ========================================== */
@media (min-width: 1150px) {
    .selector-container {
        max-width: 1880px;
        grid-template-columns: 300px 1fr;
    }
    .products-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 1rem;
    }
    .product-image {
        height: 150px;
    }
}

/* est-phone-tighten: single column, even rhythm, no stray gaps */
@media (max-width: 640px) {
    .est-split { grid-template-columns: 1fr !important; }
    .est-pitch { padding: 30px 20px 26px !important; }
    .est-form  { padding: 26px 20px 34px !important; }
    .est-pitch h2 { font-size: 1.65rem; line-height: 1.22; }
    .est-steps { margin-top: 18px; }
    .est-stats { grid-template-columns: 1fr 1fr; gap: 14px 10px; margin-top: 22px; }
    .est-form .form-row { grid-template-columns: 1fr !important; gap: 0; }
    .est-form .form-group { margin-bottom: 14px; }
    .est-form input, .est-form select, .est-form textarea { font-size: 16px; }
}

/* est-compact: side-by-side stays, spacing tightened and content aligned */
.est-split { align-items: center; }
.est-pitch { padding: 44px 34px; }
.est-form  { padding: 40px 34px; }
.est-pitch h2 { font-size: 1.95rem; line-height: 1.2; margin-bottom: 12px; }
.est-pitch > p { font-size: .95rem; line-height: 1.55; margin-bottom: 20px; }
.est-steps { margin: 0; gap: 10px; }
.est-steps li { font-size: .9rem; }
.est-stats { margin-top: 26px; gap: 14px 12px; }
.est-form-sub { margin-bottom: 18px; }
.est-form .form-group { margin-bottom: 13px; }
.est-form .form-row { gap: 12px; }
.est-form label { font-size: .82rem; margin-bottom: 4px; }
.est-form input, .est-form select { padding: 10px 12px; }
.est-form textarea { min-height: 104px; }
.est-form form { max-width: 620px; }
@media (max-width: 900px) {
    .est-pitch { padding: 30px 22px; }
    .est-form  { padding: 28px 22px 34px; }
    .est-pitch h2 { font-size: 1.5rem; }
    .est-pitch > p, .est-steps li { font-size: .86rem; }
    .est-form .form-row { grid-template-columns: 1fr 1fr; gap: 10px; }
    .est-form textarea { min-height: 88px; }
}
