/* Bootstrap Custom Styles for Deck Doc */
/* This file contains custom styling that works with Bootstrap */

:root {
    --primary-color: #C77B30;   /* brand orange: decorative accents, icons, borders */
    --primary-dark: #9E5A1C;
    --cta: #9E5A1C;             /* text and button colour: 5.3:1 on white, 4.5:1 needed (WCAG AA) */
    --cta-dark: #7A4515;
    --cta-on-dark: #F0B27A;     /* links on the navy footer and dark panels: 8:1 on #2c3e50 */
    --secondary-color: #6B4423;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
}

/* Typography */
body {
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/* Heading levels follow the document outline (no skipped levels); these keep
   the original visual size where a heading was moved up a level. */
.hl-2 { font-size: 2rem; }
.hl-3 { font-size: 1.75rem; }
.hl-4 { font-size: 1.5rem; }
.hl-5 { font-size: 1.25rem; }
.hl-6 { font-size: 1rem; }

/* Skip link: first focusable element on every page, visible only on focus. */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 2000;
    padding: 0.75rem 1.25rem;
    background: var(--cta-dark);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
}
.skip-link:focus {
    top: 0;
    outline: 3px solid #F0B27A;
    outline-offset: 2px;
}
main:focus { outline: none; }

p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

/* Navbar Customization */
.navbar-brand img {
    max-height: 60px;
    width: auto;
}

.navbar {
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    align-items: center;
}

.navbar-collapse {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.navbar-nav {
    flex: 1;
    justify-content: center;
}

.navbar-nav .nav-link {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--cta);
}

.navbar-nav .nav-link.active {
    color: var(--cta);
    font-weight: 600;
}

.navbar-phone {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--cta);
    text-decoration: none;
}

.navbar-phone:hover {
    color: var(--cta-dark);
    text-decoration: none;
}

/* Header phone: lives outside the collapsed menu so it is tappable on
   mobile without opening the menu; on desktop it sits after the nav. */
.navbar-phone-wrap {
    order: 3;
}

