/*
Theme Name: Quality Affordable Pest Control
Theme URI: https://www.qualityaffordablepestcontrol.ca
Author: Quality Affordable Pest Control
Author URI: https://www.qualityaffordablepestcontrol.ca
Description: Modern WordPress theme for Quality Affordable Pest Control — Canada's trusted pest control, wildlife removal, and exterminator service covering Durham Region, York Region, and Toronto & GTA.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flavor-starter
Tags: pest-control, business, custom-post-types, responsive, modern
*/

/* ==========================================================================
   Design System — CSS Custom Properties
   ========================================================================== */

:root {
    /* Brand Colors */
    --brand-red: #B61F1D;
    --brand-red-hover: #961816;
    --brand-green: #1E4705;
    --brand-green-dark: #122b03;

    /* Legacy aliases for backward compatibility */
    --color-primary: var(--brand-red);
    --color-primary-dark: var(--brand-red-hover);
    --color-primary-light: #fef2f2;
    --color-accent: var(--brand-green);
    --color-accent-dark: var(--brand-green-dark);

    /* Neutrals */
    --dark: #111111;
    --gray-light: #F8F9FA;
    --gray-text: #555555;
    --white: #FFFFFF;
    --border: #E4E4E7;
    --color-dark: var(--dark);
    --color-heading: var(--dark);
    --color-text: var(--gray-text);
    --color-text-light: #94a3b8;
    --color-border: var(--border);
    --color-surface: var(--gray-light);
    --color-white: var(--white);
    --color-success: #16a34a;

    /* Typography */
    --font-heading: 'Archivo Black', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Font Sizes — fluid scale */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
    --text-sm: clamp(0.8125rem, 0.775rem + 0.25vw, 0.875rem);
    --text-base: clamp(0.9375rem, 0.9rem + 0.2vw, 1rem);
    --text-lg: clamp(1.0625rem, 1rem + 0.35vw, 1.125rem);
    --text-xl: clamp(1.1875rem, 1.1rem + 0.45vw, 1.3125rem);
    --text-2xl: clamp(1.4375rem, 1.3rem + 0.7vw, 1.625rem);
    --text-3xl: clamp(1.75rem, 1.5rem + 1.25vw, 2.25rem);
    --text-4xl: clamp(2.125rem, 1.75rem + 1.9vw, 3rem);
    --text-5xl: clamp(2.625rem, 2rem + 3.1vw, 4rem);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    /* Layout */
    --container-max: 1300px;
    --container-narrow: 800px;
    --container-wide: 1400px;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.08), 0 24px 48px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 350ms ease;

    /* Header */
    --header-height: 80px;
    --topbar-height: 40px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--brand-red);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark);
    line-height: 1.15;
    text-transform: uppercase;
}

h2 {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 20px;
    color: var(--brand-green);
    position: relative;
}

/* Decorative accent under centered section headings */
.text-center h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--brand-red);
    margin: 16px auto 0;
    border-radius: 2px;
}

.section--dark .text-center h2::after {
    background: #ff8a8a;
}

