/*
Theme Name: Local Essex
Theme URI: https://localessex.org
Author: Samaroo Solutions
Author URI: https://samaroosolutions.com
Description: Local Essex – Essex County NJ Business Directory. Custom theme by Samaroo Solutions.
Version: 1.0.0
License: Private
Text Domain: local-essex
*/

/* ═══════════════════════════════════════
   VARIABLES & RESET
═══════════════════════════════════════ */
:root {
    --red:        #b60534;
    --red-dark:   #8c0427;
    --red-light:  #F5E0E3;
    --blue:       #012969;
    --blue-dark:  #011a47;
    --blue-navy:  #0D1A4A;
    --gold:       #FFD700;
    --gold-dark:  #E5C000;
    --white:      #FFFFFF;
    --off-white:  #F8F8FC;
    --light-gray: #F2F2F6;
    --mid-gray:   #E0E0E8;
    --text:       #1A1A2E;
    --text-muted: #5A5A72;
    --shadow-sm:  0 2px 8px rgba(0,0,40,0.08);
    --shadow-md:  0 4px 20px rgba(0,0,40,0.12);
    --shadow-lg:  0 8px 40px rgba(0,0,40,0.16);
    --radius:     10px;
    --radius-lg:  16px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

/* ═══════════════════════════════════════
   TOP UTILITY BAR
═══════════════════════════════════════ */
.top-bar {
    background: var(--blue-navy);
    padding: 8px 0;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar a { color: rgba(255,255,255,0.8); transition: color .2s; }
.top-bar a:hover { color: var(--gold); }
.top-bar-left { display: flex; align-items: center; gap: 8px; }
.top-bar-right { display: flex; align-items: center; gap: 6px; }
.social-icons { display: flex; gap: 6px; }
.social-icons a {
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
    font-size: 12px; font-weight: 600;
    transition: background .2s, color .2s;
}
.social-icons a:hover { background: var(--gold); color: var(--blue-navy); }
.top-bar-link {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    padding: 4px 10px;
    border-radius: 4px;
    transition: color .2s, background .2s;
    white-space: nowrap;
}
.top-bar-link:hover { color: var(--gold); background: rgba(255,255,255,0.06); }
.top-bar-link.highlight {
    color: var(--gold);
    border: 1px solid rgba(255,215,0,0.35);
    font-weight: 600;
}
.top-bar-link.highlight:hover { background: rgba(255,215,0,0.12); }
.top-bar-divider {
    width: 1px; height: 14px;
    background: rgba(255,255,255,0.15);
    flex-shrink: 0;
}

/* ═══════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════ */
.navbar {
    background: var(--white);
    border-bottom: 3px solid var(--red);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform .32s ease, box-shadow .25s ease;
    will-change: transform;
}
/* Sticky-header states (toggled in nav.js): compact on scroll, slide away past hero */
.navbar.is-hidden { transform: translateY(-100%); }
.navbar.is-scrolled { box-shadow: 0 4px 18px rgba(0,0,0,0.12); }
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 24px;
    transition: padding .22s ease;
}
.navbar.is-scrolled .container { padding-top: 8px; padding-bottom: 8px; }
.navbar-logo img {
    height: 44px;
    width: auto;
    transition: height .22s ease;
}
.navbar.is-scrolled .navbar-logo img { height: 34px; }
.navbar.is-scrolled .navbar-logo-fallback { font-size: 17px; }
@media (prefers-reduced-motion: reduce) {
    .navbar, .navbar .container, .navbar-logo img { transition: none; }
}
.navbar-logo-fallback {
    font-size: 20px; font-weight: 900;
    color: var(--blue);
    letter-spacing: -0.5px;
}
.navbar-logo-fallback span { color: var(--red); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}
.nav-links a {
    font-size: 14px; font-weight: 500;
    color: var(--text);
    padding: 8px 12px;
    border-radius: 6px;
    transition: background .2s, color .2s;
    white-space: nowrap;
}
.nav-links a:hover { background: var(--light-gray); color: var(--blue); }
.nav-links a.active { color: var(--red); font-weight: 600; }

.nav-dropdown {
    position: relative;
}
.nav-dropdown > a::after {
    content: ' ▾';
    font-size: 11px;
}
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--white);
    border: 1px solid var(--mid-gray);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 16px;
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px 24px;
    min-width: 540px;
    z-index: 200;
}
@media (hover: hover) and (pointer: fine) {
    .nav-dropdown:hover .dropdown-menu { display: grid; }
}
.dropdown-menu a {
    font-size: 13px; font-weight: 500;
    color: var(--text-muted);
    padding: 6px 8px;
    border-radius: 6px;
    transition: background .2s, color .2s;
    white-space: nowrap;
}
.dropdown-menu a:hover { background: var(--off-white); color: var(--blue); }

.nav-cta {
    background: var(--red) !important;
    color: var(--white) !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    white-space: nowrap;
    transition: background .2s, transform .15s !important;
}
.nav-cta:hover {
    background: var(--red-dark) !important;
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════
   HERO SECTION — IMAGE CAROUSEL
═══════════════════════════════════════ */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    display: flex;
    align-items: center;
    padding: 90px 0 80px;
}

/* ── Carousel slides (background layer) ── */
.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    will-change: opacity;
}
.hero-slide.active { opacity: 1; }

/* ── Dark gradient overlay — heavier left for text legibility ── */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        105deg,
        rgba(5, 10, 30, 0.82) 0%,
        rgba(5, 10, 30, 0.60) 45%,
        rgba(5, 10, 30, 0.30) 100%
    );
}

