/* 
  Global Styles for Premium Local Service Business (Modern Aesthetics)
  Focus: Modern, Professional, Premium Feel with subtle glassmorphism and animations
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
    /* Modern Color Palette */
    --clr-bg-white: #FFFFFF;
    --clr-bg-light: #F8FAFC;
    /* Cooler, premium ultra-light grey */
    --clr-bg-dark: #0F172A;
    /* Deep Slate 900 for footers/dark sections */

    --clr-text-primary: #0F172A;
    /* Slate 900 - Softer than pure black */
    --clr-text-secondary: #475569;
    /* Slate 600 */

    --clr-brand-primary: #064E3B;
    /* Emerald 900 - Deep, sophisticated 'Forest Night' green */
    --clr-brand-primary-light: #047857;
    /* Emerald 600 */

    --clr-btn-primary: #064E3B;
    --clr-btn-secondary: #10B981;
    /* Emerald 500 - Sophisticated, vibrant green (less lime) */

    --clr-text-on-primary-btn: #FFFFFF;
    --clr-text-on-secondary-btn: #FFFFFF;
    /* White on Emerald 500 is very modern */

    /* Logo Colors */
    --clr-logo-darkgreen: #2E7D32;
    /* Rich Forest Green from the leaf */
    --clr-logo-lightgreen: #CDDC39;
    /* Bright Lime Green from the leaf */

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    /* Elegant, premium heading font */
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    /* Clean, modern body font */
    --base-font-size: 16px;
    /* Slightly smaller base for a sleeker look */
    --base-line-height: 1.7;

    /* Layout & Effects */
    --radius-md: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.4);
}

/* Base Reset & Box Sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    font-size: var(--base-font-size);
    line-height: var(--base-line-height);
    color: var(--clr-text-secondary);
    /* Softer body text */
    background-color: var(--clr-bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Layout */
main,
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

section {
    padding: 7rem 2rem;
    /* Even more breathing room */
}

section:nth-child(even) {
    background-color: var(--clr-bg-light);
}

/* ---------- Header & Navigation ---------- */
header {
    background-color: var(--clr-bg-white);
    padding: 1.5rem 0;
    position: relative;
    z-index: 100;
    transition: background-color 0.3s ease;
}

/* Transparent overlapping header specifically for the homepage */
.header-transparent {
    background-color: transparent !important;
    border-bottom: none !important;
}

/* Dark solid header specifically for subpages so white logo is visible */
.header-dark {
    background-color: var(--clr-logo-darkgreen) !important;
    border-bottom: none !important;
}

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

.logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 55px;
    /* Adjust based on logo proportions */
    max-height: 100%;
    width: auto;
}

@media (min-width: 768px) {
    .logo-img {
        height: 75px;
    }
}

/* Desktop Navigation */
nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

nav a {
    text-decoration: none;
    color: var(--clr-text-primary);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--clr-brand-primary);
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

nav a:hover {
    color: var(--clr-brand-primary);
}

nav a:hover::after {
    width: 100%;
}

/* When header is transparent or dark, make text white */
.header-transparent nav a,
.header-dark nav a {
    color: var(--clr-bg-white);
}

.header-transparent nav a::after,
.header-dark nav a::after {
    background-color: var(--clr-bg-white);
}

.header-transparent nav a:hover,
.header-dark nav a:hover {
    color: var(--clr-bg-white);
    /* Keep white on hover, but underline expands */
}

/* Mobile Hamburger Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 110;
}

.mobile-menu-toggle svg {
    width: 28px;
    height: 28px;
    stroke: var(--clr-text-primary);
    /* Changed from --clr-text-main to --clr-text-primary */
}

