/**
 * Sewer Repair Authority - Complete Responsive CSS
 * Mobile-First Approach
 */

/* ==========================================================================
   CSS RESET & VARIABLES
   ========================================================================== */
:root {
    --primary: #0a2540;
    --primary-light: #0f3460;
    --primary-dark: #061a2e;
    --secondary: #1a73e8;
    --accent: #ff6b35;
    --accent-dark: #e55a2b;
    --emergency: #dc2626;
    --emergency-dark: #b91c1c;
    --success: #059669;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.2);
    --transition: 0.3s ease;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 15px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
    overflow-x: hidden;
}

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


a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
    color: var(--gray-900);
}

/* ==========================================================================
   CONTAINER
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

@media (min-width: 576px) {
    .container { padding: 0 20px; }
}

@media (min-width: 992px) {
    .container { padding: 0 30px; }
}

/* ==========================================================================
   EMERGENCY BAR
   ========================================================================== */
.emergency-bar {
    background: linear-gradient(135deg, var(--emergency) 0%, var(--emergency-dark) 100%);
    color: var(--white);
    padding: 8px 15px;
    text-align: center;
    position: relative;
    z-index: 1001;
    min-height: 38px;
}

.emergency-bar a {
    color: var(--white);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

@media (min-width: 576px) {
    .emergency-bar a { font-size: 14px; }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ==========================================================================
   NAVIGATION - FULLY RESPONSIVE
   ========================================================================== */
.nav {
    background: var(--primary);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    min-height: 62px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    color: var(--white);
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--accent);
}

@media (min-width: 768px) {
    .logo { font-size: 24px; }
}

/* Mobile Toggle Button */
.mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: var(--transition);
}

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

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

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

/* Desktop Navigation Links */
.nav-links {
    display: none;
    gap: 25px;
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    font-size: 15px;
    transition: color var(--transition);
    padding: 5px 0;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--accent);
}

/* Nav CTA Button */
.nav-cta {
    display: none;
    background: var(--accent);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
    align-items: center;
    gap: 8px;
}

.nav-cta:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    width: 100%;
    background: var(--primary-dark);
    padding: 20px;
    margin-top: 15px;
    border-radius: 10px;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu a {
    display: block;
    color: var(--white);
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 15px;
    transition: background var(--transition);
}

.mobile-menu a:hover {
    background: rgba(255,255,255,0.1);
}

/* Desktop View */
@media (min-width: 992px) {
    .mobile-toggle { display: none; }
    .nav-links { display: flex; }
    .nav-cta { display: inline-flex; }
    .mobile-menu { display: none !important; }
}

/* ==========================================================================
   HERO SECTION - RESPONSIVE
   ========================================================================== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #0d3159 50%, var(--primary-light) 100%);
    color: var(--white);
    padding: 40px 0 50px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 70% 50%, rgba(26, 115, 232, 0.15) 0%, transparent 60%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Hero Grid: two-column on desktop */
.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 2rem;
    align-items: center;
}

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

/* Hero Badges */
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.25rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 25px;
    font-size: 11px;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.3px;
    backdrop-filter: blur(4px);
}

.badge svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--accent);
}

/* Hero Heading */
.hero h1 {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 0.75rem;
    color: var(--white);
    letter-spacing: -0.5px;
}

.hero h1 span {
    color: var(--accent);
    display: inline;
}

/* Hero Tagline */
.hero-tagline {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* Hero Description */
.hero-description {
    font-size: 0.975rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
    max-width: 540px;
}

/* Hero CTAs */
.hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 1rem;
}

.hero-ctas .btn-emergency {
    animation: hero-pulse 2s ease-in-out infinite;
    text-align: center;
}

@keyframes hero-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.5); }
    50% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
}

.hero-ctas .btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 700;
}

/* Hero Micro Text */
.hero-micro {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

/* Hero Image */
.hero-image {
    display: none;
    position: relative;
}

.hero-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 6 / 5;
    border-radius: var(--radius-lg);
    object-fit: cover;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.1);
}

/* Floating badge on hero image */
.hero-image-badge {
    position: absolute;
    bottom: -12px;
    right: 20px;
    background: var(--accent);
    color: var(--white);
    padding: 12px 18px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
    line-height: 1.2;
}

.hero-image-badge strong {
    display: block;
    font-size: 1.125rem;
    letter-spacing: 1px;
}