ul {
    list-style: none;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.container--narrow {
    max-width: var(--container-narrow);
}

.container--wide {
    max-width: var(--container-wide);
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.text-center { text-align: center; }
.section-pad { padding: 80px 0; }
.bg-light { background: var(--gray-light); }

.section-desc {
    font-size: 17px;
    color: var(--gray-text);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.mt-1 { margin-top: var(--space-md); }
.mt-2 { margin-top: var(--space-xl); }
.mt-3 { margin-top: var(--space-3xl); }
.mt-4 { margin-top: var(--space-4xl); }

/* Grid system */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    line-height: 1;
    position: relative;
    overflow: hidden;
}

.btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.btn--primary,
.btn-red {
    background: var(--brand-red);
    color: var(--white);
}

.btn--primary:hover,
.btn-red:hover {
    background: var(--brand-red-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(182, 31, 29, 0.25);
}

.btn--accent,
.btn-green {
    background: var(--brand-green);
    color: var(--white);
}

.btn--accent:hover,
.btn-green:hover {
    background: var(--brand-green-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(30, 71, 5, 0.25);
}

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

.btn--white:hover {
    background: #f0f0f0;
    color: var(--brand-green);
    transform: translateY(-2px);
}

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

.btn--outline:hover {
    color: var(--brand-red);
    border-color: var(--brand-red);
    transform: translateY(-2px);
}

.btn--sm {
    padding: 10px 20px;
    font-size: 13px;
}

.btn--lg {
    padding: 18px 40px;
    font-size: 17px;
}

/* ==========================================================================
   Topbar
   ========================================================================== */

.topbar {
    background: linear-gradient(135deg, var(--brand-green-dark) 0%, #0d2e00 100%);
    color: var(--white);
    padding: 8px 0;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

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

.topbar__left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.topbar__badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.9);
}

.topbar__badge svg {
    width: 13px;
    height: 13px;
    color: #ff8a8a;
}

.topbar__divider {
    color: rgba(255, 255, 255, 0.25);
    font-weight: 300;
}

.topbar__tagline {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.topbar__contact {
    display: flex;
    gap: 16px;
}

.topbar__contact a {
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.topbar__contact a:first-child {
    background: rgba(255, 255, 255, 0.1);
}

.topbar__contact a:hover {
    background: var(--brand-red);
    color: var(--white);
}

.topbar__contact svg {
    width: 13px;
    height: 13px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: none;
    border-bottom: 2px solid var(--brand-green);
    transition: box-shadow var(--transition-base), background var(--transition-base);
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.site-logo img {
    max-height: 50px;
    width: auto;
}

.site-logo__text {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--brand-green);
    text-transform: uppercase;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.primary-nav {
    display: flex;
    gap: 24px;
    align-items: center;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 14px;
}

.primary-nav > li {
    position: relative;
}

.primary-nav > li > a {
    color: var(--dark);
    padding: 8px 0;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.primary-nav > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-red);
    transition: width var(--transition-base);
}

.primary-nav > li > a:hover::after,
.primary-nav > li.current-menu-item > a::after {
    width: 100%;
}

.primary-nav > li > a:hover {
    color: var(--brand-red);
}

.nav-caret {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

/* Dropdown Menus */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 12px 0;
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 100;
}

.has-dropdown:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.has-dropdown:hover > a .nav-caret {
    transform: rotate(180deg);
}

.sub-menu li a {
    display: block;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-text);
    text-transform: none;
    transition: all var(--transition-fast);
}

.sub-menu li a:hover {
    color: var(--brand-red);
    background: var(--gray-light);
    padding-left: 24px;
}

/* Mega menu */
.mega-menu > .sub-menu,
.mega-menu--4col > .sub-menu {
    min-width: 600px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 16px;
    gap: 0;
}

.mega-menu--4col > .sub-menu {
    min-width: 700px;
    grid-template-columns: repeat(4, 1fr);
}

.mega-menu > .sub-menu li a,
.mega-menu--4col > .sub-menu li a {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 200;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.2s ease;
    border-radius: 2px;
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-overlay {
    display: none;
}

.mobile-dropdown-toggle {
    display: none;
}

/* Header CTA */
.header-cta {
    display: flex;
    gap: 8px;
    align-items: center;
}

.header-cta .btn {
    font-size: 12.5px;
    white-space: nowrap;
}

.header-cta__phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.header-cta__phone svg {
    width: 14px;
    height: 14px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    position: relative;
    color: var(--white);
    overflow: hidden;
}

.hero--home {
    background: linear-gradient(135deg, rgba(30, 71, 5, 0.88) 0%, rgba(18, 43, 3, 0.95) 60%, rgba(12, 28, 2, 0.97) 100%);
    padding: 100px 0 90px;
}

.hero--home::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-red), #ff6b6b, var(--brand-red));
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero__overlay {
    display: none;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero__content {
    padding: 0;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero__badge svg {
    width: 16px;
    height: 16px;
}

.hero__title {
    font-size: clamp(36px, 5vw, 56px);
    color: var(--white);
    margin-bottom: 24px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero__title span {
    color: #ff8a8a;
}

.hero__description {
    font-size: 18px;
    opacity: 0.92;
    margin-bottom: 32px;
    line-height: 1.8;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.hero__trust {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero__trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    opacity: 0.9;
}

.hero__trust-item svg {
    width: 16px;
    height: 16px;
    color: #4ade80;
}

/* Hero form widget */
.form-widget-box {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-widget-box::before {
    content: 'GET YOUR FREE ESTIMATE';
    display: block;
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--brand-green);
    text-align: center;
    margin-bottom: 16px;
    text-transform: uppercase;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gray-light);
}

/* Trust badges in hero */
.trust-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
    align-items: center;
}

.trust-badges img {
    height: 80px;
    object-fit: contain;
    opacity: 0.85;
    transition: all var(--transition-base);
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
    border-radius: var(--radius-sm);
}

.trust-badges img:hover {
    opacity: 1;
    transform: translateY(-2px);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

/* Interior page hero */
.hero--interior {
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-dark) 100%);
    padding: 70px 0;
    text-align: center;
}

.hero--has-bg {
    padding: 80px 0;
}

.hero--interior .container {
    display: block;
}

.hero--interior h1 {
    font-size: clamp(28px, 4vw, 44px);
    color: var(--white);
    margin-bottom: 12px;
}

.hero--interior p {
    font-size: 18px;
    opacity: 0.85;
    max-width: 700px;
    margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 14px;
    margin-bottom: 16px;
    opacity: 0.7;
}

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

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Offers Strip
   ========================================================================== */

.offers-strip {
    background: var(--brand-red);
    color: var(--white);
    padding: 18px 0;
    text-align: center;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 18px;
    letter-spacing: 0.03em;
    position: relative;
    overflow: hidden;
}

.offers-strip::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(50%); }
}

/* ==========================================================================
   Stats Strip
   ========================================================================== */

.stats-strip {
    background: var(--brand-green-dark);
    padding: 24px 0;
    position: relative;
    overflow: hidden;
}

.stats-strip .container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.stat-item {
    text-align: center;
    padding: 12px 20px;
    color: var(--white);
}

.stat-item__number {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(28px, 3vw, 36px);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.stat-item__label {
    font-size: 13px;
    opacity: 0.75;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
    padding: 80px 0;
}

.section--surface {
    background: var(--gray-light);
}

.section--dark {
    background: var(--brand-green-dark);
    color: var(--white);
}

.section--dark h2 {
    color: var(--white);
}

.section--sm {
    padding: 40px 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 48px;
}

.section-heading h2 {
    color: var(--brand-green);
}

.section--dark .section-heading h2 {
    color: var(--white);
}

.section-heading p {
    font-size: 18px;
    color: var(--gray-text);
    max-width: 700px;
    margin: 0 auto;
}

.section--dark .section-heading p {
    color: rgba(255, 255, 255, 0.7);
}

.section-heading__label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(30, 71, 5, 0.08);
    color: var(--brand-green);
    font-size: 13px;
    font-weight: 800;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section--dark .section-heading__label {
    background: rgba(255, 255, 255, 0.1);
    color: #ff8a8a;
}

/* ==========================================================================
   Services Intro Box
   ========================================================================== */

.services-intro-box {
    background: var(--white);
    padding: 56px;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1px solid var(--border);
}

.services-intro-box h2 {
/*     color: var(--dark);
    font-size: 32px; */
}

.features-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin: 30px 0;
    background: var(--gray-light);
    padding: 24px 32px;
    border-radius: var(--radius-lg);
    font-weight: 800;
    color: var(--brand-green);
    font-size: 15px;
}

.features-row div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.check-icon {
    color: var(--brand-red);
    font-size: 18px;
}

/* Experience highlight box */
.experience-highlight {
    background: linear-gradient(135deg, var(--gray-light) 0%, #e2e8f0 100%);
    padding: 30px;
    border-radius: var(--radius-lg);
    margin: 30px 0;
}

.experience-highlight p {
    font-size: 16px;
    color: var(--dark);
    margin-bottom: 20px;
}

/* Home CTA box (red gradient) */
.home-cta-box {
    background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-hover) 100%);
    padding: 56px;
    border-radius: var(--radius-2xl);
    text-align: center;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

.home-cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.home-cta-box h3 {
    color: var(--white);
    font-size: clamp(24px, 3vw, 32px);
    margin-bottom: 16px;
}

.home-cta-box p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 18px;
    margin-bottom: 28px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* SEO Content Block (Smarter, Safer approach) */
.seo-content-block h2 {
    color: var(--brand-green);
    margin-bottom: 16px;
}

.seo-content-block > p {
    font-size: var(--text-lg);
    color: var(--gray-text);
    line-height: 1.8;
    margin-bottom: 32px;
}

.seo-steps-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.seo-step {
    display: flex;
    gap: 20px;
    background: var(--white);
    padding: 28px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all var(--transition-base);
}

.seo-step:hover {
    border-color: var(--brand-red);
    box-shadow: 0 6px 20px rgba(182, 31, 29, 0.08);
    transform: translateY(-2px);
}

.seo-step__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--brand-red);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 20px;
    border-radius: 50%;
    flex-shrink: 0;
}

.seo-step h3 {
    font-size: 17px;
    color: var(--brand-green);
    margin-bottom: 8px;
}

.seo-step p {
    font-size: 14px;
    color: var(--gray-text);
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 768px) {
    .home-cta-box {
        padding: 30px 20px;
    }
    .seo-step {
        padding: 20px;
    }
}

/* ==========================================================================
   Service Cards / Pest Cards
   ========================================================================== */

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
}

.service-card:hover {
    border-color: var(--brand-red);
    box-shadow: 0 12px 32px rgba(182, 31, 29, 0.12);
    transform: translateY(-6px);
}

.service-card__image {
    overflow: hidden;
    height: 200px;
}

.service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.service-card:hover .service-card__image img {
    transform: scale(1.05);
}

.service-card__body {
    padding: 24px;
}

.service-card__body h3 {
    font-size: 17px;
    color: var(--brand-green);
    margin-bottom: 8px;
}

.service-card__body p {
    font-size: 14px;
    color: var(--gray-text);
    line-height: 1.7;
    margin-bottom: 16px;
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    font-size: 14px;
    color: var(--brand-red);
    text-transform: uppercase;
}

.service-card__link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

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

/* Blog Card (Recent Posts) */
.blog-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.blog-card__image {
    display: block;
    overflow: hidden;
    aspect-ratio: 3/2;
    background: var(--gray-light);
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.blog-card:hover .blog-card__image img {
    transform: scale(1.05);
}

.blog-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--border);
}