.header-transparent .mobile-menu-toggle svg,
.header-dark .mobile-menu-toggle svg {
    stroke: var(--clr-bg-white);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(16, 185, 129, 0.1);
        /* Subtle green pill */
        border-radius: 8px;
        padding: 0.6rem;
        transition: background 0.3s ease;
    }

    .mobile-menu-toggle:hover {
        background: rgba(16, 185, 129, 0.2);
    }

    .mobile-menu-toggle svg {
        stroke: var(--clr-brand-primary);
        width: 28px;
        height: 28px;
    }

    .header-transparent .mobile-menu-toggle,
    .header-dark .mobile-menu-toggle {
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(8px);
    }

    .header-transparent .mobile-menu-toggle:hover,
    .header-dark .mobile-menu-toggle:hover {
        background: rgba(255, 255, 255, 0.25);
    }

    .header-transparent .mobile-menu-toggle svg,
    .header-dark .mobile-menu-toggle svg {
        stroke: var(--clr-bg-white);
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--clr-bg-white);
        flex-direction: column;
        padding: 2.5rem 2rem;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        border-bottom-left-radius: 24px;
        border-bottom-right-radius: 24px;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        gap: 2rem;
        text-align: center;

        /* Modern dropdown animation states */
        visibility: hidden;
        opacity: 0;
        transform: translateY(-15px);
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex;
        /* Maintain flex layout for column */
    }

    nav.active {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    nav a {
        font-size: 1.25rem;
        display: inline-block;
        padding: 0.5rem 0;
    }

    /* Override transparent text color when mobile menu is open */
    .header-transparent nav.active a,
    .header-dark nav.active a {
        color: var(--clr-text-primary);
    }

    .header-transparent nav.active a::after,
    .header-dark nav.active a::after {
        background-color: var(--clr-brand-primary);
    }

    .header-transparent nav.active a:hover,
    .header-dark nav.active a:hover {
        color: var(--clr-brand-primary);
    }
}

section:nth-child(odd) {
    background-color: var(--clr-bg-white);
}

/* Typography Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--clr-text-primary);
    margin-bottom: 1.25rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h6.logo {
    font-size: 1.5rem;
    font-family: var(--font-primary);
    /* Using existing font variable */
    font-weight: 700;
    color: var(--clr-text-primary);
    /* Using existing color variable */
    text-decoration: none;
    line-height: 1.1;
    /* Tighter line height for the logo */
    letter-spacing: -0.02em;
    white-space: nowrap;
    /* Prevent "Co." from wrapping on mobile */
}

@media (max-width: 390px) {
    h6.logo {
        font-size: 1.3rem;
        /* Slightly smaller on very narrow screens to prevent wrapping */
    }
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-family: var(--font-primary);
    /* Keep smaller headings clean sans-serif */
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

p {
    margin-bottom: 1.5rem;
}

p:last-child {
    margin-bottom: 0;
}

/* Links */
a {
    color: var(--clr-brand-primary-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: var(--clr-brand-primary);
    text-decoration: underline;
}

/* Modern Buttons */

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--clr-brand-primary);
    color: var(--clr-brand-primary);
}

.btn-outline:hover {
    background-color: var(--clr-brand-primary);
    color: var(--clr-bg-white);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 2.5rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 50px;
    /* Pill shape is very modern */
    border: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background-color: var(--clr-btn-primary);
    color: var(--clr-text-on-primary-btn);
}

.btn-primary:hover {
    background-color: var(--clr-text-primary);
    /* Shifts to near-black on hover */
    color: #fff;
}

.btn-secondary {
    background-color: var(--clr-btn-secondary);
    color: var(--clr-text-on-secondary-btn);
}

.btn-secondary:hover {
    background-color: #059669;
    /* Slightly darker emerald */
    box-shadow: var(--shadow-glow);
    /* Adds a modern glow */
}

/* Form Elements - Accessible 48px height */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    font-family: var(--font-primary);
    font-size: var(--base-font-size);
    padding: 0.75rem 1rem;
    border: 2px solid #D1D5DB;
    /* AA contrast grey */
    border-radius: 8px;
    min-height: 48px;
    width: 100%;
    margin-bottom: 1.5rem;
    color: var(--clr-text-primary);
    background-color: var(--clr-bg-white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--clr-brand-primary);
    box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.2);
    /* Soft green glow for focus */
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Premium Hero Section - Modernized */
.hero-premium {
    position: relative;
    background-color: var(--clr-brand-primary);
    background-image: url('../images/hero-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Subtle parallax effect */
    color: var(--clr-bg-white);
    padding: 0;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
}

.hero-premium-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Richer, moodier gradient */
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.9) 0%, rgba(15, 23, 42, 0.7) 100%);
    z-index: 1;
}