@media (max-width: 991.98px) {
    .navbar-nav {
        justify-content: flex-start;
    }
    
    .navbar-collapse {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .navbar-nav {
        width: 100%;
        margin-bottom: 1rem;
    }

    .navbar-phone-wrap {
        order: 0;
        margin-left: auto;
        margin-right: 0.75rem;
    }

    .navbar-phone {
        font-size: 1rem;
        white-space: nowrap;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand img {
        max-height: 40px;
    }

    .navbar-phone {
        font-size: 0.9rem;
    }
}

@media (max-width: 399.98px) {
    .navbar-phone {
        font-size: 0.85rem;
    }

    .navbar-phone-wrap {
        margin-right: 0.5rem;
    }
}

@media (max-width: 359.98px) {
    /* Very narrow screens: icon only, the number is still in the link's label */
    .navbar-phone .navbar-phone-num {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
    .navbar-phone .fa-phone {
        margin-right: 0 !important;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
    padding-bottom: 80px;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.hero-video-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.45rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
}

.hero-video-toggle[hidden] {
    display: none;
}

.hero-video-toggle:hover,
.hero-video-toggle:focus-visible {
    background: rgba(0, 0, 0, 0.65);
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Map iframes load when scrolled into view (js/office-maps.js); neutral box until then */
iframe[data-src]:not([src]) {
    background: #e9edf1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 10;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 1rem 0;
}

.hero-badge {
    display: inline-block;
    background: #2F7A26; /* white on this green: 5.3:1 (was #6BBF59, 2.3:1) */
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.25rem;
    font-family: 'Poppins', sans-serif;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.hero-feature-item i {
    color: #6BBF59;
    font-size: 1.3rem;
}

/* Floating labels (Bootstrap form-floating): the custom .form-control padding
   below would push the text under the label, so restore Bootstrap's values. */
.form-floating > .form-control,
.form-floating > .form-control-plaintext {
    padding: 1rem 0.75rem;
}

.form-floating > .form-control:focus,
.form-floating > .form-control:not(:placeholder-shown) {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
}

.form-floating > label {
    color: #5f574c;
}

/* Hero Form */
.hero-form-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 2rem;
    max-width: 420px;
    position: relative;
    z-index: 20;
    pointer-events: auto;
}

.hero-form-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.hero-form-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.hero-form .form-control {
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.hero-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-light);
}

.consent-checkbox input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: var(--primary-color);
}

.btn-primary-custom {
    background-color: var(--cta);
    border-color: var(--cta);
    color: white;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.btn-primary-custom:hover {
    background-color: var(--cta-dark);
    border-color: var(--cta-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(199, 123, 48, 0.4);
}

.btn-primary-custom.btn-sm {
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
}

.btn-outline-custom {
    background-color: transparent;
    border: 2px solid var(--cta);
    color: var(--cta);
    padding: 0.9rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.btn-outline-custom:hover {
    background-color: var(--cta);
    border-color: var(--cta);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(199, 123, 48, 0.4);
}

.btn-outline-custom.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.95rem;
    border-width: 2px;
}

/* Hero call button: solid white fill instead of transparent */
a.btn-outline-custom[href^="tel:"] {
    background-color: #fff;
    border-color: #fff;
    color: var(--primary-dark);
}

a.btn-outline-custom[href^="tel:"]:hover {
    background-color: #fff;
    border-color: #fff;
    color: var(--cta);
}

.cta-card a:not(.btn) {
    color: white;
    text-decoration: underline;
}

.cta-card a:not(.btn):hover {
    color: #f0f0f0;
}

.cta-card .btn-outline-custom {
    border-color: white;
    color: white;
}

.cta-card .btn-outline-custom:hover {
    background-color: white;
    border-color: white;
    color: var(--primary-dark);
}

.btn-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--cta);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    font-family: 'Poppins', sans-serif;
}

.btn-phone:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
    color: white;
    text-decoration: none;
}

/* Gallery Slider Section */
.gallery-slider-section {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.gallery-slider-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.gallery-slider-subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

#galleryCarousel {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    background-color: #000;
}

.gallery-slide-image {
    height: 500px;
    object-fit: cover;
    width: 100%;
    display: block;
    /* Enable hardware acceleration for smoother rendering */
    transform: translateZ(0);
    will-change: transform;
    /* Ensure images are rendered at full quality */
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background-color: var(--primary-color);
}

.carousel-indicators {
    margin-bottom: 2rem;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    border: 2px solid rgba(255,255,255,0.8);
    opacity: 1;
}

.carousel-indicators .active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Content Section */
.content-section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.content-pattern-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(245, 158, 11, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.content-section .container {
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.content-subtitle {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.content-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.content-image-wrapper:hover {
    transform: translateY(-5px);
}

.content-feature-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.content-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    pointer-events: none;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.2);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card-text {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

a.feature-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

a.feature-card-link:hover {
    color: inherit;
}

.feature-card-more {
    display: inline-block;
    margin-top: 1.1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: #2F7A26; /* 5.3:1 on white (was #3F8F33, 4.0:1) */
    transition: gap 0.25s ease, transform 0.25s ease;
}

a.feature-card-link:hover .feature-card-more {
    color: #256320;
}

a.feature-card-link:hover .feature-card-more i {
    transform: translateX(4px);
}

.feature-card-more i {
    transition: transform 0.25s ease;
}

.cta-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 16px;
    padding: 3rem 2.5rem;
    color: white;
    box-shadow: 0 10px 40px rgba(245, 158, 11, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-icon {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(255,255,255,0.4);
}

.cta-icon i {
    font-size: 1.75rem;
    color: #2c3e50;
}

body.cdt-theme .cta-icon i {
    color: #6BBF59;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.cta-text {
    color: rgba(255,255,255,0.95);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.cta-card .btn-primary-custom {
    background-color: #2c3e50;
    border-color: #2c3e50;
    color: white;
}

.cta-card .btn-primary-custom:hover {
    background-color: #1a252f;
    border-color: #1a252f;
    color: white;
}

/* Location page hero with background image */
.location-hero {
    background-image: url('../images/chicago-skyline-1024x683.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}
.location-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.65) 100%);
    z-index: 0;
}
.location-hero .content-pattern-bg { display: none; }
.location-hero .container { position: relative; z-index: 1; }
.location-hero .section-title,
.location-hero .lead,
.location-hero p {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Why Choose Section */
.why-choose-section {
    padding: 4rem 0;
    background-color: #F5EEE3;
}

/* Location trust badges: more compact cards + mobile swipe carousel */
.why-choose-section .row.text-center .cta-card {
    padding: 1.75rem 1.25rem;
    border-radius: 14px;
}
.why-choose-section .row.text-center .cta-card .fa-2x {
    font-size: 1.6em;
    margin-bottom: 0.6rem !important;
    color: #6BBF59 !important;
}
.tb-dots {
    display: none;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
}
.tb-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #d0d0d0;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease, width 0.2s ease;
}
.tb-dot.is-active {
    background: var(--primary-color);
    width: 22px;
    border-radius: 5px;
}
@media (max-width: 767.98px) {
    .why-choose-section .row.text-center {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0.5rem;
    }
    .why-choose-section .row.text-center::-webkit-scrollbar { display: none; }
    .why-choose-section .row.text-center > [class*="col-"] {
        flex: 0 0 64%;
        width: 64%;
        max-width: 64%;
        scroll-snap-align: center;
    }
    .tb-dots { display: flex; }
}

.why-choose-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-transform: uppercase;
    color: var(--text-dark);
}

.why-choose-list {
    list-style: none;
    padding: 0;
}

.why-choose-list li {
    padding: 0.75rem 0;
    font-size: 1.1rem;
    position: relative;
    padding-left: 2rem;
}

.why-choose-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #6BBF59;
    font-weight: bold;
    font-size: 1.25rem;
}

.contact-form-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 2rem;
}

/* Reviews Section */
.reviews-section {
    padding: 5rem 0;
    background-color: #FBF7F0;
    position: relative;
}

.reviews-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.reviews-section-subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.reviews-container {
    position: relative;
    min-height: 300px;
}

.reviews-container .ti-widget {
    margin: 0 auto;
}

/* Service Area Section */
.service-area-section {
    padding: 5rem 0;
    background-color: var(--bg-light);
    position: relative;
}

.service-area-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-area-subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.service-area-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    margin-bottom: 2rem;
}

.service-area-card {
    background: white;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-area-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-area-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.2);
    border-color: var(--primary-color);
}

.service-area-card:hover::before {
    transform: scaleX(1);
}

.service-area-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.service-area-card:hover .service-area-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-area-icon i {
    font-size: 1.5rem;
    color: white;
}

.service-area-region {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    text-align: center;
}

.service-area-card > p {
    flex: 1 1 auto;
    margin-bottom: 1.5rem;
}

.service-area-card > .btn {
    margin-top: auto;
    align-self: flex-start;
}

.service-area-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-area-list li {
    padding: 0.5rem 0;
    font-size: 1rem;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
    transition: color 0.3s ease, transform 0.2s ease;
}

.service-area-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #6BBF59;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.service-area-card:hover .service-area-list li {
    color: var(--text-dark);
}

