/* --- MASTER STYLE: Crisp Water Theme + App Nav + Footer --- */

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

/* 1. VARIABLES & RESET */
:root {
    /* Brand Colors */
    --brand-pool: #40E0D0;       /* Bright Turquoise (Accents) */
    --cta-solid: #0F172A;        /* Deep Navy (Buttons/Text) */
    --cta-hover: #1E293B;        /* Lighter Navy (Interaction) */
    
    /* UI Colors */
    --text-main: #1E293B;
    --text-sub: #64748B;
    --bg-body: #FFFFFF;
    --bg-surface: #F8FAFC;
    
    /* Layout */
    --nav-height: 80px;
    --radius: 12px;
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-float: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    /* CTA gradient colors */
    --cta-gradient-start: #0F172A; /* navy */
    --cta-gradient-end: #40E0D0; /* turquoise */
    --cta-gradient: linear-gradient(90deg, var(--cta-gradient-start) 0%, var(--cta-gradient-end) 100%);
}

* { box-sizing: border-box; }

/* Performance optimizations */
html {
    scroll-behavior: smooth;
}

img {
    content-visibility: auto;
}

body {
    font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding-top: var(--nav-height); /* Push content down below fixed nav */
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--cta-solid);
    margin-top: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-weight: 700;
}

h2 {
    font-weight: 600;
}

h3, h4 {
    font-weight: 600;
}

a { text-decoration: none; color: inherit; transition: all 0.2s; }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; display: block; }

.container {
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* --- 2. APP-STYLE NAVIGATION --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #F1F5F9;
    z-index: 1000;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-wrapper {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
    position: relative;
}

/* LEFT: Hamburger Button */
.menu-toggle {
    display: flex; flex-direction: column; justify-content: space-between;
    width: 30px; height: 20px; background: transparent; border: none; cursor: pointer;
    z-index: 1002; padding: 0;
}
.menu-toggle span { display: block; width: 26px; height: 2.5px; background-color: var(--cta-solid); border-radius: 2px; transition: all 0.3s ease; }
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* CENTER: Logo */
.logo {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    height: 70px; display: flex; align-items: center; z-index: 1001;
}
.logo img { height: 100%; width: auto; }

/* RIGHT: Client Login Button */
.client-login-btn {
    background-image: var(--cta-gradient); color: white !important;
    padding: 10px 24px; border-radius: 50px; 
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 600; font-size: 0.9rem;
    transition: transform 0.2s, background-position 0.3s; white-space: nowrap; border: 2px solid transparent; background-size: 200% 100%; background-position: 0% 50%;
}
.client-login-btn:hover { background-position: 100% 50%; transform: translateY(-1px); }

/* DRAWER MENU */
/* Backdrop overlay */
.nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
    pointer-events: none;
}

.nav-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-links {
    position: fixed;
    top: var(--nav-height);
    left: -350px;
    width: 300px;
    height: calc(100vh - var(--nav-height));
    background: white;
    border-right: 1px solid #E2E8F0;
    padding: 40px 0;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 5px 0 15px rgba(0,0,0,0.1);
    overflow-y: auto;
    z-index: 1000;
}

.nav-links.active {
    left: 0;
}
.nav-links li {
    width: 100%;
    border-bottom: 1px solid #f9f9f9;
    list-style: none;
}

.nav-links a {
    display: block;
    padding: 20px 30px;
    text-align: center;
    font-size: 1.1rem;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 500;
    color: var(--text-main);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
    background-color: #F0F4F8;
    color: var(--brand-pool);
    transform: translateX(5px);
}

