@tailwind base;
@tailwind components;
@tailwind utilities;

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap');


/* 
---------------------------------------------
Table of Contents
---------------------------------------------
1. General Styles & Variables
2. Typography & Links
3. Header & Navigation
4. Hero Section
5. Trust Bar
6. Buttons & CTAs
7. Forms & Input Elements
8. Section Architecture (content-section, cta-section, inner-hero)
9. Unified Card System
10. Service & Location Page Styles
11. Before/After Slider
12. Sidebar & Widgets
13. Photo Gallery & Lightbox
14. Footer
15. Responsive Design (Mobile-First)
16. Utility Classes
---------------------------------------------
*/

/* 1. General Styles & Variables - COMPLETE BRAND COLOR SYSTEM */
:root {
    /* ==================== EDITABLE CLIENT-SPECIFIC COLORS ==================== */
    --brand-color: #000000;        /* Main brand color (headers, primary buttons, accents) - EDITABLE */
    --secondary-dark: #202020;     /* Secondary/dark accent (hover states, footer bg) - EDITABLE */
    --cta-btn: #9D1C32;           /* CTA button color (attention-grabbing elements) - EDITABLE */
    
    /* ==================== UNIVERSAL COLORS (NEVER CHANGE) ==================== */
    --link-blue: #006bff;         /* All link colors - NEVER CHANGE */
    --link-blue-dark: #0052cc;    /* Link hover state - NEVER CHANGE */
    --light-bg: #FFFFFF;          /* Light backgrounds, cards - NEVER CHANGE */
    --section-bg: #efefef;        /* Section backgrounds - NEVER CHANGE */
    --dark-text: #333333;         /* Primary body text - NEVER CHANGE */
    --light-text: #555555;        /* Secondary text, descriptions, captions - NEVER CHANGE */
    --footer-text: #cccccc;       /* Footer body text (non-headers) - NEVER CHANGE */
    --success-green: #16a34a;     /* Success states, confirmations, checkmarks - NEVER CHANGE */
    
    /* ==================== TYPOGRAPHY ==================== */
    --font-primary: 'Open Sans', sans-serif;    /* Body text, paragraphs */
    --font-secondary: 'Open Sans', sans-serif;  /* Headers, special treatments */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--dark-text);
    line-height: 1.6;
    background-color: var(--light-bg);
}

img {
    max-width: 100%;
    height: auto;
}

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

.container-narrow {
    width: 65% !important;
    max-width: 1150px !important;
    margin: 0 auto !important;
}
/* 2. Typography */

/* 2. Typography */
/* Global heading styles - universal spacing for all viewports */
h1, h2, h3, h4 {
    font-family: var(--font-secondary);
    color: var(--brand-color);
    line-height: 1.1;        /* Tight, optimized for headings */
    margin-bottom: 1.5rem;   /* Balanced spacing across all viewports */
}

/* Base heading font sizes - viewport-specific overrides below */
h1 { font-size: 2.4rem; font-weight: normal; }  /* Mobile: 1.75rem | Tablet: 2.8rem | Desktop: 2.4rem */
h2 { font-size: 2rem; font-weight: normal; }    /* Mobile: 1.6rem | Tablet/Desktop: 2rem (inherited) */
h3 { font-size: 1.3rem; }  /* Mobile: 1.2rem | Tablet/Desktop: 1.3rem (inherited) */
p { 
    color: var(--dark-text);
    margin-bottom: 1rem;
}

a {
    color: var(--link-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Content area link underlines - underline appears only on hover */
.content-section a:hover,
.service-content a:hover,
.location-content a:hover,
.accordion-content-inner a:hover,
.content-area a:hover,
article a:hover,
.main-content a:hover,
p a:hover,
.card-content p a:hover,
.card-content .card-description a:hover,
.card-content .card-additional-content a:hover,
.card-content .section-content a:hover,
.sidebar-section-content a:hover,
.reference-content a:hover,
.highlight-content a:hover,
.feature-content a:hover,
.sidebar-widget a:hover,
.toc-link:hover {
    text-decoration: underline;
    color: var(--link-blue);
}

/* Explicitly exclude navigation and interactive elements from underlines */
nav a,
.nav-link,
.main-nav-links a,
.dropdown-menu a,
.breadcrumb-item a,
.footer-grid a,
.btn,
.btn a,
a.btn,
a.btn.btn-primary,
a.btn.btn-secondary,
button a,
.hamburger-menu,
.hamburger-menu a,
.mobile-nav a,
.trust-item,
.trust-item a,
.logo a,
.header-contact a,
.back-to-top-btn,
.slider-btn,
.quick-link,
.learn-more-link,
.learn-more-arrow,
.card-actions a,
.card-actions .btn,
.content-section .unified-strip,
.content-section .unified-strip a,
.service-location-reference .btn,
.location-service-reference .btn,
.service-location-reference .learn-more-link,
.location-service-reference .learn-more-link,
.bottom-cta-actions a {
    text-decoration: none;
}

/* Prevent underlines on excluded elements even on hover */
nav a:hover,
.btn:hover,
.btn a:hover,
a.btn:hover,
button a:hover,
.card-actions a:hover,
.learn-more-link:hover,
.bottom-cta-actions a:hover {
    text-decoration: none;
}



ul {
    list-style-position: inside;
    margin-bottom: 1rem;
}

/* Remove bullets from Why Choose section */
.content-section ul {
    list-style-type: none;
    padding-left: 0;
}

.content-section ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

/* Universal checkmark system */
span.checkmark-icon {
    color: var(--success-green);
    font-weight: bold;
    margin-right: 0.5rem;
}

span.checkmark-text {
    font-size: 15px;
    font-weight: 600;
}

/* Sidebar text utility class */
.text-sidebar {
    font-size: 0.80rem;
    line-height: 1.2rem;
}

/* Fix spacing consistency on all card types to match locations page reference */
.service-features,
.checkmark-list {
    margin-bottom: 0; /* Remove extra margin from lists */
}

/* Features checklist styling */
.checklist-style {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.checklist-style li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    font-size: 15px;
    font-weight: 600;
}

.checklist-style li::before {
    content: "✓";
    color: var(--success-green);
    font-weight: bold;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

/* Process steps numbered list styling */
.process-steps {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    counter-reset: step-counter;
}

.step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    counter-increment: step-counter;
    padding-left: 0;
}

.step-item::before {
    content: counter(step-counter);
    background: var(--brand-color);
    color: white;
    font-weight: bold;
    font-size: 14px;
    width: 29px;
    height: 29px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    margin-top: -3px;
}

.step-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--secondary-dark);
}

.step-item p {
    margin: 0;
    line-height: 1.6;
}

/* Match paragraph spacing in simple cards to structured cards */
.service-location-card .card-content > p,
.location-service-card .card-content > p {
    margin-bottom: 1rem; /* Match spacing of structured location cards */
}

/* Universal heading capitalization */
h1, h2 {
    text-transform: capitalize;
}

/* 3. Header & Navigation */
.main-header {
    position: static; /* Non-sticky on mobile for better UX */
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Default: Hide desktop header on mobile/tablet, show mobile header */
.desktop-header {
    display: none; /* Hidden on mobile/tablet by default */
}

.tablet-header {
    display: none; /* Not using tablet header - use mobile instead */
}

.mobile-header {
    display: block; /* Show mobile header (hamburger) on mobile/tablet */
}

/* Tablet phone styling */
.tablet-header .phone {
    font-weight: bold;
    color: var(--brand-color);
}

/* Header Top Bar (Desktop) */
.header-top {
    background: var(--light-bg);
    padding: 10px 0;
}

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

/* Header Navigation Bar (Desktop) - Hidden on mobile/tablet, shown on desktop */
.header-nav {
    display: none; /* Hidden on mobile/tablet by default */
    background: #000000; /* Slightly darker grey for better contrast */
    padding: 0.75rem 0 0.4375rem 0; /* Reduced bottom padding by 5px */
    border-bottom: 3px solid var(--cta-btn);
}

.header-nav .container {
    display: flex;
    justify-content: flex-start; /* Left-aligned navigation */
    align-items: center;
}

.main-nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    gap: 2.125rem; /* Increased by 2px from 2rem */
    align-items: baseline; /* Align all items to the same baseline */
}

.main-nav-links li {
    position: relative;
    display: flex;
    align-items: center; /* Center items vertically within each li */
}

.main-nav-links li a {
    color: var(--light-bg);
    font-weight: bold;
    text-transform: uppercase; /* All uppercase navigation */
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 5px 5px 0 0;
    display: inline-block; /* Ensure consistent alignment */
}

.main-nav-links li a:hover {
    color: var(--cta-btn);
}

/* Special hover effect for dropdown items */
.nav-dropdown > a:hover,
.nav-dropdown:hover > a {
    background-color: var(--light-bg);
    color: var(--brand-color); /* Keep text blue, not orange, when background is white */
}

/* Dropdown Styling */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

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

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

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--light-bg); /* White background for seamless connection */
    border-radius: 0 0 5px 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-width: 250px; /* Increased width to prevent text wrapping */
    white-space: nowrap; /* Prevent text wrapping */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 0.5rem 1rem; /* Reduced vertical padding */
    color: var(--brand-color);
    font-weight: normal;
    text-transform: none; /* Override uppercase for dropdown items */
    letter-spacing: normal;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin: 0; /* Ensure full width */
    width: 100%; /* Ensure full width */
    box-sizing: border-box; /* Include padding in width calculation */
}

