/**
 * Province Landing Page Styles
 *
 * Styles for province-specific landing pages (e.g., Vlaams-Brabant, Limburg).
 * Conditionally loaded only on province template pages.
 *
 * @package loodgieter-sanitair
 */

/* ==========================================================================
   Sticky Fix
   ========================================================================== */

body:has(.province-landing-page) {
    overflow-x: clip;
}

/* ==========================================================================
   Color Overrides
   style.css sets .site-main a { color: #FF5F30 } and
   a:visited { color: #ff906e } which bleeds into province page links.
   ========================================================================== */

.province-landing-page a,
.province-landing-page a:visited {
    color: #0274DE;
}

.province-landing-page a:hover {
    color: #FF5F30;
}

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

.province-hero {
    font-family: "Poppins", sans-serif;
    background: linear-gradient(160deg, #f0fbff 0%, #e4f3fd 50%, #f0fbff 100%);
    padding: 72px 0 60px;
    position: relative;
    overflow: hidden;
}

.province-hero::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -60px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(2, 116, 222, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Breadcrumb */
.province-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
}

.province-breadcrumb a,
.province-breadcrumb a:visited {
    color: #0274DE;
    text-decoration: none;
}

.province-breadcrumb a:hover {
    color: #FF5F30;
    text-decoration: underline;
}

.province-breadcrumb .separator {
    font-size: 10px;
    color: #999;
}

.province-breadcrumb .current {
    color: #101820;
    font-weight: 500;
}

/* Trust bar */
.province-trust-bar {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid rgba(2, 116, 222, 0.15);
    border-radius: 40px;
    padding: 8px 20px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #404040;
    box-shadow: 0 2px 12px rgba(2, 116, 222, 0.08);
}

.province-trust-bar .trust-stars {
    color: #f5a623;
    letter-spacing: 1px;
    font-size: 15px;
}

.province-trust-bar .trust-stars span {
    color: #101820;
    font-weight: 600;
    margin-left: 6px;
    font-size: 14px;
}

.province-trust-bar .trust-divider {
    width: 1px;
    height: 18px;
    background: #ccc;
    flex-shrink: 0;
}

.province-trust-bar .trust-available {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #16a34a;
    font-weight: 600;
}

.province-trust-bar .availability-dot {
    width: 8px;
    height: 8px;
    background: #16a34a;
    border-radius: 50%;
    display: inline-block;
    animation: provincePulse 2s ease-in-out infinite;
}

@keyframes provincePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* Headline */
.province-hero h1 {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 16px;
    color: #101820;
}

.province-hero .province-name {
    color: #0274DE;
}

.province-subtitle {
    font-size: 18px;
    color: #555;
    line-height: 1.7;
    max-width: 680px;
    margin: 0;
}

.province-subtitle strong {
    color: #101820;
}

/* ==========================================================================
   Section Header (shared across sections)
   ========================================================================== */

.section-label {
    display: inline-block;
    background: linear-gradient(135deg, #e8f4ff, #d0ebff);
    color: #0274DE;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.section-label i {
    margin-right: 6px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-family: "Poppins", sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #101820;
    margin: 0;
}

/* ==========================================================================
   Cities Grid
   ========================================================================== */

.province-cities {
    padding: 70px 0 80px;
}

.city-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e8eef3;
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.city-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(2, 116, 222, 0.12);
}

.city-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px;
    border-bottom: 1px solid #f0f3f6;
    background: linear-gradient(135deg, #f8fcff, #fff);
}

.city-card__header i {
    color: #0274DE;
    font-size: 16px;
    flex-shrink: 0;
}

.city-card__header h3 {
    font-family: "Poppins", sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #101820;
    margin: 0;
    flex: 1;
}

.city-card__postal {
    font-size: 13px;
    color: #999;
    font-weight: 500;
    background: #f5f7fa;
    padding: 2px 10px;
    border-radius: 12px;
}

.city-card__services {
    list-style: none;
    margin: 0;
    padding: 0;
}

.city-card__services li {
    border-bottom: 1px solid #f5f7fa;
}

.city-card__services li:last-child {
    border-bottom: none;
}

.city-card__services a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.city-card__services a:visited {
    color: #333;
}

.city-card__services a:hover {
    background: #f0fbff;
    color: #0274DE;
    padding-left: 24px;
}

.city-card__services a .fa-chevron-right {
    font-size: 11px;
    color: #ccc;
    transition: color 0.2s ease, transform 0.2s ease;
}

.city-card__services a:hover .fa-chevron-right {
    color: #0274DE;
    transform: translateX(3px);
}

/* ==========================================================================
   Services Overview
   ========================================================================== */

.province-services {
    padding: 70px 0 80px;
    background: linear-gradient(160deg, #f0fbff 0%, #f8fcff 100%);
}

.service-overview-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border-radius: 14px;
    padding: 32px 24px;
    height: 100%;
    border: 1px solid #e8eef3;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(2, 116, 222, 0.12);
    border-color: #0274DE;
}

.service-overview-card__icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #e8f4ff, #d0ebff);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #0274DE;
    margin-bottom: 16px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.service-overview-card:hover .service-overview-card__icon {
    background: linear-gradient(45deg, #4099ff, #73b4ff);
    color: #fff;
    transform: scale(1.1);
}

.service-overview-card h3 {
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #101820;
    margin: 0 0 12px;
}

.service-overview-card__arrow {
    margin-top: auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #999;
    transition: background 0.3s ease, color 0.3s ease;
}

.service-overview-card:hover .service-overview-card__arrow {
    background: #0274DE;
    color: #fff;
}

/* ==========================================================================
   Other Provinces
   ========================================================================== */

.province-others {
    padding: 70px 0 80px;
}

.province-others__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.province-link-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #e8eef3;
    border-radius: 12px;
    padding: 16px 20px;
    text-decoration: none;
    color: #101820;
    font-weight: 500;
    font-size: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.province-link-card:visited {
    color: #101820;
}

.province-link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 116, 222, 0.1);
    border-color: #0274DE;
    color: #0274DE;
}