.blog-card__placeholder svg {
    width: 48px;
    height: 48px;
}

.blog-card__body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card__date {
    font-size: 13px;
    color: var(--color-text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.blog-card__title {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.blog-card__title a {
    color: var(--dark);
}

.blog-card__title a:hover {
    color: var(--brand-red);
}

.blog-card__excerpt {
    font-size: 14px;
    color: var(--gray-text);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.blog-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-red);
    text-transform: uppercase;
}

.blog-card__link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.blog-card:hover .blog-card__link svg {
    transform: translateX(4px);
}

/* Pest Grid (icon cards) */
.pest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.pest-card {
    background: var(--white);
    padding: 32px 20px 28px;
    text-align: center;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    transition: all var(--transition-base);
}

.pest-card:hover {
    border-color: var(--brand-red);
    box-shadow: 0 12px 32px rgba(182, 31, 29, 0.12);
    transform: translateY(-6px);
}

.pest-card img {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    object-fit: contain;
    transition: transform var(--transition-base);
    padding: 10px;
    background: rgba(30, 71, 5, 0.06);
    border-radius: 50%;
}

.pest-card:hover img {
    transform: scale(1.1);
    background: rgba(182, 31, 29, 0.08);
}

.pest-card h3 {
    font-size: 14px;
    color: var(--brand-green);
    line-height: 1.3;
}

/* ==========================================================================
   Feature / Why Choose Us
   ========================================================================== */

.feature-box {
    text-align: center;
    padding: 32px 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.feature-box:hover {
    border-color: var(--brand-red);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.feature-box__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 71, 5, 0.08);
}

.feature-box__icon svg {
    width: 26px;
    height: 26px;
    color: var(--brand-green);
}

.feature-box__title {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--brand-red);
}

.feature-box__text {
    font-size: 14px;
    color: var(--gray-text);
    line-height: 1.7;
}

/* Why Items (horizontal layout) */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 24px;
}