/* ── Slide caption (bottom-right) ── */
.hero-caption {
    position: absolute;
    bottom: 20px;
    right: 24px;
    z-index: 3;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(6px);
    color: rgba(255,255,255,0.85);
    font-size: 12px;
    font-weight: 500;
    padding: 5px 14px;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.15);
    transition: opacity .4s;
    pointer-events: none;
}

/* ── Carousel nav arrows ── */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.25);
    color: var(--white);
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: background .2s, transform .2s;
    line-height: 1;
}
.hero-arrow:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-50%) scale(1.08);
}
.hero-arrow-prev { left: 20px; }
.hero-arrow-next { right: 20px; }

/* ── Carousel dots ── */
.hero-dots {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 8px;
    align-items: center;
}
.hero-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background .3s, width .3s;
}
.hero-dot.active {
    background: var(--white);
    width: 24px;
    border-radius: 4px;
}

/* ── Hero text (always on top, never moves) ── */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 24px;
}
.hero h1 {
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 900;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: -1px;
}
.hero h1 em {
    font-style: normal;
    color: var(--gold);
}
.hero p {
    font-size: 18px;
    color: rgba(255,255,255,0.82);
    margin-bottom: 40px;
    max-width: 580px;
    line-height: 1.7;
}

/* Search Bar */
.hero-search {
    background: var(--white);
    border-radius: 12px;
    padding: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    box-shadow: var(--shadow-lg);
    max-width: 680px;
}
/* Two-row layout: keyword input on top (full width), filters + Search below */
.hero-search .search-field-keyword { order: -1; flex: 1 1 100%; }
.hero-search .search-field:not(.search-field-keyword) { flex: 1 1 0; min-width: 0; }
.hero-search .search-divider { display: none; }
.hero-search .search-btn { flex: 0 0 auto; }
.search-field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: text;
    background: var(--off-white);
}
.search-field:focus-within { background: var(--light-gray); }
.search-icon { font-size: 16px; color: var(--text-muted); flex-shrink: 0; }
.search-field select,
.search-field input {
    border: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text);
    width: 100%;
    outline: none;
}
.search-divider {
    width: 1px;
    background: var(--mid-gray);
    margin: 8px 0;
    flex-shrink: 0;
}
.search-btn {
    background: var(--red);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s, transform .15s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.search-btn:hover { background: var(--red-dark); transform: scale(1.02); }

.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 36px;
}
.hero-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
}
.hero-stat-num {
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}
.hero-stat-icon {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.12);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}
.hero-towns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}
.hero-towns a {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.8);
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 100px;
    transition: background .2s, color .2s;
}
.hero-towns a:hover { background: var(--white); color: var(--blue); }

/* ═══════════════════════════════════════
   SECTION COMMONS
═══════════════════════════════════════ */
section { padding: 72px 0; }
.section-header {
    margin-bottom: 48px;
}
.section-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-eyebrow::after {
    content: '';
    flex: 1;
    max-width: 40px;
    height: 2px;
    background: var(--red);
    border-radius: 2px;
}
.section-title {
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text);
    letter-spacing: -0.5px;
}
.section-title em { font-style: normal; color: var(--blue); }
.section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    margin-top: 12px;
    max-width: 540px;
    line-height: 1.7;
}
.section-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}
.view-all-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--blue);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: gap .2s;
}
.view-all-link:hover { gap: 10px; color: var(--red); }

/* ═══════════════════════════════════════
   FEATURED LISTINGS
═══════════════════════════════════════ */
.featured-section {
    background: var(--white);
    padding: 72px 0;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.listing-card {
    background: var(--white);
    border: 1.5px solid var(--mid-gray);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .25s, box-shadow .25s, border-color .25s;
    cursor: pointer;
    position: relative;
}
.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue);
}
/* ── Featured card premium treatment ── */
.listing-card.featured {
    border-color: var(--gold-dark);
    box-shadow: 0 0 0 1.5px var(--gold-dark), var(--shadow-sm);
}
.listing-card.featured:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 0 2px var(--gold), 0 12px 40px rgba(229,192,0,0.2);
    border-color: var(--gold);
}
/* Gold accent bar across top of featured card */
.listing-card.featured::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
    z-index: 1;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.listing-card-image {
    height: 160px;
    background: var(--light-gray);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.listing-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.listing-card-image-placeholder {
    font-size: 48px;
    color: var(--mid-gray);
}
.featured-badge {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--gold);
    color: #5A4000;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.listing-card-body { padding: 18px 20px 20px; }
.listing-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}
.tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--blue);
    background: rgba(1,41,105,0.07);
    padding: 3px 10px;
    border-radius: 100px;
}
.tag.location {
    color: var(--red);
    background: rgba(207,20,43,0.07);
}
.listing-card-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.3;
}
.listing-card-address {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 6px;
    line-height: 1.4;
}
.listing-card-phone {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}
.listing-card-footer {
    border-top: 1px solid var(--mid-gray);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.btn-view {
    font-size: 13px;
    font-weight: 700;
    color: var(--blue);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap .2s, color .2s;
}
.btn-view:hover { gap: 10px; color: var(--red); }
.listing-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #5A4000;
}
.stars { color: var(--gold); font-size: 12px; }