.hero-premium-content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Centered for maximum impact */
    text-align: center;
    padding: 6rem 2rem;
}

.hero-premium h1 {
    color: var(--clr-bg-white);
    font-size: 5rem;
    /* Even larger, elegant impact */
    max-width: 900px;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-premium .subheadline {
    font-size: 1.375rem;
    /* 22px */
    font-weight: 400;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.85);
    /* Slightly softer */
    max-width: 600px;
    line-height: 1.6;
}

.hero-premium-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 7rem;
    /* Increased to separate from trust signals */
}

.hero-premium .btn {
    font-size: 1.125rem;
    padding: 0 2.5rem;
    min-height: 56px;
    border-radius: 50px;
    /* Pill shape */
}

/* Pulsating CTA Border Animation */
@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.7);
        /* Using --clr-logo-darkgreen roughly */
    }

    70% {
        box-shadow: 0 0 0 20px rgba(46, 125, 50, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(46, 125, 50, 0);
    }
}

.btn-pulse {
    animation: pulse-border 2s infinite;
}

/* Secondary ghost button for the hero */
.hero-premium .btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.hero-premium .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Modern Trust Signals - Glassmorphism */
.hero-trust-signals {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 3rem;
    border-radius: 100px;
    /* Pill shaped container */
}

.trust-signal {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--clr-bg-white);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.trust-signal svg {
    width: 24px;
    height: 24px;
    stroke: var(--clr-btn-secondary);
    /* Vibrant accent */
}

/* Responsive adjustments */
/* Services Section */
.services-section {
    background-color: var(--clr-bg-light);
    padding: 7rem 2rem;
}

.services-header {
    text-align: center;
    margin-bottom: 5rem;
}

.services-header h2 {
    font-size: 3rem;
    color: var(--clr-text-primary);
    max-width: 700px;
    margin: 0 auto;
}

.services-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 2.5rem;
    padding: 1rem 0 3rem 0;
    /* Extra padding for shadows / hover effects */
    margin: 0 -1rem;
    /* Negative margin to let it bleed to screen edges */
    padding-left: 1rem;
    padding-right: 1rem;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* Show Scrollbar for discoverability */
    scrollbar-width: thin;
    scrollbar-color: var(--clr-brand-primary) rgba(0, 0, 0, 0.03);
}

/* Custom Webkit Scrollbar for premium feel */
.services-grid::-webkit-scrollbar {
    height: 8px;
    display: block;
}

.services-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
    margin: 0 1rem;
}

.services-grid::-webkit-scrollbar-thumb {
    background-color: var(--clr-brand-primary);
    border-radius: 10px;
}

.services-grid::-webkit-scrollbar-thumb:hover {
    background-color: var(--clr-logo-darkgreen);
}

/* Horizontal Scroll Hint */
.scroll-hint-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.5rem 1.2rem;
    background: rgba(46, 125, 50, 0.08);
    color: var(--clr-logo-darkgreen);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
}

.scroll-hint-icon svg {
    width: 20px;
    height: 20px;
    animation: swipeAnim 2s infinite ease-in-out;
}

@keyframes swipeAnim {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }
}

@media (min-width: 768px) {
    .services-grid {
        margin: 0;
        padding-left: 0;
        padding-right: 0;
    }
}

.service-card {
    background-color: var(--clr-bg-white);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;

    /* Horizontal Scroll Layout Settings */
    min-width: 320px;
    max-width: 380px;
    flex: 0 0 auto;
    scroll-snap-align: start;
    scroll-margin-left: 1rem;
    /* Offset for snap */
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(16, 185, 129, 0.1);
}