.why-item {
    display: flex;
    gap: 20px;
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    transition: all var(--transition-base);
}

.why-item:hover {
    border-color: var(--brand-red);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.why-item img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex-shrink: 0;
    padding: 8px;
    background: rgba(182, 31, 29, 0.06);
    border-radius: var(--radius-lg);
}

.why-item:hover img {
    background: rgba(182, 31, 29, 0.1);
}

.why-item h3 {
    font-size: 17px;
    color: var(--brand-red);
    margin-bottom: 8px;
}

.why-item p {
    color: var(--gray-text);
    font-size: 14px;
    line-height: 1.7;
}

/* ==========================================================================
   Badge Row
   ========================================================================== */

.badge-row {
    background: var(--white);
    padding: 48px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
}

.badge-row::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--gray-light) 0%, transparent 30%, transparent 70%, var(--gray-light) 100%);
    pointer-events: none;
    opacity: 0.4;
}

.badge-flex {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.badge-flex img {
    height: 80px;
    object-fit: contain;
    transition: transform var(--transition-base);
}

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

/* ==========================================================================
   Awards Section
   ========================================================================== */

.award-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.award-item {
    display: flex;
    gap: 24px;
    background: var(--white);
    padding: 36px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all var(--transition-base);
}

.award-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--brand-green);
}

.award-item img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    flex-shrink: 0;
    padding: 8px;
    background: rgba(30, 71, 5, 0.04);
    border-radius: var(--radius-lg);
}

.award-item h3 {
    font-size: 20px;
    color: var(--brand-green);
    margin-bottom: 10px;
}

.award-item p {
    color: var(--gray-text);
    line-height: 1.7;
}

/* ==========================================================================
   CTA Banner
   ========================================================================== */

