/* ==============================================
   SERVICES PAGE
   ============================================== */

body.page-services #main,
body.page-template-page-services #main,
body.page-template-template-service #main {
    padding-top: 0;
}


/* ==============================================
   1. HERO — mirrors location-hero
   ============================================== */

.services-hero {
    position: relative;
    min-height: 56vh;
    background-color: var(--color-charcoal);
    overflow: hidden;
    display: flex;
    align-items: center;
}

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

.services-hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.services-hero__photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(12, 35, 46, 0.93) 0%,
        rgba(12, 35, 46, 0.72) 55%,
        rgba(12, 35, 46, 0.30) 100%
    );
}

.services-hero__content {
    position: relative;
    z-index: 1;
    padding-top: calc(var(--promo-height) + var(--header-height) + var(--space-2xl));
    padding-bottom: var(--space-2xl);
    max-width: 620px;
}

.services-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-sky-blue);
    margin-bottom: var(--space-lg);
}

.services-hero__eyebrow::before {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-sky-blue);
    border-radius: 1px;
}

.services-hero h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    color: var(--color-white);
    line-height: 1.08;
    margin-bottom: var(--space-lg);
}

.services-hero h1 em {
    font-style: normal;
    color: var(--color-sky-blue);
}

.services-hero__sub {
    font-size: 1.05rem;
    color: var(--color-white-dim);
    margin-bottom: var(--space-xl);
    max-width: 520px;
    line-height: 1.7;
}

.services-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}


/* ==============================================
   2. SERVICE CARDS OVERVIEW
   ============================================== */

.services-cards {
    padding: var(--space-3xl) 0;
    background: var(--color-charcoal);
}

.services-cards__header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.services-cards__eyebrow {
    display: inline-block;
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-sky-blue);
    margin-bottom: var(--space-md);
}

.services-cards h2 {
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.services-cards__sub {
    color: var(--color-white-dim);
    max-width: 480px;
    margin: 0 auto;
    font-size: 0.95rem;
}

.services-cards__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

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

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

.services-overview-card {
    background: rgba(255, 255, 255, 0.93);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.15);
    transition:
        background-color var(--transition-base),
        border-color     var(--transition-base),
        box-shadow       var(--transition-base),
        transform        var(--transition-base);
}

.services-overview-card:hover {
    background: rgba(12, 35, 46, 0.97);
    border-color: rgba(13, 163, 221, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transform: translateY(-3px);
}

.services-overview-card__icon {
    width: 52px;
    height: 52px;
    background: rgba(0, 83, 139, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    color: var(--color-brd-blue);
    flex-shrink: 0;
    transition: background-color var(--transition-base), color var(--transition-base);
}

.services-overview-card:hover .services-overview-card__icon {
    background: rgba(0, 83, 139, 0.35);
    color: var(--color-sky-blue);
}

.services-overview-card h3 {
    font-size: 1.2rem;
    color: var(--color-charcoal);
    margin-bottom: var(--space-sm);
    transition: color var(--transition-base);
}

.services-overview-card:hover h3 {
    color: var(--color-white);
}

.services-overview-card p {
    font-size: 0.875rem;
    color: #4a5568;
    line-height: 1.65;
    flex: 1;
    margin-bottom: var(--space-lg);
    transition: color var(--transition-base);
}

.services-overview-card:hover p {
    color: var(--color-white-dim);
}

.services-overview-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-headline);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-brd-blue);
    margin-top: auto;
    transition: color var(--transition-base), gap var(--transition-fast);
}

.services-overview-card:hover .services-overview-card__cta {
    color: var(--color-sky-blue);
    gap: 10px;
}


/* ==============================================
   3–7. SERVICE DETAIL SECTIONS
   ============================================== */

.service-detail {
    padding: var(--space-3xl) 0;
}

.service-detail--light {
    background: #ffffff;
}

.service-detail--dark {
    background: var(--color-charcoal);
}

.service-detail__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

@media (min-width: 768px) {
    .service-detail__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-3xl);
    }
}

/* Flip: photo visually on the left (appears first in the grid) */
@media (min-width: 768px) {
    .service-detail--flip .service-detail__photo {
        order: -1;
    }
}

.service-detail__photo {
    border-radius: var(--radius-lg);
    overflow: hidden;
    line-height: 0;
}

.service-detail__photo img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: var(--radius-lg);
}

.service-detail__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.service-detail--light .service-detail__eyebrow {
    color: var(--color-brd-blue);
}

.service-detail--dark .service-detail__eyebrow {
    color: var(--color-sky-blue);
}

.service-detail h2 {
    margin-bottom: var(--space-md);
    line-height: 1.15;
}

.service-detail--light h2 {
    color: var(--color-charcoal);
}

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

.service-detail__desc {
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: var(--space-lg);
}

.service-detail--light .service-detail__desc {
    color: #4a5568;
}

.service-detail--dark .service-detail__desc {
    color: var(--color-white-dim);
}

.service-detail__bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.service-detail__bullets li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: 0.9rem;
    line-height: 1.55;
}

.service-detail--light .service-detail__bullets li {
    color: #4a5568;
}

.service-detail--dark .service-detail__bullets li {
    color: var(--color-white-dim);
}

.service-detail__bullets li::before {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    min-width: 16px;
    background: var(--color-sky-blue);
    border-radius: 50%;
    margin-top: 2px;
    /* Checkmark via clip-path */
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M13.3 3.3a1 1 0 0 1 0 1.4l-6 6a1 1 0 0 1-1.4 0l-3-3a1 1 0 1 1 1.4-1.4L6.6 8.6l5.3-5.3a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M13.3 3.3a1 1 0 0 1 0 1.4l-6 6a1 1 0 0 1-1.4 0l-3-3a1 1 0 1 1 1.4-1.4L6.6 8.6l5.3-5.3a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: cover;
    mask-size: cover;
}