.dropdown-menu li a:hover {
    background-color: #f0f0f0; /* Light grey hover on white dropdown background */
    color: var(--link-blue);
}

/* Tablet Header */
.tablet-header {
    background: #e8e8e8; /* Match nav bar darker grey */
    padding: 0.75rem 0;
    border-bottom: 3px solid var(--cta-btn);
}

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

.tablet-right-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tablet-separator {
    color: #e8e8e8; /* Match darker nav background */
    font-size: 1.2rem;
    font-weight: normal;
}

/* Mobile Header */
.mobile-header {
    background: var(--light-bg);
    padding: 1rem 0;
    border-bottom: 3px solid var(--cta-btn);
}

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

.logo {
    display: inline-block;
    line-height: 0; /* Remove text line height for image */
}

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

.header-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.license-info {
    font-weight: bold;
    color: var(--brand-color);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: #e0f2fe; /* Light blue background */
    border: 2px solid var(--brand-color);
    border-radius: 0px;
    padding: 8px 16px;
    display: inline-block;
}

/* License info uses universal checkmark system */

/* Page Header & Breadcrumbs System */
.breadcrumbs-bar {
    background: var(--secondary-dark);
    padding: 1rem 0;
}

.breadcrumbs {
    color: var(--footer-text);
    font-size: 0.9rem;
}

.breadcrumb-item {
    display: inline;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: var(--footer-text);
    opacity: 0.7;
}

.breadcrumb-item a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--light-bg);
    text-decoration: underline;
}

.breadcrumb-current {
    color: var(--footer-text);
    opacity: 0.8;
}

.page-header {
    background: var(--brand-color);
    color: var(--light-bg);
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    color: var(--light-bg);
    margin-bottom: 1rem;
}

.page-header p {
    color: var(--light-bg);
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

.page-header .container {
    max-width: 85%;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-contact .phone {
    font-weight: bold;
    color: var(--brand-color);
}

.hamburger-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--brand-color);
    font-weight: bold;
    padding: 0.5rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.hamburger-menu:hover {
    background-color: var(--section-bg);
}

.hamburger-icon {
    font-size: 1.5rem;
}

.menu-text {
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Mobile Nav Styles */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--brand-color);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    z-index: 999;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    text-align: left;
    padding-left: 2rem; /* Add left padding for container */
}

.mobile-nav ul li {
    margin: 1.5rem 0;
}

.mobile-nav ul li.mobile-sub-item {
    margin: 0.5rem 0; /* Reduced margin for sub-items */
}

.mobile-nav ul li a {
    color: var(--light-bg);
    font-size: 1.125rem;
    font-weight: bold;
    text-transform: uppercase; /* Uppercase mobile nav */
    letter-spacing: 0.5px;
}

/* Mobile Sub-items (Services & Locations) */
.mobile-sub-item a {
    font-size: 1rem !important;
    font-weight: normal !important;
    text-transform: none !important; /* Override uppercase for sub-items */
    letter-spacing: normal !important;
    color: #cccccc !important;
    padding-left: 0.625rem;
}

.close-menu {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2.5rem;
    color: var(--light-bg);
    cursor: pointer;
}


/* 4. Hero Section */
.hero {
    color: var(--light-bg);
    padding: 6rem 0;
    text-align: center;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
                hsla(0, 0%, 13%, 0.89) 0%,    /* Strong overlay on left for text readability */
                rgba(34, 34, 34, 0.89) 40%,   /* Medium opacity in center */
                rgba(39, 39, 39, 0.35) 100%); /* Light overlay on right to show image */
}

.hero .container {
    position: relative;
    z-index: 10;
}

.hero h1 {
    color: var(--light-bg);
    /* Font-size inherits from global h1 rules for consistency */
    /* Mobile: 1.75rem | Tablet: 2.8rem | Desktop: 2.4rem */
}

.hero p {
    color: var(--light-bg);
    font-size: 1.2rem;
    max-width: 660px;
    margin: 0 auto 2rem auto;
}

/* 5. Trust Bar */
.trust-bar {
    background: var(--brand-color);
    padding: 1.5rem 0;
    border-bottom: 1px solid #ddd;
}

.trust-bar .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.trust-item {
    font-weight: bold;
    color: var(--brand-color);
    background: var(--light-bg); /* Light blue background */
    text-transform: capitalize;
    border-radius: 0px;
    padding: 10px 20px;
    display: inline-block;
    margin: 0.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

/* Trust bar uses universal checkmark spans */

/* Trust items are not clickable - hover effect removed */

/* Trust Bar Badges (Service-Location Pages) */
.trust-bar-section {
    background-color: var(--brand-color);
    padding: 2rem 0;
}

.trust-badges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
}

.badge-icon {
    width: 50px;
    height: 50px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--success-green);
    margin-bottom: 0.75rem;
    font-weight: bold;
}

.badge-text {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
}

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

/* Before/After Slider Instruction Text */
.slider-instruction-text {
    text-align: center;
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 0.75rem;
    font-style: italic;
}

/* 6. Buttons & CTAs - CONSOLIDATED SYSTEM */
/* Base button styles - all buttons inherit these properties */
.btn {
    display: inline-block;
    padding: 12px 24px;
    min-height: 44px; /* Touch-friendly */
    border-radius: 5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    line-height: 1.2;
}

/* Button sizes */
.btn-sm {
    padding: 8px 16px;
    min-height: 36px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    min-width: 200px;
}

.btn-xl {
    padding: 1.25rem 3rem;
    font-size: 1.25rem;
    min-width: 240px;
}

/* Primary button - main CTA buttons (orange) */
.btn-primary,
a.btn-primary {
    background: var(--cta-btn);
    border: 2px solid var(--cta-btn);
    color: var(--light-bg) !important;
}

.btn-primary:hover,
a.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: var(--light-bg) !important;
}

/* Secondary button - alternative actions (blue) */
.btn-secondary,
a.btn-secondary {
    background: var(--brand-color);
    color: var(--light-bg) !important;
}

.btn-secondary:hover,
a.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: var(--light-bg) !important;
}

/* Outline buttons */
.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--cta-btn);
    color: var(--cta-btn) !important;
}

.btn-outline-primary:hover {
    background: var(--cta-btn);
    color: var(--light-bg) !important;
}

.btn-outline-secondary {
    background: transparent;
    border: 2px solid var(--brand-color);
    color: var(--brand-color) !important;
}

.btn-outline-secondary:hover {
    background: var(--brand-color);
    color: var(--light-bg) !important;
}

/* Ghost buttons - minimal style */
.btn-ghost {
    background: transparent;
    color: var(--brand-color) !important;
    text-transform: none;
}

.btn-ghost:hover {
    background: rgba(0, 51, 102, 0.1);
    transform: none;
}

/* Special buttons */
.cta-phone-btn {
    background-color: transparent !important;
    border: 2px solid white !important;
    color: white !important;
    font-weight: bold;
}

/* Button groups */
.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-group .btn {
    margin: 0;
}

/* Full width buttons */
.btn-block {
    display: block;
    width: 100%;
}

/* Disabled buttons */
.btn:disabled,
.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Two-line buttons */
.two-line-btn,
.two-line-link {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    line-height: 1.2;
    min-height: 50px;
    padding: 8px 16px;
}

.two-line-btn .btn-line-1,
.two-line-btn .btn-line-2,
.two-line-link .link-line-1,
.two-line-link .link-line-2 {
    display: block;
    width: 100%;
}

.two-line-btn .btn-line-1,
.two-line-link .link-line-1 {
    font-weight: 600;
    margin-bottom: 2px;
}

.two-line-btn .btn-line-2,
.two-line-link .link-line-2 {
    font-weight: 400;
    font-size: 0.9em;
    opacity: 0.9;
}
.two-line-btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.two-line-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Button utilities */
.btn-uppercase {
    text-transform: uppercase;
}

.btn-lowercase {
    text-transform: lowercase;
}

.btn-capitalize {
    text-transform: capitalize;
}

.btn-rounded {
    border-radius: 50px;
}

.btn-square {
    border-radius: 0;
}

/* Base form group styling for consistent spacing */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin: 2rem 0 0.5rem 0;
    font-weight: 500;
    color: var(--brand-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background-color: white;
    font-family: inherit;
    box-sizing: border-box;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select {
    height: 48px;
}

.form-group textarea {
    resize: vertical;
}

.form-group select {
    cursor: pointer;
    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 0.75rem center;
    padding-right: 2.5rem;
}

/* Form row - 50/50 split */
.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row > div {
    flex: 1 1 50%;
    width: 50%;
    min-width: 0;
}
/* Form-row labels should match form-group label styling */
/* Form-row labels should match form-group label styling but with less top margin since they're first in container */
.form-row label {
    display: block;
    margin: 1rem 0 0.5rem 0;
    font-weight: 500;
    color: var(--brand-color);
}

/* Input styling for form-row fields */
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"] {
    width: 100%;
    height: 48px;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background-color: white;
    box-sizing: border-box;
}