.cta-banner {
    background: linear-gradient(135deg, rgba(182, 31, 29, 0.92), rgba(150, 24, 22, 0.95));
    padding: 100px 0;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.cta-banner h2 {
    color: var(--white);
    font-size: clamp(32px, 5vw, 52px);
    margin-bottom: 16px;
}

.cta-banner p {
    font-size: 22px;
    margin-bottom: 36px;
    font-weight: 600;
    opacity: 0.95;
}

.cta-phone-lg {
    margin-top: 24px;
    font-size: 28px;
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.cta-phone-lg a {
    color: var(--white);
    border-bottom: 2px solid rgba(255,255,255,0.4);
    padding-bottom: 2px;
}

.cta-phone-lg a:hover {
    color: var(--white);
    border-bottom-color: var(--white);
}

/* ==========================================================================
   Split Cards (Residential / Commercial)
   ========================================================================== */

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.split-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    transition: all var(--transition-base);
    border: 1px solid var(--border);
}

.split-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

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

.split-content {
    padding: 36px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

.split-content h3 {
    font-size: 26px;
    margin-bottom: 16px;
    color: var(--brand-green);
}

.split-content p {
    color: var(--gray-text);
    margin-bottom: 24px;
    line-height: 1.7;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonials-section {
    background: linear-gradient(160deg, var(--brand-green-dark) 0%, #0a1f02 100%);
    padding: 80px 0;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(182, 31, 29, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.testimonials-section h2 {
    color: var(--white);
}

.test-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.test-scroll::-webkit-scrollbar {
    height: 6px;
}

.test-scroll::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
}

.test-scroll::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

.test-card {
    min-width: 350px;
    background: rgba(255,255,255,0.06);
    padding: 32px;
    border-radius: var(--radius-xl);
    scroll-snap-align: start;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all var(--transition-base);
    backdrop-filter: blur(8px);
    position: relative;
}

.test-card::before {
    content: '\201C';
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 60px;
    font-family: Georgia, serif;
    color: rgba(255, 255, 255, 0.06);
    line-height: 1;
    pointer-events: none;
}

.test-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.stars {
    color: #FFD700;
    font-size: 20px;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.test-text {
    font-style: italic;
    opacity: 0.9;
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 15px;
}

.test-name {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 14px;
    color: #ff8a8a;
    letter-spacing: 0.03em;
}

/* Testimonial scroll navigation */
.test-scroll-wrap {
    position: relative;
}

.test-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    backdrop-filter: blur(4px);
}

.test-scroll-btn:hover {
    background: var(--brand-red);
    border-color: var(--brand-red);
    transform: translateY(-50%) scale(1.1);
}

.test-scroll-btn svg {
    width: 20px;
    height: 20px;
}

.test-scroll-btn--prev {
    left: -8px;
}

.test-scroll-btn--next {
    right: -8px;
}

@media (max-width: 992px) {
    .test-scroll-btn {
        display: none;
    }
}

/* Testimonial cards (grid layout - archive pages) */
.testimonial-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition-base);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.testimonial-card__stars {
    display: flex;
    gap: 2px;
    color: #fbbf24;
    margin-bottom: 16px;
}

.testimonial-card__stars svg {
    width: 18px;
    height: 18px;
}

.testimonial-card__text {
    font-size: 15px;
    color: var(--gray-text);
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-card__author {
    font-weight: 800;
    font-size: 14px;
    color: var(--dark);
    text-transform: uppercase;
}

.testimonial-card__location {
    font-size: 13px;
    color: var(--gray-text);
}

/* ==========================================================================
   Bottom Estimate
   ========================================================================== */

.estimate-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.estimate-img {
    text-align: center;
}

.estimate-img img {
    max-height: 500px;
    margin: 0 auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
}

/* ==========================================================================
   Location Cards
   ========================================================================== */

.location-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 14px;
}

.location-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--brand-red);
    color: var(--white);
    transform: translateY(-2px);
}

.location-card svg {
    width: 18px;
    height: 18px;
    color: var(--brand-red);
    flex-shrink: 0;
}

/* ==========================================================================
   Archive Pages
   ========================================================================== */

/* Stats Strip */
.archive-stats-strip {
    background: var(--brand-green-dark);
    padding: 0;
    border-bottom: 3px solid var(--brand-red);
}

.archive-stats {
    display: flex;
    justify-content: center;
    gap: 0;
}

.archive-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    position: relative;
}

.archive-stat + .archive-stat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.archive-stat__number {
    font-family: var(--font-heading);
    font-size: clamp(24px, 3vw, 32px);
    color: var(--white);
    line-height: 1;
}

.archive-stat__label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 6px;
}

