/* ═══════════════════════════════════════════════════════════════════
   PAGES.CSS — Styles for multi-page site (service, area, static pages)
   ═══════════════════════════════════════════════════════════════════ */

/* ── Breadcrumbs ───────────────────────────────────────────────── */
.breadcrumbs {
    background: var(--dark3);
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.breadcrumbs__list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: var(--gray);
}
.breadcrumbs__item + .breadcrumbs__item::before {
    content: '/';
    margin-right: 6px;
    color: var(--gray);
    opacity: .5;
}
.breadcrumbs__item a {
    color: var(--blue-bright);
    text-decoration: none;
}
.breadcrumbs__item a:hover {
    text-decoration: underline;
}
.breadcrumbs__item [aria-current] {
    color: var(--white);
}

/* ── Page Hero (inner pages) ──────────────────────────────────── */
.page-hero {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, var(--dark2) 0%, var(--dark) 100%);
    text-align: left;
    position: relative;
    overflow: hidden;
}
.page-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37,116,196,.08) 0%, transparent 70%);
    pointer-events: none;
}
.page-hero__content {
    max-width: 800px;
}
.page-hero__icon {
    color: var(--blue);
    margin-bottom: 16px;
}
.page-hero__title {
    font-family: var(--font-h);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    color: var(--white);
    margin: 0 0 16px;
    line-height: 1.15;
}
.page-hero__desc {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--gray-light);
    line-height: 1.65;
    max-width: 640px;
    margin: 0 0 28px;
}
.page-hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ── 404 ──────────────────────────────────────────────────────── */
.error-404__number {
    font-family: var(--font-h);
    font-size: clamp(100px, 20vw, 200px);
    font-weight: 700;
    color: var(--dark3);
    line-height: 1;
    margin-bottom: 0;
}

/* ── Page Content Grid (main + sidebar) ───────────────────────── */
.page-content__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
@media (min-width: 960px) {
    .page-content__grid {
        grid-template-columns: 1fr 320px;
        gap: 48px;
        align-items: start;
    }
    .page-content__sidebar {
        position: sticky;
        top: 80px;
        align-self: start;
    }
}

/* ── Prose (rich text content) ────────────────────────────────── */
.prose h2 {
    font-family: var(--font-h);
    font-size: clamp(24px, 3vw, 32px);
    color: var(--white);
    margin: 0 0 16px;
}
.prose h3 {
    font-family: var(--font-h);
    font-size: clamp(20px, 2.5vw, 24px);
    color: var(--white);
    margin: 32px 0 12px;
}
.prose p {
    color: var(--gray-light);
    line-height: 1.75;
    margin: 0 0 16px;
}
.prose ul, .prose ol {
    color: var(--gray-light);
    line-height: 1.75;
    padding-left: 24px;
    margin: 0 0 16px;
}

/* ── Sidebar ──────────────────────────────────────────────────── */
.sidebar-card {
    background: var(--dark3);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}
.sidebar-card h3 {
    font-family: var(--font-h);
    font-size: 18px;
    color: var(--white);
    margin: 0 0 16px;
}
.sidebar-card--cta {
    background: linear-gradient(135deg, var(--dark3) 0%, rgba(37,116,196,.12) 100%);
    border-color: var(--blue);
}
.sidebar-card--cta p {
    color: var(--gray-light);
    font-size: 14px;
    margin: 0 0 16px;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-nav li {
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.sidebar-nav li:last-child {
    border-bottom: none;
}
.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 4px;
    color: var(--gray-light);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--trans);
}
.sidebar-nav li a:hover {
    color: var(--blue-bright);
}
.sidebar-nav li.active a {
    color: var(--blue-bright);
    font-weight: 600;
}

.sidebar-facts {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-facts li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
    color: var(--gray-light);
    font-size: 14px;
}
.sidebar-facts li:last-child {
    border-bottom: none;
}
.sidebar-facts strong {
    color: var(--white);
}

/* ── Benefits Grid ────────────────────────────────────────────── */
.benefits-grid {
    margin-top: 32px;
    padding: 24px;
    background: var(--dark3);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,.06);
}
.benefits-grid h3 {
    font-family: var(--font-h);
    color: var(--white);
    font-size: 20px;
    margin: 0 0 16px;
}
.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
@media (min-width: 640px) {
    .benefits-list {
        grid-template-columns: 1fr 1fr;
    }
}
.benefits-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-light);
    font-size: 14px;
}
.benefits-list li svg {
    color: var(--green);
    flex-shrink: 0;
}

