.fp-utility-bar {
    background: var(--fp-blue);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
}
.fp-utility-bar__inner {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}
.fp-utility-bar__contact,
.fp-utility-bar__links { display: flex; align-items: center; gap: 22px; }
.fp-utility-bar a { display: inline-flex; align-items: center; gap: 7px; opacity: .96; }
.fp-utility-bar a:hover { opacity: 1; text-decoration: underline; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid rgba(220,231,234,.85);
    box-shadow: 0 8px 28px rgba(23,63,82,.05);
    backdrop-filter: blur(12px);
}
body.admin-bar .site-header { top: 32px; }
.site-branding { min-width: 0; }
.custom-logo-link,
.fp-brand-logo { display: inline-flex; align-items: center; }
.site-header .custom-logo,
.fp-brand-logo img { width: 245px; max-height: 58px; object-fit: contain; object-position: left center; }

.site-navigation { justify-self: end; }
.primary-menu,
.fp-mobile-drawer-menu,
.fp-footer-menu { list-style: none; padding: 0; margin: 0; }
.primary-menu { display: flex; align-items: center; gap: 28px; }
.primary-menu a {
    color: var(--fp-ink);
    font-size: .91rem;
    font-weight: 700;
    transition: color .2s ease;
}

.primary-menu > .menu-item-has-children > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.primary-menu > .menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
    transform: translateY(1px);
    transition: transform .2s ease, border-top-color .2s ease;
}