.province-link-card .fa-map-pin {
    font-size: 18px;
    color: #FF5F30;
    flex-shrink: 0;
}

.province-link-card span {
    flex: 1;
}

.province-link-card .chevron {
    font-size: 12px;
    color: #ccc;
    transition: color 0.2s ease, transform 0.2s ease;
}

.province-link-card:hover .chevron {
    color: #0274DE;
    transform: translateX(3px);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.province-cta {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    color: #fff;
}

.province-cta__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0259a8 0%, #0274DE 40%, #4099ff 100%);
    z-index: 0;
}

.province-cta__circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
}

.province-cta__circle--1 {
    top: -80px;
    right: -60px;
    width: 300px;
    height: 300px;
}

.province-cta__circle--2 {
    bottom: -100px;
    left: -40px;
    width: 350px;
    height: 350px;
}

.province-cta .container {
    position: relative;
    z-index: 1;
}

.province-cta__label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.75rem;
}

.province-cta__label i {
    margin-right: 6px;
}

.province-cta h2 {
    font-family: "Poppins", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    color: #fff;
}

.province-cta p {
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    max-width: 550px;
}

.province-cta__features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.province-cta__features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.province-cta__features i {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #fff;
    flex-shrink: 0;
}

/* CTA buttons */
.province-cta__actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.province-cta__btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    border-radius: 14px;
    text-decoration: none;
    font-size: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.province-cta__btn:hover {
    transform: translateY(-2px);
}

.province-cta__btn--phone {
    background: #fff;
    color: #101820;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.province-cta__btn--phone,
.province-cta__btn--phone:visited {
    color: #101820;
}

.province-cta__btn--phone:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    color: #101820;
}

.province-cta__btn--phone .province-cta__btn-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(45deg, #2ed8b6, #59e0c5);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}

.province-cta__btn--quote {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
}

.province-cta__btn--quote,
.province-cta__btn--quote:visited {
    color: #fff;
}

.province-cta__btn--quote:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.province-cta__btn--quote .province-cta__btn-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}

.province-cta__btn-label {
    display: block;
    font-size: 13px;
    opacity: 0.7;
    margin-bottom: 2px;
}

.province-cta__btn strong {
    font-size: 17px;
}

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

@media (max-width: 991px) {
    .province-hero {
        padding: 48px 0 40px;
    }

    .province-hero h1 {
        font-size: 34px;
    }

    .province-subtitle {
        font-size: 16px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .province-cities,
    .province-services,
    .province-others {
        padding: 50px 0 60px;
    }

    .province-cta {
        padding: 60px 0;
    }

    .province-cta h2 {
        font-size: 1.6rem;
    }

    .province-cta__actions {
        margin-top: 2rem;
    }
}

@media (max-width: 767px) {
    .province-hero {
        padding: 36px 0 32px;
    }

    .province-hero h1 {
        font-size: 28px;
    }

    .province-trust-bar {
        font-size: 12px;
        padding: 6px 14px;
        gap: 10px;
    }

    .province-trust-bar .trust-stars {
        font-size: 13px;
    }

    .province-subtitle {
        font-size: 15px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .province-cities,
    .province-services,
    .province-others {
        padding: 40px 0 50px;
    }

    .province-others__grid {
        grid-template-columns: 1fr;
    }

    .province-cta {
        padding: 50px 0;
        text-align: center;
    }

    .province-cta p {
        max-width: none;
    }

    .province-cta__features {
        justify-content: center;
    }

    .province-cta__btn {
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .province-hero h1 {
        font-size: 24px;
    }

    .province-trust-bar .trust-divider {
        display: none;
    }

    .province-trust-bar .trust-available {
        display: none;
    }

    .city-card__header {
        padding: 14px 16px;
    }

    .city-card__services a {
        padding: 10px 16px;
        font-size: 13px;
    }

    .service-overview-card {
        padding: 24px 16px;
    }

    .province-cta__btn {
        padding: 14px 18px;
    }

    .province-cta__btn strong {
        font-size: 15px;
    }
}