/* Archive Intro */
.archive-intro {
    max-width: 100%;
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

.archive-intro__text {
    flex: 1;
    min-width: 300px;
}

.archive-intro__text p {
    font-size: var(--text-lg);
    color: var(--gray-text);
    line-height: 1.8;
}

.archive-intro__features {
    flex-shrink: 0;
}

.archive-intro__features .features-row {
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 24px 32px;
    background: var(--white);
    border: 2px solid var(--brand-green);
    border-radius: var(--radius-lg);
}

/* Listing Header */
.archive-listing-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border);
}

.archive-listing-header h2 {
    font-size: var(--text-2xl);
    color: var(--brand-green);
    margin: 0;
}

.archive-listing-count {
    font-size: var(--text-sm);
    color: var(--gray-text);
    background: var(--white);
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

/* Region Titles (locations) */
.archive-region-title {
    font-size: var(--text-xl);
    color: var(--brand-green);
    margin: 32px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.archive-region-title:first-child {
    margin-top: 0;
}

/* Location grid dark background */
.archive-location-grid {
    background: var(--brand-green);
    padding: 24px;
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
}

/* Cross-links */
.archive-cross-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.archive-cross-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--dark);
    font-weight: 700;
    font-size: 15px;
    transition: all var(--transition-base);
}

.archive-cross-link:hover {
    border-color: var(--brand-red);
    box-shadow: 0 8px 24px rgba(182, 31, 29, 0.1);
    transform: translateY(-3px);
    color: var(--brand-red);
}

.archive-cross-link__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--brand-green);
    color: var(--white);
    border-radius: 50%;
    flex-shrink: 0;
}

.archive-cross-link__icon svg {
    width: 18px;
    height: 18px;
}

.archive-cross-link__label {
    flex: 1;
}

.archive-cross-link__arrow {
    color: var(--gray-text);
    transition: transform var(--transition-base);
}

.archive-cross-link__arrow svg {
    width: 16px;
    height: 16px;
}

.archive-cross-link:hover .archive-cross-link__arrow {
    color: var(--brand-red);
    transform: translateX(4px);
}

/* Why-item icon fallback (when not using images) */
.why-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(182, 31, 29, 0.08);
    color: var(--brand-red);
    border-radius: 50%;
    flex-shrink: 0;
}

.why-item__icon svg {
    width: 24px;
    height: 24px;
}

/* Archive responsive */
@media (max-width: 768px) {
    .archive-stats {
        flex-wrap: wrap;
    }
    .archive-stat {
        flex: 0 0 50%;
        padding: 18px 12px;
    }
    .archive-stat:nth-child(odd)::before {
        display: none;
    }
    .archive-intro {
        flex-direction: column;
    }
    .archive-listing-header {
        flex-direction: column;
        gap: 8px;
    }
    .archive-cross-links {
        grid-template-columns: 1fr;
    }
}

/* Locations box (multi-column list) */
.locations-box {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 60px;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
}

.loc-columns {
    column-count: 4;
    column-gap: 40px;
}

.loc-columns li {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    break-inside: avoid;
}

.loc-columns a {
    transition: all 0.2s;
    display: inline-block;
}

.loc-columns a:hover {
    color: var(--brand-red);
    padding-left: 5px;
}

/* ==========================================================================
   Guarantee Badge
   ========================================================================== */

.guarantee-badge {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px 40px;
    background: var(--brand-green);
    border-radius: var(--radius-lg);
    color: var(--white);
}

.guarantee-badge__icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.guarantee-badge__icon svg {
    width: 28px;
    height: 28px;
}

.guarantee-badge h4 {
    color: var(--white);
    margin-bottom: 6px;
}

.guarantee-badge p {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.6;
}

/* ==========================================================================
   Blog Post Cards
   ========================================================================== */

.post-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-red);
}

.post-card__image {
    overflow: hidden;
    height: 200px;
}

.post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.post-card:hover .post-card__image img {
    transform: scale(1.05);
}

.post-card__body {
    padding: 24px;
}