.hero-image-badge span {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.9;
}

/* ---- Hero Responsive ---- */
@media (min-width: 480px) {
    .hero-ctas {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (min-width: 576px) {
    .hero { padding: 50px 0 60px; }
    .hero h1 { font-size: 30px; }
    .badge { font-size: 12px; padding: 7px 14px; }
}

@media (min-width: 768px) {
    .hero { padding: 60px 0 70px; }
    .hero h1 { font-size: 36px; }
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    .hero-image { display: block; }
    .hero-description { font-size: 1.0625rem; }
    .hero-tagline { font-size: 0.9375rem; }
}

@media (min-width: 992px) {
    .hero { padding: 70px 0 80px; }
    .hero h1 { font-size: 42px; }
    .hero-grid {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 4rem;
    }
    .badge { font-size: 13px; padding: 8px 16px; }
    .badge svg { width: 16px; height: 16px; }
}

@media (min-width: 1200px) {
    .hero h1 { font-size: 46px; }
}

/* Quick Response */
.quick-response {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 14px;
}

.response-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-dot {
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@media (min-width: 576px) {
    .quick-response {
        flex-direction: row;
        align-items: center;
    }
}

/* ==========================================================================
   BUTTONS - RESPONSIVE
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    width: 100%;
}

@media (min-width: 480px) {
    .btn { width: auto; }
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255,107,53,0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
}

.btn-secondary:hover {
    background: var(--gray-100);
}

.btn-emergency {
    background: var(--emergency);
    color: var(--white);
}

.btn-emergency:hover {
    background: var(--emergency-dark);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 17px;
}

/* ==========================================================================
   TRUST BAR
   ========================================================================== */
.trust-bar {
    background: var(--gray-50);
    padding: 25px 0;
    border-bottom: 1px solid var(--gray-200);
}

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

.trust-label {
    font-size: 13px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.trust-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.trust-logos img {
    height: 35px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.trust-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@media (min-width: 768px) {
    .trust-logos { gap: 40px; }
    .trust-logos img { height: 45px; }
}

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

.section-header h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.7;
}

@media (min-width: 576px) {
    .section-header { margin-bottom: 50px; }
    .section-header h2 { font-size: 28px; }
    .section-header p { font-size: 16px; }
}

@media (min-width: 768px) {
    .section-header h2 { font-size: 32px; }
    .section-header p { font-size: 17px; }
}

@media (min-width: 992px) {
    .section-header h2 { font-size: 36px; }
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 10px;
}

/* ==========================================================================
   OFFERS SECTION
   ========================================================================== */
.offers-section {
    padding: 50px 0;
    background: var(--white);
}

.offers-grid {
    display: grid;
    gap: 20px;
}

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

.offer-card {
    padding: 30px 25px;
    border-radius: 15px;
    border: 2px solid var(--gray-200);
    background: var(--white);
    position: relative;
    transition: var(--transition);
}

.offer-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.offer-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--white);
    border-color: transparent;
}

.offer-primary h3,
.offer-primary p {
    color: var(--white);
}

.offer-tag {
    position: absolute;
    top: -12px;
    left: 25px;
    background: var(--success);
    color: var(--white);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.offer-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.offer-card p {
    margin-bottom: 20px;
    opacity: 0.9;
    font-size: 15px;
}

.offer-primary .btn {
    background: var(--white);
    color: var(--accent);
}

/* ==========================================================================
   SERVICES SECTION - RESPONSIVE GRID
   ========================================================================== */
.services-section {
    padding: 60px 0;
    background: var(--gray-50);
}

@media (min-width: 768px) {
    .services-section { padding: 80px 0; }
}

.services-grid {
    display: grid;
    gap: 20px;
}

@media (min-width: 576px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); gap: 25px; }
}

.service-card {
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary);
}

.service-featured {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    border: none;
    grid-column: 1 / -1;
}

@media (min-width: 992px) {
    .service-featured { grid-column: span 2; }
}

.service-featured h3,
.service-featured h3 a,
.service-featured p {
    color: var(--white);
}

.service-featured .service-link {
    color: var(--accent);
}