.primary-menu > .menu-item-has-children:hover > a::after,
.primary-menu > .menu-item-has-children:focus-within > a::after,
.primary-menu > .current-menu-ancestor.menu-item-has-children > a::after,
.primary-menu > .current-menu-item.menu-item-has-children > a::after {
    transform: translateY(1px) rotate(180deg);
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current-menu-ancestor > a { color: var(--fp-blue); }
.primary-menu .menu-item-has-children { position: relative; }
.primary-menu .sub-menu {
    position: absolute;
    left: -18px;
    top: calc(100% + 6px);
    min-width: 230px;
    padding: 10px;
    margin: 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--fp-border);
	border-top: 3px solid var(--fp-blue);
    border-radius: 4px 4px 14px 14px;
    box-shadow: var(--fp-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: .2s ease;
}
.primary-menu .menu-item-has-children:hover > .sub-menu,
.primary-menu .menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.primary-menu .sub-menu a { display: block; padding: 10px 12px; border-radius: 8px; }
.primary-menu .sub-menu a:hover { background: var(--fp-soft-blue); }

.fp-header-actions { display: flex; align-items: center; gap: 10px; justify-self: end; }
.fp-button {
    min-height: 48px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 11px;
    border: 1px solid transparent;
    font-weight: 800;
    font-size: .92rem;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.fp-button:hover { transform: translateY(-1px); }
.fp-button--primary,
.fp-button--header { background: var(--fp-green); color: #fff; box-shadow: 0 10px 24px rgba(56,182,92,.2); }
.fp-button--primary:hover,
.fp-button--header:hover { background: color-mix(in srgb, var(--fp-green) 86%, #0d6f32 14%); }
.fp-button--secondary { background: rgba(255,255,255,.88); color: var(--fp-navy); border-color: color-mix(in srgb, var(--fp-blue) 70%, #fff 30%); }
.fp-button--secondary:hover { background: #fff; box-shadow: var(--fp-shadow-soft); }
.fp-button--header { min-height: 44px; padding-inline: 20px; }

.fp-mobile-menu-button {
    width: 44px; height: 44px;
    display: none;
    border-radius: 50%;
    border: 1px solid var(--fp-border);
    background: #fff;
    padding: 11px;
    cursor: pointer;
}
.fp-mobile-menu-button > span:not(.screen-reader-text) { display: block; height: 2px; margin: 4px 0; border-radius: 9px; background: var(--fp-navy); }
.fp-mobile-menu-overlay { position: fixed; inset: 0; z-index: 190; background: rgba(15,35,47,.42); opacity: 0; visibility: hidden; transition: .22s ease; }
.fp-mobile-menu-drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    z-index: 200;
    width: min(390px, 88vw);
    padding: 24px;
    background: #fff;
    transform: translateX(102%);
    transition: transform .25s ease;
    box-shadow: -20px 0 50px rgba(23,63,82,.16);
}
body.admin-bar .fp-mobile-menu-drawer { top: 32px; }
.fp-mobile-menu-is-open { overflow: hidden; }
.fp-mobile-menu-is-open .fp-mobile-menu-overlay { opacity: 1; visibility: visible; }
.fp-mobile-menu-is-open .fp-mobile-menu-drawer { transform: translateX(0); }
.fp-mobile-menu-drawer__top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--fp-border); color: var(--fp-navy); }
.fp-mobile-menu-drawer__close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--fp-soft-blue); color: var(--fp-navy); font-size: 1.7rem; cursor: pointer; }
.fp-mobile-menu-drawer__nav { padding: 18px 0; }
.fp-mobile-drawer-menu a { display: block; padding: 13px 4px; color: var(--fp-navy); font-weight: 700; border-bottom: 1px solid rgba(220,231,234,.7); }
.fp-mobile-drawer-menu .sub-menu { list-style: none; padding-left: 16px; }
.fp-mobile-menu-drawer__cta { width: 100%; color: #fff; background: var(--fp-green); }

.fp-hero {
    background:
        radial-gradient(circle at 13% 20%, rgba(10,147,199,.09), transparent 29%),
        linear-gradient(110deg, #f3fbfe 0%, #fcfcf9 52%, #f8fbf7 100%);
    border-bottom: 1px solid rgba(220,231,234,.75);
}
.fp-eyebrow { margin: 0 0 6px; color: var(--fp-blue); font-weight: 800; font-size: .82rem; letter-spacing: .12em; }
.fp-hero .fp-eyebrow::after {
    content: "";
    display: inline-block;
    width: 34px;
    height: 2px;
    margin-left: 10px;
    vertical-align: middle;
    border-radius: 99px;
    background: currentColor;
    opacity: .72;
}
.fp-hero__faith-verse { max-width: 620px; margin: 0 0 12px; color: var(--fp-navy); font-size: clamp(1.04rem, 1.42vw, 1.16rem); line-height: 1.45; font-weight: 650; letter-spacing: -.012em; }
.fp-hero h1 { max-width: 640px; margin-bottom: 14px; font-size: clamp(3.1rem, 4.8vw, 4.75rem); line-height: .98; letter-spacing: -.052em; }
.fp-hero__descriptor { max-width: 620px; margin: 0 0 8px; color: var(--fp-teal); font-size: clamp(.98rem, 1.28vw, 1.08rem); line-height: 1.4; font-weight: 650; letter-spacing: -.012em; }
.fp-hero__description { max-width: 590px; margin-bottom: 28px; color: var(--fp-navy); font-size: clamp(1.02rem, 1.4vw, 1.16rem); line-height: 1.55; font-weight: 600; }
.fp-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.fp-hero__trust { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; max-width: 650px; }
.fp-hero__trust li { display: flex; align-items: center; gap: 10px; color: var(--fp-navy); font-size: .82rem; line-height: 1.35; }
.fp-hero__trust li > span { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--fp-blue); font-size: 1.2rem; }
.fp-hero__trust li:nth-child(2) > span { background: var(--fp-green); }
.fp-hero__trust li:nth-child(3) > span { background: var(--fp-teal); }

.fp-hero__visual { background: var(--fp-soft-blue); overflow: hidden; }
.fp-hero__image { width: 100%; height: 100%; object-fit: cover; }
.fp-hero__placeholder {
    position: absolute; inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 32px;
    text-align: center;
    color: var(--fp-navy);
    background:
        radial-gradient(circle at 70% 22%, rgba(56,182,92,.18), transparent 26%),
        radial-gradient(circle at 28% 74%, rgba(10,147,199,.18), transparent 28%),
        linear-gradient(145deg, #eaf7fb, #f8fbf7);
}
.fp-hero__placeholder-mark { width: 90px; height: 90px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: var(--fp-shadow); color: var(--fp-green); font-size: 3.1rem; }
.fp-hero__placeholder strong { margin-top: 10px; font-size: 1.15rem; }
.fp-hero__placeholder span { color: var(--fp-muted); font-size: .84rem; }
.fp-hero__trust-card {
    position: absolute;
    right: 28px;
    bottom: 28px;
    max-width: 285px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 18px 20px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 17px;
    box-shadow: var(--fp-shadow);
}
.fp-hero__trust-card-icon { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--fp-green); background: var(--fp-soft-green); font-size: 1.55rem; }
.fp-hero__trust-card strong { display: block; color: var(--fp-navy); font-size: .88rem; line-height: 1.35; }
.fp-hero__trust-card span { display: block; margin-top: 4px; color: var(--fp-muted); font-size: .72rem; }


/* =========================================
   FIRST PROMISE – HOMEPAGE HERO ENTRANCE
   Calm page-load reveal for the theme hero.
========================================= */
@keyframes fpHeroRise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fpHeroVisualIn {
    from { opacity: 0; transform: scale(1.018); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes fpHeroCardIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
    .fp-hero .fp-eyebrow,
    .fp-hero .fp-hero__faith-verse,
    .fp-hero .fp-hero__descriptor,
    .fp-hero #fp-hero-title,
    .fp-hero .fp-hero__description,
    .fp-hero .fp-hero__actions,
    .fp-hero .fp-hero__trust li,
    .fp-hero .fp-hero__trust-card {
        opacity: 0;
        animation: fpHeroRise .62s cubic-bezier(.22,.61,.36,1) forwards;
    }

    .fp-hero .fp-eyebrow { animation-delay: .05s; }
    .fp-hero .fp-hero__faith-verse { animation-delay: .11s; }
    .fp-hero #fp-hero-title { animation-delay: .19s; }
    .fp-hero .fp-hero__descriptor { animation-delay: .27s; }
    .fp-hero .fp-hero__description { animation-delay: .34s; }
    .fp-hero .fp-hero__actions { animation-delay: .42s; }
    .fp-hero .fp-hero__trust li:nth-child(1) { animation-delay: .50s; }
    .fp-hero .fp-hero__trust li:nth-child(2) { animation-delay: .58s; }
    .fp-hero .fp-hero__trust li:nth-child(3) { animation-delay: .66s; }

    .fp-hero .fp-hero__image,
    .fp-hero .fp-hero__placeholder {
        opacity: 0;
        animation: fpHeroVisualIn .9s cubic-bezier(.22,.61,.36,1) .12s forwards;
        transform-origin: center center;
    }

    .fp-hero .fp-hero__trust-card {
        animation-name: fpHeroCardIn;
        animation-delay: .7s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fp-hero .fp-eyebrow,
    .fp-hero .fp-hero__faith-verse,
    .fp-hero .fp-hero__descriptor,
    .fp-hero #fp-hero-title,
    .fp-hero .fp-hero__description,
    .fp-hero .fp-hero__actions,
    .fp-hero .fp-hero__trust li,
    .fp-hero .fp-hero__trust-card,
    .fp-hero .fp-hero__image,
    .fp-hero .fp-hero__placeholder {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

.site-footer { background: #12384b; color: rgba(255,255,255,.82); }
.site-footer .custom-logo,
.fp-brand-logo--footer img {
    width: 220px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: none;
    opacity: 1;
}
.fp-footer-brand p { max-width: 280px; margin-top: 20px; color: rgba(255,255,255,.75); font-size: .88rem; }
.fp-footer-column h2 { margin-bottom: 18px; color: #fff; font-size: .93rem; letter-spacing: 0; }
.fp-footer-menu li + li { margin-top: 9px; }
.fp-footer-menu a,
.fp-footer-contact a,
.fp-footer-contact span { display: block; color: rgba(255,255,255,.75); font-size: .82rem; line-height: 1.55; }
.fp-footer-menu a:hover,
.fp-footer-contact a:hover { color: #fff; }
.fp-footer-contact > * + * { margin-top: 8px; }
.fp-footer-bottom { border-top: 1px solid rgba(255,255,255,.13); color: rgba(255,255,255,.62); font-size: .76rem; }
.fp-footer-legal { display: flex; gap: 20px; }
.fp-footer-legal a:hover { color: #fff; }

.main-navigation .menu-item-has-children > a::after {
    content: "▾";
    font-size: 0.75em;
    margin-left: 6px;
}

@media (max-width: 1100px) {
    .primary-menu { gap: 18px; }
    .primary-menu a { font-size: .84rem; }
    .site-header .custom-logo, .fp-brand-logo img { width: 220px; }
}
@media (max-width: 900px) {
    .site-navigation { display: none; }
    .fp-mobile-menu-button { display: block; }
    .fp-header-actions { grid-column: 2; }
}
@media (max-width: 820px) {
    body.admin-bar .site-header { top: 46px; }
    body.admin-bar .fp-mobile-menu-drawer { top: 46px; }
    .fp-utility-bar__links { display: none; }
    .fp-utility-bar__inner { justify-content: center; }
    .fp-hero__descriptor { font-size: 1.02rem; }
    .fp-hero h1 { font-size: clamp(2.7rem, 10vw, 4.25rem); }
    .fp-hero__trust { margin-bottom: 4px; }
    .fp-hero__trust-card { right: 18px; bottom: 18px; }
}
@media (max-width: 560px) {
    .fp-utility-bar { font-size: .72rem; }
    .fp-utility-bar__contact { width: 100%; justify-content: center; gap: 14px; }
    .fp-utility-bar__contact a:nth-child(2) { display: none; }
    .site-header .custom-logo, .fp-brand-logo img { width: 176px; max-height: 46px; }
    .fp-button--header { min-height: 40px; padding-inline: 14px; font-size: .78rem; white-space: nowrap; flex-shrink: 0; }
    .fp-mobile-menu-button { width: 40px; height: 40px; }
    .fp-hero__descriptor { margin-bottom: 8px; font-size: .95rem; }
    .fp-hero h1 { font-size: clamp(2.5rem, 11vw, 3.35rem); }
    .fp-hero__description { font-size: .98rem; }
    .fp-hero__actions { display: grid; grid-template-columns: 1fr; }
    .fp-hero__actions .fp-button { width: 100%; }
    .fp-hero__trust { grid-template-columns: 1fr; gap: 10px; }
    .fp-hero__trust li { font-size: .82rem; }
    .fp-hero__trust li > span { width: 34px; height: 34px; flex-basis: 34px; }
    .fp-hero__trust-card { left: 16px; right: 16px; max-width: none; }
    .fp-footer-legal { flex-wrap: wrap; gap: 12px; }
}

/* =========================================
   FIRST PROMISE – TABLET HEADER BREAKPOINT
   Switch full navigation to hamburger before
   menu items begin wrapping.
========================================= */

@media (max-width: 1279px) {

    /* Two-part header:
       logo | Request Care + hamburger */
    .site-header .fp-header-inner {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        align-items: center !important;
        gap: 16px !important;
    }

    /* Hide full desktop navigation */
    .site-header .site-navigation {
        display: none !important;
    }

    /* Keep CTA + hamburger together */
    .site-header .fp-header-actions {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 12px !important;
        min-width: 0;
    }

    /* Show the existing hamburger/menu button.
       Uses its accessible menu label rather than
       assuming another theme-specific class. */
    .site-header
    .fp-header-actions
    button[aria-label*="menu" i] {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Don't allow the logo to force the action
       buttons off-screen on narrower tablets. */
    .site-header .site-branding {
        min-width: 0;
    }

    .site-header .custom-logo-link {
        display: inline-flex;
        max-width: 100%;
    }

    .site-header .custom-logo {
        max-width: min(260px, 100%) !important;
        height: auto !important;
    }
}


/* Full desktop navigation begins here */
@media (min-width: 1280px) {

    .site-header .site-navigation {
        display: block;
    }

    /* Hamburger stays hidden on true desktop */
    .site-header
    .fp-header-actions
    button[aria-label*="menu" i] {
        display: none !important;
    }
}

/* =========================================
   TABLET HAMBURGER ICON FIX
   The menu button is shown from 1279px down,
   so draw the hamburger icon in the new
   tablet-only range too.
========================================= */

@media (max-width: 1279px) {

    .site-header
    .fp-header-actions
    button[aria-label*="menu" i]::before {
        content: "";
        display: block;
        width: 20px;
        height: 14px;

        background:
            linear-gradient(
                to bottom,
                currentColor 0,
                currentColor 2px,
                transparent 2px,
                transparent 6px,
                currentColor 6px,
                currentColor 8px,
                transparent 8px,
                transparent 12px,
                currentColor 12px,
                currentColor 14px
            );

        color: var(--fp-blue);
    }
}

/* =========================================
   FIRST PROMISE – REUSABLE HOVER LIFT
   Works with containers/cards + Elementor buttons
========================================= */

/* General card/container lift */
.fp-hover-lift {
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease !important;
}

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

    .fp-hover-lift:hover {
        transform: translateY(-4px) !important;
        box-shadow: 0 12px 28px rgba(18, 63, 82, 0.10) !important;
    }
}


/* Elementor Button widget:
   class is placed on the widget itself */
.elementor-widget-button.fp-hover-lift .elementor-button {
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease !important;
}

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

    .elementor-widget-button.fp-hover-lift:hover .elementor-button {
        transform: translateY(-4px) !important;
        box-shadow: 0 10px 22px rgba(18, 63, 82, 0.14) !important;
    }
}


/* Keyboard accessibility */
.elementor-widget-button.fp-hover-lift:focus-within .elementor-button,
.fp-hover-lift:focus-within {
    transform: translateY(-4px) !important;
}


/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    .fp-hover-lift,
    .elementor-widget-button.fp-hover-lift .elementor-button {
        transition: none !important;
    }

    .fp-hover-lift:hover,
    .fp-hover-lift:focus-within,
    .elementor-widget-button.fp-hover-lift:hover .elementor-button,
    .elementor-widget-button.fp-hover-lift:focus-within .elementor-button {
        transform: none !important;
    }
}