/* Dropdown in Drawer */
.dropdown-content { display: none; background-color: #F1F5F9; }
.dropdown:hover .dropdown-content { display: block; }
.dropdown-content a { 
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 0.95rem; 
    font-weight: 500;
    padding: 15px 30px; 
    color: var(--text-sub); 
}

/* Get A Quote Button in Navigation */
.nav-cta-item {
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-cta-link {
    display: inline-block !important;
    background: var(--brand-pool) !important;
    color: white !important;
    padding: 12px 28px !important;
    border-radius: 50px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 600;
    font-size: 1rem !important;
    text-align: center !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(0) !important;
    box-shadow: 0 4px 12px rgba(64, 224, 208, 0.3);
    margin: 20px 30px;
}

.nav-cta-link:hover {
    background: #36c9ba !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 6px 20px rgba(64, 224, 208, 0.4);
}


/* --- 3. CORE LAYOUT STYLING --- */

/* Hero Section (Image & Overlay) */
#hero {
    position: relative;
    text-align: center;
    padding: 180px 20px 220px;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%),
        url('pool-hero-placeholder.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    overflow: hidden;
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

#hero h1 {
    color: var(--cta-solid);
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
    margin-bottom: 30px;
    line-height: 1.3;
}

#hero p {
    color: var(--text-sub);
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
    margin-bottom: 40px;
    font-size: 1.25rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#hero .cta-button {
    z-index: 2;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Wave Graphic */
.custom-shape-divider-bottom { position: absolute; bottom: 0; left: 0; width: 100%; overflow: hidden; line-height: 0; z-index: 1; }
.custom-shape-divider-bottom svg { display: block; width: calc(100% + 1.3px); height: 80px; }
.custom-shape-divider-bottom .shape-fill { fill: var(--bg-body); }

/* Calculator Wrapper */
.calculator-wrapper { 
    max-width: 1100px; 
    margin: -80px auto 80px; 
    position: relative; 
    z-index: 10; 
    padding: 0 20px; 
}

.section-divider {
    height: 2px;
    background: linear-gradient(to right, transparent, #E2E8F0, transparent);
    border: none;
    margin: 40px 0;
}

.controls-heading {
    text-align: center;
    margin-bottom: 10px;
    margin-top: 30px;
    color: var(--cta-solid);
    font-size: 1.75rem;
    font-weight: 600;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    letter-spacing: -0.02em;
}

.controls-subheading {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-sub);
    font-size: 1rem;
    font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
}

.price-disclaimer {
    text-align: center;
    margin-top: 40px;
    font-size: 0.875rem;
    color: #64748B;
}

/* Service Cards Section */
.service-tiers { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
    align-items: stretch; 
    margin-bottom: 60px; 
}

/* Calculator Controls */
.controls-container { 
    background: white; 
    padding: 40px 45px; 
    border-radius: 16px; 
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.06), 0 2px 4px -1px rgba(0,0,0,0.04); 
    display: flex; 
    justify-content: center; 
    gap: 60px; 
    margin-bottom: 50px; 
    border: 1px solid #E2E8F0; 
    flex-wrap: wrap; 
    align-items: center; 
}

.control-group { display: flex; flex-direction: column; gap: 15px; flex: 1; min-width: 280px; }
.control-group.slider-group { flex: 2; min-width: 450px; }
.control-group label { font-weight: 600; color: var(--text-main); font-size: 1rem; text-align: center; font-family: 'Inter', system-ui, -apple-system, sans-serif; letter-spacing: -0.01em; }
#gallonDisplay { color: var(--brand-pool); font-size: 1.4rem; font-weight: 700; }
.input-hint { font-size: 0.85rem; color: var(--text-sub); margin-top: 4px; }
select { 
    padding: 14px 20px; 
    border: 2px solid #E2E8F0; 
    border-radius: 10px; 
    font-size: 1rem; 
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); 
    background: white; 
    cursor: pointer;
    color: var(--text-main);
}
select:hover { border-color: var(--brand-pool); }
select:focus { outline: none; border-color: var(--brand-pool); box-shadow: 0 0 0 3px rgba(64, 224, 208, 0.1); }

/* Range Slider Styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 10px;
    background: linear-gradient(to right, var(--brand-pool) 0%, var(--brand-pool) 20%, #E2E8F0 20%, #E2E8F0 100%);
    outline: none;
    transition: background 0.15s ease;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--cta-solid);
    cursor: grab;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.3);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid white;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(64, 224, 208, 0.5);
}

input[type="range"]::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.1);
}

input[type="range"]::-moz-range-thumb {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--cta-solid);
    cursor: grab;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.3);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(64, 224, 208, 0.5);
}

input[type="range"]::-moz-range-thumb:active {
    cursor: grabbing;
    transform: scale(1.1);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 8px;
    color: var(--cta-solid);
    font-size: 1.75rem;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.section-subheader {
    text-align: center;
    color: var(--text-sub);
    margin-bottom: 30px;
    font-size: 0.95rem;
    font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
}

/* Add-Ons and One-Time Wrapper - Side by Side */
.addons-onetime-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* Add-Ons Section */
.addons-section {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.06), 0 2px 4px -1px rgba(0,0,0,0.04);
    border: 1px solid #E2E8F0;
}