.service-area-card:hover .service-area-list li::before {
    transform: scale(1.2);
}

.service-area-note {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.service-area-link {
    color: var(--cta);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.service-area-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
    background-color: #F5EEE3;
    position: relative;
    overflow: hidden;
}

.faq-pattern-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(199, 123, 48, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(199, 123, 48, 0.08) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.faq-section .container {
    position: relative;
    z-index: 1;
}

.faq-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.faq-section-subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.faq-item:hover {
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.2);
    transform: translateY(-2px);
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    cursor: pointer;
    background: white;
    border: none;
    width: 100%;
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
}

button.faq-question {
    font: inherit;
    color: inherit;
    line-height: inherit;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
}
button.faq-question:focus-visible {
    outline: 3px solid var(--cta);
    outline-offset: -3px;
}
.faq-heading {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.faq-question:not(.collapsed) {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.faq-question:not(.collapsed) .faq-icon {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.4);
}

.faq-question:not(.collapsed) .faq-icon i {
    color: white;
}

.faq-question:not(.collapsed) .faq-question-text {
    color: white;
}

.faq-question:not(.collapsed) .faq-chevron {
    color: white;
    transform: rotate(180deg);
}

.faq-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.faq-icon i {
    font-size: 1.25rem;
    color: white;
    transition: all 0.3s ease;
}

.faq-question-text {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.faq-chevron {
    color: var(--primary-color);
    font-size: 0.875rem;
    transition: all 0.3s ease;
    min-width: 20px;
}

.faq-answer {
    padding: 1.5rem 1.5rem 1.5rem 1.5rem;
    padding-left: calc(1.5rem + 50px + 1.25rem);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
    background: white;
}

/* Feedback Section */
.feedback-section {
    padding: 4rem 0;
}

.feedback-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feedback-card .btn {
    align-self: flex-start;
    margin-top: auto !important;
}

.feedback-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feedback-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.feedback-bottom-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin: 0;
    padding: 1.5rem 2rem;
    background: rgba(245, 158, 11, 0.05);
    border-radius: 12px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 4rem 0 1.5rem;
}

.footer-logo img {
    max-height: 100px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-column-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    font-family: 'Poppins', sans-serif;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--cta-on-dark);
    padding-left: 5px;
}

.footer-contacts {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-contacts a {
    color: var(--cta-on-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contacts a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.footer-contacts .btn,
.footer-contacts .btn-primary-custom {
    color: white !important;
    text-decoration: none;
}

.footer-contacts .btn:hover,
.footer-contacts .btn-primary-custom:hover {
    color: white !important;
    text-decoration: none;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: rgba(255,255,255,0.15);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    border: 2px solid transparent;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    border-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
}

.footer-copyright {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin: 0;
}

.footer-link {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--cta-on-dark);
    text-decoration: underline;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    .hl-2 { font-size: 1.75rem; }
    .hl-3 { font-size: 1.5rem; }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    /* Hero form is hidden on mobile - see @media (max-width: 991.98px) */
    
    .section-title {
        font-size: 2rem;
    }
    
    .content-subtitle {
        font-size: 1.75rem;
    }
    
    .content-section {
        padding: 3rem 0;
    }
    
    .content-feature-image {
        height: 300px;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .cta-card {
        padding: 2.5rem 2rem;
    }
    
    .why-choose-title {
        font-size: 2rem;
    }
    
    .reviews-section {
        padding: 3rem 0;
    }
    
    .reviews-section-title {
        font-size: 2rem;
    }
    
    .reviews-section-subtitle {
        font-size: 1rem;
    }
    
    .gallery-slider-section {
        padding: 3rem 0;
    }
    
    .gallery-slider-title {
        font-size: 2rem;
    }
    
    .gallery-slide-image {
        height: 400px;
    }
    
    .faq-section {
        padding: 3rem 0;
    }
    
    .faq-section-title {
        font-size: 2rem;
    }
    
    .faq-section-subtitle {
        font-size: 1rem;
    }
    
    .service-area-section {
        padding: 3rem 0;
    }
    
    .service-area-title {
        font-size: 2rem;
    }
    
    .service-area-subtitle {
        font-size: 1rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-control-next {
        right: 10px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .content-section {
        padding: 2.5rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .content-subtitle {
        font-size: 1.5rem;
    }
    
    .content-feature-image {
        height: 250px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon i {
        font-size: 1.5rem;
    }
    
    .cta-card {
        padding: 2rem 1.5rem;
    }
    
    .cta-title {
        font-size: 1.75rem;
    }
    
    .reviews-section {
        padding: 2.5rem 0;
    }
    
    .reviews-section-title {
        font-size: 1.75rem;
    }
    
    .reviews-section-subtitle {
        font-size: 0.95rem;
    }
    
    .gallery-slider-section {
        padding: 2.5rem 0;
    }
    
    .gallery-slider-title {
        font-size: 1.75rem;
    }
    
    .gallery-slider-subtitle {
        font-size: 1rem;
    }
    
    .gallery-slide-image {
        height: 300px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 35px;
        height: 35px;
    }
    
    .carousel-indicators {
        margin-bottom: 1rem;
    }
    
    .service-area-section {
        padding: 2.5rem 0;
    }
    
    .service-area-title {
        font-size: 1.75rem;
    }
    
    .service-area-subtitle {
        font-size: 0.95rem;
    }
    
    .service-area-badge {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    .service-area-card {
        padding: 1.5rem 1.25rem;
        margin-bottom: 1rem;
    }
    
    .service-area-region {
        font-size: 1.25rem;
    }
    
    .service-area-list li {
        font-size: 0.9rem;
        padding: 0.4rem 0;
    }
    
    .service-area-note {
        font-size: 0.9rem;
        padding: 1rem;
    }
    
    .faq-section {
        padding: 2.5rem 0;
    }
    
    .faq-section-title {
        font-size: 1.75rem;
    }
    
    .faq-section-subtitle {
        font-size: 0.95rem;
    }
    
    .faq-item {
        margin-bottom: 1rem;
    }
    
    .faq-question {
        padding: 1.25rem;
        gap: 1rem;
    }
    
    .faq-icon {
        width: 45px;
        height: 45px;
        min-width: 45px;
    }
    
    .faq-icon i {
        font-size: 1.1rem;
    }
    
    .faq-question-text {
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 1.25rem 1.25rem 1.25rem 1.25rem;
        padding-left: calc(1.25rem + 45px + 1rem);
        font-size: 0.95rem;
    }
    
    .footer {
        padding: 2.5rem 0 1.5rem;
    }
    
    .footer-column-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer-links li {
        margin-bottom: 0.5rem;
    }
    
    .footer-links a {
        font-size: 0.875rem;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }
    
    .footer-contacts {
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        margin-top: 1.5rem;
        padding-top: 1.25rem;
    }
    
    .footer-copyright {
        font-size: 0.85rem;
    }
    
    .footer-link {
        font-size: 0.85rem;
    }
}

/* ============================================================================
   MOBILE SPACING AND PADDING FIXES
   ============================================================================ */

@media (max-width: 768px) {
    /* Container padding - ensure 16px minimum from screen edges */
    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    /* Hide Service Area and Feedback sections on mobile for index page */
    .service-area-section.hide-on-mobile,
    .feedback-section.hide-on-mobile {
        display: none !important;
    }
    
    /* Section spacing - minimum 32px padding top/bottom */
    section,
    .content-section,
    .why-choose-section,
    .reviews-section,
    .gallery-slider-section,
    .faq-section,
    .service-area-section,
    .feedback-section {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    
    /* Hero section has its own specific spacing rules below */
    
    /* Section titles and headings - ensure proper spacing */
    h1, h2, h3, .section-title, .hero-title {
        margin-bottom: 1rem;
        padding-left: 0;
        padding-right: 0;
    }
    
    .lead, p {
        margin-bottom: 1rem;
    }
    
    /* Card and component spacing */
    .card,
    .service-item,
    .feature-card,
    .cta-card,
    .contact-form-card,
    .feedback-card,
    .service-area-card,
    .faq-item {
        margin-bottom: 24px;
        padding: 1.5rem 16px !important;
    }
    
    /* Button spacing - minimum 48px touch target */
    .btn,
    .btn-primary-custom {
        min-height: 48px;
        padding: 12px 24px;
        margin: 8px 0;
        font-size: 1rem;
    }
    
    .btn-primary-custom.btn-lg {
        min-height: 52px;
        padding: 14px 28px;
    }
    
    /* Form field spacing */
    .form-control,
    .form-group,
    .mb-3,
    .mb-4 {
        margin-bottom: 16px !important;
    }
    
    .form-control {
        padding: 12px 16px;
        font-size: 1rem;
    }
    
    /* Form layout improvements */
    .form,
    .hero-form,
    #contact_form {
        padding: 0;
    }
    
    .form-label {
        margin-bottom: 8px;
        font-size: 0.95rem;
    }
    
    /* Row and column spacing */
    .row {
        margin-left: -8px;
        margin-right: -8px;
    }
    
    .row > * {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    .g-3 > *,
    .g-4 > * {
        margin-bottom: 16px;
    }
    
    /* Hero section fixes */
    .hero-section {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
        min-height: auto;
    }
    
    .hero-section .container {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    .hero-content {
        padding: 1rem 0;
        margin-bottom: 1.5rem;
    }
    
    /* Hero form is hidden on mobile - see @media (max-width: 991.98px) */
    
    /* Navbar mobile adjustments */
    .navbar {
        padding: 0.75rem 16px;
    }
    
    .navbar-brand {
        margin-right: 8px;
    }
    
    /* Footer spacing */
    .footer {
        padding: 2rem 16px 1.5rem !important;
    }
    
    .footer-links {
        margin-bottom: 1.5rem;
    }
    
    /* Image and media handling */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Spacing between sections */
    section + section {
        margin-top: 32px;
    }
    
    /* Text content padding */
    .cta-text,
    .feedback-text {
        padding: 0;
        margin-bottom: 1rem;
    }
    
    /* Map and iframe containers */
    .ratio,
    iframe {
        margin: 16px 0;
    }
    
    /* File upload buttons spacing */
    .file-control {
        margin-bottom: 16px;
    }
    
    /* Contact form card specific */
    .contact-form-card {
        padding: 1.5rem 16px !important;
    }
    
    .contact-form-card h3 {
        margin-bottom: 1.5rem;
        padding: 0;
    }
}

@media (max-width: 576px) {
    /* Extra small devices - tighter but still minimum 16px */
    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    section,
    .content-section {
        padding-top: 32px !important;
        padding-bottom: 32px !important;
    }
    
    /* Cards need more padding on small screens */
    .card,
    .cta-card,
    .contact-form-card,
    .feedback-card {
        padding: 1.25rem 16px !important;
    }
    
    /* Buttons full width on small screens */
    .btn {
        width: 100%;
        margin: 8px 0;
    }
    
    /* Form elements full width */
    .form-control {
        width: 100%;
    }
    
    /* Reduce spacing for stacked columns */
    .row.g-3 > *,
    .row.g-4 > * {
        margin-bottom: 12px;
    }
    
    /* Hero adjustments for small screens */
    .hero-section {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    
    .hero-section .container {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    .hero-content {
        padding: 0.75rem 0;
        margin-bottom: 1rem;
    }
    
    .hero-title {
        padding: 0;
        margin-bottom: 1rem;
    }
    
    /* Hero form is hidden on mobile - see @media (max-width: 991.98px) */
    
    /* Footer tighter spacing */
    .footer {
        padding: 1.5rem 16px 1rem !important;
    }
}

/* Mobile Sticky Bottom Buttons */
.mobile-sticky-buttons {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    padding: 12px 16px;
    gap: 12px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.mobile-sticky-buttons .btn-mobile-sticky {
    flex: 1;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    border: none;
    min-height: 48px;
}

.mobile-sticky-buttons .btn-mobile-call {
    background: var(--cta);
    color: white;
}

.mobile-sticky-buttons .btn-mobile-call:hover,
.mobile-sticky-buttons .btn-mobile-call:focus {
    background: var(--cta-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.mobile-sticky-buttons .btn-mobile-quote {
    background: #2c3e50;
    color: white;
}

.mobile-sticky-buttons .btn-mobile-quote:hover,
.mobile-sticky-buttons .btn-mobile-quote:focus {
    background: #1a252f;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.4);
}

.mobile-sticky-buttons .btn-mobile-sticky i {
    font-size: 1.1rem;
}

/* Show on tablets and smaller */
@media (max-width: 991.98px) {
    /* Phones and tablets get a shorter version of the hero form right under the
       hero copy: name, phone, ZIP and consent (the optional email field is hidden). */
    .hero-form-card {
        max-width: none;
        padding: 1.5rem;
    }

    .hero-form-card .hero-optional {
        display: none;
    }
    
    .mobile-sticky-buttons {
        display: flex;
    }
    
    /* Add padding to body to prevent content from being hidden behind buttons */
    body {
        padding-bottom: 80px;
    }
}

/* Adjust for very small screens */
@media (max-width: 576px) {
    .mobile-sticky-buttons {
        padding: 10px 12px;
        gap: 10px;
    }
    
    .mobile-sticky-buttons .btn-mobile-sticky {
        padding: 12px 16px;
        font-size: 0.95rem;
        min-height: 44px;
    }
    
    body {
        padding-bottom: 74px;
    }
}

/* Utility Classes */
.text-primary-custom {
    color: var(--cta) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.shadow-custom {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

/* Modern randomized project gallery */
.rg-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.rg-item {
    position: relative;
    display: block;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #ececec;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);
    opacity: 0;
    transform: translateY(18px);
    animation: rgFadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    text-decoration: none;
}

.rg-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.rg-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17, 24, 39, 0.72) 0%, rgba(17, 24, 39, 0) 55%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.rg-item:hover img { transform: scale(1.08); }
.rg-item:hover::after { opacity: 1; }

.rg-caption {
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1.1rem;
    z-index: 2;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.3;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.rg-item:hover .rg-caption { opacity: 1; transform: translateY(0); }

.rg-zoom {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.4s ease, transform 0.4s ease;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45);
}

.rg-item:hover .rg-zoom { opacity: 1; transform: scale(1); }

@keyframes rgFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991.98px) {
    .rg-gallery { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}

/* Slider position bubbles (only shown on the mobile carousel) */
.rg-dots { display: none; }

/* Mobile: swipeable card carousel to save vertical space */
@media (max-width: 575.98px) {
    .rg-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        margin-top: 1.1rem;
    }

    .rg-dot {
        width: 8px;
        height: 8px;
        padding: 0;
        border: none;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.2);
        cursor: pointer;
        transition: width 0.3s ease, background-color 0.3s ease, border-radius 0.3s ease;
    }

    .rg-dot.is-active {
        width: 24px;
        border-radius: 4px;
        background: var(--primary-color);
    }

    .rg-gallery {
        display: flex;
        grid-template-columns: none;
        gap: 1rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        /* Side padding = (100% - card width) / 2 so the first/last card snaps to center */
        padding: 0.25rem 7.5% 0.75rem;
        scroll-padding-inline: 7.5%;
        scrollbar-width: none;
    }

    .rg-gallery::-webkit-scrollbar { display: none; }

    .rg-item {
        flex: 0 0 85%;
        scroll-snap-align: center;
    }

    /* Touch devices can't hover, so keep the caption visible for context */
    .rg-item::after { opacity: 1; }
    .rg-item .rg-caption { opacity: 1; transform: translateY(0); }
}

/* Homepage masonry mosaic gallery (distinct from service-page grid) */
.hg-mosaic {
    column-count: 3;
    column-gap: 1.25rem;
}

.hg-loading {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
}

.hg-tile {
    position: relative;
    display: block;
    width: 100%;
    margin-bottom: 1.25rem;
    border-radius: 16px;
    overflow: hidden;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
    text-decoration: none;
    opacity: 0;
    transform: translateY(18px);
    animation: rgFadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hg-tile img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.hg-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17, 24, 39, 0.65) 0%, rgba(17, 24, 39, 0) 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hg-tile:hover img { transform: scale(1.06); }
.hg-tile:hover::after { opacity: 1; }

.hg-cap {
    position: absolute;
    left: 1.1rem;
    right: 1.1rem;
    bottom: 0.9rem;
    z-index: 2;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.hg-tile:hover .hg-cap { opacity: 1; transform: translateY(0); }

.hg-zoom {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.4s ease, transform 0.4s ease;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45);
}

.hg-tile:hover .hg-zoom { opacity: 1; transform: scale(1); }

@media (max-width: 991.98px) {
    .hg-mosaic { column-count: 2; column-gap: 1rem; }
    .hg-tile { margin-bottom: 1rem; }
}

@media (max-width: 575.98px) {
    .hg-tile { border-radius: 12px; }
    .hg-cap { font-size: 0.85rem; left: 0.7rem; right: 0.7rem; bottom: 0.7rem; }
    .hg-zoom { width: 34px; height: 34px; top: 0.55rem; right: 0.55rem; }
    /* Touch devices can't hover, so always show the caption */
    .hg-tile::after { opacity: 1; }
    .hg-cap { opacity: 1; transform: translateY(0); }
}

/* Mobile: turn the masonry grid into a swipeable carousel (desktop stays a grid) */
@media (max-width: 767.98px) {
    .hg-mosaic {
        column-count: initial;
        column-gap: initial;
        display: flex;
        flex-wrap: nowrap;
        gap: 0.75rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0.75rem;
    }
    .hg-mosaic::-webkit-scrollbar { display: none; }
    .hg-tile {
        flex: 0 0 82%;
        width: 82%;
        margin-bottom: 0;
        scroll-snap-align: center;
    }
    .hg-tile img {
        height: 260px;
        object-fit: cover;
    }
    .hg-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin-top: 1rem;
    }
    .hg-dot {
        width: 8px;
        height: 8px;
        padding: 0;
        border: none;
        border-radius: 50%;
        background: #cdcdcd;
        cursor: pointer;
        transition: background 0.25s ease, width 0.25s ease;
    }
    .hg-dot.is-active {
        width: 22px;
        border-radius: 4px;
        background: var(--primary-color, #C77B30);
    }
}

/* Dots are mobile-only; hidden on desktop grid */
.hg-dots { display: none; }

@media (prefers-reduced-motion: reduce) {
    .rg-item,
    .hg-tile { opacity: 1; transform: none; animation: none; }
    .rg-item img, .rg-caption, .rg-zoom,
    .hg-tile img, .hg-cap, .hg-zoom { transition: none; }
}

/* Green icons on trust / info cards site-wide */
.cta-card i[style*="primary-color"] {
    color: #6BBF59 !important;
}

/* Section heading caramel underlines */
.content-section .section-title,
.reviews-section .reviews-section-title,
.faq-section .faq-section-title {
    position: relative;
    padding-bottom: 1rem;
}
.content-section .section-title::after,
.reviews-section .reviews-section-title::after,
.faq-section .faq-section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 72px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}
/* Hero headings should not get the underline */
.hero-section .section-title,
.location-hero .section-title,
.locations-hero .section-title,
.content-section[class*="-hero"] .section-title {
    padding-bottom: 0;
}
.hero-section .section-title::after,
.location-hero .section-title::after,
.locations-hero .section-title::after,
.content-section[class*="-hero"] .section-title::after {
    display: none;
}

/* Green hover on primary estimate / quote buttons */
.hub-cta-green:hover,
.hub-cta-green:focus,
.loc-cta-green:hover,
.loc-cta-green:focus {
    background-color: var(--cta-dark);
    border-color: var(--cta-dark);
    color: #fff;
    box-shadow: 0 6px 20px rgba(122, 69, 21, 0.35);
}

/* =====================================================================
   LOCATION PAGE THEME (scoped to <body class="cdt-theme">)
   Location-specific overrides on top of the site-wide caramel palette.
   ===================================================================== */

/* Deepen the hero scrim so brighter images still read premium */
.cdt-theme .location-hero::before {
    background: linear-gradient(135deg, rgba(36, 27, 18, 0.78) 0%, rgba(36, 27, 18, 0.5) 50%, rgba(36, 27, 18, 0.72) 100%);
}

/* Espresso focal band: "Why homeowners choose" + estimate form */
.cdt-theme .cdt-feature-dark {
    background: linear-gradient(135deg, #2A2018 0%, #3D2C1C 100%);
}
.cdt-theme .cdt-feature-dark .why-choose-title {
    color: #F7F0E4;
}
.cdt-theme .cdt-feature-dark .why-choose-title::after {
    content: '';
    display: block;
    width: 64px;
    height: 4px;
    margin-top: 1rem;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}
.cdt-theme .cdt-feature-dark .why-choose-list li {
    color: #E8DCC8;
}
.cdt-theme .cdt-feature-dark .why-choose-list li:before {
    color: var(--primary-color);
}

/* ============ Products We Use — compact teaser (service pages) ============ */
.pwu-section { padding: 4rem 0; background: #fff; }
.pwu-panel {
    background: linear-gradient(150deg, #40332a 0%, #2d1c0f 100%);
    border-radius: 22px;
    padding: 2.75rem;
    color: #f4e7d8;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(45, 28, 15, 0.18);
}
.pwu-eyebrow {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(107, 191, 89, 0.18);
    border: 1px solid rgba(107, 191, 89, 0.5);
    color: #bfe6b2;
    font-size: 0.8rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.06em;
    padding: 0.4rem 0.9rem; border-radius: 50px; margin-bottom: 1rem;
}
.pwu-eyebrow i { color: #6BBF59; }
.pwu-title { font-family: 'Poppins', sans-serif; color: #fff; font-size: 1.7rem; font-weight: 700; margin-bottom: 0.85rem; line-height: 1.25; }
.pwu-text { color: #e6d4c1; font-size: 1rem; margin-bottom: 1.5rem; max-width: 30rem; }
.pwu-cta { background: linear-gradient(135deg, #6BBF59 0%, #3F8F33 100%) !important; border: none !important; color: #fff !important; box-shadow: 0 10px 24px rgba(63, 143, 51, 0.32); }
.pwu-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(63, 143, 51, 0.42); }
.pwu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.pwu-chip {
    display: flex; align-items: center; gap: 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px; padding: 0.9rem 1rem;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.pwu-chip:hover { transform: translateY(-3px); border-color: rgba(107, 191, 89, 0.6); background: rgba(107, 191, 89, 0.1); }
.pwu-chip .ic {
    flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px;
    background: linear-gradient(135deg, #6BBF59 0%, #3F8F33 100%); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 0.95rem;
}
.pwu-chip .txt { min-width: 0; }
.pwu-chip strong { display: block; color: #fff; font-size: 0.92rem; font-weight: 600; line-height: 1.2; }
.pwu-chip small { color: #c9b6a2; font-size: 0.78rem; }
@media (max-width: 767.98px) {
    .pwu-panel { padding: 1.75rem; }
    .pwu-title { font-size: 1.4rem; }
    .pwu-grid { grid-template-columns: 1fr; margin-top: 1.75rem; }
}

/* ------------------------------
   Workstream E additions (2026-09)
   ------------------------------ */

/* Hero buttons that jump to the page's own form: keep the form clear of the sticky navbar */
form[id$="contact_form"] {
    scroll-margin-top: 110px;
}

/* Review line in the hero and above the review widget */
.hero-feature-item a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hero-feature-item .fa-star {
    color: #F5B301;
}

.reviews-summary {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
}

.reviews-summary a {
    color: var(--cta);
    text-decoration: none;
}

.reviews-summary a:hover {
    text-decoration: underline;
}

.reviews-summary .fa-star {
    color: #F5B301;
}

/* Service-area towns link to their pages; on phones the lists become chip rows */
.service-area-list a {
    color: inherit;
    text-decoration: none;
}

.service-area-list a:hover {
    color: var(--cta);
    text-decoration: underline;
}

@media (max-width: 767.98px) {
    .service-area-section {
        padding: 2.5rem 0;
    }

    .service-area-card {
        padding: 1rem 1rem 0.75rem;
        text-align: left;
    }

    .service-area-icon {
        display: none;
    }

    .service-area-region {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .service-area-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
        padding: 0;
        margin: 0;
    }

    .service-area-list li {
        list-style: none;
        background: #fff;
        border: 1px solid #e2e2e2;
        border-radius: 999px;
        padding: 0.25rem 0.7rem;
        font-size: 0.85rem;
        margin: 0;
    }

    .service-area-list li::before {
        content: none;
    }
}

/* Thank-you page */
.ty-next {
    max-width: 560px;
    margin: 0 auto;
    text-align: left;
}

.ty-next-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.ty-steps {
    padding-left: 1.25rem;
    margin-bottom: 1.5rem;
}

.ty-steps li {
    margin-bottom: 0.5rem;
}

.ty-steps a,
#ty-lead a {
    color: var(--cta);
    font-weight: 600;
}

.ty-photos {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
}

/* Review link inside the trust list on service pages: dark brand brown on the beige panel, 6.8:1 */
.why-choose-list a {
    color: var(--cta-dark);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.why-choose-list a:hover,
.why-choose-list a:focus {
    color: var(--cta);
}
