/* =========================================================
   Service Area archive (city picker + map)
   ========================================================= */

#epv-map-archive {
    width: 100%;
    height: 500px;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.epv-marker {
    background-color: #ff0000;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
}

.epv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.epv-card {
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
}

/* Hide the theme's auto-rendered featured image on service pages —
   our .epv-hero figure inside the content area is the one we want shown.
   Featured image stays set so archives, OG tags, and schema can use it. */
body.single-epv_area_service img.wp-post-image,
body.single-epv_service_area img.wp-post-image,
body.single-epv_area_service div.post-thumbnail,
body.single-epv_service_area div.post-thumbnail {
    display: none;
}

/* On the area hub only (not per-service pages), let content use full width. */
body.single-epv_service_area div.content-area,
body.single-epv_service_area div#primary {
    width: 100% !important;
}

body.single-epv_service_area div.epv-content {
    max-width: 100% !important;
}

/* =========================================================
   Generated service-area content pages
   (epv_area_service + epv_service_area singles)
   ========================================================= */

.epv-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 1rem 1.25rem 3rem;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #24292e;
}

/* Hero image */
.epv-hero {
    margin: 0 0 2rem;
    padding: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    background: #f4f4f4;
}

.epv-hero img,
.epv-hero .epv-hero-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

/* Intro paragraph gets a slightly larger, softer treatment */
.epv-content .epv-intro {
    font-size: 1.15rem;
    color: #2d3748;
    margin: 0 0 2rem;
}

/* Headings */
.epv-content h1 {
    font-size: 2.15rem;
    line-height: 1.2;
    margin: 0 0 1rem;
    font-weight: 700;
}

.epv-content h2,
body.post-type-archive-epv_service_area h2,
body.single-epv_service_area h2,
body.single-epv_area_service h2 {
    font-size: 1.55rem;
    line-height: 1.3;
    margin: 2.5rem 0 1rem;
    font-weight: 700;
    color: #1a202c;
    letter-spacing: normal !important;
}

/* Body copy */
.epv-content p {
    margin: 0 0 1.15rem;
}

.epv-content ul,
.epv-content ol {
    margin: 0 0 1.5rem 1.25rem;
    padding: 0;
}

.epv-content li {
    margin: 0 0 0.5rem;
    padding-left: 0.25rem;
}

.epv-content strong {
    font-weight: 600;
    color: #1a202c;
}

/* =========================================================
   Inline CTA (between sections)
   ========================================================= */