/* Checkbox and time slot group containers */
.checkbox-group,
.time-slots-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.checkbox-label,
.time-slot-label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    font-weight: normal;
    font-size: 0.9rem;
    color: var(--dark-text);
    margin: 0 !important; /* Override form-group label margin */
}

.checkbox-label input[type="checkbox"],
.time-slot-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
    flex-shrink: 0;
}

/* Captcha section */
.captcha-section {
    padding: 1.5rem;
    background-color: #d8dce0;
    border-radius: 5px;
    margin-bottom: 1rem;
    border: 1px solid #c5cad0;
}

.captcha-section > div {
    max-width: 300px;
}

.captcha-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--brand-color);
}

.captcha-section input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background-color: white;
}

.captcha-help-text {
    font-size: 0.875rem;
    color: #3a3a3a;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* Agreement checkbox */
.agreement-checkbox {
    margin-bottom: 2rem;
}

.agreement-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    cursor: pointer;
}

.agreement-label input[type="checkbox"] {
    cursor: pointer;
    flex-shrink: 0;
    width: auto;
}

/* Required field indicator */
.required {
    color: red;
}

/* Form submit button */
.contact-form button[type="submit"] {
    font-size: 1.1rem;
    padding: 1rem 2rem;
    margin-bottom: 1.5rem;
    font-weight: 600 !important; /* Match other buttons */
    font-family: var(--font-primary) !important; /* Ensure consistent font */
}

/* Conditional form sections - hidden by default */
#form-fields-container,
#estimate-fields,
#question-fields,
#other-fields {
    display: none;
}

/* Spacing overrides for specific form groups */
/* Base form-group provides a consistent default spacing */
.form-group {
    margin-bottom: 1rem;
}

.form-group.no-bottom-margin {
    margin-bottom: 0.25rem;
}

.form-group.extra-bottom-margin {
    margin-bottom: 2rem;
}

.form-group.extra-bottom-margin {
    margin-bottom: 2rem;
}

/* 8. Page Sections & Cards */

/* ============================================
   SECTION ARCHITECTURE - Clean Separation
   ============================================ */

/* CONTENT SECTIONS - Main body content blocks */
.content-section {
    padding: 4rem 0;
}

/* Mobile spacing adjustment for content sections */
@media (max-width: 768px) {
    .content-section {
        padding: 3rem 0;
    }
}

/* SMART SPACING - Remove top padding only when two WHITE content sections are adjacent */
.content-section:not([style*="background"]):not([class*="gray"]):not([class*="blue"]):not([class*="dark"]):not([class*="brand"]):not(.testimonials-section) +
.content-section:not([style*="background"]):not([class*="gray"]):not([class*="blue"]):not([class*="dark"]):not([class*="brand"]):not(.testimonials-section) {
    padding-top: 0;
}

/* Explicit white background content sections */
.content-section[style*="background-color: var(--light-bg)"] + .content-section[style*="background-color: var(--light-bg)"],
.content-section[style*="background-color: #ffffff"] + .content-section[style*="background-color: #ffffff"],
.content-section[style*="background-color: #FFFFFF"] + .content-section[style*="background-color: #FFFFFF"],
.content-section[style*="background-color: white"] + .content-section[style*="background-color: white"] {
    padding-top: 0;
}

/* INNER PAGE HERO SECTIONS */
.inner-hero {
    background-color: var(--brand-color);
    color: white;
    padding: 3rem 0;
}

/* Mobile spacing for inner heroes */
@media (max-width: 768px) {
    .inner-hero {
        padding: 2rem 0;
    }
}

/* CTA SECTIONS - Both blue and white CTAs */
.cta-section {
    padding: 5rem 0;
    text-align: center;
}

/* Mobile spacing for CTAs */
@media (max-width: 768px) {
    .cta-section {
        padding: 3rem 0;
    }
}

/* Blue CTA variant */
.cta-section.bg-brand {
    background: linear-gradient(135deg, var(--brand-color), var(--secondary-dark));
    color: var(--light-bg);
}

/* White CTA variant */
.cta-section.bg-white {
    background-color: var(--light-bg);
    color: var(--text-color);
}

/* Modifier classes for specific spacing needs */
.content-section--compact {
    padding: 2rem 0;
}

.content-section--tight {
    padding: 1rem 0;
}

.content-section--no-spacing {
    padding: 0;
}



.grid {
    display: grid;
    gap: 2rem;
}

/* ===== UNIFIED CARD SYSTEM ===== */

.unified-card {
    background: var(--light-bg);
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-radius: 0.3125rem;
    overflow: hidden;
    transition: none;
}

.unified-card .card-image {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 0.3125rem 0.3125rem 0 0;
    overflow: hidden;
}

.unified-card .card-content {
    padding: 1.5rem;
}

.unified-card .card-title {
    margin-bottom: 1rem;
}

.unified-card .card-description {
    margin-bottom: 1rem;
}

.unified-card .card-feature-list {
    margin-bottom: 1rem;
    padding: 0;
    list-style: none;
}

