/* ==========================================================================
   Lifeline Front Page — Clean Redesign
   ========================================================================== */

/* --- Custom Properties --- */
.lifeline-frontpage {
    --color-primary: #1a2238;
    --color-accent: #e8913a;
    --color-accent-hover: #d47e2d;
    --color-bg: #faf9f7;
    --color-text: #2d3748;
    --color-muted: #6b7280;
    --color-section-alt: #f0ede8;
    --color-white: #ffffff;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 24px rgba(0, 0, 0, 0.12);
    --transition: 0.2s ease;
}

/* --- Reset / Base --- */
.lifeline-frontpage {
    font-family: var(--font-stack);
    color: var(--color-text);
    font-size: 17px;
    line-height: 1.7;
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

.lifeline-frontpage *,
.lifeline-frontpage *::before,
.lifeline-frontpage *::after {
    box-sizing: border-box;
}

.lifeline-frontpage h1,
.lifeline-frontpage h2,
.lifeline-frontpage h3 {
    font-family: var(--font-stack);
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.5em;
}

.lifeline-frontpage a {
    text-decoration: none;
    transition: color var(--transition);
}

/* --- Hide default theme header on custom pages --- */
body.lfp-custom-page .header1-topbar,
body.lfp-custom-page #header1,
body.lfp-custom-page .header-1,
body.lfp-custom-page .page-title-section,
body.lfp-custom-page .header_1,
body.lfp-custom-page .topbar,
body.lfp-custom-page .lifeline-header,
body.lfp-custom-page #masthead {
    display: none !important;
}

/* --- Section Heading Utility --- */
.lfp-section-heading {
    text-align: center;
    font-size: 2rem;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

/* --- Buttons --- */
.lfp-btn {
    display: inline-block;
    font-family: var(--font-stack);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.7rem 1.6rem;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    line-height: 1.4;
}

.lfp-btn--accent {
    background: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

.lfp-btn--accent:hover,
.lfp-btn--accent:focus {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(232, 145, 58, 0.35);
}

.lfp-btn--outline {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.lfp-btn--outline:hover,
.lfp-btn--outline:focus {
    background: var(--color-white);
    color: var(--color-primary);
}

.lfp-btn--outline-dark {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.lfp-btn--outline-dark:hover,
.lfp-btn--outline-dark:focus {
    background: var(--color-primary);
    color: var(--color-white);
}

.lfp-btn--sm {
    padding: 0.5rem 1.3rem;
    font-size: 0.88rem;
}

.lfp-btn--lg {
    padding: 0.85rem 2rem;
    font-size: 1.05rem;
}


/* ==========================================================================
   1. NAVIGATION
   ========================================================================== */

.lfp-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 1rem 0;
    transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.lfp-nav--sticky {
    background: var(--color-white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 0.6rem 0;
}

.lfp-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lfp-nav__logo {
    flex-shrink: 0;
}

.lfp-nav__logo-img {
    height: 48px;
    width: auto;
    max-width: 200px;
}

.lfp-nav__links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.lfp-nav__links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    padding: 0.3rem 0;
    position: relative;
}

.lfp-nav__links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition);
}

.lfp-nav__links a:hover::after {
    width: 100%;
}

.lfp-nav--sticky .lfp-nav__links a {
    color: var(--color-text);
}

.lfp-nav--sticky .lfp-nav__links a:hover {
    color: var(--color-primary);
}

.lfp-nav__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lfp-nav__phone {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.lfp-nav__phone:hover {
    color: var(--color-accent);
}

.lfp-nav--sticky .lfp-nav__phone {
    color: var(--color-text);
}

.lfp-nav--sticky .lfp-nav__phone:hover {
    color: var(--color-accent);
}

.lfp-nav__hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    flex-direction: column;
    gap: 5px;
}

.lfp-nav__hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    transition: all var(--transition);
    border-radius: 2px;
}

.lfp-nav--sticky .lfp-nav__hamburger span {
    background: var(--color-primary);
}

.lfp-nav__hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.lfp-nav__hamburger.active span:nth-child(2) {
    opacity: 0;
}

.lfp-nav__hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


/* ==========================================================================
   2. HERO
   ========================================================================== */

.lfp-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: var(--color-primary);
    overflow: hidden;
}

@keyframes lfp-hero-pan {
    0%   { transform: scale(1.08) translateX(-2%); }
    100% { transform: scale(1.08) translateX(2%); }
}

.lfp-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    animation: lfp-hero-pan 20s ease-in-out infinite alternate;
    will-change: transform;
    pointer-events: none;
}

.lfp-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 34, 56, 0.50);
    z-index: 1;
}

.lfp-hero .container {
    position: relative;
    z-index: 2;
}

.lfp-hero__content {
    max-width: 700px;
    text-align: center;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
}

.lifeline-frontpage .lfp-hero__title {
    font-size: 3rem;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    line-height: 1.15;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.lfp-hero__subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.lfp-hero__ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.lfp-hero__phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    font-weight: 500;
}