.addons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.addon-card {
    background: white;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    padding: 20px 18px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.addon-card:hover {
    border-color: var(--brand-pool);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(64, 224, 208, 0.15);
}

.addon-card.selected {
    background: var(--cta-solid);
    border-color: var(--cta-solid);
    color: white;
}

.addon-card-title {
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    letter-spacing: -0.01em;
    color: inherit;
}

.addon-card.selected .addon-card-title {
    color: white;
}

.addon-card-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--cta-solid);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.addon-card.selected .addon-card-price {
    color: white;
}

.addon-card-note {
    font-size: 0.75rem;
    color: #6B7280;
    font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
    font-weight: 400;
}

.addon-card.selected .addon-card-note {
    color: rgba(255, 255, 255, 0.9);
}

/* One-Time Services - Matching Style */
.onetime-section {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.06), 0 2px 4px -1px rgba(0,0,0,0.04);
    border: 1px solid #E2E8F0;
}

.onetime-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.onetime-card {
    background: white;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    padding: 24px 18px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.onetime-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    border-color: var(--brand-pool);
}

.onetime-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.onetime-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--cta-solid);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    letter-spacing: -0.01em;
}

.onetime-price {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--brand-pool);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Service Cards */
.service-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; align-items: stretch; margin-bottom: 50px; }
.service-card {
    background: white;
    border-radius: var(--radius);
    padding: 35px 30px;
    text-align: center;
    box-shadow: var(--shadow-card);
    border: 1px solid #F1F5F9;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    border-color: var(--brand-pool);
}

.recommended { border: 2px solid var(--brand-pool); transform: scale(1.02); z-index: 5; }
.recommended::before { 
    content: 'BEST VALUE'; 
    position: absolute; 
    top: -12px; 
    left: 50%; 
    transform: translateX(-50%); 
    background: var(--brand-pool); 
    color: white; 
    padding: 6px 14px; 
    font-size: 0.75rem; 
    font-weight: 700; 
    border-radius: 20px; 
    white-space: nowrap;
    z-index: 10;
}