.post-card__meta {
    font-size: 13px;
    color: var(--gray-text);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.post-card__title {
    font-size: 17px;
    margin-bottom: 8px;
}

.post-card__title a {
    color: var(--dark);
}

.post-card__title a:hover {
    color: var(--brand-red);
}

.post-card__excerpt {
    font-size: 14px;
    color: var(--gray-text);
    line-height: 1.7;
    margin-bottom: 16px;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    align-items: start;
}

/* Prevent imported content from breaking out of grid */
.content-with-sidebar > .detail-content {
    min-width: 0;
    overflow: hidden;
}

.content-with-sidebar > .sidebar {
    min-width: 0;
}

.sidebar-widget {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-widget__title {
    font-size: 16px;
    color: var(--brand-green);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.sidebar-links li {
    margin-bottom: 8px;
}

.sidebar-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-text);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.sidebar-links a:hover {
    background: var(--gray-light);
    color: var(--brand-red);
    padding-left: 16px;
}

.sidebar-links svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Sidebar CTA */
.sidebar-cta {
    background: var(--brand-green);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
}

.sidebar-cta h4 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 12px;
}

.sidebar-cta p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.sidebar-cta .btn {
    width: 100%;
}

/* ==========================================================================
   Page Content
   ========================================================================== */

.page-content {
    padding: 60px 0;
}

.page-content h2 {
    margin-top: 40px;
}

.page-content h3 {
    margin-top: 28px;
    color: var(--brand-green);
}

.page-content p {
    color: var(--gray-text);
    line-height: 1.8;
    margin-bottom: 20px;
}

.page-content ul,
.page-content ol {
    color: var(--gray-text);
    padding-left: 24px;
    margin-bottom: 20px;
    list-style: disc;
}

.page-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}



/* Visual separation for imported content sections */
.page-content h2 + p,
.page-content h2 + ul,
.page-content h2 + ol,
.page-content h3 + p,
.page-content h3 + ul,
.page-content h3 + ol {
    padding-top: 4px;
}

.page-content h2 {
    padding-top: 24px;
    border-top: 2px solid var(--border);
}

.page-content h2:first-child,
.page-content figure + h2,
.page-content figure.detail-hero-img + h2 {
    border-top: none;
    padding-top: 0;
}

.page-content strong {
    color: var(--dark);
}

/* Detail hero image */
.detail-hero-img {
    margin-bottom: 32px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.detail-hero-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* Location map embed */
.location-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.location-map iframe {
    width: 100%;
    height: 400px;
    display: block;
}

/* ==========================================================================
   Footer
   ========================================================================== */

/* Footer CTA Strip */
.footer-cta-strip {
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-dark) 100%);
    padding: 48px 0;
    position: relative;
    overflow: hidden;
}

.footer-cta-strip::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.footer-cta-strip__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-cta-strip__text h3 {
    color: var(--white);
    font-size: clamp(20px, 3vw, 26px);
    margin-bottom: 6px;
}

.footer-cta-strip__text p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 15px;
}

.footer-cta-strip__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.site-footer {
    background: var(--dark);
    color: var(--white);
}

.footer-main {
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-grid--5col {
    grid-template-columns: 1.8fr 1fr 1fr 1fr 1.2fr;
}

.footer-col--brand {
    padding-right: 20px;
}

.footer-brand img {
    filter: brightness(0) invert(1);
    max-height: 50px;
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 14px;
    opacity: 0.7;
    line-height: 1.7;
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background: var(--brand-red);
    transform: translateY(-3px);
    color: var(--white);
}

.footer-social a svg {
    width: 18px;
    height: 18px;
    color: #d4d4d8;
}

.footer-heading {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--brand-red);
    font-size: 15px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: all 0.2s;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--brand-red);
    transform: translateX(3px);
}

.footer-contact-item {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
}

.footer-contact-item svg {
    width: 18px;
    height: 18px;
    color: var(--brand-red);
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-contact-item span {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.footer-contact-item a,
.footer-contact-item p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
}

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

.footer-bottom__sep {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Back to Top
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--brand-red);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 999;
    box-shadow: 0 4px 12px rgba(182, 31, 29, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--brand-red-hover);
    transform: translateY(-3px);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    fill: var(--white);
}

/* ==========================================================================
   Scroll Animations
   ========================================================================== */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Forms
   ========================================================================== */

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

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 15px;
    transition: border-color var(--transition-fast);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-green);
    box-shadow: 0 0 0 3px rgba(30, 71, 5, 0.1);
}

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

/* ==========================================================================
   WordPress Core (WP alignment, galleries, etc)
   ========================================================================== */

.alignwide {
    margin-left: -48px;
    margin-right: -48px;
    max-width: calc(100% + 96px);
}

.alignfull {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
}