.service-emergency {
    border: 2px solid var(--emergency);
    background: linear-gradient(135deg, #fef2f2 0%, var(--white) 100%);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
}

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

.service-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.service-card h3 a {
    color: var(--gray-900);
    transition: color var(--transition);
}

.service-card h3 a:hover {
    color: var(--secondary);
}

.service-card p {
    color: var(--gray-600);
    font-size: 14px;
    flex-grow: 1;
    line-height: 1.6;
}

.service-features {
    margin: 15px 0;
    padding-left: 0;
}

.service-features li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--secondary);
    font-weight: 600;
    font-size: 14px;
    margin-top: auto;
    padding-top: 15px;
    transition: gap var(--transition);
}

.service-link:hover {
    gap: 12px;
}

/* ==========================================================================
   CONTENT SECTIONS - TWO COLUMN LAYOUT
   ========================================================================== */
.content-section {
    padding: 50px 0;
}

@media (min-width: 768px) {
    .content-section { padding: 80px 0; }
}

.content-grid {
    display: grid;
    gap: 40px;
}

@media (min-width: 992px) {
    .content-grid { grid-template-columns: 1fr 350px; gap: 50px; }
}

.content-main {
    max-width: 100%;
}

.content-main .lead {
    font-size: 17px;
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 25px;
}

@media (min-width: 768px) {
    .content-main .lead { font-size: 19px; }
}

.content-main h3 {
    font-size: 20px;
    margin-top: 35px;
    margin-bottom: 15px;
    color: var(--primary);
}

@media (min-width: 768px) {
    .content-main h3 { font-size: 24px; }
}

.content-main ul {
    margin: 20px 0;
}

.content-main ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.content-main ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

/* Sidebar */
.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-card {
    background: var(--gray-50);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid var(--gray-200);
}

.sidebar-card h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary);
}

.sidebar-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    border: none;
}

.sidebar-cta h4,
.sidebar-cta p {
    color: var(--white);
}

.check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    font-size: 14px;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
    font-size: 16px;
}

/* ==========================================================================
   COMPARISON TABLE - RESPONSIVE
   ========================================================================== */
.comparison-section {
    padding: 60px 0;
    background: var(--primary);
    color: var(--white);
}

@media (min-width: 768px) {
    .comparison-section { padding: 80px 0; }
}

.comparison-section .section-header h2,
.comparison-section .section-header p {
    color: var(--white);
}

.comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -15px;
    padding: 0 15px;
}

.comparison-table {
    width: 100%;
    min-width: 500px;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: left;
    color: var(--gray-800);
    font-size: 14px;
}

@media (min-width: 768px) {
    .comparison-table th,
    .comparison-table td { padding: 18px 20px; font-size: 15px; }
}

.comparison-table thead th {
    background: var(--gray-100);
    font-weight: 700;
    color: var(--gray-900);
}

.comparison-table thead th.trenchless {
    background: var(--success);
    color: var(--white);
}

.comparison-table tbody tr {
    border-bottom: 1px solid var(--gray-200);
}

.comparison-table tbody tr:last-child {
    border-bottom: none;
}

.comparison-table tbody th {
    font-weight: 600;
    background: var(--gray-50);
}

.comparison-table td.highlight {
    color: var(--success);
    font-weight: 600;
    background: rgba(5,150,105,0.05);
}

.table-note {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    opacity: 0.7;
}

/* ==========================================================================
   EMERGENCY SECTION
   ========================================================================== */
.emergency-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--emergency) 0%, var(--emergency-dark) 100%);
    color: var(--white);
    position: relative;
}

@media (min-width: 768px) {
    .emergency-section { padding: 80px 0; }
}

.emergency-content {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.emergency-content h2 {
    color: var(--white);
    font-size: 26px;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .emergency-content h2 { font-size: 32px; }
}

.pas-content {
    text-align: left;
    display: grid;
    gap: 25px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .pas-content { grid-template-columns: repeat(3, 1fr); }
}

.pas-content h3 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255,255,255,0.3);
}

.pas-content p {
    opacity: 0.95;
    font-size: 14px;
    line-height: 1.7;
}

.emergency-cta p {
    margin-top: 15px;
    opacity: 0.8;
    font-size: 14px;
}

/* ==========================================================================
   SERVICE AREAS - RESPONSIVE GRID
   ========================================================================== */
.areas-section {
    padding: 60px 0;
    background: var(--gray-50);
}

@media (min-width: 768px) {
    .areas-section { padding: 80px 0; }
}

.areas-grid {
    display: grid;
    gap: 20px;
}