/* ==============================================
   8. PROTECTION PLANS
   ============================================== */

.plans-section {
    padding: var(--space-3xl) 0;
    background: var(--color-brd-blue);
    position: relative;
    overflow: hidden;
}

.plans-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.07) 0%, transparent 65%);
    pointer-events: none;
}

.plans-section__header {
    text-align: center;
    margin-bottom: var(--space-2xl);
    position: relative;
}

.plans-section__eyebrow {
    display: inline-block;
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(234, 245, 241, 0.65);
    margin-bottom: var(--space-md);
}

.plans-section h2 {
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.plans-section__sub {
    color: rgba(234, 245, 241, 0.8);
    max-width: 480px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.7;
}

.plans-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    position: relative;
}

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

.plan-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    position: relative;
}

.plan-card--featured {
    background: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.plan-card__badge {
    display: inline-block;
    background: var(--color-red);
    color: var(--color-white);
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 0.58rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: var(--space-md);
    align-self: flex-start;
}

.plan-card__name {
    font-family: var(--font-headline);
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: var(--space-xs);
}

.plan-card:not(.plan-card--featured) .plan-card__name {
    color: var(--color-white);
}

.plan-card--featured .plan-card__name {
    color: var(--color-charcoal);
}

.plan-card__cadence {
    font-family: var(--font-headline);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.plan-card:not(.plan-card--featured) .plan-card__cadence {
    color: rgba(234, 245, 241, 0.55);
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.plan-card--featured .plan-card__cadence {
    color: #6b7280;
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

.plan-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.plan-card__features li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: 0.875rem;
    line-height: 1.5;
}

.plan-card:not(.plan-card--featured) .plan-card__features li {
    color: rgba(234, 245, 241, 0.85);
}

.plan-card--featured .plan-card__features li {
    color: #374151;
}

.plan-card__features li::before {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    min-width: 16px;
    border-radius: 50%;
    margin-top: 1px;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M13.3 3.3a1 1 0 0 1 0 1.4l-6 6a1 1 0 0 1-1.4 0l-3-3a1 1 0 1 1 1.4-1.4L6.6 8.6l5.3-5.3a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M13.3 3.3a1 1 0 0 1 0 1.4l-6 6a1 1 0 0 1-1.4 0l-3-3a1 1 0 1 1 1.4-1.4L6.6 8.6l5.3-5.3a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: cover;
    mask-size: cover;
}

.plan-card:not(.plan-card--featured) .plan-card__features li::before {
    background: var(--color-sky-blue);
}

.plan-card--featured .plan-card__features li::before {
    background: var(--color-brd-blue);
}

.plan-card .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
}


/* ==============================================
   9. GUARANTEE STRIP — mirrors why-local
   ============================================== */

.services-guarantee {
    padding: var(--space-3xl) 0;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.services-guarantee__header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.services-guarantee__eyebrow {
    display: inline-block;
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-brd-blue);
    margin-bottom: var(--space-md);
}

.services-guarantee h2 {
    color: var(--color-charcoal);
}

.services-guarantee__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

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

.services-guarantee__item {
    text-align: center;
    padding: var(--space-lg);
}

.services-guarantee__icon {
    width: 56px;
    height: 56px;
    background: rgba(0, 83, 139, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    color: var(--color-brd-blue);
}

.services-guarantee__item h3 {
    color: var(--color-charcoal);
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
}

.services-guarantee__item p {
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 280px;
    margin: 0 auto;
}


/* ==============================================
   HOW IT WORKS — service sub-pages only
   ============================================== */

.service-steps {
    padding: var(--space-3xl) 0;
    background: #f8fafb;
}

.service-steps__header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.service-steps h2 {
    color: var(--color-charcoal);
}

.service-steps__eyebrow {
    display: inline-block;
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-brd-blue);
    margin-bottom: var(--space-md);
}

.service-steps__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

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

.service-step {
    text-align: center;
    padding: var(--space-xl);
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.service-step__num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-brd-blue);
    color: #ffffff;
    font-family: var(--font-headline);
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
}

.service-step h3 {
    color: var(--color-charcoal);
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
}

.service-step p {
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.7;
}


/* ==============================================
   10. CTA — mirrors locations-cta
   ============================================== */

.services-cta {
    padding: var(--space-3xl) 0;
    background: var(--color-charcoal);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.services-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(0, 83, 139, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.services-cta__eyebrow {
    display: inline-block;
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-sky-blue);
    margin-bottom: var(--space-md);
    position: relative;
}

.services-cta h2 {
    color: var(--color-white);
    margin-bottom: var(--space-md);
    position: relative;
}

.services-cta__sub {
    color: var(--color-white-dim);
    max-width: 480px;
    margin: 0 auto var(--space-xl);
    font-size: 1rem;
    line-height: 1.7;
    position: relative;
}

.services-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
    position: relative;
}

/* ---- Service Steps (individual service pages) ---- */
.service-steps {
    padding: var(--space-3xl) 0;
    background: #f8fafb;
}
.service-steps__header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}
.service-steps__eyebrow {
    display: inline-block;
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-brd-blue);
    margin-bottom: var(--space-md);
}
.service-steps__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}
@media (min-width: 768px) {
    .service-steps__grid { grid-template-columns: repeat(3, 1fr); }
}
.service-step {
    text-align: center;
    padding: var(--space-xl);
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.service-step__num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-brd-blue);
    color: #ffffff;
    font-family: var(--font-headline);
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
}
.service-step h3 {
    color: var(--color-charcoal);
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
}
.service-step p {
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.7;
}