.unified-card .card-feature {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.unified-card .card-additional-content {
    margin-bottom: 1rem;
}

.unified-card .section-heading {
    margin-top: 1.875rem;
}

/* Card Features List */
.unified-card .card-features {
    margin: 1rem 0;
    padding-left: 0;
    list-style: none;
    color: var(--text-color);
}

.unified-card .card-features li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Service Coverage Section */
.unified-card .service-coverage {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.unified-card .service-coverage .section-heading {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.unified-card .service-coverage .primary-hr {
    margin-bottom: 0.75rem;
}

.unified-card .service-coverage .section-content {
    font-size: 0.95rem;
    color: var(--light-text);
    line-height: 1.5;
}

.unified-card .card-actions {
    margin-top: 1.5rem;
}

/* ===== UNIFIED STRIP SYSTEM ===== */

.unified-strip {
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 0;
    background: var(--light-bg);
    border: 1px solid #eee;
    border-radius: 0.3125rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease;
    min-height: 120px;
    margin-bottom: 0.5rem;
}



/* Non-interactive strips (no links) */
.unified-strip.non-interactive {
    cursor: default;
    transition: none;
}

.unified-strip.non-interactive:hover {
    box-shadow: none;
}

/* Interactive strips (with links) - hover effects */
.unified-strip:not(.non-interactive):hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Strip Badge System - Part of Unified Strip Architecture */
.unified-strip .strip-badges {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.unified-strip .county-badge {
    background: var(--brand-color);
    color: var(--light-bg);
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 600;
}

.unified-strip .drive-time-badge {
    background: var(--section-bg);
    color: var(--brand-color);
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 600;
}

.unified-strip .strip-image {
    position: relative;
    width: 6.25rem;
    border-radius: 0.25rem 0 0 0.25rem;
    overflow: hidden;
    flex-shrink: 0;
}

.unified-strip .strip-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.unified-strip .strip-content {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.unified-strip .strip-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: var(--brand-color);
}

.unified-strip .strip-description {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--light-text);
}

.unified-strip .learn-more-link {
    font-size: 0.9rem;
    color: var(--link-blue);
    font-weight: 600;
}

/* Ensure all links within unified strips use link-blue color */
.unified-strip a {
    color: var(--link-blue);
}

/* Ensure all links within location strips use link-blue color */
.location-strip a {
    color: var(--link-blue);
}

/* ===== BACKWARD COMPATIBILITY (Legacy card classes) ===== */

.card {
    background: var(--light-bg);
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-radius: 5px;
    overflow: hidden;
    transition: none;
}



.card-content {
    padding: 1.5rem;
}

.card-content > .btn {
    margin-top: 1.5rem;
}

/* SEMANTIC CONTENT AREA STYLES - Replaces generic card usage */

/* Sidebar sections - for service page sidebars and contact page sidebars */
.service-areas-list {
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
}

.service-areas-list li {
    margin-bottom: 0.25rem;
}

.no-bottom-margin {
    margin-bottom: 0.25rem !important;
}

/* Sidebar sections - for service page sidebars and contact page sidebars */
.sidebar-section {
    background: var(--light-bg);
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-radius: 5px;
    overflow: hidden;
    transition: none;
}

.sidebar-section-content {
    padding: 1.5rem;
}

.sidebar-section-content > .btn {
    margin-top: 1.5rem;
}

/* Service/Location reference cards - for cross-reference components */
.service-location-reference,
.location-service-reference {
    background: var(--light-bg);
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-radius: 5px;
    overflow: hidden;
    transition: none;
}

.reference-content {
    padding: 1.5rem;
}

.reference-content > .btn {
    margin-top: 1.5rem;
}

/* Company highlights - for company highlights section */
.company-highlight {
    background: var(--light-bg);
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-radius: 5px;
    overflow: hidden;
    transition: none;
}

.highlight-content {
    padding: 1.5rem;
}

.highlight-content > .btn {
    margin-top: 1.5rem;
}

/* Feature highlights - for gallery page features */
.feature-highlight {
    background: var(--light-bg);
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-radius: 5px;
    overflow: hidden;
    transition: none;
}

.feature-content {
    padding: 1.5rem;
}

.feature-content > .btn {
    margin-top: 1.5rem;
}



.card-content .section-content + .btn,
.card-content .service-coverage + .btn,
.card-content .location-specialties + .btn {
    margin-top: 1.5rem;
}

/* 9. Footer */
.main-footer {
    background: var(--secondary-dark); /* Dark blue from secondary button hover */
    color: var(--footer-text); /* Default footer text color */
    padding: 4rem 0 2rem 0; /* Top 4rem, bottom 2rem */
}

.footer-grid {
    display: grid;
    gap: 1.5rem; /* Reduced from 2rem */
    text-align: center;
}

.footer-grid h4 {
    color: var(--light-bg); /* Keep headers bright white */
    margin-bottom: 0.75rem; /* Reduced from 1rem */
    border-bottom: 2px solid var(--cta-btn); /* Column underlines are orange (PRIMARY BUTTON color) */
    padding-bottom: 0.5rem;
    display: inline-block;
}

.footer-grid p {
    color: var(--footer-text); /* Footer paragraphs use footer text color */
    line-height: 1.5;
}

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

.footer-grid ul li {
    margin-bottom: 0.4rem; /* Reduced from 0.5rem */
}

.footer-grid ul li a {
    color: #ffffff; /* White for better readability on dark background */
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-grid ul li a:hover {
    color: #ffffff !important; /* Stay white on hover */
    text-decoration: underline;
}

/* Footer contact & location styling */
.footer-label {
    color: var(--footer-text); /* Labels use footer text color */
}

.footer-primary-link {
    color: #ffffff; /* White for better readability on dark background */
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-primary-link:hover {
    color: #ffffff !important; /* Stay white on hover */
    text-decoration: underline;
}

.footer-locations {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
}

.footer-locations li {
    display: inline-block;
    margin-right: 1rem;
    margin-bottom: 0.3rem;
}

.footer-locations li:last-child {
    margin-right: 0;
}

/* Secondary HR - matches main copyright HR styling */
.footer-contact-divider {
    width: 100%;
    height: 1px;
    background: var(--brand-color); /* Secondary HR styling matches main HR */
    margin: 0.75rem 0;
}

.footer-bottom {
    text-align: center;
    margin-top: 1rem; /* Reduced from 1.5rem */
    padding-top: 1rem; /* Reduced from 1.5rem */
    border-top: 2px solid var(--brand-color); /* Primary blue line - increased thickness for visibility */
    font-size: 0.9rem;
}

.footer-bottom p {
    color: var(--footer-text); /* Copyright text uses footer text color */
    margin: 0.25rem 0; /* Reduced spacing between copyright lines */
}

/* Social Media Icons in Footer */
.footer-social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-icon-link {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-icon-link:hover {
    transform: scale(1.1);
}

.social-icon-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--brand-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.social-icon-link:hover .social-icon-circle {
    background-color: var(--cta-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 10. Locations Map Layout */
.locations-map-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.map-container {
    position: relative;
    height: 420px; /* Increased by 20px for better visual balance */
    min-height: 370px;
    background: var(--section-bg);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* Location strips consolidated into unified-strip system */



.strip-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.learn-more-link {
    color: var(--link-blue);
    font-weight: 500;
}

.location-map {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 11. Photo Gallery & Lightbox */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop */
    gap: 1.5rem;
}

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

.gallery-item {
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: filter 0.3s ease;
}

.gallery-item:hover img {
    filter: brightness(0.8);
}



/* Global Modal System - Renders via Portal to bypass all stacking contexts */
.global-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999; /* Highest z-index - rendered at document body level */
    animation: modalFadeIn 0.2s ease;
}

.global-modal-content {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.global-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000001;
    user-select: none;
    transition: color 0.2s ease;
}

.global-modal-close:hover {
    color: var(--cta-btn);
}

.lightbox-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}



/* Mobile Bottom CTA Panel */
.mobile-bottom-panel {
    position: fixed;
    bottom: 0; /* Anchor to bottom */
    left: 0;
    right: 0;
    background: #e8e8e8; /* Match scroll nav background */
    box-shadow: 0 -4px 20px rgba(0, 51, 102, 0.3);
    z-index: 999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-top: 3px solid var(--cta-btn);
    display: none; /* Hidden by default on all devices */
}

.mobile-bottom-panel.visible {
    transform: translateY(0);
}

.bottom-panel-container {
    display: flex;
    padding: 1rem;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.bottom-cta-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.5rem;
    min-height: 60px; /* Thumb-friendly */
    border-radius: 8px;
    color: var(--light-bg);
    font-weight: bold;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.bottom-cta-btn .btn-icon {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.call-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.call-btn:hover, .call-btn:active {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.write-btn {
    background: linear-gradient(135deg, var(--cta-btn) 0%, #ff8c42 100%);
}

.write-btn:hover, .write-btn:active {
    background: linear-gradient(135deg, #e66a00 0%, #d63384 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.4);
}

/* Base grid layout classes */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Mobile Typography & Performance Optimizations */
@media (max-width: 768px) {
    /* Show mobile bottom panel only on mobile */
    .mobile-bottom-panel {
        display: block;
    }

    /* Mobile bottom panel button width override */
    .mobile-bottom-panel .btn,
    .mobile-bottom-panel .btn-lg {
        width: auto !important;
        min-width: 140px !important;
        max-width: 160px !important;
        padding: 12px 18px !important;
        font-size: 0.9rem !important;
        flex: 1 !important;
        margin: 0 !important;
        min-height: auto !important;
        /* Center buttons/containers at the main mobile breakpoint */
        text-align: center !important;
        justify-content: center !important;
        align-items: center !important;
    }

    /* Ensure bottom panel container is centered on mobile */
    .bottom-panel-container {
        justify-content: center !important;
        align-items: center !important;
    }
    /* Improved mobile typography */
    body {
        font-size: 16px; /* Minimum for mobile readability */
        line-height: 1.6;
    }

    /* Mobile h1 - only font-size override needed */
    h1 { 
        font-size: 1.75rem; /* Optimized for mobile viewing area */
        /* line-height and margin-bottom inherit from base (1.1, 0.8rem) */
    }
    
    /* Mobile h2 - only font-size override needed */
    h2 { 
        font-size: 1.6rem; /* Reduced from base 2rem for mobile readability */
        /* line-height and margin-bottom inherit from base (1.1, 0.8rem) */
    }
    
    /* Mobile h3 - only font-size override needed */
    h3 { 
        font-size: 1.2rem; /* Reduced from base 1.3rem for mobile readability */
        /* line-height and margin-bottom inherit from base (1.1, 0.8rem) */
    }

    p { 
        font-size: 1rem; 
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    /* Mobile-optimized spacing */
    .container {
        width: 95%; /* More screen space usage */
        padding: 0 0.5rem;
    }

    .content-section {
        padding: 2.5rem 0; /* Reduced padding for mobile */
    }

    /* Mobile modifier adjustments */
    .content-section--compact {
    }

    .container-narrow {
        width: 90%; /* Slightly wider on mobile for readability */
    }

    .content-section {
        padding: 2.5rem 0; /* Reduced padding for mobile */
    }

    /* Mobile modifier adjustments */
    .content-section--compact {
        padding: 1.5rem 0;
    }

    /* Maintain precise spacing control on mobile */
    .content-section--same-bg-adjacent {
        padding-top: 0;
    }

    .page-header {
        padding: 2rem 0; /* Smaller header padding */
    }

    /* Mobile grid improvements */
    .grid {
        gap: 1.5rem; /* Tighter spacing on mobile */
    }

    .grid-2-col,
    .grid-3-col {
        grid-template-columns: 1fr; /* Single column on mobile */
    }

    /* Reverse column order on mobile for specific layouts - MOBILE FIRST APPROACH */
    .grid-2-col-reverse-mobile {
        display: grid;
        grid-template-columns: 1fr; /* Mobile: single column stack */
        gap: 2rem;
    }

    /* Reverse visual order on mobile/tablet using grid order property */
    .grid-2-col-reverse-mobile > div:first-child {
        order: 2; /* Display second visually */
    }

    .grid-2-col-reverse-mobile > div:last-child {
        order: 1; /* Display first visually */
    }

    /* Card optimizations for mobile */
    .card {
        margin-bottom: 1rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }

    .card-content {
        padding: 1.25rem; /* Slightly less padding */
    }

    .card-content > .btn {
        margin-top: 1.25rem;
    }

    /* Unified card mobile spacing - match generic card system */
    .unified-card {
        margin-bottom: 1rem;
    }

    /* Mobile optimizations for semantic content areas */
    .sidebar-section {
        margin-bottom: 0; /* Removed gap to create seamless flow into gray section */
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }

    .sidebar-section-content {
        padding: 1.25rem;
    }

    .sidebar-section-content > .btn {
        margin-top: 1.25rem;
    }

    .service-location-reference,
    .location-service-reference {
        margin-bottom: 1rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }

    .reference-content {
        padding: 1.25rem;
    }

    .reference-content > .btn {
        margin-top: 1.25rem;
    }

    .company-highlight {
        margin-bottom: 1rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }

    .highlight-content {
        padding: 1.25rem;
    }

    .highlight-content > .btn {
        margin-top: 1.25rem;
    }

    .feature-highlight {
        margin-bottom: 1rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }

    .feature-content {
        padding: 1.25rem;
    }

    .feature-content > .btn {
        margin-top: 1.25rem;
    }



    .card-content .section-content + .btn,
    .card-content .service-coverage + .btn,
    .card-content .location-specialties + .btn {
        margin-top: 1.25rem;
    }

    /* Button improvements */
    .btn {
        width: 100%;
        margin: 0.5rem 0;
        padding: 14px 20px;
        font-size: 1rem;
        min-height: 48px; /* Better touch target */
    }
    
    /* Bottom CTA mobile responsive - phone stacks above button */
    .bottom-cta-actions {
        display: flex;
        flex-direction: column-reverse; /* Phone button on top, contact button below */
        gap: 1rem;
        align-items: center;
        max-width: 400px;
        margin: 0 auto;
    }

    /* Hero section mobile optimization */
    .hero {
        padding: 3rem 0; /* Reduced hero padding */
        text-align: center;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    /* Trust bar mobile optimization */
    .trust-bar {
        padding: 1rem 0;
    }

    .trust-item {
        font-size: 0.9rem;
        padding: 8px 16px;
        margin: 0.3rem;
    }

    /* Footer mobile optimization */
    .main-footer {
        padding: 1.5rem 0; /* Reduced from 2rem */
        text-align: center;
    }

    .footer-grid {
        gap: 1.25rem; /* Reduced from 1.5rem */
        text-align: center;
    }

    .footer-grid h4 {
        font-size: 1.1rem;
        margin-bottom: 0.6rem; /* Reduced from 0.8rem */
    }

    /* Mobile footer locations - stack vertically */
    .footer-locations li {
        display: block;
        margin-right: 0;
        margin-bottom: 0.4rem;
    }

    .footer-bottom {
        margin-top: 0.8rem; /* Reduced for mobile */
        padding-top: 0.8rem;
        margin-bottom: 4rem;
    }

    .footer-bottom p {
        margin: 0.2rem 0; /* Tighter spacing on mobile */
    }

    /* Mobile locations layout */
    .locations-map-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .map-container {
        height: 270px;
        min-height: 220px;
        order: -1; /* Show map first on mobile */
    }

    /* Location strip mobile styling consolidated into unified-strip */
    
    /* Unified strip mobile optimization - image on top */
    .unified-strip {
        flex-direction: column;
        min-height: unset;
        margin-bottom: 1rem; /* Increased from 0.5rem for better mobile spacing */
    }

    .unified-strip .strip-image {
        width: 100%;
        height: 150px;
        border-radius: 0.25rem 0.25rem 0 0;
    }

    .unified-strip .strip-content {
        padding: 1rem;
    }

    /* Mobile font size adjustments for strip content */
    .unified-strip .strip-title {
        font-size: 1rem;
    }

    .unified-strip .strip-description {
        font-size: 0.85rem;
    }

    /* Homepage location strips - match extended service area spacing */
    .location-strips .unified-strip {
        margin-bottom: 2rem; /* Increased for visual parity with grid-based strips */
    }

    /* Navigation improvements */
    .mobile-nav ul li {
        margin: 1rem 0;
    }

    .mobile-nav ul li a {
        font-size: 1.125rem;
    }

    /* Image performance optimization */
    img {
        height: auto;
        max-width: 100%;
        display: block;
        /* Enable hardware acceleration */
        transform: translateZ(0);
        backface-visibility: hidden;
    }

    /* Gallery mobile optimization - 2x2 grid */
    .gallery {
        grid-template-columns: repeat(2, 1fr) !important; /* 2 columns on mobile */
        gap: 1rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* 2 columns on mobile */
        gap: 0.8rem;
    }

    /* Form mobile optimization */
    .contact-form {
        padding: 1.5rem;
        margin: 1rem 0;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px;
    }

    /* Hide less important elements on mobile */
    .trust-bar .container {
        flex-wrap: wrap;
    }

    /* Logo mobile optimization */
    .logo {
        font-size: 1.3rem;
        line-height: 1.2;
    }
}

/* Tablet-specific optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        width: 92%;
    }

    .container-narrow {
        width: 85%; /* Tablet adjustment */
    }

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

    /* Reset grid-2-col-reverse-mobile to 2 columns and normal order */
    .grid-2-col-reverse-mobile {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-2-col-reverse-mobile > div:first-child,
    .grid-2-col-reverse-mobile > div:last-child {
        order: 0; /* Reset to normal document order */
    }

    .grid-3-col {
        grid-template-columns: repeat(2, 1fr); /* 2 cols on tablet for better spacing */
    }

    /* Gallery layout for tablets - 2x2 grid */
    .gallery {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem;
    }

    /* Hide mobile bottom panel on tablets */
    .mobile-bottom-panel {
        display: none !important;
    }

    .content-section {
        padding: 3.5rem 0;
    }
}

/* 11. Responsive Design (Mobile-First) */

/* Tablet Styles */
@media (min-width: 768px) {
    h1 { font-size: 2.8rem; }
    /* h2 and h3 inherit base font-sizes (2rem, 1.3rem) */
    /* h2 and h3 also inherit base spacing (1.1 line-height, 0.8rem margin-bottom) */

    .trust-bar .container {
        flex-direction: row;
        justify-content: space-around;
    }

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

    /* Reset grid-2-col-reverse-mobile to 2 columns and normal order for desktop */
    .grid-2-col-reverse-mobile {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-2-col-reverse-mobile > div:first-child,
    .grid-2-col-reverse-mobile > div:last-child {
        order: 0; /* Reset to normal document order */
    }

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

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        text-align: left;
    }
}

/* Mobile Styles (Under 480px) */
@media (max-width: 480px) {
    .mobile-header {
        display: block;
    }
    
    /* Hide scroll nav on mobile */
    nav.scroll-nav,
    .scroll-nav {
        display: none !important;
    }
    
    /* Hide dropdowns on mobile */
    .dropdown-menu {
        display: none !important;
    }
}

/* Tablet Styles (480px - 949px) - HAMBURGER MENU ONLY */
@media (min-width: 481px) and (max-width: 768px) {
    /* Hide desktop header on tablet */
    .desktop-header {
        display: none !important;
    }

    /* Hide tablet header - use mobile header instead */
    .tablet-header {
        display: none !important;
    }

    /* Show mobile header (hamburger menu) on tablet */
    .mobile-header {
        display: block !important;
    }
    
    /* Hide navigation bar on tablet */
    .header-nav {
        display: none !important;
    }
    
    /* Allow scroll nav on tablet (will show when scrolling via JavaScript) */
    
    /* Hide dropdowns on tablet */
    .dropdown-menu {
        display: none !important;
    }
}

/* Desktop Styles (950px and up) - FULL NAVIGATION BAR */
@media (min-width: 1025px) {
    /* Universal font sizes for desktop */
    h1 { font-size: 2.4rem; }
    /* h2 and h3 inherit base font-sizes (2rem, 1.3rem) */
    /* h2 and h3 also inherit base spacing (1.1 line-height, 0.8rem margin-bottom) */

    /* Show desktop header with full navigation */
    .desktop-header {
        display: block !important;
    }

    /* Show navigation bar on desktop */
    .header-nav {
        display: block !important;
    }

    /* Show dropdown menus on desktop */
    .dropdown-menu {
        display: block !important; /* Allow dropdown visibility on hover */
        opacity: 0; /* Start hidden */
        visibility: hidden;
    }

    /* Hide tablet header on desktop */
    .tablet-header {
        display: none !important;
    }

    /* Hide mobile header (hamburger) on desktop */
    .mobile-header {
        display: none !important;
    }

/* Scroll Nav - Shows on tablet/desktop when scrolling, hidden on phones */
.scroll-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--brand-color); /* Same grey as nav background */
    padding: 0.75rem 0 0.4375rem 0; /* Same padding as header nav */
    border-bottom: 3px solid var(--cta-btn);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-100%);
    transition: all 0.3s ease;
    display: none; /* Hidden by default until .visible class is applied */
}

.scroll-nav.visible {
    display: block; /* Show when visible class is applied */
    opacity: 1;
    transform: translateY(0);
}

.scroll-nav .container {
    display: flex;
    justify-content: space-between; /* Space between nav and phone */
    align-items: center;
}

.scroll-nav-phone {
    color: var(--light-bg);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.scroll-nav-phone:hover {
    color: var(--cta-btn);
}

    /* Hide mobile bottom panel on desktop */
    .mobile-bottom-panel {
        display: none !important;
    }

    .hero {
        text-align: left;
    }

    .hero .container {
        /* Uses global container max-width: 1150px */
    }

    .hero h1 {
        max-width: 85%;
    }

    .hero p {
        margin: 0 0 2rem 0;
    }

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

    /* Desktop footer column spacing adjustments */
    .footer-grid .footer-col:nth-child(2) {
        margin-left: 1.5rem; /* Quick Links - move right from Remodel My Bath */
    }

    .footer-grid .footer-col:nth-child(3) {
        margin-right: 1.5rem; /* Our Services - move left from Contact & Locations */
    }

    /* Desktop grid layouts */
    .grid-3-col {
        grid-template-columns: repeat(3, 1fr);
    }

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

/* ===== REMOVED - CONSOLIDATED INTO SINGLE UNIVERSAL CLASS ===== */

/* ===== UNIVERSAL HR STYLING ===== */
.primary-hr {
  height: 2px;
  background: var(--light-text);
  border: none;
  margin: 1rem 0;
  width: 100%;
}

/* ===== LOCATION-SERVICE TEMPLATE STYLES ===== */

/* Quick Action Bar */
.quick-action-bar {
    background: linear-gradient(135deg, var(--brand-color), var(--secondary-dark));
    padding: 1.5rem 0;
    margin-top: -1px; /* Overlap with page header for seamless connection */
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    align-items: center;
}

.quick-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
}

.quick-action-label {
    color: var(--light-bg);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quick-action-value {
    color: var(--light-bg);
    font-size: 1rem;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hero Image Container */
.hero-image-container {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Service Intro Section */
.service-intro {
    padding-right: 2rem;
}

.lead-section {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.6;
    color: #444;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--section-bg);
    border-radius: 5px;
    border-left: 4px solid var(--cta-btn);
}

.service-content {
    line-height: 1.7;
}

.service-content p {
    margin-bottom: 1rem;
}

.service-specs {
    background: var(--light-bg);
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.spec-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-item strong {
    color: var(--brand-color);
    min-width: 140px;
}

/* Local Expertise Section */
.local-expertise-section {
    background: var(--section-bg);
}

.local-trust-content {
    padding-right: 2rem;
}

.local-credentials {
    margin-top: 2rem;
    background: var(--light-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.credential-item:last-child {
    border-bottom: none;
}

.credential-icon {
    font-size: 1.5rem;
    min-width: 2rem;
    text-align: center;
}

.credential-text {
    font-weight: 500;
    color: var(--dark-text);
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--light-bg);
    border-radius: 6px;
    border-left: 3px solid var(--cta-btn);
}

.benefit-icon {
    color: var(--success-green);
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 2px;
}

.benefit-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--dark-text);
}

/* Process Preview */
.process-summary {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.process-summary-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--section-bg);
    border-radius: 8px;
    border-left: 4px solid var(--brand-color);
}

.step-number {
    background: var(--brand-color);
    color: var(--light-bg);
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.step-content h4 {
    color: var(--brand-color);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.step-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--light-text);
    margin-bottom: 0;
}

/* Process Section */
.process-section {
    background: var(--section-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--brand-color);
}

.process-step {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--cta-btn);
    text-align: center;
}

.step-header {
    margin-bottom: 1.5rem;
}

.step-number-large {
    background: linear-gradient(135deg, var(--brand-color), var(--cta-btn));
    color: var(--light-bg);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.step-header h3 {
    color: var(--brand-color);
    margin-bottom: 0;
}

/* CTA Section - Rules moved to main section architecture above (line 1067-1090) */

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--light-bg);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    min-width: 200px;
    text-align: center;
}

/* ===== SECTION HEADINGS WITH HR ===== */
.section-heading {
  color: var(--brand-color);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.section-heading + .primary-hr {
  margin-bottom: 1rem;
}

.section-content {
  margin-top: 1rem;
  line-height: 1.6;
}

/* ===== SERVICE CARD VARIANTS ===== */
/* Service card variants consolidated into unified system */

/* ===== TABLE OF CONTENTS ===== */
.toc-section {
  background: var(--section-bg);
  padding: 1rem 0;
  border-bottom: 1px solid #ddd;
}

.toc-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* Desktop TOC - Horizontal */
.toc-desktop {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.toc-mobile {
  display: none;
  width: 100%;
  position: relative;
}

.toc-label {
  font-weight: 600;
  color: var(--brand-color);
  margin-right: 0.75rem;
}

.toc-link {
  color: var(--link-blue);
  text-decoration: none;
  font-size: 0.9rem;
}

.toc-link:hover {
  color: var(--link-blue);
  text-decoration: underline;
}

.toc-separator {
  color: var(--light-text);
  margin: 0 0.3rem;
}

/* Mobile TOC - Dropdown */
.toc-dropdown-btn {
  width: 100%;
  background: var(--light-bg);
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--brand-color);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.3s ease;
}

.toc-dropdown-btn:hover {
  border-color: var(--link-blue);
}

.toc-dropdown-arrow {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.toc-dropdown-arrow.open {
  transform: rotate(180deg);
}

.toc-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--light-bg);
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 5px 5px;
  z-index: 100;
  max-height: 300px;
  overflow-y: auto;
}

.toc-dropdown-link {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--link-blue);
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s ease;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.toc-dropdown-link:last-child {
  border-bottom: none;
}

.toc-dropdown-link:hover {
  background-color: #f8f9fa;
  /* Color and underline handled by global rule */
}

/* ===== ACCORDION / FAQ STYLING ===== */
.accordion-root {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 0;
}

.accordion-item {
    border-bottom: 1px solid #e5e7eb;
    background-color: white;
}

.accordion-item:last-child {
    border-bottom: none;
}

/* Remove default header margins from Radix accordion headers */
.accordion-item h3 {
    margin: 0;
    padding: 0;
}

.accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background-color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    font-weight: 600;
    color: var(--brand-color);
    text-align: left;
    line-height: 1.4;
}

.accordion-trigger:hover {
    background-color: #f8fafc;
}

.accordion-trigger:focus {
    outline: none;
}

.accordion-trigger[data-state="open"] {
    background-color: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

.accordion-chevron {
    height: 18px;
    width: 18px;
    color: var(--brand-color);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.accordion-trigger[data-state="open"] .accordion-chevron {
    transform: rotate(180deg);
}

.accordion-content {
    overflow: hidden;
    background-color: white;
    border-top: 1px solid #f1f5f9;
}

.accordion-content[data-state="open"] {
    animation: slideDown 200ms ease-out;
}

.accordion-content[data-state="closed"] {
    animation: slideUp 200ms ease-out;
}

.accordion-content-inner {
    padding: 1.5rem;
    padding-top: 1.25rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--light-text);
}

/* Accordion animations */
@keyframes slideDown {
    from {
        height: 0;
    }
    to {
        height: var(--radix-accordion-content-height);
    }
}

@keyframes slideUp {
    from {
        height: var(--radix-accordion-content-height);
    }
    to {
        height: 0;
    }
}

/* Question text styling - limit to single line */
.accordion-trigger .question-text {
    flex: 1;
    margin-right: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 2rem); /* Account for chevron and margin */
}

/* Mobile and tablet responsive accordion and forms */
@media (max-width: 1024px) {
    .accordion-trigger {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
    
    .accordion-content-inner {
        padding: 1.25rem;
        font-size: 0.95rem;
    }
    
    .accordion-chevron {
        height: 16px;
        width: 16px;
        margin-left: 0.75rem;
    }
    
    /* Contact form - stack fields vertically on mobile and tablet */
    .form-row {
        flex-direction: column !important;
    }

    .form-row > div {
        width: 100% !important;
    }
}

/* Ensure 50/50 layout on desktop screens only */
@media (min-width: 1025px) {
    .form-row {
        display: flex !important;
        flex-direction: row !important;
    }

    .form-row > div {
        flex: 1 1 50% !important;
        width: 50% !important;
    }
}

/* ===== AUTO-TRIGGERING SLIDER SYSTEM ===== */
.services-slider-container,
.locations-slider-container {
  position: relative;
  overflow: hidden;
}

.services-slider {
  display: flex;
  gap: 1rem;
  transition: transform 0.3s ease;
}

.locations-slider {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.3s ease;
  height: 400px; /* Fixed height for vertical slider */
  overflow: hidden;
}

.slider-item {
  flex: 0 0 auto;
  width: calc(33.333% - 0.67rem); /* Show 3 items by default */
}

.locations-slider .slider-item {
  width: 100%;
  height: auto;
}

.slider-btn {
  position: absolute;
  background: var(--cta-btn);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  z-index: 10;
  transition: all 0.2s ease;
  display: none; /* Hidden by default, shown when slider is active */
}

.slider-btn:hover {
  background: var(--brand-color);
  transform: scale(1.1);
}

.slider-btn-prev,
.slider-btn-next {
  top: 50%;
  transform: translateY(-50%);
}

.slider-btn-prev {
  left: 10px;
}

.slider-btn-next {
  right: 10px;
}

.slider-btn-up,
.slider-btn-down {
  left: 50%;
  transform: translateX(-50%);
}

.slider-btn-up {
  top: 10px;
}

.slider-btn-down {
  bottom: 10px;
}

/* Show slider buttons only when slider container has >3 items */
.services-slider-container:hover .slider-btn,
.locations-slider-container:hover .slider-btn {
  display: block;
}

/* ===== CROSS-REFERENCE COMPONENTS ===== */
.service-location-card,
.location-service-card {
  border: 1px solid #e0e0e0;
  transition: box-shadow 0.2s ease;
}

.service-location-card:hover,
.location-service-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.service-location-card h3,
.location-service-card h3 {
  color: var(--brand-color);
  margin-bottom: 0.5rem;
}

.related-service-item,
.related-location-item {
  padding: 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  background: white;
  transition: box-shadow 0.2s ease;
}

.related-service-item:hover,
.related-location-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.related-service-item h4,
.related-location-item h4 {
  color: var(--brand-color);
  margin-bottom: 0.5rem;
}

.quick-links {
  margin: 1rem 0;
}

.quick-links h4 {
  color: var(--brand-color);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

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

.quick-links li {
  margin: 0.25rem 0;
}

.quick-link {
  color: var(--link-blue);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.quick-link:hover {
  color: var(--brand-color);
}

/* ===== SMART GRID RESPONSIVE UPDATES ===== */
.grid-1-col {
  grid-template-columns: 1fr;
}

/* Content-Sidebar Layout (2/3 - 1/3) */
.grid-content-sidebar {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

/* Ensure sidebar width consistency */
.grid-content-sidebar .sidebar {
  min-width: 0; /* Prevent flex shrinking */
}

.grid-content-sidebar .main-content {
  min-width: 0; /* Prevent flex shrinking */
}

/* Bottom CTA desktop layout */
.bottom-cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Responsive behavior for content-sidebar layout */
@media screen and (max-width: 768px) {
  .grid-content-sidebar {
    grid-template-columns: 1fr;
    gap: 2.5rem; /* Increased from 1.5rem for better FAQ to sidebar spacing */
  }
  
  .grid-content-sidebar .sidebar {
    padding-bottom: 2rem; /* Spacing between sidebar and next section */
  }
  
  /* TOC Mobile Responsive */
  .toc-desktop {
    display: none;
  }
  
  .toc-mobile {
    display: block;
  }
  
  /* Mobile spacing optimizations for service pages */
  .content-section:has(.grid-content-sidebar) {
    padding-bottom: 0 !important;
  }
  
  .locations-for-service {
    padding-top: 2rem !important; /* Proper breathing room for H2 inside gray section */
  }
}

/* Mobile slider adjustments */
@media (max-width: 768px) {
  .slider-item {
    width: calc(50% - 0.5rem); /* Show 2 items on mobile */
  }
  
  .services-slider {
    gap: 0.5rem;
  }
  
  .locations-slider {
    height: 300px; /* Shorter on mobile */
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .slider-item {
    width: calc(100% - 0.5rem); /* Show 1 item on very small screens */
  }
}

/* ===== REMOVED - REPLACED WITH UNIVERSAL SPAN CLASSES ===== */

/* Duplicate .section-heading removed - consolidated above */

/* 3. Removed - Consolidated into single .primary-hr definition above */

/* 4. Light weight for secondary text on homepage Why Choose section */
.content-section ul li > div > div:last-child {
    font-weight: 400;
}

/* 5. Stronger list text weight for internal page feature lists */
.location-specialties ul li {
    font-weight: 600;
}


/* Locations for service section */
.locations-for-service {
    background-color: var(--section-bg);
    padding: 2rem 0;
}

/* Back to Top Button - Desktop */
.back-to-top-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: var(--link-blue);
  color: white;
  border: none;
  border-radius: 5px;
  padding: 12px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  display: none;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 1;
}

.back-to-top-btn.visible {
  display: flex;
}

.back-to-top-btn:hover {
  background-color: var(--link-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top-btn:active {
  transform: translateY(0);
}



/* ===== TWO-LINE BUTTONS & LINKS ===== */
.two-line-btn,
.two-line-link {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  line-height: 1.2;
  min-height: 50px;
}

.two-line-btn .btn-line-1,
.two-line-btn .btn-line-2,
.two-line-link .link-line-1,
.two-line-link .link-line-2 {
  display: block;
  width: 100%;
}

.two-line-btn .btn-line-1,
.two-line-link .link-line-1 {
  font-weight: 600;
  margin-bottom: 2px;
}

.two-line-btn .btn-line-2,
.two-line-link .link-line-2 {
  font-weight: 400;
  font-size: 0.9em;
  opacity: 0.9;
}

/* Ensure proper spacing for two-line buttons */
.two-line-btn {
  padding: 8px 16px;
}

.two-line-link {
  padding: 4px 8px;
}

/* Hide desktop back to top on mobile only */
@media (max-width: 768px) {
  .back-to-top-btn {
    display: none !important;
  }
}

/* ===== LOCATION-SERVICE TEMPLATE RESPONSIVE STYLES ===== */

/* Tablet Responsive (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .quick-actions {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .service-intro,
  .local-trust-content {
    padding-right: 1rem;
  }
  
  .cta-content h2 {
    font-size: 2rem;
  }
}

/* Mobile Responsive (max-width: 768px) */
@media (max-width: 768px) {
  /* Quick Action Bar - Stack vertically on mobile */
  .quick-actions {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .quick-action-item {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
  }
  
  .quick-action-label {
    font-size: 0.9rem;
  }
  
  .quick-action-value {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
  
  /* Remove padding on mobile */
  .service-intro,
  .local-trust-content {
    padding-right: 0;
    margin-bottom: 2rem;
  }
  
  /* Lead section adjustments */
  .lead-section {
    font-size: 1rem;
    padding: 0.8rem;
  }
  
  /* Service specs - more compact */
  .service-specs {
    padding: 1rem;
    margin-top: 1.5rem;
  }
  
  .spec-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 0;
  }
  
  .spec-item strong {
    min-width: auto;
    margin-bottom: 0.25rem;
  }
  
  /* Credentials - simpler layout */
  .local-credentials {
    padding: 1rem;
    margin-top: 1.5rem;
  }
  
  .credential-item {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 0.75rem 0;
  }
  
  .credential-icon {
    margin-bottom: 0.5rem;
  }
  
  /* Process summary - more compact */
  .process-summary-item {
    padding: 0.8rem;
    gap: 0.8rem;
  }
  
  .step-content h4 {
    font-size: 0.95rem;
  }
  
  .step-content p {
    font-size: 0.85rem;
  }
  
  /* Process section - single column grid */
  .process-section .grid-3-col {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .process-step {
    padding: 1.5rem;
  }
  
  .step-number-large {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }
  
  /* CTA section adjustments */
  .cta-content h2 {
    font-size: 1.8rem;
    line-height: 1.3;
  }
  
  .cta-content p {
    font-size: 1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .btn-large {
    width: 100%;
    max-width: 300px;
    padding: 0.9rem 2rem;
    font-size: 1rem;
  }
}

/* Small Mobile Responsive (max-width: 480px) */
@media (max-width: 480px) {
  .quick-action-bar {
    padding: 1rem 0;
  }
  
  .quick-action-item {
    padding: 0.8rem;
  }
  
  .hero-image-container {
    aspect-ratio: 4/3; /* Taller aspect ratio on small screens */
  }
  
  .service-specs {
    padding: 0.8rem;
  }
  
  .local-credentials {
    padding: 0.8rem;
  }
  
  .process-summary-item {
    padding: 0.6rem;
  }
  
  .process-step {
    padding: 1rem;
  }
  
  .cta-content h2 {
    font-size: 1.6rem;
  }
  
  .cta-content {
    padding: 0 1rem;
  }
}



/* ========================================
   BEFORE/AFTER SLIDER STYLES
   ======================================== */

.before-after-container {
  width: 100%;
  margin: 0;
}

.before-after-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 750/563;
  overflow: hidden;
  border-radius: 5px;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.before-after-wrapper .after-image-container {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.before-after-wrapper .after-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.before-after-wrapper .before-image-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}

.before-after-wrapper .before-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.before-after-wrapper .slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: var(--cta-btn);
  cursor: grab;
  z-index: 10;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.before-after-wrapper .slider-handle:active {
  cursor: grabbing;
}

.before-after-wrapper .handle-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  background-color: var(--cta-btn);
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: white;
  font-weight: bold;
}

.before-after-wrapper .handle-circle::before,
.before-after-wrapper .handle-circle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid white;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}

.before-after-wrapper .handle-circle::before {
  animation: sonarPulse 2s ease-out infinite;
}

.before-after-wrapper .handle-circle::after {
  animation: sonarPulse 2s ease-out infinite 1s;
}

@keyframes sonarPulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0;
  }
}

.before-after-wrapper .before-label,
.before-after-wrapper .after-label {
  position: absolute;
  top: 20px;
  background-color: rgba(0,0,0,0.7);
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  z-index: 5;
}

.before-after-wrapper .before-label {
  left: 20px;
}

.before-after-wrapper .after-label {
  right: 20px;
}

/* Mobile responsive for before-after slider */
@media (max-width: 768px) {
  .before-after-wrapper {
    aspect-ratio: 4/3;
  }
  
  .before-after-wrapper .before-label,
  .before-after-wrapper .after-label {
    font-size: 12px;
    padding: 6px 12px;
    top: 10px;
  }
  
  .before-after-wrapper .before-label {
    left: 10px;
  }
  
  .before-after-wrapper .after-label {
    right: 10px;
  }
  
  .before-after-wrapper .handle-circle {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
}

/* Duplicate before-after slider system removed - using .before-after-container/.before-after-wrapper system above */

/* ========================================
   SERVICE PAGE SIDEBAR STYLES
   ======================================== */

.sidebar-widget {
  background: white;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sidebar-widget h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: var(--primary-color);
}

.sidebar-widget p {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.sidebar-widget ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.sidebar-widget ul li {
  margin-bottom: 0.5rem;
}

/* Sidebar link styling handled by global rules */

/* Google Maps container styling - standalone element in sidebar */
.google-maps-container iframe {
  width: 100% !important;
  height: 300px !important;
  border: 0;
  border-radius: 5px;
  display: block;
}

/* ========================================
   SERVICE PAGE CONTENT STYLES
   ======================================== */

.lead-section {
  background: #f9f9f9;
  padding: 1.5rem;
  border-left: 4px solid var(--cta-btn);
  margin-bottom: 1.5rem;
  border-radius: 0 5px 5px 0;
}

/* Location grid for service pages */
.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.location-card {
  background: white;
  padding: 1.5rem;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.location-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.location-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  color: var(--primary-color);
}

/* TOC Section - styling handled by global rules */


/* ========================================
   LIGHTBOX GALLERY STYLES
   ======================================== */

.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 800px;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
}

#lightbox-caption {
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 1rem;
  max-width: 600px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
  border-radius: 4px;
  z-index: 10000;
}

.lightbox-close {
  top: 20px;
  right: 20px;
  font-size: 2.5rem;
  line-height: 1;
  padding: 0.25rem 0.75rem;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  padding: 1rem 1.5rem;
  line-height: 1;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-close:hover {
  transform: scale(1.1);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Mobile lightbox adjustments */
@media (max-width: 768px) {
  .lightbox-prev,
  .lightbox-next {
    font-size: 2rem;
    padding: 0.75rem 1rem;
  }
  
  .lightbox-prev {
    left: 10px;
  }
  
  .lightbox-next {
    right: 10px;
  }
  
  .lightbox-close {
    top: 10px;
    right: 10px;
    font-size: 2rem;
  }
  
  #lightbox-caption {
    font-size: 0.9rem;
    padding: 0.75rem;
  }
}

/* ============================================================================
   UTILITY CLASSES - CSS REFACTOR PHASE 1
   Purpose: Eliminate inline styles from JavaScript, consolidate reusable patterns
   ============================================================================ */

/* ---------------------------------------------------------------------------
   1. LAYOUT UTILITIES
   --------------------------------------------------------------------------- */

/* Image Containers with Fixed Aspect Ratios */
.image-container {
  position: relative;
  width: 100%;
  border-radius: 5px;
  overflow: hidden;
}

.image-container-16-9 { aspect-ratio: 16/9; }
.image-container-4-3 { aspect-ratio: 4/3; }
.image-container-5-4 { aspect-ratio: 5/4; }
.image-container-1-1 { aspect-ratio: 1/1; }

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Owner Photo Container - Specific styling for owner images */
.why-choose-photo-container {
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Scroll Anchor Targets (for in-page navigation with fixed header) */
.scroll-anchor {
  padding-top: 80px;
  margin-top: -80px;
}

/* Content Width Containers */
.max-w-content {
  max-width: 800px;
  margin: 0 auto;
}

.max-w-wide {
  max-width: 850px;
  margin: 0 auto;
}

.max-w-narrow {
  max-width: 650px;
  margin: 0 auto;
}

/* ---------------------------------------------------------------------------
   2. TYPOGRAPHY UTILITIES
   --------------------------------------------------------------------------- */

/* Text Alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Text Sizes */
.text-large { font-size: 1.2rem; }
.text-medium { font-size: 1rem; }
.text-small { font-size: 0.9rem; }
.text-tiny { font-size: 0.85rem; }

/* Text Colors */
.text-brand { color: var(--brand-color); }
.text-light { color: var(--light-text); }
.text-muted { color: var(--light-text); }
.text-white { color: white; }
.text-dark { color: var(--dark-text); }

/* Text Weight */
.text-bold { font-weight: bold; }
.text-semibold { font-weight: 600; }
.text-normal { font-weight: normal; }

/* Special Text Styles */
.text-caption {
  font-size: 0.9rem;
  color: var(--light-text);
  font-style: italic;
}

.text-highlight {
  font-size: 15px;
  font-weight: 600;
}

.lead-text {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--light-text);
}

/* Intro Text Styles */
.intro-text {
  max-width: 850px;
  margin: 0 auto 2rem auto;
}

.large-text {
  font-size: 1.2rem;
}

.text-capitalize {
  text-transform: capitalize;
}

/* CTA Section Styles */
.cta-heading {
  color: white;
}

.cta-text {
  color: white;
  font-size: 1.2rem;
  max-width: 650px;
  margin: 0 auto 1.5rem auto;
}

/* ---------------------------------------------------------------------------
   3. SPACING UTILITIES
   --------------------------------------------------------------------------- */

/* Margin Bottom */
.mb-0 { margin-bottom: 0; }
.mb-05 { margin-bottom: 0.5rem; }
.mb-075 { margin-bottom: 0.75rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-15 { margin-bottom: 1.5rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* Margin Top */
.mt-0 { margin-top: 0; }
.mt-05 { margin-top: 0.5rem; }
.mt-1 { margin-top: 1rem; }
.mt-15 { margin-top: 1.5rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* Padding */
.p-0 { padding: 0; }
.p-1 { padding: 1rem; }
.p-15 { padding: 1.5rem; }
.p-2 { padding: 2rem; }

/* Section Spacing */
.section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem auto;
}

.section-intro-wide {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 2rem auto;
}

/* ---------------------------------------------------------------------------
   4. GRID & FLEXBOX UTILITIES
   --------------------------------------------------------------------------- */

/* Flex Alignment */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-center-v {
  display: flex;
  align-items: center;
}

.flex-center-h {
  display: flex;
  justify-content: center;
}

/* Gap Sizes */
.gap-xs { gap: 0.25rem; }
.gap-sm { gap: 0.5rem; }
.gap-md { gap: 1rem; }
.gap-lg { gap: 2rem; }
.gap-xl { gap: 3rem; }

/* Grid Modifiers */
.grid-center {
  align-items: center;
}

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

@media (max-width: 768px) {
  .gallery-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------------------------------------------------------------------------
   5. COMPONENT-SPECIFIC CLASSES
   --------------------------------------------------------------------------- */

/* TOC (Table of Contents) Container */
.toc-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

/* Image Gallery Grid */
.service-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.service-gallery img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  transition: filter 0.3s ease;
}

.service-gallery img:hover {
  filter: brightness(0.8);
}

@media (max-width: 768px) {
  .service-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Owner/Team Photo Container */
.team-photo-container {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 5px;
  overflow: hidden;
  background: var(--section-bg);
}

.team-photo-caption {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--light-text);
}

.before-after-caption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--light-text);
  margin-bottom: 0.75rem;
  font-style: italic;
}

/* Section Dividers - Removed, consolidated into single .primary-hr definition above */

.secondary-hr {
  border: none;
  height: 1px;
  background: #ddd;
  margin: 1.5rem 0;
}

/* ---------------------------------------------------------------------------
   6. BACKGROUND UTILITIES
   --------------------------------------------------------------------------- */

/* Background Colors */
.bg-white { background-color: var(--light-bg); }
.bg-gray { background-color: var(--section-bg); }
.bg-light-gray { background-color: #f8f8f8; }
.bg-brand { 
  background-color: var(--brand-color);
  color: white;
}

.bg-brand h1,
.bg-brand h2,
.bg-brand h3,
.bg-brand p {
  color: white;
}

/* ---------------------------------------------------------------------------
   7. IMAGE UTILITIES
   --------------------------------------------------------------------------- */

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-rounded {
  border-radius: 5px;
}

.img-clickable {
  cursor: pointer;
  transition: transform 0.2s;
}

.img-clickable:hover {
  transform: scale(1.05);
}

/* ---------------------------------------------------------------------------
   8. ADDITIONAL UTILITY CLASSES (Phase 2 Additions)
   --------------------------------------------------------------------------- */

/* Link Utilities */
.link-blue {
  color: var(--link-blue);
  text-decoration: none;
}

.link-blue:hover {
  text-decoration: underline;
}

/* Line Height Utilities */
.line-height-relaxed {
  line-height: 1.7;
}

.line-height-comfortable {
  line-height: 1.6;
}

/* List Style Utilities */
.list-none {
  list-style: none;
}

/* Width Constraints */
.w-85-max-900 {
  width: 85%;
  max-width: 900px;
  margin: 0 auto;
}

/* Display Utilities */
.d-none {
  display: none !important;
}

.d-block {
  display: block !important;
}

.d-hidden {
  display: none !important;
}

.d-visible {
  display: block !important;
}

/* Button Hover Classes */
.btn-primary-hover:hover {
  transform: translateY(-2px);
}

.btn-cta-hover:hover {
  transform: translateY(-2px);
}

/* CTA Button Group */
.cta-button-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn-primary {
  padding: 0.875rem 2rem;
  background-color: var(--cta-btn);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: transform 0.2s;
}

.cta-btn-primary:hover {
  transform: translateY(-2px);
}

.cta-btn-secondary {
  padding: 0.875rem 2rem;
  background-color: var(--brand-color);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: transform 0.2s;
}

.cta-btn-secondary:hover {
  transform: translateY(-2px);
}

.two-line-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.75rem 1rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  background-color: var(--brand-color);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.2s;
}

/* ---------------------------------------------------------------------------
   END OF UTILITY CLASSES
   --------------------------------------------------------------------------- */

/* ===== TESTIMONIALS ===== */
.testimonials-section {
  background-color: var(--brand-color);
  color: white;
  text-align: center;
}

.testimonials-section h2 {
  color: white;
}

.testimonials-grid {
  gap: 2rem;
}

.testimonial-icon {
  color: var(--cta-btn);
  margin-bottom: 1rem;
  text-align: center;
  font-size: 48px;
}

.testimonial-icon svg {
  width: 48px !important;
  height: 48px !important;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.6;
  text-align: center;
}

.testimonial-author {
  text-align: center;
  color: var(--dark-text);
}