.lfp-hero__phone:hover {
    color: var(--color-accent);
}


/* ==========================================================================
   3. MISSION
   ========================================================================== */

.lfp-mission {
    background: var(--color-white);
    padding: 5rem 0;
}

.lfp-mission__text {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
    font-size: 1.15rem;
    color: var(--color-muted);
}

.lfp-mission__cards {
    justify-content: center;
}

.lfp-mission__card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.lfp-mission__icon {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
    width: 64px;
    height: 64px;
    line-height: 64px;
    border-radius: 50%;
    background: rgba(232, 145, 58, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lfp-mission__card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.lfp-mission__card p {
    color: var(--color-muted);
    font-size: 0.95rem;
    margin: 0;
}


/* ==========================================================================
   4. GET INVOLVED
   ========================================================================== */

.lfp-involved {
    background: var(--color-section-alt);
    padding: 5rem 0;
}

.lfp-involved__cards {
    margin-top: 2rem;
}

.lfp-involved__card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow var(--transition), transform var(--transition);
}

.lfp-involved__card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.lfp-involved__icon {
    font-size: 1.8rem;
    color: var(--color-accent);
    margin-bottom: 1.2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(232, 145, 58, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lfp-involved__card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.lfp-involved__card p {
    color: var(--color-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.lfp-involved__card .lfp-btn {
    margin-top: auto;
}


/* ==========================================================================
   5. IMPACT STATS
   ========================================================================== */

.lfp-stats {
    background: var(--color-primary);
    padding: 4rem 0;
}

.lfp-stats__grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.lfp-stats__item {
    text-align: center;
    min-width: 140px;
}

.lfp-stats__number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.2;
}

.lfp-stats__label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}


/* ==========================================================================
   6. PRE-FOOTER CONTACT
   ========================================================================== */

.lfp-contact {
    background: var(--color-white);
    padding: 5rem 0;
    text-align: center;
}

.lfp-contact .lfp-section-heading {
    margin-bottom: 1.5rem;
}

.lfp-contact__phone {
    display: inline-block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
}

.lfp-contact__phone:hover {
    color: var(--color-accent);
}

.lfp-contact__email {
    margin-bottom: 0.25rem;
}

.lfp-contact__email a {
    color: var(--color-accent);
    font-weight: 500;
}

.lfp-contact__email a:hover {
    color: var(--color-accent-hover);
}

.lfp-contact__address {
    color: var(--color-muted);
    font-size: 0.95rem;
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Tablet */
@media (max-width: 991px) {
    .lfp-hero__title {
        font-size: 2.4rem;
    }

    .lfp-stats__grid {
        gap: 2rem;
    }

    .lfp-involved__cards .col-md-6 {
        margin-bottom: 1.5rem;
    }
}

/* Mobile */
@media (max-width: 767px) {
    /* Nav */
    .lfp-nav__links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: var(--shadow-lg);
        border-radius: 0 0 var(--radius) var(--radius);
    }

    .lfp-nav__links--open {
        display: flex;
    }

    .lfp-nav__links a {
        color: var(--color-text) !important;
        padding: 0.75rem 1.5rem;
        display: block;
    }

    .lfp-nav__links a:hover {
        background: var(--color-section-alt);
    }

    .lfp-nav__links a::after {
        display: none;
    }

    .lfp-nav__phone-text {
        display: none;
    }

    .lfp-nav__phone {
        font-size: 1.2rem;
    }

    .lfp-nav__hamburger {
        display: flex;
    }

    /* Hero */
    .lfp-hero {
        min-height: 80vh;
    }

    .lfp-hero__content {
        padding: 5rem 0.5rem 3rem;
    }

    .lfp-hero__title {
        font-size: 2rem;
    }

    .lfp-hero__subtitle {
        font-size: 1.05rem;
    }

    .lfp-hero__ctas {
        flex-direction: column;
        align-items: center;
    }

    .lfp-hero__phone {
        font-size: 1rem;
    }

    /* Mission */
    .lfp-mission {
        padding: 3.5rem 0;
    }

    .lfp-mission__card {
        padding: 1.5rem 1rem;
    }

    /* Get Involved */
    .lfp-involved {
        padding: 3.5rem 0;
    }

    .lfp-involved__cards .col-md-6 {
        margin-bottom: 1.25rem;
    }

    /* Stats */
    .lfp-stats {
        padding: 3rem 0;
    }

    .lfp-stats__grid {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .lfp-stats__number {
        font-size: 2rem;
    }

    /* Contact */
    .lfp-contact {
        padding: 3.5rem 0;
    }

    .lfp-contact__phone {
        font-size: 1.6rem;
    }
}

/* Small mobile */
@media (max-width: 375px) {
    .lfp-hero__title {
        font-size: 1.7rem;
    }

    .lfp-btn--lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}


/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .lifeline-frontpage,
    .lifeline-frontpage * {
        transition: none !important;
    }

    .lfp-hero__bg {
        animation: none;
        transform: scale(1.02);
    }
}
