/* -----------------------------------------------------------
   Hope For Butte — Modern + Calm Design System
   Unified, polished, pastoral-safe, and fully responsive
----------------------------------------------------------- */


/* -----------------------------------------------------------
   Root Variables — Modern Pastoral Palette (Option 3A)
----------------------------------------------------------- */
:root {
    --hfb-navy: #243447;          /* Deep, calm navy for header/footer */
    --hfb-light: #f4f6f8;         /* Soft, pastoral light background */
    --hfb-accent: #3a7bd5;        /* Warm, approachable blue accent */
    --hfb-accent-dark: #2f69b3;   /* Hover state */
    --hfb-text: #2d2d2d;          /* Neutral charcoal text */
    --hfb-text-light: #555;       /* Subtext */
    --hfb-white: #ffffff;

    --hfb-radius: 8px;
    --hfb-shadow: 0 2px 6px rgba(0,0,0,0.08);

    --hfb-font: 'Segoe UI', sans-serif;

    --hfb-section-padding: 4rem;
    --hfb-max-width: 900px;
}


/* -----------------------------------------------------------
   Base Styles
----------------------------------------------------------- */
body {
    margin: 0;
    font-family: var(--hfb-font);
    background: var(--hfb-light);
    color: var(--hfb-text);
    line-height: 1.6;
}

h1, h2, h3 {
    margin-top: 0;
    font-weight: 600;
}

section {
    padding: var(--hfb-section-padding) 1rem;
    text-align: center;
}

a {
    color: var(--hfb-accent);
    text-decoration: none;
    transition: 0.2s ease;
}

a:hover {
    text-decoration: underline;
}


/* -----------------------------------------------------------
   Header
----------------------------------------------------------- */
.hfb-header {
    background: var(--hfb-navy);
    padding: 1rem 0;
    text-align: center;
}

.hfb-banner {
    max-width: 820px;
    width: 100%;
    height: auto;
}


/* -----------------------------------------------------------
   Navigation
----------------------------------------------------------- */
.hfb-nav {
    background: var(--hfb-white);
    padding: 1rem 0;
    border-bottom: 1px solid #dcdfe3;

    /* NEW: Make nav stick to top */
    position: sticky;
    top: 0;
    z-index: 1000;

    /* NEW: Soft shadow when stuck */
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}


.hfb-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 2.5rem;
}

.hfb-nav a {
    font-weight: 600;
    color: var(--hfb-navy);
    letter-spacing: 0.3px;
    padding: 0.3rem 0.5rem;
}

.hfb-nav a:hover {
    background: rgba(0,0,0,0.04);
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
}

.hfb-nav a.active {
    color: var(--hfb-accent);
}