/* ── Neighborhoods ────────────────────────────────────────────── */
.neighborhoods-section {
    margin-top: 32px;
}
.neighborhoods-section h3 {
    font-family: var(--font-h);
    color: var(--white);
    font-size: 20px;
    margin: 0 0 16px;
}
.neighborhoods-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.neighborhood-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--dark3);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    color: var(--gray-light);
}

.zip-section {
    margin-top: 24px;
}
.zip-section h3 {
    font-family: var(--font-h);
    color: var(--white);
    font-size: 20px;
    margin: 0 0 8px;
}
.zip-list {
    color: var(--gray);
    font-size: 14px;
}

/* ── City Cards (for county/index pages) ──────────────────────── */
.areas__grid--cities {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.city-card {
    display: flex;
    flex-direction: column;
    background: var(--dark2);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: var(--radius);
    padding: 20px;
    text-decoration: none;
    transition: border-color var(--trans), transform var(--trans);
}
.city-card:hover {
    border-color: var(--blue);
    transform: translateY(-2px);
}
.city-card__name {
    font-family: var(--font-h);
    font-size: 18px;
    color: var(--white);
    margin: 0 0 6px;
}
.city-card__neighborhoods {
    color: var(--gray);
    font-size: 13px;
    margin: 0 0 12px;
    flex-grow: 1;
}
.city-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--blue-bright);
    font-size: 13px;
    font-weight: 500;
}

/* ── County Block (areas index) ───────────────────────────────── */
.county-block {
    margin-bottom: 48px;
}
.county-block__header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--blue);
}
.county-block__header h2 {
    font-family: var(--font-h);
    font-size: clamp(24px, 3vw, 32px);
    color: var(--white);
    margin: 0;
}
.county-block__header h2 a {
    color: inherit;
    text-decoration: none;
}
.county-block__header h2 a:hover {
    color: var(--blue-bright);
}
.county-block__label {
    color: var(--gray);
    font-size: 14px;
}

/* ── Service card link variant ────────────────────────────────── */
.service-card--link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: border-color var(--trans), transform var(--trans);
}
.service-card--link:hover {
    border-color: var(--blue);
    transform: translateY(-3px);
}
.service-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--blue-bright);
    font-size: 13px;
    font-weight: 500;
    margin-top: auto;
    padding-top: 12px;
}
.services__grid--compact {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.service-card--sm {
    padding: 16px;
}
.service-card--sm .service-card__title {
    font-size: 15px;
}
.services__grid--3 {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.services__grid--large {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.service-card--large {
    padding: 28px;
}

/* ── Navigation Dropdowns ─────────────────────────────────────── */
.nav__dropdown {
    position: relative;
}
.nav__link--dropdown {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.nav__dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--dark2);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius);
    padding: 8px 0;
    min-width: 220px;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}
.nav__dropdown:hover .nav__dropdown-menu {
    display: block;
}
.nav__dropdown-item {
    display: block;
    padding: 8px 16px;
    color: var(--gray-light);
    text-decoration: none;
    font-size: 14px;
    transition: background var(--trans), color var(--trans);
}
.nav__dropdown-item:hover {
    background: rgba(255,255,255,.05);
    color: var(--white);
}

/* ── Hamburger Menu ───────────────────────────────────────────── */
.nav__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav__hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform var(--trans), opacity var(--trans);
}
.nav__hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav__hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.nav__hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 899px) {
    .nav__hamburger {
        display: flex;
    }
    .nav__links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark2);
        border-top: 1px solid rgba(255,255,255,.08);
        padding: 16px;
        flex-direction: column;
        gap: 0;
    }
    .nav__links.active {
        display: flex;
    }
    .nav__links .nav__link,
    .nav__links .nav__dropdown > a {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255,255,255,.06);
    }
    .nav__dropdown-menu {
        position: static;
        display: none;
        border: none;
        box-shadow: none;
        padding: 0 0 0 16px;
        background: transparent;
    }
    .nav__dropdown.open .nav__dropdown-menu {
        display: block;
    }
}

/* ── Area card links ──────────────────────────────────────────── */
.area-card__county {
    color: inherit;
    text-decoration: none;
}
.area-card__county:hover {
    color: var(--blue-bright);
}
.area-city__name {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
}
.area-city__name:hover {
    color: var(--blue-bright);
}
.area-city__more {
    color: var(--blue-bright);
    font-size: 13px;
    text-decoration: none;
}
.area-city__more:hover {
    text-decoration: underline;
}