/* ═══════════════════════════════════════
   BROWSE BY LOCATION
═══════════════════════════════════════ */
.locations-section {
    background: var(--off-white);
}
.locations-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}
.location-card {
    background: var(--white);
    border: 1.5px solid var(--mid-gray);
    border-radius: var(--radius);
    padding: 18px 12px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.location-card:hover {
    border-color: var(--blue);
    background: var(--blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.location-card:hover .location-name,
.location-card:hover .location-count { color: var(--white); }
.location-icon {
    width: 36px; height: 36px;
    background: var(--light-gray);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    transition: background .2s;
}
.location-card:hover .location-icon { background: rgba(255,255,255,0.2); }
.location-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    transition: color .2s;
}
.location-count {
    font-size: 11px;
    color: var(--text-muted);
    transition: color .2s;
}

/* ═══════════════════════════════════════
   RECENT BUSINESSES
═══════════════════════════════════════ */
.recent-section { background: var(--white); }

.recent-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.recent-card {
    background: var(--white);
    border: 1.5px solid var(--mid-gray);
    border-radius: var(--radius);
    padding: 20px;
    transition: all .2s;
    cursor: pointer;
}
.recent-card:hover {
    border-color: var(--red);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.recent-card-icon {
    width: 56px; height: 56px;
    background: var(--light-gray);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    margin-bottom: 12px;
    overflow: hidden;
    flex-shrink: 0;
}
.recent-card-icon img {
    width: 100%; height: 100%; object-fit: cover; border-radius: 10px;
}
a.recent-card { display: block; color: inherit; text-decoration: none; }
.recent-card-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    line-height: 1.3;
}
.recent-card-location {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
}
.recent-card-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.recent-card-tags .tag { font-size: 10px; padding: 2px 8px; }

/* ═══════════════════════════════════════
   WHY LOCAL ESSEX
═══════════════════════════════════════ */
.why-section {
    background: var(--blue-navy);
    color: var(--white);
}
.why-section .section-eyebrow { color: var(--gold); }
.why-section .section-eyebrow::after { background: var(--gold); }
.why-section .section-title { color: var(--white); }
.why-section .section-title em { color: var(--gold); }
.why-section .section-subtitle { color: rgba(255,255,255,0.7); }

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 0;
}
.why-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: background .2s, border-color .2s;
}
.why-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,215,0,0.4);
}
.why-card-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    margin-bottom: 18px;
}
.why-card:nth-child(1) .why-card-icon { background: rgba(207,20,43,0.25); }
.why-card:nth-child(2) .why-card-icon { background: rgba(1,41,105,0.3); }
.why-card:nth-child(3) .why-card-icon { background: rgba(255,215,0,0.2); }
.why-card:nth-child(4) .why-card-icon { background: rgba(255,255,255,0.12); }
.why-card h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}
.why-card p {
    font-size: 15px;
    color: rgba(255,255,255,0.68);
    line-height: 1.7;
}

.why-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

/* ═══════════════════════════════════════
   CTA BANNER
═══════════════════════════════════════ */
.cta-section {
    background: var(--red);
    padding: 72px 0;
}
.cta-inner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}
.cta-section .section-eyebrow { color: rgba(255,255,255,0.7); justify-content: center; }
.cta-section .section-eyebrow::after { display: none; }
.cta-section .section-title { color: var(--white); text-align: center; }
.cta-section .section-subtitle { color: rgba(255,255,255,0.82); text-align: center; max-width: 500px; margin: 12px auto 0; }
.cta-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 36px;
    flex-wrap: wrap;
}
.btn-white {
    background: var(--white);
    color: var(--red);
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    transition: all .2s;
    border: 2px solid var(--white);
}
.btn-white:hover { background: transparent; color: var(--white); }
.btn-outline-white {
    background: transparent;
    color: var(--white);
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    border: 2px solid rgba(255,255,255,0.6);
    transition: all .2s;
}
.btn-outline-white:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.footer {
    background: var(--blue-navy);
    color: rgba(255,255,255,0.75);
    padding: 64px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.footer-brand-logo img { height: 60px; }
.footer-brand-desc {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
    margin-bottom: 24px;
}
.footer-social {
    display: flex;
    gap: 10px;
}
.footer-social a {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    transition: background .2s, color .2s;
}
.footer-social a:hover { background: var(--gold); color: var(--blue-navy); }
.footer-heading {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    transition: color .2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    color: rgba(255,255,255,0.65);
}
.footer-contact-item span:first-child { flex-shrink: 0; color: var(--gold); }
.footer-bottom {
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--gold); }

/* ═══════════════════════════════════════
   MISC UTILS
═══════════════════════════════════════ */
.text-center { text-align: center; }
.text-center .section-eyebrow { justify-content: center; }
.text-center .section-eyebrow::after { display: none; }
.text-center .section-subtitle { margin: 12px auto 0; }

.divider {
    height: 4px;
    background: linear-gradient(90deg, var(--blue), var(--red));
    border: none;
}

/* ═══════════════════════════════════════
   WORDPRESS PAGE / GEODIRECTORY WRAPPER
═══════════════════════════════════════ */
.le-page-wrap {
    min-height: 60vh;
    padding: 48px 0 80px;
    background: var(--off-white);
}
.le-page-content {
    width: 100%;
}
/* GeoDirectory resets — let GD control its own layout */
.le-page-content .geodir-category-list-view,
.le-page-content .geodir-listing-detail {
    width: 100%;
}

/* ═══════════════════════════════════════
   LISTING DETAIL PAGE (details.php)
═══════════════════════════════════════ */

