/* =========================================================
   BORDERS 24/7 — SITE CSS
   ========================================================= */


/* =========================================================
   SERVICE CARDS
   ========================================================= */

.service-cards {
    gap: 24px;
}

.service-card {
    display: flex;
    flex-direction: column;

    background: #F8FAFC;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    padding: 30px;

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.service-card h3 {
    color: #0F172A;
    margin-top: 0;
    text-align: center;
}

.service-card .wp-block-buttons {
    margin-top: auto;
    justify-content: center;
}

.service-card .wp-block-button__link {
    background: #F97316;
    color: #FFFFFF;
    border-radius: 6px;
    font-weight: 700;
    padding: 12px 18px;
}

/* Service card hover */
@media (hover: hover) and (pointer: fine) {
    .service-card:hover {
        transform: translateY(-5px);
        border-color: #F97316;
        box-shadow:
            0 12px 30px rgba(15, 23, 42, 0.12),
            0 0 0 1px rgba(249, 115, 22, 0.08);
    }
}

.service-card:focus-within {
    border-color: #F97316;
}


/* =========================================================
   BUTTON EFFECTS
   ========================================================= */

.wp-block-button__link,
.callback-form button[type="submit"],
.hero-callback button[type="submit"],
.main-navigation .main-nav ul li:last-child > a {
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease,
        border-color 0.18s ease;
}

@media (hover: hover) and (pointer: fine) {

    .wp-block-button__link:hover,
    .callback-form button[type="submit"]:hover,
    .hero-callback button[type="submit"]:hover {
        transform: translateY(-2px);
        box-shadow:
            0 8px 18px rgba(15, 23, 42, 0.16),
            0 0 0 2px rgba(249, 115, 22, 0.10);
    }

    .main-navigation .main-nav ul li:last-child > a:hover {
        transform: translateY(-2px);
        box-shadow:
            0 8px 18px rgba(15, 23, 42, 0.14),
            0 0 0 2px rgba(249, 115, 22, 0.10);
    }
}

.wp-block-button__link:focus-visible,
.callback-form button[type="submit"]:focus-visible,
.hero-callback button[type="submit"]:focus-visible,
.main-navigation .main-nav ul li:last-child > a:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.28);
}

.wp-block-button__link:active,
.callback-form button[type="submit"]:active,
.hero-callback button[type="submit"]:active,
.main-navigation .main-nav ul li:last-child > a:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Slightly darker orange when hovering primary buttons */
.service-card .wp-block-button__link:hover,
.final-cta .wp-block-button:first-child .wp-block-button__link:hover,
.callback-form button[type="submit"]:hover,
.hero-callback button[type="submit"]:hover {
    background: #EA580C;
}


/* =========================================================
   HERO
   ========================================================= */

.hero-section {
    background: #0F172A;
    color: #FFFFFF;
    padding: 40px 10px;
}



.hero-section h1 {
    color: #FFFFFF;
}

.hero-section .wp-block-columns {
    align-items: center;
    gap: 36px;
}

.hero-trust-line {
    margin-top: 20px;
    font-weight: 600;
    color: #CBD5E1;
}


/* =========================================================
   HERO CALLBACK FORM
   ========================================================= */

.hero-callback {
    background: #FFFFFF;
    color: #0F172A;
    padding: 26px;
    border-radius: 10px;

    box-shadow:
        0 14px 35px rgba(0, 0, 0, 0.18);
}

.hero-callback h2,
.hero-callback h3 {
    color: #0F172A;
    margin-top: 0;
}

.hero-callback h3 {
    font-size: 24px;
    margin-bottom: 6px;
}

.hero-callback > p {
    color: #475569;
    margin-top: 0;
    margin-bottom: 20px;
}

.hero-callback input,
.hero-callback textarea {
    width: 100%;
    box-sizing: border-box;
    border-radius: 6px;
}

.hero-callback textarea {
    min-height: 95px;
    max-height: 130px;
}

.hero-callback button[type="submit"] {
    width: 100%;
    background: #F97316;
    color: #FFFFFF;
    border-radius: 6px;
    font-weight: 700;
    padding: 14px 20px;
}