.epv-inline-cta {
    margin: 3rem 0;
    padding: 2rem 1.75rem;
    background: linear-gradient(135deg, #fdf7ef 0%, #f6ede0 100%);
    border-top: 3px solid #b93a27;
    border-bottom: 1px solid #e8d9c2;
    border-radius: 6px;
    text-align: center;
}

.epv-inline-cta-headline {
    font-size: 1.2rem;
    line-height: 1.4;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 1.25rem;
}

.epv-inline-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.epv-btn {
    display: inline-block;
    padding: 0.85rem 1.6rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease;
    border: 2px solid transparent;
    min-width: 200px;
    text-align: center;
}

.epv-btn:hover,
.epv-btn:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.epv-btn-call {
    background: #b93a27;
    color: #fff;
    border-color: #b93a27;
}

.epv-btn-call:hover,
.epv-btn-call:focus {
    background: #a0311f;
    border-color: #a0311f;
    color: #fff;
}

.epv-btn-email {
    background: #fff;
    color: #b93a27;
    border-color: #b93a27;
}

.epv-btn-email:hover,
.epv-btn-email:focus {
    background: #b93a27;
    color: #fff;
}

/* =========================================================
   Gallery (after the final CTA)
   ========================================================= */

.epv-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.epv-gallery img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* =========================================================
   Archive: grid of service areas (city picker)
   ========================================================= */

.epv-archive-content {
    max-width: 1200px !important;
}

.epv-areas-grid-section {
    margin: 2.5rem 0;
}

.epv-areas-grid-section > h2 {
    margin-bottom: 1.5rem;
}

.epv-areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.epv-area-card {
    display: block;
    width: 100%;
    box-sizing: border-box;
    color: inherit;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e3e8ee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.epv-area-card:hover,
.epv-area-card:focus {
    transform: translateY(-2px);
    border-color: #b93a27;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
}

.epv-area-card-thumb {
    display: block;
    background: #f4f4f4;
    overflow: hidden;
}

.epv-area-card-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.epv-area-card-body {
    display: block;
    padding: 1rem 1.1rem 1.2rem;
}

.epv-area-card-title {
    display: block;
    font-size: 1.2rem;
    line-height: 1.3;
    margin: 0 0 0.4rem;
    font-weight: 700;
    color: #1a202c;
}

.epv-area-card-teaser {
    display: block;
    font-size: 0.93rem;
    line-height: 1.5;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.epv-area-card-link {
    display: inline-block;
    font-size: 0.92rem;
    color: #b93a27;
    font-weight: 600;
}

/* On archive pages, give the content area full width too. */
body.post-type-archive-epv_service_area div.content-area,
body.post-type-archive-epv_service_area div#primary {
    width: 100% !important;
}

body.post-type-archive-epv_service_area div.epv-content {
    max-width: 1200px !important;
}

/* =========================================================
   Area hub: services grid
   ========================================================= */

.epv-services-grid-section {
    margin: 3rem 0;
}

.epv-services-grid-section > h2 {
    margin-bottom: 0.5rem;
}

.epv-services-lead {
    font-size: 1.05rem;
    color: #4a5568;
    margin-bottom: 1.75rem;
}

.epv-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.epv-service-card {
    display: block;
    width: 100%;
    box-sizing: border-box;
    color: inherit;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e3e8ee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.epv-service-card:hover,
.epv-service-card:focus {
    transform: translateY(-2px);
    border-color: #b93a27;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
}

.epv-service-card-thumb {
    display: block;
    background: #f4f4f4;
    overflow: hidden;
}

.epv-service-card-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.epv-service-card-body {
    display: block;
    padding: 1rem 1.1rem 1.2rem;
}

.epv-service-card-title {
    display: block;
    font-size: 1.15rem;
    line-height: 1.3;
    margin: 0 0 0.4rem;
    font-weight: 700;
    color: #1a202c;
}

.epv-service-card-link {
    display: inline-block;
    font-size: 0.92rem;
    color: #b93a27;
    font-weight: 600;
}

/* =========================================================
   FAQ section (rendered visibly, also emits JSON-LD)
   ========================================================= */

.epv-faq {
    margin: 3rem 0 2rem;
    padding: 2rem;
    background: #f7f8fa;
    border-radius: 8px;
}

.epv-faq h2 {
    margin-top: 0;
    margin-bottom: 1.25rem;
}

.epv-faq-item {
    border-bottom: 1px solid #e3e8ee;
    padding: 1rem 0;
}

.epv-faq-item:last-child {
    border-bottom: none;
}

.epv-faq-item summary {
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    color: #1a202c;
    list-style: none;
    padding-right: 1.5rem;
    position: relative;
}

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

.epv-faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #b93a27;
    font-weight: 400;
    transition: transform 0.2s ease;
}

.epv-faq-item[open] summary::after {
    content: "−";
}

.epv-faq-answer {
    padding-top: 0.75rem;
    color: #374151;
}

.epv-faq-answer p:last-child {
    margin-bottom: 0;
}

/* =========================================================
   Related-links aside (internal linking to nearby towns)
   ========================================================= */

.epv-related {
    margin: 2.5rem 0;
    padding: 1.5rem;
    border: 1px solid #e3e8ee;
    border-radius: 8px;
    background: #fafafa;
}

.epv-related h2 {
    margin-top: 0;
    font-size: 1.25rem;
}

.epv-related-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.epv-related-list li {
    margin: 0;
    padding: 0;
}

.epv-related-list a {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    background: #fff;
    border: 1px solid #d4dae0;
    border-radius: 4px;
    color: #2b3a4a;
    font-size: 0.95rem;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.epv-related-list a:hover,
.epv-related-list a:focus {
    border-color: #b93a27;
    color: #b93a27;
    text-decoration: none;
}

/* Closing CTA paragraph */
.epv-content .epv-final-cta {
    margin: 2.5rem 0 0;
    padding: 1.75rem;
    background: #1a202c;
    color: #fff;
    border-radius: 8px;
    font-size: 1.1rem;
    line-height: 1.5;
    text-align: center;
    font-weight: 600;
}

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

@media (max-width: 640px) {
    .epv-content {
        padding: 1rem 1rem 2rem;
        font-size: 1rem;
    }

    .epv-content h1 {
        font-size: 1.7rem;
    }

    .epv-content h2 {
        font-size: 1.3rem;
        margin-top: 2rem;
    }

    .epv-inline-cta {
        margin: 2rem 0;
        padding: 1.5rem 1rem;
    }

    .epv-inline-cta-headline {
        font-size: 1.05rem;
    }

    .epv-btn {
        min-width: 0;
        width: 100%;
    }

    .epv-gallery {
        grid-template-columns: 1fr;
    }
}