/* Hero banner with featured image */
.le-detail-hero {
    min-height: 360px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
}
.le-detail-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(1,41,105,0.88) 0%, rgba(1,41,105,0.45) 55%, transparent 100%);
}
.le-detail-hero .container { position: relative; z-index: 1; padding-bottom: 44px; }
.le-detail-hero-content { color: var(--white); }

/* Plain header when no featured image */
.le-detail-header-plain {
    background: var(--blue-navy);
    padding: 52px 0 36px;
}

/* Shared hero text */
.le-detail-cats {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--gold);
    margin-bottom: 10px;
}
.le-detail-name {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 12px;
}
.le-detail-hero-addr {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
}

/* Two-column layout: main + sidebar */
.le-detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
    padding-top: 8px;
}

/* Sections */
.le-detail-section { margin-bottom: 44px; }
.le-detail-section-heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--mid-gray);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.le-detail-about {
    font-size: 15px;
    line-height: 1.85;
    color: var(--text-muted);
}

/* Sidebar info card */
.le-detail-info-card {
    background: var(--white);
    border: 1.5px solid var(--mid-gray);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 20px;
}
.le-detail-info-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid var(--light-gray);
}
.le-detail-info-row:first-child { padding-top: 0; }
.le-detail-info-row:last-of-type { border-bottom: none; padding-bottom: 0; }
.le-detail-info-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.le-detail-info-label {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 3px;
}
.le-detail-info-val {
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
    line-height: 1.4;
}
a.le-detail-link { color: var(--blue); }
a.le-detail-link:hover { color: var(--red); }
.le-detail-website { word-break: break-all; }

/* Social buttons */
.le-detail-social {
    display: flex;
    gap: 8px;
    padding-top: 16px;
    margin-top: 4px;
    flex-wrap: wrap;
}
.le-detail-social-btn {
    width: 38px; height: 38px;
    background: var(--light-gray);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--blue);
    transition: background .2s, color .2s;
}
.le-detail-social-btn:hover { background: var(--blue); color: var(--white); }

/* Map */
.le-detail-map-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 20px;
    border: 1.5px solid var(--mid-gray);
}
.le-detail-map-wrap iframe,
.le-detail-map-wrap .geodir-map-canvas { width: 100% !important; min-height: 220px; }
.le-map { width: 100%; height: 340px; background: var(--light-gray); z-index: 0; }
.le-map .leaflet-control-attribution { font-size: 10px; }

/* Back link */
.le-detail-back-btn {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    transition: color .2s;
}
.le-detail-back-btn:hover { color: var(--red); }

/* GeoDirectory review overrides inside detail page */
.le-detail-reviews .gd-comment-form { margin-top: 20px; }
.le-detail-reviews .comments-title { display: none; }

/* Responsive */
@media (max-width: 860px) {
    .le-detail-layout { grid-template-columns: 1fr; }
    .le-detail-name { font-size: 1.75rem; }
    .le-detail-sidebar { order: -1; }
}

/* ═══════════════════════════════════════
   SCROLLBAR
═══════════════════════════════════════ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--light-gray); }
::-webkit-scrollbar-thumb { background: var(--mid-gray); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }


/* ═══════════════════════════════════════
   LISTINGS — added in rebuild (v1.1)
═══════════════════════════════════════ */

.le-empty { grid-column: 1 / -1; color: var(--text-muted); padding: 30px 0; }

/* ── Archive / search / taxonomy header ── */
.le-archive-header {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-navy) 100%);
    color: var(--white);
    padding: 54px 0 40px;
}
.le-archive-header .section-eyebrow { color: var(--gold); }
.le-archive-title { font-size: 2.4rem; font-weight: 900; line-height: 1.1; margin: 6px 0 10px; }
.le-archive-subtitle { color: rgba(255,255,255,0.78); max-width: 640px; font-size: 15px; }
.le-archive-count { margin-top: 14px; font-size: 14px; color: rgba(255,255,255,0.7); }
.le-archive-count strong { color: var(--gold); }

.le-archive-body { padding: 36px 0 70px; background: var(--off-white); }

/* ── Filter bar ── */
.le-filters {
    display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px;
    background: var(--white); border: 1.5px solid var(--mid-gray);
    border-radius: var(--radius-lg); padding: 18px 20px; margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}
.le-filter-field { display: flex; flex-direction: column; gap: 5px; min-width: 170px; }
.le-filter-field-grow { flex: 1; min-width: 200px; }
.le-filter-field label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); }
.le-filter-field select, .le-filter-field input {
    border: 1.5px solid var(--mid-gray); border-radius: 8px; padding: 10px 12px;
    font-size: 14px; font-family: inherit; background: var(--white); color: var(--text); width: 100%;
}
.le-filter-field select:focus, .le-filter-field input:focus { outline: none; border-color: var(--blue); }
.le-filter-btn {
    background: var(--red); color: var(--white); border: none; border-radius: 8px;
    padding: 11px 22px; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .2s;
}
.le-filter-btn:hover { background: var(--red-dark); }
.le-filter-clear { font-size: 13px; color: var(--text-muted); padding: 11px 6px; align-self: flex-end; }
.le-filter-clear:hover { color: var(--red); }

.le-archive-grid { margin-bottom: 40px; }

/* ── Pagination ── */
.le-pagination { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.le-pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 12px;
    border: 1.5px solid var(--mid-gray); border-radius: 8px;
    background: var(--white); color: var(--blue); font-weight: 600; font-size: 14px;
}
.le-pagination .page-numbers.current { background: var(--blue); color: var(--white); border-color: var(--blue); }
.le-pagination a.page-numbers:hover { border-color: var(--blue); background: var(--light-gray); }