.service-icon-wrapper {
    width: 64px;
    height: 64px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon-wrapper {
    transform: scale(1.1);
    background: var(--clr-btn-secondary);
}

.service-icon {
    width: 32px;
    height: 32px;
    stroke: var(--clr-brand-primary);
    transition: stroke 0.3s ease;
}

.service-card:hover .service-icon {
    stroke: white;
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    flex-grow: 1;
    /* Pushes the link to the bottom */
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.service-link svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.service-link:hover svg {
    transform: translateX(4px);
}

.service-link:hover,
.service-link:focus {
    text-decoration: none;
}

.service-link:focus-visible {
    outline: 2px solid var(--clr-brand-primary);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Zig-Zag Services Section */
.service-zigzag {
    padding: 6rem 2rem;
    background-color: var(--clr-bg-white);
}

.service-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 7.5rem;
    /* 120px massive padding between rows */
}

/* Alternate row direction */
.service-row:nth-child(even) {
    flex-direction: row-reverse;
}

.service-row:last-child {
    margin-bottom: 0;
}

.service-image {
    flex: 1;
    position: relative;
    border-radius: 8px;
    /* Subtly rounded corners */
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.service-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.service-info {
    flex: 1;
}

.service-info h2 {
    font-size: 2rem;
    /* 32px minimum */
    color: var(--clr-text-primary);
    margin-bottom: 1.5rem;
}

.service-info>p {
    font-size: 1.125rem;
    /* 18px */
    color: #4B5563;
    /* Readable dark grey */
    margin-bottom: 2rem;
    max-width: 600px;
}

/* Custom Unordered List with Checkmarks */
.service-benefits {
    list-style: none;
    padding: 0;
    margin-bottom: 2.5rem;
}

.service-benefits li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    /* Bold for older users */
    color: var(--clr-text-primary);
}

.service-benefits li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    /* Align with text */
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23166534' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.service-info .btn-primary {
    min-height: 48px;
    padding: 0 2.5rem;
    font-size: 1.125rem;
}

/* Trust & Proof Section */
.trust-proof-section {
    padding: 6rem 2rem;
    background-color: var(--clr-bg-white);
}

.section-header-centered {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header-centered h2 {
    font-size: 2.5rem;
    color: var(--clr-text-primary);
    max-width: 600px;
    margin: 0 auto;
}

/* Reviews / Testimonials */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    /* 1 column on mobile */
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 900px) {
    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
        /* 3 columns on larger screens */
    }
}

/* Update review card padding for mobile */
.review-card {
    background-color: var(--clr-bg-white);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    /* Slightly less horizontal padding on mobile */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
    /* Subtle border to prevent washing out */
}

@media (min-width: 768px) {
    .review-card {
        padding: 2.5rem 2rem;
        /* Restore padding on larger screens */
    }
}

/* FIX: Strict Constraints on SVG logos to prevent massive scaling */
.google-logo {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    opacity: 0.8;
}

.stars {
    display: flex;
    gap: 4px;
    margin-bottom: 1.5rem;
}

.stars svg {
    flex-shrink: 0;
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    fill: #FBBF24;
    /* Bright Gold */
}

.review-quote {
    font-size: 1.125rem;
    /* 18px */
    color: var(--clr-text-primary);
    /* Dark text */
    font-style: italic;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.review-author {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--clr-text-primary);
}

/* Subpage Header (Services, Contact) */
.page-header {
    background-color: var(--clr-logo-darkgreen) !important;
    /* Use dark green from logo */
    padding: 4rem 2rem 3rem !important;
    /* Removed the extreme top padding needed for absolute headers */
    border-bottom: none !important;
}

.page-header h1 {
    color: var(--clr-bg-white) !important;
}

.page-header p {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Before & After Section */
.before-after-section {
    background-color: var(--clr-bg-light);
    /* Different background from the reviews section which is white */
    /* Increase top padding slightly so subpages clear the dark solid header nicely */
    padding: 2rem 1rem 6rem;
    /* Generous padding top/bottom */
}

.ba-header {
    margin-bottom: 3rem;
}

.ba-header p {
    font-size: 1.125rem;
    color: var(--clr-text-secondary);
    line-height: 1.6;
    max-width: 650px;
    margin: 1rem auto 0;
}

@media (max-width: 768px) {
    .before-after-section {
        padding: 4rem 1rem;
        /* Slightly less padding on mobile */
    }

    .ba-header {
        margin-bottom: 2rem;
    }
}

/* Before & After Slider */
.ba-slider-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Minimal pure CSS slider implementation based on a container and a range input */
.ba-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    /* Standard landscape ratio */
    overflow: hidden;
    background-color: #f3f4f6;
    /* Placeholder color in case image fails */
}