@media (min-width: 576px) {
    .areas-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
    .areas-grid { grid-template-columns: repeat(3, 1fr); }
}

.area-card {
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.area-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.area-featured {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    border: none;
}

.area-featured h3,
.area-featured p {
    color: var(--white);
}

.area-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.area-neighborhoods {
    font-size: 13px;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 12px;
}

.area-featured .area-neighborhoods {
    color: var(--accent);
}

.area-card p {
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.7;
}

.area-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--secondary);
    font-weight: 600;
    font-size: 14px;
    margin-top: 15px;
    transition: gap var(--transition);
}

.area-link:hover { gap: 12px; }

.area-featured .area-link { color: var(--accent); }

/* ==========================================================================
   ABOUT / OWNER SECTION
   ========================================================================== */
.about-section {
    padding: 60px 0;
    background: var(--white);
}

@media (min-width: 768px) {
    .about-section { padding: 80px 0; }
}

.about-grid {
    display: grid;
    gap: 40px;
    align-items: center;
}

@media (min-width: 992px) {
    .about-grid { grid-template-columns: 350px 1fr; gap: 60px; }
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 15px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: var(--shadow-xl);
}

.credentials {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

@media (min-width: 992px) {
    .credentials {
        left: 20px;
        right: 20px;
        transform: none;
    }
}

.owner-quote {
    background: var(--gray-50);
    border-left: 4px solid var(--accent);
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 0 10px 10px 0;
}

.owner-quote p {
    font-size: 16px;
    font-style: italic;
    color: var(--gray-700);
    line-height: 1.8;
    margin: 0;
}

@media (min-width: 768px) {
    .owner-quote { padding: 25px; }
    .owner-quote p { font-size: 18px; }
}

.signature {
    font-weight: 700;
    color: var(--primary);
    margin-top: 25px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--gray-200);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

@media (min-width: 768px) {
    .stat-number { font-size: 40px; }
}

.stat-label {
    display: block;
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 8px;
}

@media (min-width: 576px) {
    .stat-label { font-size: 13px; }
}

/* ==========================================================================
   ACTIVITY FEED
   ========================================================================== */
.activity-section {
    padding: 50px 0;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
}

@media (min-width: 768px) {
    .activity-section { padding: 70px 0; }
}

.activity-feed {
    display: grid;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.activity-item {
    display: flex;
    gap: 15px;
    background: var(--gray-50);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.activity-item:hover {
    border-color: var(--success);
    box-shadow: var(--shadow);
}

.activity-icon {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--white);
}

.activity-content h4 {
    font-size: 15px;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.activity-content p {
    font-size: 13px;
    color: var(--gray-600);
    margin-bottom: 8px;
    line-height: 1.6;
}

.activity-content time {
    font-size: 11px;
    color: var(--gray-400);
    font-weight: 600;
    text-transform: uppercase;
}

/* ==========================================================================
   FAQ SECTION - RESPONSIVE
   ========================================================================== */
.faq-section {
    padding: 60px 0;
    background: var(--gray-50);
}

@media (min-width: 768px) {
    .faq-section { padding: 80px 0; }
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    cursor: pointer;
    list-style: none;
    transition: background var(--transition);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:hover {
    background: var(--gray-50);
}

.faq-item summary h3 {
    font-size: 15px;
    color: var(--gray-900);
    padding-right: 15px;
    line-height: 1.4;
}

@media (min-width: 576px) {
    .faq-item summary h3 { font-size: 16px; }
}

.faq-toggle {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    position: relative;
}

.faq-toggle::before,
.faq-toggle::after {
    content: '';
    position: absolute;
    background: var(--gray-400);
    transition: transform var(--transition);
}

.faq-toggle::before {
    width: 14px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq-toggle::after {
    width: 2px;
    height: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq-item[open] .faq-toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
    padding: 0 20px 20px;
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.7;
}

@media (min-width: 576px) {
    .faq-answer { font-size: 15px; }
}

/* ==========================================================================
   CONTACT SECTION - RESPONSIVE
   ========================================================================== */
.contact-section {
    padding: 60px 0;
    background: var(--white);
}

@media (min-width: 768px) {
    .contact-section { padding: 80px 0; }
}

.contact-grid {
    display: grid;
    gap: 40px;
}

@media (min-width: 992px) {
    .contact-grid { grid-template-columns: 1fr 1fr; gap: 60px; }
}

.contact-info h2 {
    font-size: 26px;
    margin-bottom: 15px;
}

@media (min-width: 768px) {
    .contact-info h2 { font-size: 32px; }
}

.contact-info > p {
    color: var(--gray-600);
    margin-bottom: 30px;
    font-size: 15px;
    line-height: 1.7;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: var(--gray-50);
    border-radius: 12px;
    transition: var(--transition);
}

.contact-method:hover {
    background: var(--gray-100);
}

.contact-method svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    stroke: var(--secondary);
}

.contact-method span {
    display: flex;
    flex-direction: column;
}

.contact-method strong {
    font-size: 12px;
    color: var(--gray-500);
    text-transform: uppercase;
}

/* Contact Form */
.contact-form {
    background: var(--gray-50);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid var(--gray-200);
}

@media (min-width: 576px) {
    .contact-form { padding: 35px; }
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    gap: 15px;
}

@media (min-width: 480px) {
    .form-row { grid-template-columns: 1fr 1fr; }
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-size: 15px;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(26,115,232,0.1);
}

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

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-checkbox input {
    width: 22px;
    height: 22px;
    accent-color: var(--emergency);
}

.form-checkbox label {
    margin-bottom: 0;
    color: var(--emergency);
    font-weight: 600;
    font-size: 14px;
}

.form-note {
    font-size: 12px;
    color: var(--gray-500);
    text-align: center;
    margin-top: 15px;
    line-height: 1.5;
}

/* ==========================================================================
   FOOTER - RESPONSIVE
   ========================================================================== */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 50px 0 0;
}

@media (min-width: 768px) {
    .footer { padding: 70px 0 0; }
}

.footer-grid {
    display: grid;
    gap: 35px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--gray-700);
}

@media (min-width: 576px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
}

.footer-logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
    display: inline-block;
    margin-bottom: 15px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-800);
    border-radius: 50%;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.footer-social svg {
    width: 20px;
    height: 20px;
    fill: var(--white);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 14px;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact address {
    font-style: normal;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.7;
}

.footer-contact a {
    color: var(--gray-400);
    transition: color var(--transition);
}

.footer-contact a:hover {
    color: var(--accent);
}

.footer-hours {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-700);
}

.footer-hours h5 {
    color: var(--white);
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-hours p {
    font-size: 13px;
    margin-bottom: 5px;
}

/* ZIP Code Section */
.zip-section {
    padding: 35px 0;
    border-bottom: 1px solid var(--gray-700);
}

.zip-section h4 {
    color: var(--white);
    font-size: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.zip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 10px;
    max-width: 700px;
    margin: 0 auto;
}

.zip-grid span {
    background: var(--gray-800);
    padding: 8px 10px;
    border-radius: 6px;
    text-align: center;
    font-size: 13px;
    color: var(--gray-400);
    transition: var(--transition);
}

.zip-grid span:hover {
    background: var(--secondary);
    color: var(--white);
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
    font-size: 13px;
}

.footer-bottom p {
    margin-bottom: 5px;
}

/* ==========================================================================
   MOBILE SOS FOOTER - ALWAYS VISIBLE ON MOBILE
   ========================================================================== */
.mobile-sos {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary);
    padding: 12px 15px;
    z-index: 999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

@media (min-width: 768px) {
    .mobile-sos { display: none; }
}

.sos-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 400px;
    margin: 0 auto;
}

.sos-eta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-size: 12px;
}