/* -----------------------------------------------------------
   Hero
----------------------------------------------------------- */
.hfb-hero {
    background: var(--hfb-white);
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-text {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}


/* -----------------------------------------------------------
   Intro Section
----------------------------------------------------------- */
.hfb-intro .intro-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.hfb-intro .intro-text {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}


/* -----------------------------------------------------------
   Gospel Section
----------------------------------------------------------- */
.hfb-gospel .gospel-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.hfb-gospel .gospel-text {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 1rem auto;
}

.gospel-images {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.gospel-img {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: var(--hfb-radius);
    box-shadow: var(--hfb-shadow);
}


/* -----------------------------------------------------------
   Video Section
----------------------------------------------------------- */
.hfb-video .video-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.hfb-video .video-text {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.video-wrapper iframe {
    width: 100%;
    max-width: 720px;
    height: 405px;
    border: none;
    border-radius: var(--hfb-radius);
    box-shadow: var(--hfb-shadow);
}


/* -----------------------------------------------------------
   Polished Resource Cards — Full Modern Upgrade
----------------------------------------------------------- */

/* Base card */
.resource-card {
    background: var(--hfb-white);
    padding: 2rem;
    border-radius: var(--hfb-radius);
    box-shadow: var(--hfb-shadow);
    text-align: left;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

/* Soft lift + glow */
.resource-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    border-color: rgba(58, 123, 213, 0.25);
}

/* Title */
.resource-card-title {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--hfb-navy);
    font-weight: 600;
}

/* Body text */
.resource-card-text {
    font-size: 1rem;
    margin-bottom: 1.25rem;
    color: var(--hfb-text-light);
    line-height: 1.55;
}

/* Link styling */
.resource-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    color: var(--hfb-accent);
    padding: 0.4rem 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

/* Link hover */
.resource-card-link:hover {
    color: var(--hfb-accent-dark);
    text-decoration: none;
    transform: translateX(3px);
}

/* Icon (non-emoji option) */
.resource-icon {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Filetype badge */
.resource-filetype {
    background: rgba(58, 123, 213, 0.15);
    padding: 0.25rem 0.55rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--hfb-navy);
}

/* -----------------------------------------------------------
   Special Card Accents
----------------------------------------------------------- */

/* Suicide & Crisis Lifeline card */
.resource-card:nth-child(2) {
    border-left: 4px solid #d9534f; /* calm red accent */
}

.resource-card:nth-child(2):hover {
    border-left-color: #c64542;
}

/* Prayer card */
.resource-card:nth-child(3) {
    border-left: 4px solid var(--hfb-accent);
}

.resource-card:nth-child(3):hover {
    border-left-color: var(--hfb-accent-dark);
}

/* -----------------------------------------------------------
   Featured Resource (Optional)
   Apply class="featured-resource" to any card
----------------------------------------------------------- */

.featured-resource {
    border-left: 6px solid var(--hfb-accent);
    background: linear-gradient(
        to bottom right,
        rgba(58, 123, 213, 0.06),
        rgba(58, 123, 213, 0.02)
    );
}

.featured-resource:hover {
    border-left-color: var(--hfb-accent-dark);
}

/* -----------------------------------------------------------
   Grid Refinements
----------------------------------------------------------- */

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: var(--hfb-max-width);
    margin: 0 auto;
}

/* -----------------------------------------------------------
   Mobile Refinements
----------------------------------------------------------- */

@media (max-width: 600px) {
    .resource-card {
        padding: 1.5rem;
    }

    .resource-card-title {
        font-size: 1.2rem;
    }

    .resources-grid {
        gap: 1.75rem;
    }

    /* Contact form spacing */
    .contact-form {
        padding: 0 1rem;
    }

    /* Immediate Help card spacing */
    .contact-immediate-help {
        margin-top: 2rem;
        padding: 1.25rem 1rem;
    }

    /* Form group spacing */
    .form-group {
        margin-bottom: 1.25rem;
    }

    /* Success message spacing */
    .contact-success {
        margin-bottom: 1.5rem;
        padding: 0.75rem;
    }

    .hfb-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    padding: 0 1rem;
    }

    .hfb-nav a {
        font-size: 0.95rem;
        padding: 0.25rem 0.4rem;
    }
}


/* -----------------------------------------------------------
   Contact Section
----------------------------------------------------------- */
.hfb-contact .contact-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.hfb-contact .contact-text {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

input, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cfd3d7;
    border-radius: var(--hfb-radius);
    font-size: 1rem;
    font-family: var(--hfb-font);
    background: var(--hfb-white);
}

.contact-submit {
    background: var(--hfb-navy);
    color: var(--hfb-white);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--hfb-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.contact-submit:hover {
    background: #1a2733;
}

.contact-success {
    background: #dff0d8;
    color: #3c763d;
    padding: 1rem;
    border-radius: var(--hfb-radius);
    margin-bottom: 2rem;
    text-align: center;
}

/* Contact info (no form) */
.contact-info-block {
    max-width: 600px;
    margin: 2rem auto 0;
    text-align: left;
    background: var(--hfb-white);
    padding: 2rem;
    border-radius: var(--hfb-radius);
    box-shadow: var(--hfb-shadow);
}

.contact-info-line {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    color: var(--hfb-text-light);
}

.contact-info-line a {
    color: var(--hfb-accent);
    font-weight: 600;
}

.contact-info-line a:hover {
    color: var(--hfb-accent-dark);
    text-decoration: none;
}

/* Privacy reassurance under the form */
.contact-privacy-note {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--hfb-navy);
    opacity: 0.8;
    line-height: 1.4;
}