/* =========================================================
   TRUST STRIP
   ========================================================= */

.trust-strip {
    background: #111827;
    color: #FFFFFF;
    padding: 14px 30px;

    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-strip .wp-block-columns {
    margin: 0 !important;
    gap: 0;
}

.trust-strip-item {
    text-align: center;
    padding: 4px 24px;

    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.trust-strip-item:first-child {
    border-left: none;
}

.trust-strip-item strong {
    display: block;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 3px;
}

.trust-strip-item p {
    color: #CBD5E1;
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
}


/* =========================================================
   EMERGENCY PROCESSreveal-on-scroll
   ========================================================= */

.emergency-process {
    background: #F1F5F9;
    padding: 70px 30px;
}

.process-cta.wp-block-buttons {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 32px;
}


/* =========================================================
   OLD AREA / TOWN LISTS
   Used on location/service pages
   ========================================================= */

.area-towns {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.7;
}


/* =========================================================
   HOMEPAGE AREA CARDS
   ========================================================= */

.area-cards {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px;
    align-items: stretch;
}

.area-card {
    width: 100%;
    min-width: 0;
    min-height: 0 !important;
    height: auto !important;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;

    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    padding: 20px 22px !important;

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

/* Prevent Gutenberg constraining the inner content */
.area-card > *,
.area-card .wp-block-group__inner-container > * {
    width: 100%;
    max-width: none !important;
    margin-left: 0;
    margin-right: 0;
}

.area-card h3 {
    color: #0F172A;
    margin: 0 0 8px;
    line-height: 1.2;
}

.area-card p {
    margin: 0 0 12px;
    line-height: 1.5;
}

.area-card-description {
    color: #475569;
}

/* Keeps View Area aligned toward bottom */
.area-card p:last-child {
    margin-top: auto;
    margin-bottom: 0;
}

.area-card a {
    color: #F97316;
    font-weight: 700;
    text-decoration: none;
}

.area-card a:hover,
.area-card a:focus {
    color: #EA580C;
}

@media (hover: hover) and (pointer: fine) {
    .area-card:hover {
        transform: translateY(-5px);
        border-color: #F97316;

        box-shadow:
            0 12px 30px rgba(15, 23, 42, 0.12),
            0 0 0 1px rgba(249, 115, 22, 0.08);
    }
}


/* =========================================================
   TRUST SECTION
   ========================================================= */

.trust-points {
    gap: 40px;
}

.trust-points .wp-block-column {
    border-top: 3px solid #F97316;
    padding-top: 18px;
}

.trust-points h3 {
    margin-top: 0;
    margin-bottom: 10px;
}


/* =========================================================
   FINAL CTA
   ========================================================= */

.final-cta {
    background-color: #0F172A !important;
    color: #FFFFFF;
    padding: 70px 30px;
    text-align: center;
}

.final-cta h2 {
    color: #FFFFFF;
    margin-top: 0;
    font-size: 38px;
}

.final-cta p {
    color: #FFFFFF;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 18px;
}

.final-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.final-cta .wp-block-button:first-child .wp-block-button__link {
    background: #F97316;
    color: #FFFFFF;
    border-radius: 6px;
    font-weight: 700;
    padding: 14px 22px;
}

.final-cta .wp-block-button:nth-child(2) .wp-block-button__link {
    background: #FFFFFF;
    color: #0F172A;
    border-radius: 6px;
    font-weight: 700;
    padding: 14px 22px;
}


/* =========================================================
   PRIMARY NAVIGATION
   ========================================================= */

/* Normal links */
.main-navigation .main-nav ul li:not(:last-child) > a {
    font-weight: 600;
    color: #0F172A;
}

/* Hover */
.main-navigation .main-nav ul li:not(:last-child) > a:hover,
.main-navigation .main-nav ul li:not(:last-child) > a:focus {
    color: #F97316 !important;
    background-color: transparent !important;
}

/* Current page */
.main-navigation .main-nav ul li:not(:last-child).current-menu-item > a,
.main-navigation .main-nav ul li:not(:last-child).current_page_item > a {
    color: #F97316 !important;
    background-color: transparent !important;
}

/* Header CALL 24/7 button */
.main-navigation .main-nav ul li:last-child > a {
    background-color: #F97316 !important;
    color: #FFFFFF !important;

    border-radius: 6px;
    padding-left: 18px;
    padding-right: 18px;
    margin-left: 12px;
}

/* Header call hover */
.main-navigation .main-nav ul li:last-child > a:hover,
.main-navigation .main-nav ul li:last-child > a:focus {
    background-color: #EA580C !important;
    color: #FFFFFF !important;
}


/* =========================================================
   CALLBACK PAGE FORM
   ========================================================= */

.callback-form {
    max-width: 800px;
}

.callback-form input,
.callback-form textarea,
.callback-form select {
    border-radius: 6px;
}

.callback-form button[type="submit"] {
    background: #F97316;
    color: #FFFFFF;

    border-radius: 6px;
    font-weight: 700;
    padding: 14px 22px;
}

.callback-form button[type="submit"]:hover,
.callback-form button[type="submit"]:focus {
    background: #EA580C;
    color: #FFFFFF;
}


/* =========================================================
   PRIVACY POLICY
   ======================reveal-on-scroll=================================== */

.privacy-policy-content {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 50px 30px;
}

.privacy-policy-content h2 {
    margin-top: 36px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer-widgets {
    background: #F8FAFC;
    color: #0F172A;

    padding-top: 40px;
    padding-bottom: 35px;
}

.footer-widgets .widget-title,
.footer-widgets h2,
.footer-widgets h3 {
    color: #0F172A;
    font-weight: 700;
    font-size: 26px;
    line-height: 1.15;
}

.footer-widgets a {
    color: #0F172A;
    text-decoration: none;
}

.footer-widgets a:hover,
.footer-widgets a:focus {
    color: #F97316;
}

.footer-widgets p {
    color: #111827;
}

.footer-widgets .widget {
    margin-bottom: 36px;
}


/* =========================================================
   FOOTER COPYRIGHT
   ========================================================= */

.site-info .copyright-bar {
    font-size: 0;
}

.site-info .copyright-bar::before {
    content: "© 2026 Borders 24/7 Emergency Plumbing & Electrical";
    font-size: 14px;
}

.site-info .copyright-bar a {
    display: none;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .area-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 781px) {

    /* Hero */
    .hero-section {
        padding: 42px 16px;
    }

    .hero-section .wp-block-columns {
        gap: 30px;
    }

    .hero-section h1 {
        font-size: clamp(28px, 8vw, 34px);
        line-height: 1.12;
        word-break: normal;
        overflow-wrap: normal;
    }

    /* Hero buttons */
    .hero-section .wp-block-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .hero-section .wp-block-button {
        width: 100%;
    }

    .hero-section .wp-block-button__link {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .hero-trust-line {
        font-size: 15px;
        line-height: 1.5;
    }

    /* Hero callback */
    .hero-callback {
        padding: 22px 18px;
    }

    .hero-callback h3 {
        font-size: 22px;
    }

    /* Service cards */
    .service-cards {
        gap: 16px;
    }

    .service-card {
        padding: 24px;
    }

    /* Emergency process */
    .emergency-process {
        padding: 52px 24px;
    }

    /* Trust strip */
    .trust-strip {
        padding: 18px 20px;
    }

    .trust-strip .wp-block-columns {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 18px 0;
    }

    .trust-strip-item {
        padding: 4px 12px;
    }

    .trust-strip-item:nth-child(odd) {
        border-left: none;
    }

    /* Older town lists */
    .area-towns {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 28px;
    }

    .area-towns > .wp-block-column {
        margin: 0 !important;
    }

    /* Final CTA */
    .final-cta {
        padding: 56px 24px;
    }

    .final-cta h2 {
        font-size: 30px;
        line-height: 1.15;
    }

    .final-cta-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .final-cta-buttons .wp-block-button {
        width: 100%;
    }

    .final-cta-buttons .wp-block-button__link {
        width: 100%;
        box-sizing: border-box;
    }

    /* Callback form */
    .callback-form button[type="submit"] {
        width: 100%;
    }

    /* Privacy policy */
    .privacy-policy-content {
        padding: 36px 20px;
    }

    /* Header call button inside mobile menu */
    .main-navigation .main-nav ul li:last-child > a {
        margin-left: 0;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .area-cards {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    .area-card {
        padding: 18px !important;
    }
}

@media (max-width: 480px) {

    .trust-strip .wp-block-columns {
        grid-template-columns: 1fr;
    }

    .trust-strip-item {
        border-left: none;
        padding-top: 8px;
        padding-bottom: 8px;
    }
}

/* =========================================================
   WhatsApp Button
   ========================================================= */

/* WhatsApp button */
.whatsapp-button .wp-block-button__link {
    background: #25D366 !important;
    color: #FFFFFF !important;
    font-weight: 700;
}

.whatsapp-button .wp-block-button__link:hover,
.whatsapp-button .wp-block-button__link:focus {
    background: #1FB855 !important;
    color: #FFFFFF !important;
}

/* =========================
   HERO CONTACT BUTTONS
   ========================= */

.whatsapp-button .wp-block-button__link,
.call-button .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    font-weight: 700;
    padding: 14px 22px;
    border-radius: 999px;
}

/* WhatsApp */
.whatsapp-button .wp-block-button__link {
    background: #25D366 !important;
    color: #FFFFFF !important;
}

.whatsapp-button .wp-block-button__link::before {
    content: "";
    width: 20px;
    height: 20px;
    flex: 0 0 20px;

    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M12.04 2C6.52 2 2.05 6.48 2.05 12c0 1.76.46 3.48 1.33 4.99L2 22l5.13-1.34A9.96 9.96 0 0 0 12.04 22C17.56 22 22 17.52 22 12S17.56 2 12.04 2Zm0 18.17a8.1 8.1 0 0 1-4.12-1.13l-.3-.18-3.04.8.81-2.96-.2-.31A8.17 8.17 0 1 1 12.04 20.17Zm4.48-6.11c-.25-.13-1.46-.72-1.69-.8-.23-.08-.4-.13-.57.13-.17.25-.65.8-.8.97-.15.17-.3.19-.55.06-.25-.13-1.05-.39-2-1.24-.74-.66-1.24-1.47-1.39-1.72-.15-.25-.02-.38.11-.51.12-.11.25-.3.38-.44.13-.15.17-.25.25-.42.08-.17.04-.32-.02-.44-.06-.13-.57-1.37-.78-1.88-.21-.5-.42-.43-.57-.44h-.49c-.17 0-.44.06-.67.32-.23.25-.88.86-.88 2.09s.9 2.42 1.02 2.59c.13.17 1.76 2.69 4.27 3.77.6.26 1.06.41 1.42.52.6.19 1.14.16 1.57.1.48-.07 1.46-.6 1.67-1.17.21-.57.21-1.06.15-1.17-.06-.1-.23-.17-.48-.3Z'/%3E%3C/svg%3E");
}

.whatsapp-button .wp-block-button__link:hover {
    background: #1FB855 !important;
}


/* Call button */
.call-button .wp-block-button__link {
    background: #F97316 !important;
    color: #FFFFFF !important;
}

.call-button .wp-block-button__link::before {
    content: "";
    width: 18px;
    height: 18px;
    flex: 0 0 18px;

    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M6.62 10.79a15.46 15.46 0 0 0 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1C10.61 21 3 13.39 3 4c0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2Z'/%3E%3C/svg%3E");
}

.call-button .wp-block-button__link:hover {
    background: #EA580C !important;
}




@media (max-width: 781px) {
    .hero-section h1 {
        font-size: clamp(27px, 7.5vw, 32px);
        line-height: 1.1;
    }
}

@media (max-width: 480px) {
    .trust-strip .wp-block-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .trust-strip .wp-block-columns {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-strip-item strong {
        font-size: 14px;
    }

    .trust-strip-item p {
        font-size: 12px;
    }
}

@media (max-width: 781px) {
    .footer-widgets .widget-title,
    .footer-widgets h2,
    .footer-widgets h3 {
        font-size: 23px;
    }
}