.sos-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
}

/* Add padding to body to account for fixed footer on mobile */
@media (max-width: 767px) {
    body { padding-bottom: 70px; }
}

/* ==========================================================================
   BREADCRUMB
   ========================================================================== */
.breadcrumb {
    padding: 15px 0;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.breadcrumb ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
}

.breadcrumb a {
    color: var(--secondary);
}

.breadcrumb span {
    color: var(--gray-600);
}

/* ==========================================================================
   PAGE HERO (for inner pages)
   ========================================================================== */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 50px 0 40px;
    text-align: center;
}

@media (min-width: 768px) {
    .page-hero { padding: 80px 0 60px; }
}

.page-hero h1 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--white);
}

@media (min-width: 576px) {
    .page-hero h1 { font-size: 34px; }
}

@media (min-width: 768px) {
    .page-hero h1 { font-size: 42px; }
}

.page-hero .lead {
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.7;
}

@media (min-width: 768px) {
    .page-hero .lead { font-size: 18px; }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hidden { display: none !important; }

@media (max-width: 575px) {
    .hidden-mobile { display: none !important; }
}

@media (min-width: 576px) {
    .hidden-desktop { display: none !important; }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
    .emergency-bar,
    .nav,
    .mobile-sos,
    .footer-social,
    .btn {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
        padding-bottom: 0;
    }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

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

/* Service Hero Image */
.service-image-section {
    padding: 30px 0;
    background: var(--gray-50);
}

.service-hero-img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* Content Grid with Sidebar */
.content-section {
    padding: 40px 0;
}

.content-grid {
    display: grid;
    gap: 40px;
}

@media (min-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr 350px;
    }
}

.content-main h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 20px;
    color: var(--primary);
}