/* ── Footer links ─────────────────────────────────────────────── */
.footer__list a {
    color: var(--gray);
    text-decoration: none;
}
.footer__list a:hover {
    color: var(--white);
}
.footer__quick-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 14px;
}
.footer__quick-links a:hover {
    color: var(--white);
}

/* ── Hero with background image ──────────────────────────────── */
.page-hero--img {
    padding: 100px 0 80px;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
    animation: kenBurns 25s ease-in-out infinite alternate;
    /* contain the scale overflow */
}
@keyframes kenBurns {
    0%   { background-position: center 40%; background-size: 100%; }
    50%  { background-position: 45% 35%;    background-size: 110%; }
    100% { background-position: 55% 45%;    background-size: 115%; }
}
.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(6,8,12,.75);
    z-index: 0;
}
.page-hero--img .container,
.page-hero--img .page-hero__content {
    position: relative;
    z-index: 1;
}
.page-hero--img .page-hero__title {
    text-shadow: 0 2px 12px rgba(0,0,0,.6), 0 1px 3px rgba(0,0,0,.4);
}
.page-hero--img .page-hero__desc {
    text-shadow: 0 1px 6px rgba(0,0,0,.5);
}
.page-hero--img .page-hero__icon {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.4));
}
.page-hero--img::after {
    display: none; /* disable gradient orb */
}
.photo-credit {
    display: none;
}

/* ── Content Image (in-page figure) ─────────────────────────── */
.content-image {
    margin: 0 0 28px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
}
.content-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 400px;
}
.content-image figcaption {
    padding: 8px 16px;
    background: var(--dark3);
    font-size: 12px;
    color: var(--gray);
    text-align: right;
}

/* ── Service Card with Image ────────────────────────────────── */
.service-card--has-img {
    overflow: hidden;
    padding: 0;
}
.service-card__img {
    position: relative;
    overflow: hidden;
    height: 180px;
}
.service-card__img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.service-card--has-img:hover .service-card__img img {
    transform: scale(1.05);
}
.service-card__body {
    padding: 20px 24px 24px;
}

/* ── Estimate Lightbox ───────────────────────────────────────── */
.estimate-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(5,10,20,.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 1;
    transition: opacity .3s ease;
}
.estimate-lightbox[hidden] { display: none; }
.estimate-lightbox__box {
    background: var(--dark2);
    border: 1px solid rgba(37,116,196,.35);
    border-radius: var(--radius-lg);
    box-shadow: 0 32px 80px rgba(0,0,0,.7), 0 0 0 1px rgba(37,116,196,.1);
    width: 100%;
    max-width: 620px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: lightboxIn .35s ease;
}
@keyframes lightboxIn {
    from { opacity: 0; transform: translateY(24px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.estimate-lightbox__hd {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 24px 28px 16px;
    border-bottom: 1px solid rgba(37,116,196,.15);
    background: linear-gradient(135deg, var(--dark2) 0%, rgba(37,116,196,.08) 100%);
    flex-shrink: 0;
}
.estimate-lightbox__title {
    font-family: var(--font-h);
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.estimate-lightbox__title svg { color: var(--blue-bright); }
.estimate-lightbox__subtitle {
    font-size: 14px;
    color: var(--gray);
    margin: 6px 0 0;
}
.estimate-lightbox__close {
    background: none;
    border: none;
    color: var(--gray);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    transition: color var(--trans);
    flex-shrink: 0;
}
.estimate-lightbox__close:hover { color: var(--white); }
.estimate-lightbox__body {
    overflow-y: auto;
    padding: 24px 28px 28px;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(37,116,196,.3) transparent;
}
.estimate-lightbox__body::-webkit-scrollbar { width: 4px; }
.estimate-lightbox__body::-webkit-scrollbar-thumb { background: rgba(37,116,196,.3); border-radius: 2px; }
@media (max-width: 640px) {
    .estimate-lightbox { padding: 10px; }
    .estimate-lightbox__box { max-height: 95vh; }
    .estimate-lightbox__hd { padding: 18px 20px 14px; }
    .estimate-lightbox__title { font-size: 17px; }
    .estimate-lightbox__body { padding: 18px 20px 24px; }
}

/* ── Screen reader only ───────────────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