/* ── No results ── */
.le-no-results { text-align: center; padding: 60px 20px; }
.le-no-results-icon { font-size: 46px; margin-bottom: 12px; }
.le-no-results h2 { font-size: 1.5rem; margin-bottom: 6px; }
.le-no-results p { color: var(--text-muted); margin-bottom: 20px; }
.le-no-results .btn-view { color: var(--blue); font-weight: 700; }

/* ── Generic post list (index fallback) ── */
.le-post-list { padding: 40px 0; }
.le-post-item { padding: 18px 0; border-bottom: 1px solid var(--mid-gray); }
.le-post-title { font-size: 1.3rem; margin-bottom: 6px; }
.le-post-title a:hover { color: var(--red); }

/* ═══════════════════════════════════════
   SINGLE LISTING — premium detail page
═══════════════════════════════════════ */
.le-detail-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--gold); color: #4A3500; font-size: 11px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px; padding: 5px 12px;
    border-radius: 100px; margin-bottom: 14px;
}
.le-detail-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.le-detail-hero .le-detail-tags .tag { background: rgba(255,255,255,0.16); color: #fff; }
.le-detail-header-plain .le-detail-tags .tag { background: rgba(1,41,105,0.08); color: var(--blue); }

/* Promo video (16:9) */
.le-detail-video { position: relative; padding-bottom: 56.25%; height: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); background: #000; }
.le-detail-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Gallery carousel */
.le-gallery { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); background: var(--light-gray); }
.le-gallery-track { display: flex; transition: transform .4s ease; }
.le-gallery-slide { min-width: 100%; }
.le-gallery-slide img { width: 100%; height: 420px; object-fit: cover; display: block; }
.le-gallery-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border: none; border-radius: 50%;
    background: rgba(255,255,255,0.92); color: var(--blue); font-size: 22px; line-height: 1;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md); transition: background .2s;
}
.le-gallery-arrow:hover { background: var(--white); }
.le-gallery-prev { left: 14px; }
.le-gallery-next { right: 14px; }

/* Address line on detail */
.le-detail-address-line { color: var(--text-muted); margin-bottom: 14px; font-size: 15px; }

/* Sidebar card head: logo + name */
.le-detail-card-head { text-align: center; padding-bottom: 18px; margin-bottom: 6px; border-bottom: 1px solid var(--mid-gray); }
.le-detail-logo { max-width: 130px; max-height: 90px; width: auto; margin: 0 auto 12px; display: block; object-fit: contain; }
.le-detail-card-name { font-size: 17px; font-weight: 800; color: var(--text); }

/* Sidebar social row */
.le-detail-info-card .le-detail-social { justify-content: center; padding: 14px 0; margin: 0 0 6px; border-bottom: 1px solid var(--mid-gray); }

/* Hours table */
.le-detail-hours { padding-top: 14px; margin-top: 6px; border-top: 1px solid var(--mid-gray); }
.le-detail-hours-title { margin-bottom: 8px; }
.le-detail-hours table { width: 100%; border-collapse: collapse; }
.le-detail-hours th { text-align: left; font-weight: 600; color: var(--text); font-size: 13px; padding: 5px 0; }
.le-detail-hours td { text-align: right; color: var(--text-muted); font-size: 13px; padding: 5px 0; }
.le-detail-hours tr.is-closed th, .le-detail-hours tr.is-closed td { color: var(--mid-gray); }

/* Categories row in sidebar */
.le-detail-cats-row { padding-top: 14px; margin-top: 6px; border-top: 1px solid var(--mid-gray); }
.le-detail-cats-row .le-detail-cats { margin-top: 4px; }
.le-detail-cats-row a { color: var(--blue); }
.le-detail-cats-row a:hover { color: var(--red); }

@media (max-width: 860px) {
    .le-gallery-slide img { height: 280px; }
    .le-archive-title { font-size: 1.8rem; }
}

.le-detail-directions { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--blue); font-weight: 700; font-size: 14px; }
.le-detail-directions:hover { color: var(--red); }


/* =======================================
   RESPONSIVE / MOBILE PASS (v1.2)
   ======================================= */

/* Safety net: never allow sideways scrolling.
   Use `clip` (not `hidden`) so it does NOT create a scroll container — `hidden`
   here breaks the sticky header (position: sticky on .navbar). */
html, body { overflow-x: clip; }
img, iframe { max-width: 100%; }

/* --- Tablet / large phone --- */
@media (max-width: 900px) {
    .featured-grid  { grid-template-columns: repeat(2, 1fr); }
    .recent-grid    { grid-template-columns: repeat(2, 1fr); }
    .locations-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-grid    { grid-template-columns: 1fr 1fr; gap: 36px; }
    .why-layout     { grid-template-columns: 1fr; gap: 32px; }
    section         { padding: 56px 0; }
}