.wp-block-image figcaption {
    font-size: 13px;
    color: var(--gray-text);
    text-align: center;
    margin-top: 8px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 992px) {
    .hero .container,
    .award-grid,
    .split-grid,
    .estimate-grid {
        grid-template-columns: 1fr;
    }

    .loc-columns {
        column-count: 2;
    }

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

    /* Mobile nav */
    .nav-wrapper {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 30px;
        box-shadow: var(--shadow-lg);
        border-top: 3px solid var(--brand-red);
        z-index: 999;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
    }

    .nav-wrapper.open {
        display: flex;
    }

    .primary-nav {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .primary-nav > li > a {
        padding: 12px 0;
        display: block;
        border-bottom: 1px solid var(--border);
    }

    .primary-nav > li > a::after {
        display: none;
    }

    /* Mobile accordion menu items */
    .primary-nav > li {
        border-bottom: 1px solid var(--border);
    }

    .primary-nav > li.has-dropdown {
        position: relative;
    }

    .primary-nav > li.has-dropdown > a {
        padding-right: 50px;
    }

    /* Hide the inline nav-caret on mobile since we use the toggle button */
    .primary-nav > li.has-dropdown > a .nav-caret {
        display: none;
    }

    .mobile-dropdown-toggle {
        position: absolute;
        top: 0;
        right: 0;
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        border-left: 1px solid var(--border);
        cursor: pointer;
        color: var(--gray-text);
        transition: transform var(--transition-fast), color var(--transition-fast);
    }

    .mobile-dropdown-toggle:hover {
        color: var(--brand-red);
    }

    .accordion-open > .mobile-dropdown-toggle {
        transform: rotate(180deg);
        color: var(--brand-red);
    }

    .sub-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        padding: 0;
        min-width: auto;
        display: none;
        background: var(--gray-light);
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    /* Only show submenu in accordion-open state */
    .has-dropdown.accordion-open > .sub-menu {
        display: block;
        max-height: 600px;
        padding: 8px 0;
    }

    /* Disable hover-based opening on mobile */
    .has-dropdown:hover > .sub-menu,
    .has-dropdown.active > .sub-menu {
        display: none;
    }

    .has-dropdown.accordion-open:hover > .sub-menu,
    .has-dropdown.accordion-open.active > .sub-menu {
        display: block;
    }

    .sub-menu li a {
        padding: 10px 20px;
        font-size: 14px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .mega-menu > .sub-menu,
    .mega-menu--4col > .sub-menu {
        min-width: auto;
        grid-template-columns: 1fr;
        display: none;
    }

    .mega-menu.accordion-open > .sub-menu,
    .mega-menu--4col.accordion-open > .sub-menu {
        display: block;
        max-height: 600px;
        padding: 8px 0;
    }

    .nav-toggle {
        display: block;
    }

    .header-cta {
        width: 100%;
        flex-direction: column;
    }

    .header-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .header-cta__phone {
        order: -1;
    }

    .mobile-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }

    .mobile-overlay.open {
        display: block;
    }

    .content-with-sidebar {
        grid-template-columns: 1fr;
    }

    .footer-grid,
    .footer-grid--5col {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-cta-strip__inner {
        justify-content: center;
        text-align: center;
    }

    .footer-cta-strip__actions {
        justify-content: center;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .estimate-grid > div:first-child { order: 2; }
    .estimate-grid > div:last-child { order: 1; }

    .mega-menu > .sub-menu,
    .mega-menu--4col > .sub-menu {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .mobile-dropdown-toggle {
        display: flex;
    }
}

@media (max-width: 600px) {
    .loc-columns { column-count: 1; }
    .footer-grid,
    .footer-grid--5col { grid-template-columns: 1fr; }
    .test-card { min-width: 280px; }
    .hero__title { font-size: 32px; }

    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: 1fr;
    }

    .topbar .container {
        justify-content: center;
        text-align: center;
    }

    .topbar__left {
        justify-content: center;
        width: 100%;
    }

    .topbar__divider,
    .topbar__tagline {
        display: none;
    }

    .topbar__contact {
        justify-content: center;
        width: 100%;
    }

    .features-row { gap: 20px; }
    .split-img { height: 200px; }
    .locations-box { padding: 30px 20px; }
    .cta-banner { padding: 60px 0; }
    .services-intro-box { padding: 30px 20px; }

    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }

    .guarantee-badge {
        flex-direction: column;
        text-align: center;
    }
}

/* ═══════════════════════════════════════════════════════════════
   ACCESSIBILITY — Focus Styles
   ═══════════════════════════════════════════════════════════════ */

/* Global focus-visible ring for keyboard users */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--brand-green);
    outline-offset: 2px;
}

/* Remove default outline on mouse click */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
.btn:focus:not(:focus-visible) {
    outline: none;
}

/* Skip-to-content link (screen reader & keyboard) */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-green);
    color: var(--white);
    padding: 12px 24px;
    z-index: 10000;
    border-radius: var(--radius-md);
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    top: 10px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .fade-in {
        opacity: 1 !important;
        transform: none !important;
    }
}


.page-content a,
.page-content a * {
    color: var(--brand-red) !important;
}

.page-content a:hover,
.page-content a:hover * {
    color: var(--brand-green) !important;
}