.ba-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    /* Make images non-interactive */
}

/* "After" image is the background */
.ba-image-bg {
    z-index: 1;
}

/* "Before" image sits on top and its width is controlled via clipping or wrapper width */
.ba-image-fg {
    z-index: 2;
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.ba-slider-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    /* Very top so it catches events cleanly */
    opacity: 0;
    /* Invisible but clickable/draggable */
    cursor: ew-resize;
    margin: 0;
}

/* The visual thick handle */
.ba-slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    /* Thick handle base */
    background-color: var(--clr-btn-secondary);
    /* High contrast Lime Green */
    z-index: 4;
    pointer-events: none;
    /* The invisible input catches the events */
    transform: translateX(-50%);
}

.ba-slider-handle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background-color: var(--clr-btn-secondary);
    border-radius: 50%;
    border: 3px solid var(--clr-bg-white);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    /* Arrow SVG encoded in background for clear left/right signals */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'%3E%3C/polyline%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
    background-position: left 4px center, right 4px center;
    background-repeat: no-repeat;
    background-size: 20px;
}

/* Contact Section - Accessible & High Contrast */
.contact-section {
    padding: 6rem 2rem;
    background-color: var(--clr-bg-light);
    /* Visually separates from the white trust section */
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-header h2 {
    font-size: 2.5rem;
    color: var(--clr-text-primary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Left Column: Form */
.contact-form-wrapper {
    background-color: var(--clr-bg-white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

.contact-form-wrapper label {
    font-size: 1.125rem;
    /* 18px */
    font-weight: 700;
    color: var(--clr-text-primary);
    margin-bottom: 0.5rem;
    display: block;
}

.contact-form-wrapper input,
.contact-form-wrapper select,
.contact-form-wrapper textarea {
    width: 100%;
    font-size: 1.125rem;
    /* 18px text inside inputs for seniors */
    padding: 1rem;
    border: 2px solid #374151;
    /* HIGH CONTRAST DARK BORDER, not light grey */
    border-radius: 8px;
    background-color: var(--clr-bg-white);
    color: var(--clr-text-primary);
    margin-bottom: 1.5rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Fix Safari/iOS Default Select Styling */
.contact-form-wrapper select {
    appearance: none;
    /* Remove default styling */
    -webkit-appearance: none;
    -moz-appearance: none;
    /* Add custom elegant dropdown arrow svg encoded in background */
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23111827%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem top 50%;
    background-size: 0.85rem auto;
    padding-right: 2.5rem;
    /* Ensure text doesn't overlap arrow */
}

.contact-form-wrapper input:focus,
.contact-form-wrapper select:focus,
.contact-form-wrapper textarea:focus {
    outline: none;
    border-color: var(--clr-brand-primary);
    box-shadow: 0 0 0 4px rgba(22, 101, 52, 0.2);
}

.contact-form-wrapper .btn-submit {
    width: 100%;
    /* Full width massive button */
    font-size: 1.25rem;
    padding: 1rem;
    min-height: 60px;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Right Column: Info & Map */
.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-info-item h3 {
    font-size: 1.25rem;
    color: #4B5563;
    /* Medium grey label */
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 800;
}

/* Massive Clickable Phone Number */
.contact-phone-massive {
    font-size: 3rem;
    /* H1/H2 size */
    font-weight: 800;
    color: var(--clr-brand-primary);
    text-decoration: none;
    display: inline-block;
    letter-spacing: -0.02em;
    transition: color 0.2s;
}

.contact-phone-massive:hover,
.contact-phone-massive:focus {
    color: var(--clr-btn-secondary);
    /* Pops on hover */
    text-decoration: underline;
    outline: none;
}

.contact-phone-massive:focus-visible {
    outline: 4px solid var(--clr-text-primary);
    outline-offset: 8px;
    border-radius: 4px;
}

.contact-text-large {
    font-size: 1.125rem;
    /* 18px */
    color: var(--clr-text-primary);
    font-weight: 600;
    line-height: 1.6;
}

/* Embedded Map */
.contact-map-container {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 2px solid #E5E7EB;
}

.contact-map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-row {
        gap: 3rem;
        margin-bottom: 5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {

    main,
    .container {
        padding: 2.5rem 1.5rem;
    }

    section {
        padding: 4rem 1.5rem;
    }

    /* Fixed Hero Premium responsive styling */
    .hero-premium-content {
        padding: 4rem 1.5rem;
    }

    .hero-premium h1 {
        font-size: 3rem;
        /* Scaled down slightly but still prominent */
    }

    .hero-premium .subheadline {
        font-size: 1.125rem;
        margin-bottom: 2rem;
    }

    .hero-premium-actions {
        flex-direction: column;
        align-items: stretch;
        /* Make buttons full width on very small screens */
        gap: 1.5rem;
        /* Slightly more gap between the two buttons */
        width: 100%;
        max-width: 400px;
        margin-bottom: 5rem;
        /* Increased mobile spacing from trust signals */
    }

    .hero-premium .btn {
        width: 100%;
        /* Stretch buttons to match width */
        padding: 0 1.5rem;
    }

    .hero-trust-signals {
        flex-direction: column;
        align-items: flex-start;
        /* Stack them cleanly */
        justify-content: center;
        width: 100%;
        max-width: 400px;
        gap: 1.25rem;
        padding: 1.5rem;
        border-radius: 20px;
        /* Less extreme radius on mobile stack */
    }

    .trust-signal {
        font-size: 0.95rem;
        /* Slight scale down */
    }

    .service-row,
    .service-row:nth-child(even) {
        flex-direction: column;
        gap: 2rem;
        margin-bottom: 4rem;
    }

    .service-image {
        width: 100%;
        margin-bottom: 1rem;
    }

    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }

    .contact-phone-massive {
        font-size: 2.25rem;
    }
}

/* Detailed Services Page */
.detailed-services {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 2rem 0;
}

.detailed-service-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    background: var(--clr-bg-white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detailed-service-row:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

@media (min-width: 992px) {
    .detailed-services {
        gap: 4rem;
        /* Restore wide gap on desktop */
    }

    .detailed-service-row {
        grid-template-columns: 1fr 1fr;
        padding: 4rem;
        gap: 3rem;
        border-radius: 24px;
    }

    .detailed-service-row:nth-child(even) {
        direction: rtl;
    }

    .detailed-service-row:nth-child(even)>* {
        direction: ltr;
        /* Reset LTR for text content */
    }
}

.ds-content h2 {
    font-size: 2.25rem;
    color: var(--clr-text-primary);
    margin-bottom: 1rem;
    font-weight: 800;
}

.ds-content p {
    font-size: 1.125rem;
    color: var(--clr-text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}


.ds-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 600px) {
    .ds-features {
        grid-template-columns: 1fr 1fr;
    }
}

.ds-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--clr-text-primary);
}

.ds-features li svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--clr-logo-lightgreen);
    margin-top: 2px;
}

/* Visual Image Side */
.ds-image-wrapper {
    width: 100%;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 4/3;
}

.ds-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.detailed-service-row:hover .ds-image-wrapper img {
    transform: scale(1.03);
}

/* Mobile Stacking & Gap Fixes */
@media (max-width: 991px) {

    /* Reduce the massive top/bottom space between page header and first service block */
    .page-header {
        padding: 3rem 1.5rem 2rem 1.5rem !important;
    }

    .services-section {
        padding-top: 1rem !important;
    }

    .detailed-service-row {
        display: flex;
        flex-direction: column;
    }

    .ds-image-wrapper {
        order: 1;
        margin-bottom: 2rem;
    }

    .ds-content {
        order: 2;
    }
}