/* --- Phones: one listing card per row --- */
@media (max-width: 640px) {
    .container { padding: 0 16px; }
    section    { padding: 44px 0; }

    /* Listing cards stack one per row */
    .featured-grid,
    .recent-grid    { grid-template-columns: 1fr; }

    /* Remaining grids collapse sensibly */
    .locations-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid       { grid-template-columns: 1fr; }
    .footer-grid    { grid-template-columns: 1fr; gap: 28px; }

    /* Section headers stack */
    .section-header     { margin-bottom: 32px; }
    .section-header-row { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 32px; }

    /* Hero */
    .hero        { min-height: auto; padding: 50px 0 116px; }
    .hero p      { font-size: 16px; margin-bottom: 26px; }
    .hero-arrow  { display: none; }
    .hero-stats  { flex-wrap: wrap; gap: 16px 26px; margin-top: 26px; }
    /* Carousel caption: clear of the content, centered above the dots */
    .hero-caption {
        left: 50%; right: auto; transform: translateX(-50%);
        bottom: 42px; max-width: 92%; text-align: center; white-space: normal;
    }
    .hero-dots   { bottom: 16px; }

    /* Hero search stacks vertically and fills width */
    .hero-search                 { flex-direction: column; gap: 8px; max-width: 100%; padding: 10px; }
    .hero-search .search-divider { display: none; }
    .hero-search .search-field,
    .hero-search .search-field-keyword { flex: 0 0 auto; width: 100%; }
    .hero-search .search-btn     { width: 100%; justify-content: center; padding: 14px; }

    /* Top utility bar wraps and centers */
    .top-bar .container { flex-direction: column; gap: 6px; }
    .top-bar-right      { flex-wrap: wrap; justify-content: center; gap: 4px; }

    /* CTA + footer */
    .cta-buttons .btn-white,
    .cta-buttons .btn-outline-white { width: 100%; text-align: center; }
    .footer-bottom { justify-content: center; text-align: center; }

    /* Archive / detail */
    .le-archive-header { padding: 40px 0 30px; }
    .le-detail-name    { font-size: 1.6rem; }
    .le-filters        { flex-direction: column; align-items: stretch; }
    .le-filter-field,
    .le-filter-field-grow { min-width: 0; width: 100%; }
}

/* --- Very small phones --- */
@media (max-width: 380px) {
    .locations-grid { grid-template-columns: 1fr; }
    .hero h1        { font-size: 30px; }
}


/* =======================================
   STATIC PAGES (About / Contact / Insider /
   Pricing / Add Business)  -  v1.3
   ======================================= */

.le-page-header { padding: 58px 0 46px; }
.le-page-header .le-archive-title { margin-top: 4px; }

.le-page-section { padding: 64px 0; background: var(--white); }
.le-page-section-alt { background: var(--off-white); }

/* --- Prose --- */
.le-prose .section-title { margin-top: 6px; }
.le-prose p { color: var(--text-muted); font-size: 16px; line-height: 1.8; margin-top: 14px; }
.le-prose-center { max-width: 760px; margin: 0 auto; text-align: center; }

.le-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }

.le-about-values {
    display: flex; flex-direction: column; gap: 14px;
    background: var(--off-white); border: 1.5px solid var(--mid-gray);
    border-radius: var(--radius-lg); padding: 28px;
}
.le-value-row { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; color: var(--text); }
.le-value-check {
    flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
    background: var(--blue); color: var(--white);
    display: flex; align-items: center; justify-content: center; font-size: 13px;
}

/* --- Stats band --- */
.le-stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.le-stat-block {
    text-align: center; background: var(--white); border: 1.5px solid var(--mid-gray);
    border-radius: var(--radius-lg); padding: 28px 16px;
}
.le-stat-num { font-size: 2.4rem; font-weight: 900; color: var(--blue); line-height: 1; }
.le-stat-label { font-size: 13px; color: var(--text-muted); margin-top: 8px; font-weight: 600; }

/* --- Contact / form layout --- */
.le-contact-grid { display: grid; grid-template-columns: 360px 1fr; gap: 32px; align-items: start; }
.le-info-card {
    background: var(--white); border: 1.5px solid var(--mid-gray);
    border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm);
}
.le-info-title { font-size: 1.25rem; font-weight: 800; margin-bottom: 8px; }
.le-info-lead { color: var(--text-muted); font-size: 14px; margin-bottom: 18px; }
.le-info-lead a { color: var(--blue); font-weight: 700; }
.le-info-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--mid-gray); color: var(--text); }
.le-info-icon { font-size: 18px; flex-shrink: 0; }
.le-info-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); font-weight: 700; }
.le-info-value { display: block; font-weight: 600; color: var(--text); }
a.le-info-row:hover .le-info-value { color: var(--red); }
.le-info-social { padding-top: 16px; margin-top: 6px; border-top: 1px solid var(--mid-gray); }
.le-info-social-row { display: flex; gap: 10px; margin-top: 10px; }
.le-info-social-row a {
    width: 38px; height: 38px; border-radius: 8px; background: var(--light-gray);
    display: flex; align-items: center; justify-content: center; color: var(--blue);
    transition: background .2s, color .2s;
}
.le-info-social-row a:hover { background: var(--blue); color: var(--white); }
.le-info-social-row svg { width: 16px; height: 16px; }

.le-form-panel {
    background: var(--white); border: 1.5px solid var(--mid-gray);
    border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm);
}
.le-form-panel-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 18px; }
.le-form-slot {
    border: 2px dashed var(--mid-gray); border-radius: var(--radius-lg);
    padding: 44px 28px; text-align: center; color: var(--text-muted);
}
.le-form-slot-icon { font-size: 34px; display: block; margin-bottom: 12px; }
.le-form-slot p { margin: 6px 0; }
.le-form-slot a, .le-form-panel a { color: var(--blue); font-weight: 700; }