.content-main h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    margin: 30px 0 15px;
    color: var(--primary);
}

.content-main h4 {
    font-size: 1.125rem;
    margin: 20px 0 10px;
    color: var(--primary);
}

.content-main p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.content-main ul,
.content-main ol {
    margin-bottom: 20px;
    padding-left: 0;
}

.content-main li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.content-main ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
}

/* Process List (Numbered) */
.process-list {
    counter-reset: process;
}

.process-list li {
    counter-increment: process;
    padding-left: 50px;
    margin-bottom: 20px;
}

.process-list li::before {
    content: counter(process);
    position: absolute;
    left: 0;
    top: 0;
    width: 35px;
    height: 35px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

/* Benefits List */
.benefits-list li,
.warning-list li,
.issues-list li {
    padding-left: 30px;
}

.benefits-list li::before {
    content: '✓';
    background: var(--success);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    top: 3px;
}

.warning-list li::before {
    content: '!';
    background: var(--emergency);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    top: 3px;
}

/* Comparison Table */
.comparison-table {
    margin: 30px 0;
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.comparison-table th,
.comparison-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.comparison-table th {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.comparison-table tr:nth-child(even) {
    background: var(--gray-50);
}

/* Specs Box */
.specs-box {
    background: var(--primary);
    color: white;
    padding: 25px;
    border-radius: var(--radius-lg);
    margin: 30px 0;
}

.specs-box h4 {
    color: var(--accent);
    margin-top: 0;
}

.specs-box ul {
    margin: 0;
}

.specs-box li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.specs-box li:last-child {
    border-bottom: none;
}

.specs-box li::before {
    display: none;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, var(--primary) 0%, #0f3460 100%);
    color: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin: 40px 0;
}

.cta-box h3 {
    color: white;
    margin-top: 0;
}

.cta-box p {
    opacity: 0.9;
    margin-bottom: 20px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Solution Cards */
.solution-cards {
    display: grid;
    gap: 20px;
    margin: 30px 0;
}

@media (min-width: 768px) {
    .solution-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

.solution-card {
    background: var(--gray-50);
    padding: 25px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.solution-card h4 {
    margin-top: 0;
}

/* Sidebar Cards */
.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: white;
    padding: 25px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.sidebar-card h4 {
    margin: 0 0 15px;
    font-size: 1.125rem;
    color: var(--primary);
}

.sidebar-card.sidebar-cta {
    background: var(--primary);
    color: white;
    border: none;
}

.sidebar-card.sidebar-cta h4 {
    color: white;
}

.sidebar-card.sidebar-cta p {
    opacity: 0.9;
    margin-bottom: 15px;
}

.sidebar-card.highlight {
    background: linear-gradient(135deg, var(--accent) 0%, #e55a2b 100%);
    color: white;
    border: none;
}

.sidebar-card.highlight h4 {
    color: white;
}

.sidebar-card.warning {
    border-color: var(--emergency);
    border-width: 2px;
}

.offer-price {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 10px 0;
}

/* Sidebar Lists */
.check-list,
.sidebar-links,
.specs-list,
.tree-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.check-list li {
    padding: 8px 0 8px 25px;
    position: relative;
    border-bottom: 1px solid var(--gray-200);
}

.check-list li:last-child {
    border-bottom: none;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

.sidebar-card.sidebar-cta .check-list li::before {
    color: var(--accent);
}

.sidebar-links li {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-200);
}

.sidebar-links li:last-child {
    border-bottom: none;
}

.sidebar-links a {
    color: var(--secondary);
    font-weight: 500;
    text-decoration: none;
}

.sidebar-links a:hover {
    text-decoration: underline;
}

/* ZIP Code Grid */
.zip-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.zip-grid span {
    background: var(--gray-100);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Neighborhood Grid */
.neighborhood-grid {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

@media (min-width: 576px) {
    .neighborhood-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.neighborhood-grid li {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-200);
    padding-left: 0;
}

.neighborhood-grid li::before {
    display: none;
}

/* Services List (Service Area Pages) */
.services-list {
    display: grid;
    gap: 20px;
    margin: 30px 0;
}

.service-item {
    padding: 20px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--secondary);
}

.service-item h4 {
    margin: 0 0 10px;
}

.service-item h4 a {
    color: var(--primary);
    text-decoration: none;
}

.service-item h4 a:hover {
    color: var(--secondary);
}

.service-item p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--gray-600);
}

/* Related Services Section */
.related-services {
    padding: 50px 0;
    background: var(--gray-50);
}

.related-services .services-grid {
    display: grid;
    gap: 25px;
}

@media (min-width: 576px) {
    .related-services .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .related-services .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tree List */
.tree-list li {
    display: inline-block;
    background: var(--gray-100);
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    margin: 3px;
    font-size: 0.875rem;
}

/* ==========================================================================
   HOMEPAGE NEW SECTIONS
   ========================================================================== */

/* (Hero styles consolidated in main hero section above) */

/* --- Trust Signals Bar --- */
section.trust-bar {
    background: var(--primary-dark);
    padding: 1rem 0;
    border-bottom: 3px solid var(--accent);
    border-top: none;
}
section.trust-bar .container { flex-direction: row; }

.trust-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    text-align: center;
}
.trust-item {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.35rem 0.75rem;
    position: relative;
    white-space: nowrap;
}
.trust-item:not(:last-child)::after {
    content: "|";
    position: absolute;
    right: -2px;
    color: rgba(255, 255, 255, 0.25);
    font-weight: 300;
}
@media (min-width: 576px) { .trust-item { font-size: 0.75rem; padding: 0.35rem 1rem; } }
@media (min-width: 768px) { .trust-item { font-size: 0.8125rem; padding: 0.4rem 1.25rem; } }

/* ==========================================================================
   HP-SECTION — Full-width alternating image+text rows
   ========================================================================== */
.hp-section {
    padding: 60px 0;
}
.hp-section--alt {
    background: var(--gray-50);
}
@media (min-width: 768px) { .hp-section { padding: 80px 0; } }
@media (min-width: 992px) { .hp-section { padding: 100px 0; } }

/* --- HP Row: two-column image + text --- */
.hp-row {
    display: grid;
    gap: 2rem;
    align-items: center;
}
@media (min-width: 768px) {
    .hp-row {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}
@media (min-width: 992px) {
    .hp-row { gap: 4rem; }
}

/* Reverse: image on left, text on right */
@media (min-width: 768px) {
    .hp-row--reverse .hp-img { order: -1; }
}

/* Text column */
.hp-text h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}
.hp-text h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}
.hp-text p {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--gray-600);
    margin-bottom: 1.25rem;
}
@media (min-width: 768px) { .hp-text p { font-size: 1.0625rem; } }

.hp-text .btn {
    margin-top: 0.5rem;
}

/* Image column */
.hp-img img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    border-radius: var(--radius-lg);
    object-fit: cover;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Mobile: image on top */
@media (max-width: 767px) {
    .hp-img { order: -1; }
}

/* --- HP Checklist --- */
.hp-checklist {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 1.25rem;
}
.hp-checklist li {
    position: relative;
    padding: 8px 0 8px 30px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-200);
}
.hp-checklist li:last-child { border-bottom: none; }
.hp-checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 800;
    font-size: 1.1rem;
}

/* --- HP CTA Banner (inline between sections) --- */
.hp-cta-banner {
    background: var(--secondary);
    padding: 1.25rem 0;
    text-align: center;
}
.hp-cta-banner p {
    color: var(--white);
    font-size: 1rem;
    margin: 0;
}
.hp-cta-banner a {
    color: var(--white);
    text-decoration: underline;
    font-weight: 700;
}
.hp-cta-banner a:hover { opacity: 0.85; }
@media (min-width: 768px) { .hp-cta-banner p { font-size: 1.125rem; } }

/* ==========================================================================
   HOME SERVICES GRID (2x2 cards with images)
   ========================================================================== */
.home-services-grid {
    display: grid;
    gap: 1.5rem;
}
@media (min-width: 576px) { .home-services-grid { grid-template-columns: repeat(2, 1fr); } }

.home-service-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}
.home-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
    border-color: var(--secondary);
}
.home-service-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 8 / 5;
    object-fit: cover;
}