.price-display { font-size: 3rem; font-weight: 800; color: var(--cta-solid); line-height: 1; margin: 10px 0; }
.features-list { list-style: none; padding: 0; margin: 0 0 30px; text-align: left; flex-grow: 1; }
.features-list li { padding: 10px 0; border-bottom: 1px solid #F1F5F9; font-size: 0.95rem; display: flex; align-items: center; }
.features-list li::before { content: '✔'; color: var(--brand-pool); font-weight: 900; margin-right: 12px; font-size: 1rem; }
.features-list li.excluded { color: #CBD5E1; text-decoration: line-through; opacity: 0.7; }

/* Buttons */
.cta-button {
    display: block;
    width: 100%;
    background-image: var(--cta-gradient);
    color: white !important;
    padding: 16px;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background-position 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    background-size: 200% 100%;
    background-position: 0% 50%;
    transform: translateZ(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                background-position 0.3s ease,
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button:hover {
    will-change: transform;
    background-position: 100% 50%;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
}
.cta-button.outline { background-color: white; color: var(--cta-solid) !important; border: 2px solid #E2E8F0; }
.cta-button.outline:hover { border-color: var(--cta-solid); background-color: white; color: var(--cta-solid) !important; }


/* --- 6. ADVANCED FOOTER STYLES --- */
footer {
    background-color: var(--cta-solid);
    color: #E2E8F0;
    padding: 60px 0 30px;
    margin-top: 100px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    padding: 0 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-col h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--brand-pool);
    display: inline-block;
    padding-bottom: 5px;
}

.footer-links a { color: #94A3B8; display: block; margin-bottom: 10px; transition: color 0.2s; }
.footer-links a:hover { color: var(--brand-pool); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: #64748B;
}

/* --- 7. RESPONSIVE --- */
@media (max-width: 900px) {
    #hero {
        background-attachment: scroll;
        padding: 100px 20px 140px;
    }
    
    .calculator-wrapper {
        margin: -60px auto 40px;
        padding: 0 15px;
    }
    
    /* Mobile: Horizontal scrollable service cards */
    .service-tiers {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 12px;
        margin-bottom: 30px;
        padding: 10px 50px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .service-tiers::-webkit-scrollbar {
        height: 4px;
    }
    
    .service-tiers::-webkit-scrollbar-thumb {
        background: var(--brand-pool);
        border-radius: 4px;
    }
    
    .service-card {
        flex: 0 0 270px;
        scroll-snap-align: center;
        padding: 14px 12px;
        min-height: auto;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
        margin-bottom: 3px;
    }
    
    .card-desc {
        font-size: 0.75rem;
        display: block;
        margin-bottom: 6px;
    }
    
    .price-display {
        font-size: 1.6rem !important;
        margin: 6px 0;
    }
    
    .price-sub {
        font-size: 0.65rem;
        display: block;
        margin-bottom: 8px;
    }
    
    .features-list {
        margin-bottom: 10px;
        max-height: 110px;
        overflow-y: auto;
    }
    
    .features-list li {
        font-size: 0.75rem;
        padding: 4px 0;
        line-height: 1.3;
    }
    
    .features-list li::before {
        font-size: 0.8rem;
        margin-right: 6px;
    }
    
    .cta-button {
        padding: 8px;
        font-size: 0.8rem;
    }
    
    .recommended::before {
        top: -8px;
        font-size: 0.65rem;
        padding: 4px 10px;
    }
    
    /* Compact controls */
    .controls-heading {
        font-size: 0.95rem;
        margin-top: 6px;
        margin-bottom: 2px;
        line-height: 1.2;
    }
    
    .controls-subheading {
        font-size: 0.6rem;
        margin-bottom: 6px;
        line-height: 1.3;
    }
    
    .controls-container {
        padding: 10px 14px 12px;
        gap: 8px;
        margin-bottom: 10px;
        border-radius: 8px;
    }
    
    .control-group {
        margin-bottom: 0;
    }
    
    .control-group label {
        font-size: 0.68rem;
        margin-bottom: 3px;
        display: block;
        line-height: 1.2;
    }
    
    #gallonDisplay {
        font-size: 0.9rem;
        font-weight: 600;
    }
    
    input[type="range"] {
        height: 4px;
        margin: 4px 0 2px;
    }
    
    input[type="range"]::-webkit-slider-thumb {
        width: 15px;
        height: 15px;
    }
    
    input[type="range"]::-moz-range-thumb {
        width: 15px;
        height: 15px;
    }
    
    select {
        padding: 5px 8px;
        font-size: 0.72rem;
        line-height: 1.2;
    }
    
    /* Collapsible add-ons section */
    .addons-onetime-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-header {
        font-size: 1.25rem;
        margin-bottom: 6px;
    }
    
    .section-subheader {
        font-size: 0.8rem;
        margin-bottom: 15px;
    }
    
    .addons-section,
    .onetime-section {
        padding: 20px 16px;
    }
    
    .section-divider {
        margin: 25px 0;
    }
    
    .price-disclaimer {
        font-size: 0.8rem;
        margin-top: 25px;
    }
    
    .nav-wrapper { padding: 0 15px; }
    .nav-links { width: 85%; }
    .controls-container { 
        flex-direction: column; 
        border-radius: 8px; 
        padding: 10px 14px 12px; 
        gap: 8px;
    }
    .control-group.slider-group { min-width: 100%; }
    .control-group { min-width: 100%; }
    select { width: 100%; }
    .addons-section { padding: 30px 20px; }
    .section-header { font-size: 1.5rem; }
    .addon-item { padding: 20px 24px; }
    .addon-content { gap: 16px; }
    .addon-label { font-size: 0.9375rem; }
    .addon-cost { font-size: 0.9375rem; }
    .onetime-section { padding: 30px 20px; }
    .onetime-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* --- Utility classes added for page-specific layout fixes --- */
.main-header { text-align: center; max-width: 800px; margin: 40px auto; }
.main-header p { font-size: 1.2em; color: var(--text-sub); }

.service-grid-2 { grid-template-columns: 2fr 1fr; max-width: 1000px; margin: 0 auto; align-items: start; }
/* Center the content block while keeping list text left-aligned */
.content-column { padding-right: 30px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.content-column .left-list { max-width: 640px; text-align: left; }

/* Centered features list variant */
.features-list.centered { text-align: center; padding-left: 0; max-width: 640px; }
.features-list.centered li { display: block; padding: 8px 0; border-bottom: none; }
.features-list.centered li::before { margin-right: 8px; }

/* Section title hover animation (matches .service-card hover feel) */
.section-title { color: var(--brand-pool); display: block; margin-bottom: 12px; transition: transform 0.25s ease, color 0.25s ease; }
.section-title:hover,
.content-column:hover .section-title { transform: translateY(-6px); color: var(--cta-solid); }

.left-list { margin-top: 0; padding-left: 20px; }

.highlight-card { box-shadow: 0 10px 20px rgba(0,0,0,0.1); border: 2px solid var(--brand-pool); }
.highlight-card .card-title { color: var(--cta-solid); }

.cta-margin { margin-top: 15px; }

.contact-link { color: white; }
.footer-cta { text-align: center; padding: 10px; }

.nav-dropdown-link { cursor: pointer; }
.nav-quote { margin-top: 20px; text-align: center; }
.nav-quote-link { color: var(--cta-solid); font-weight: bold; }

/* --- Reviews page styles moved from inline in reviews.html --- */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.review-card {
    background: white;
    padding: 35px;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    border: 1px solid #F1F5F9;
    transform: translateZ(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-card:hover {
    will-change: transform;
    transform: translateY(-6px);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.12);
}
.stars { color: #F59E0B; font-size: 1.2em; letter-spacing: 2px; margin-bottom: 15px; }
.review-text { font-style: italic; color: var(--text-main); line-height: 1.6; font-size: 1.05em; }
.review-author { font-weight: 700; color: var(--cta-solid); display: block; margin-top: 20px; }
.review-location { font-size: 0.85em; color: var(--text-sub); text-transform: uppercase; letter-spacing: 0.5px; }

/* Promo CTA section on reviews page */
.promo-cta { text-align: center; margin-top: 60px; background-color: #F0FDFA; padding: 40px; border-radius: 16px; border: 1px solid #CCFBF1; }
.promo-cta p { margin-bottom: 20px; }
.promo-cta .cta-button { max-width: 250px; margin: 0 auto; }

/* --- Google Reviews Widget --- */
.reviews-widget-section {
    background: linear-gradient(135deg, #F0FDFA 0%, #ECFEFF 100%);
    padding: 60px 0;
    margin-top: 60px;
}

.reviews-widget-header {
    text-align: center;
    margin-bottom: 40px;
}

.reviews-widget-header h2 {
    color: var(--cta-solid);
    margin-bottom: 20px;
    font-size: 2.2rem;
}

.reviews-widget-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.rating-stars {
    color: #F59E0B;
    font-size: 1.8rem;
    letter-spacing: 4px;
}

.rating-text {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.rating-score {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--cta-solid);
}

.rating-count {
    color: var(--text-sub);
    font-size: 1rem;
}

.google-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.google-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.reviews-widget-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.review-widget-card {
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    border: 1px solid #E2E8F0;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.review-widget-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-float);
}

.review-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.reviewer-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--cta-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.reviewer-name {
    font-weight: 700;
    color: var(--cta-solid);
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.review-widget-stars {
    color: #F59E0B;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.review-date {
    color: var(--text-sub);
    font-size: 0.85rem;
}

.review-widget-text {
    color: var(--text-main);
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

.reviews-widget-footer {
    text-align: center;
}

.reviews-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cta-solid);
    font-weight: 600;
    font-size: 1.05rem;
    padding: 12px 24px;
    background: white;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.reviews-view-all:hover {
    background: var(--cta-solid);
    color: white;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Placeholder shimmer effect for loading state */
.placeholder-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(64, 224, 208, 0.1), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Responsive adjustments for reviews widget */
@media (max-width: 768px) {
    .addons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    /* Center the last odd item if there's an odd number of add-ons */
    .addons-grid .addon-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }
    
    .addon-card {
        padding: 12px 10px;
    }
    
    .addon-card-title {
        font-size: 0.8rem;
        line-height: 1.2;
    }
    
    .addon-card-price {
        font-size: 0.9rem;
    }
    
    .addon-card-note {
        font-size: 0.65rem;
        line-height: 1.2;
    }
    
    .onetime-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .onetime-card {
        padding: 14px 10px;
    }
    
    .onetime-icon {
        font-size: 2rem;
    }
    
    .onetime-title {
        font-size: 0.85rem;
    }
    
    .onetime-price {
        font-size: 0.85rem;
    }
    
    .reviews-widget-section {
        padding: 40px 0;
    }
    
    .reviews-widget-header h2 {
        font-size: 1.8rem;
    }
    
    .reviews-widget-rating {
        flex-direction: column;
        gap: 10px;
    }
    
    .reviews-widget-carousel {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