/* --- Pricing plans --- */
.le-pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 860px; margin: 0 auto; align-items: stretch; }
.le-plan {
    position: relative; background: var(--white); border: 1.5px solid var(--mid-gray);
    border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column;
}
.le-plan.is-featured { border: 2px solid var(--gold); box-shadow: var(--shadow-md); }
.le-plan-badge {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--gold); color: #4A3500; font-size: 11px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px; padding: 5px 14px; border-radius: 100px;
}
.le-plan-name { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--blue); }
.le-plan-price { margin: 10px 0 6px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.le-plan-amt { font-size: 3rem; font-weight: 900; color: var(--text); line-height: 1; }
.le-plan-per { color: var(--text-muted); font-weight: 600; }
.le-plan-was { text-decoration: line-through; color: var(--text-muted); font-weight: 700; }
.le-plan-tag { color: var(--text-muted); font-size: 14px; min-height: 42px; }
.le-plan-features { display: flex; flex-direction: column; gap: 12px; margin: 22px 0; flex: 1; }
.le-plan-features li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text); }
.le-plan-check { color: var(--blue); font-weight: 800; flex-shrink: 0; }
.is-featured .le-plan-check { color: var(--gold-dark); }
/* Full feature comparison: included rows vs greyed-out unavailable rows */
.le-plan-compare li { gap: 9px; }
.le-plan-cross { color: rgba(182,5,52,0.5); font-weight: 800; flex-shrink: 0; }
.le-plan-compare li.is-off { color: var(--text-muted); }
.le-plan-cta {
    display: block; text-align: center; background: var(--red); color: var(--white);
    font-weight: 700; padding: 14px; border-radius: 10px; transition: background .2s, transform .15s;
}
.le-plan-cta:hover { background: var(--red-dark); transform: translateY(-1px); }
.le-plan-cta-ghost { background: transparent; color: var(--blue); border: 2px solid var(--mid-gray); }
.le-plan-cta-ghost:hover { background: var(--light-gray); border-color: var(--blue); }

/* --- Featured value breakdown --- */
.le-value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.le-value-card { background: var(--white); border: 1.5px solid var(--mid-gray); border-radius: var(--radius-lg); padding: 24px; }
.le-value-worth { font-size: 1.8rem; font-weight: 900; color: var(--blue); }
.le-value-name { font-weight: 800; margin: 6px 0 8px; color: var(--text); }
.le-value-card p { color: var(--text-muted); font-size: 14px; }
.le-value-card-total { background: var(--blue); border-color: var(--blue); }
.le-value-card-total .le-value-worth { color: var(--gold); }
.le-value-card-total .le-value-name { color: var(--white); }
.le-value-card-total p { color: rgba(255,255,255,0.75); }

/* --- How it works steps --- */
.le-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.le-step { text-align: center; padding: 8px; }
.le-step-num {
    width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 50%;
    background: var(--blue); color: var(--white); font-weight: 900; font-size: 22px;
    display: flex; align-items: center; justify-content: center;
}
.le-step h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.le-step p { color: var(--text-muted); font-size: 14px; }

/* --- Newsletter band --- */
.le-newsletter {
    display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: center;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-navy) 100%);
    border-radius: var(--radius-lg); padding: 44px; color: var(--white);
}
.le-newsletter .section-title { color: var(--white); }
.le-newsletter .section-subtitle { color: rgba(255,255,255,0.78); }
.le-newsletter-action { text-align: center; }
.le-newsletter-btn { display: inline-block; }

/* --- Insider article cards --- */
.le-insider-card {
    display: flex; flex-direction: column; background: var(--white);
    border: 1.5px solid var(--mid-gray); border-radius: var(--radius-lg); overflow: hidden;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
a.le-insider-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue); }
.le-insider-card.is-teaser { opacity: .9; }
.le-insider-thumb {
    height: 170px; background: var(--blue-navy); background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
}
.le-insider-thumb-mark { font-size: 20px; font-weight: 900; color: rgba(255,255,255,0.5); }
.le-insider-thumb-mark span { color: var(--gold); }
.le-insider-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.le-insider-date { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--red); font-weight: 700; margin-bottom: 8px; }
.le-insider-title { font-size: 18px; font-weight: 800; line-height: 1.3; color: var(--text); margin-bottom: 8px; }
.le-insider-excerpt { font-size: 14px; color: var(--text-muted); flex: 1; }
.le-insider-more { margin-top: 14px; color: var(--blue); font-weight: 700; font-size: 14px; }

/* --- Static-page responsive --- */
@media (max-width: 900px) {
    .le-split        { grid-template-columns: 1fr; gap: 32px; }
    .le-contact-grid { grid-template-columns: 1fr; }
    .le-value-grid   { grid-template-columns: repeat(2, 1fr); }
    .le-newsletter   { grid-template-columns: 1fr; gap: 24px; text-align: center; padding: 36px 28px; }
    .le-newsletter .section-eyebrow { justify-content: center; }
}
@media (max-width: 640px) {
    .le-page-section { padding: 44px 0; }
    .le-stats-band   { grid-template-columns: repeat(2, 1fr); }
    .le-pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
    .le-value-grid   { grid-template-columns: 1fr; }
    .le-steps        { grid-template-columns: 1fr; gap: 28px; }
    .le-form-panel   { padding: 24px; }
    .le-plan-amt     { font-size: 2.6rem; }
}

/* --- Embedded forms (GoHighLevel iframes) --- */
.le-form-embed { width: 100%; }
.le-form-embed iframe { width: 100%; min-height: 900px; border: 0; display: block; }