.home-service-card h3 {
    font-size: 1.125rem;
    color: var(--primary);
    padding: 1.25rem 1.25rem 0.5rem;
    margin: 0;
}
.home-service-card p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.6;
    padding: 0 1.25rem 1.25rem;
    margin: 0;
    flex: 1;
}

/* ==========================================================================
   Remaining sections (reviews, specialist, areas, FAQ, contact, etc.)
   ========================================================================== */

/* Alt Background */
.content-section.alt-bg { background: var(--gray-50); }
.content-section + .content-section:not(.alt-bg) { border-top: 1px solid var(--gray-200); }

/* Section Headers */
.content-section .section-header,
.hp-section .section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 2.5rem;
}
.content-section .section-header h2,
.hp-section .section-header h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.125rem);
    color: var(--primary);
    line-height: 1.25;
}

/* Section Intro paragraph */
.section-intro {
    text-align: center;
    max-width: 800px;
    margin: -1.5rem auto 2.5rem;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--gray-600);
}
@media (min-width: 768px) { .section-intro { font-size: 1.0625rem; } }

/* Reviews Grid */
.reviews-grid { display: grid; gap: 1.5rem; margin-top: 1rem; }
.review-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}
.review-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1); }
.review-stars { color: #f59e0b; font-size: 1.2rem; margin-bottom: 0.875rem; letter-spacing: 2px; }
.review-card p { color: var(--gray-700); line-height: 1.7; margin-bottom: 0; font-style: italic; font-size: 0.9375rem; flex: 1; }
.review-author { font-weight: 700; color: var(--primary); font-size: 0.8125rem; font-style: normal !important; margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--gray-200); }
@media (min-width: 768px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }

/* Specialist Grid */
.specialist-grid {
    display: grid; gap: 2rem; align-items: center; margin-top: 1.5rem;
    background: var(--white); padding: 2rem; border-radius: 12px;
    border: 1px solid var(--gray-200); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.specialist-image img { width: 100%; max-width: 400px; height: auto; aspect-ratio: 4 / 5; border-radius: 10px; object-fit: cover; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12); }
.specialist-content p { color: var(--gray-600); line-height: 1.85; margin-bottom: 1rem; font-size: 1rem; }
.specialist-content p:last-child { margin-bottom: 0; }
.specialist-content strong { color: var(--primary); }
@media (min-width: 768px) { .specialist-grid { grid-template-columns: 260px 1fr; gap: 2.5rem; padding: 2.5rem; } }
@media (min-width: 992px) { .specialist-grid { grid-template-columns: 320px 1fr; gap: 3rem; padding: 3rem; } }

/* Areas Grid */
.content-section .areas-grid { margin-top: 2rem; }

/* Emergency section */
.emergency-content p { font-size: 1.0625rem; line-height: 1.75; opacity: 0.92; max-width: 700px; margin: 0 auto 2rem; }

/* FAQ */
.faq-section .section-header h2 { font-size: clamp(1.5rem, 3.5vw, 2.125rem); }

/* Contact */
.contact-section .contact-info h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); line-height: 1.25; }

/* ==========================================================================
   PERFORMANCE OPTIMIZATIONS
   ========================================================================== */

/* Below-fold sections use contain for paint isolation without CLS */

/* Form Error Styles (moved from JS runtime injection) */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #dc2626;
    background-color: #fef2f2;
}

.error-message {
    display: block;
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

.form-error {
    background: #fef2f2;
    color: #dc2626;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #fecaca;
}

.form-success {
    text-align: center;
    padding: 2rem;
}

.form-success svg {
    color: #059669;
    margin: 0 auto 1rem;
}

.form-success h3 {
    color: #059669;
    margin-bottom: 0.5rem;
}

.form-success p {
    color: #475569;
    margin-bottom: 0.5rem;
}

.form-success a {
    color: #1a73e8;
    font-weight: 600;
}

/* Scroll Animation Styles (moved from JS runtime injection) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Header Scrolled State */
.nav.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html { scroll-behavior: auto; }
}