/* Immediate Help section */
.contact-immediate-help {
    max-width: 600px;
    margin: 2.5rem auto 0;
    padding: 1.5rem 1.25rem;
    background: var(--hfb-card-bg, #f9f9f9);
    border-left: 4px solid var(--hfb-accent);
    border-radius: var(--hfb-radius);
    box-shadow: var(--hfb-shadow);
    text-align: left;
}

/* Immediate Help heading */
.contact-immediate-help h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    color: var(--hfb-navy);
}

/* Phone number emphasis */
.contact-phone {
    font-size: 1.2rem;
    color: var(--hfb-navy);
    margin: 0.5rem 0;
}

/* Voicemail reassurance */
.contact-voicemail-note {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--hfb-navy);
    opacity: 0.85;
    line-height: 1.4;
}


/* -----------------------------------------------------------
   Footer Divider + Fade (Modern Polish)
----------------------------------------------------------- */
.footer-fade {
    height: 50px; /* increased from 40px for more presence */
    background: linear-gradient(
        to bottom,
        rgba(244, 246, 248, 0) 0%,
        rgba(244, 246, 248, 0.75) 100% /* increased from 1 → 0.75 opacity */
    );
}


/* -----------------------------------------------------------
   Footer
----------------------------------------------------------- */
.hfb-footer {
    background: var(--hfb-navy);
    color: var(--hfb-white);
    padding: 2.5rem 1rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-inner {
    max-width: var(--hfb-max-width);
    margin: 0 auto;
    line-height: 1.6;
}

.footer-text {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.footer-subtext {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.footer-subtext:last-of-type {
    margin-bottom: 0;
}

.hfb-footer a {
    color: var(--hfb-accent);
    font-weight: 600;
}

.hfb-footer a:hover {
    color: var(--hfb-accent-dark);
    text-decoration: underline;
}


/* -----------------------------------------------------------
   Section Rhythm — Prevent Footer Crowding
----------------------------------------------------------- */
section:last-of-type {
    margin-bottom: 4rem;
}

/* -----------------------------------------------------------
   About Grace Baptist Church
----------------------------------------------------------- */

.hfb-about {
    padding: var(--hfb-section-padding) 1rem;
    background: var(--hfb-white);
    text-align: center;
}

.about-inner {
    max-width: var(--hfb-max-width);
    margin: 0 auto;
}

/* Title */
.about-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--hfb-navy);
}

/* Intro Highlight */
.about-intro-highlight {
    background: rgba(58, 123, 213, 0.06);
    padding: 1.5rem;
    border-radius: var(--hfb-radius);
    margin-bottom: 2rem;
}

/* Main Card */
.about-card {
    background: var(--hfb-white);
    padding: 2rem;
    border-radius: var(--hfb-radius);
    box-shadow: var(--hfb-shadow);
    margin-top: 2.5rem;
    text-align: left;
}

/* Section Subtitles */
.about-subtitle {
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    color: var(--hfb-navy);
    border-left: 4px solid var(--hfb-accent);
    padding-left: 0.75rem;
}

/* Body Text */
.about-text {
    font-size: 1.05rem;
    color: var(--hfb-text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* External Link */
.about-link {
    display: inline-block;
    margin-top: 2rem;
    font-weight: 600;
    color: var(--hfb-accent);
}

.about-link:hover {
    color: var(--hfb-accent-dark);
    text-decoration: none;
}