/* --- Legal pages (Privacy / Terms) --- */
.le-legal { max-width: 800px; margin: 0 auto; }
.le-legal-updated { color: var(--text-muted); font-size: 13px; margin-bottom: 24px; }
.le-legal h2 { font-size: 1.3rem; font-weight: 800; color: var(--text); margin: 32px 0 12px; }
.le-legal p { color: var(--text-muted); font-size: 16px; line-height: 1.8; margin-bottom: 14px; }
.le-legal ul { margin: 0 0 14px; padding-left: 22px; list-style: disc; }
.le-legal li { color: var(--text-muted); font-size: 16px; line-height: 1.8; margin-bottom: 8px; }
.le-legal a { color: var(--blue); font-weight: 600; }
.le-legal a:hover { color: var(--red); }
.le-legal strong { color: var(--text); }


/* =======================================
   MOBILE NAVIGATION (hamburger)  -  v1.3
   ======================================= */

/* Hidden on desktop; the inline CTA list item lives inside the menu only on mobile. */
.nav-toggle { display: none; }
.nav-links-cta { display: none; }

@media (max-width: 820px) {
    .navbar .container { flex-wrap: wrap; gap: 12px; }

    /* Hamburger button */
    .nav-toggle {
        order: 1; margin-left: auto;
        display: flex; flex-direction: column; justify-content: center; gap: 5px;
        width: 46px; height: 42px; padding: 9px 10px;
        background: transparent; border: 1.5px solid var(--mid-gray);
        border-radius: 8px; cursor: pointer;
    }
    .nav-toggle span {
        display: block; height: 2px; width: 100%; background: var(--blue);
        border-radius: 2px; transition: transform .25s ease, opacity .2s ease;
    }
    .navbar.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .navbar.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
    .navbar.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* Standalone bar CTA hidden; shown as a menu item instead */
    .nav-cta { display: none; }

    /* Collapsible link panel */
    .nav-links {
        order: 2; flex: 1 1 100%;
        flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
        max-height: 0; overflow: hidden;
        transition: max-height .3s ease;
    }
    .navbar.nav-open .nav-links { max-height: 80vh; overflow-y: auto; }
    .nav-links > li { width: 100%; }
    .nav-links > li > a {
        display: block; padding: 15px 6px; font-size: 15px;
        border-top: 1px solid var(--mid-gray); border-radius: 0;
    }

    /* Locations -> static accordion */
    .nav-dropdown > a { position: relative; }
    .nav-dropdown > a::after {
        content: '+'; position: absolute; right: 8px; top: 50%;
        transform: translateY(-50%); font-size: 20px; font-weight: 400; line-height: 1;
    }
    .nav-dropdown.open > a::after { content: '\2212'; } /* minus sign */
    .nav-dropdown .dropdown-menu {
        position: static; display: none;
        grid-template-columns: 1fr 1fr; min-width: 0; gap: 0;
        background: var(--off-white); border: none; border-radius: 0;
        box-shadow: none; padding: 6px 6px 12px;
    }
    .nav-dropdown.open .dropdown-menu { display: grid; }
    .dropdown-menu a { padding: 9px 8px; font-size: 13px; white-space: normal; }

    /* CTA as the final menu item */
    .nav-links-cta { display: block; border-top: 1px solid var(--mid-gray); padding: 12px 0 4px; }
    .nav-cta-inline {
        display: block; text-align: center; background: var(--red); color: var(--white);
        font-weight: 700; font-size: 14px; padding: 13px; border-radius: 8px;
    }
    .nav-cta-inline:hover { background: var(--red-dark); }
}


/* =======================================
   BLOG ARTICLE (single post)  -  v1.3
   ======================================= */
.le-article-byline { color: rgba(255,255,255,0.78); font-size: 14px; margin-top: 12px; }
.le-article { max-width: 768px; margin: 0 auto; }
.le-article-hero img { width: 100%; border-radius: var(--radius-lg); margin-bottom: 30px; display: block; }
.le-article img { max-width: 100%; height: auto; display: block; }
/* Inline section images: modest, centered insets so they support the text
   rather than dominate it. */
.le-article figure { max-width: 540px; margin: 30px auto 34px; }
.le-article figure img { width: 100%; border-radius: 12px; box-shadow: var(--shadow-sm); }
.le-article figcaption { font-size: 13px; color: var(--text-muted); text-align: center; margin-top: 8px; }
.le-article > p:first-of-type { font-size: 18px; color: var(--text); line-height: 1.8; }
.le-article p { color: var(--text-muted); font-size: 16px; line-height: 1.85; margin-bottom: 16px; }
.le-article h2 { font-size: 1.5rem; font-weight: 800; color: var(--text); line-height: 1.25; margin: 38px 0 12px; }
.le-article h3 { font-size: 1.15rem; font-weight: 700; color: var(--blue); margin: 28px 0 8px; }
.le-article ul, .le-article ol { margin: 0 0 16px; padding-left: 22px; }
.le-article ul { list-style: disc; }
.le-article ol { list-style: decimal; }
.le-article li { color: var(--text-muted); font-size: 16px; line-height: 1.8; margin-bottom: 8px; }
.le-article a { color: var(--blue); font-weight: 600; }
.le-article a:hover { color: var(--red); }
.le-article strong { color: var(--text); }
.le-article blockquote {
    border-left: 4px solid var(--gold); background: var(--off-white);
    padding: 16px 20px; margin: 20px 0; border-radius: 0 8px 8px 0;
    font-size: 17px; color: var(--text);
}
.le-article-foot { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--mid-gray); }
