/* ============================================================
   Heal My Wounded Places – Shared Stylesheet
   ============================================================ */

/* Core reset and base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Lato', sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #F8F0FC;
}
a { color: #800080; text-decoration: none; transition: color .25s ease; }
a:hover { color: #A64D79; }
h1,h2,h3,h4,h5,h6 { font-family: 'Playfair Display', serif; color: #800080; margin-bottom: 14px; }
h1 { font-size: 2.8em; }
.container { max-width: 1100px; margin: 0 auto; padding: 25px; }

/* ── Header / Nav ────────────────────────────────────────── */
header { background-color: #800080; color: #fff; padding: 18px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.15); }
.navbar { display:flex; justify-content:space-between; align-items:center; max-width:1100px; margin:0 auto; padding:0 25px; }
.logo img { height:55px; width:auto; border-radius:4px; }
.nav-links { list-style:none; display:flex; }
.nav-links li { margin-left: 28px; }
.nav-links a { color:white; font-weight:400; font-size:1.05em; padding:5px 0; position:relative; letter-spacing:0.5px; }
.nav-links a::after { content:''; position:absolute; width:0; height:2px; display:block; margin-top:5px; left:50%; transform:translateX(-50%); background:#D98BB0; transition:width .3s ease; }
.nav-links a:hover::after,
.nav-links a.active::after { width:100%; }
.nav-links a.active { font-weight:700; }
.menu-toggle { display:none; font-size:2em; cursor:pointer; color:white; }

/* ── Sections general ────────────────────────────────────── */
section { padding:70px 0; background-color:#F5F5DC; }
section:nth-of-type(even) { background-color:#F8F8F8; }

/* ── Hero (home page) ────────────────────────────────────── */
.hero { background: linear-gradient(135deg, #A66FB0, #6A0DAD); text-align:center; padding:120px 20px; color:white; min-height:550px; display:flex; flex-direction:column; justify-content:center; align-items:center; }
.hero h1 { font-size: 3.8em; color: white; margin-bottom:15px; line-height:1.2; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
.hero p { font-size:1.5em; color: rgba(255,255,255,0.95); max-width:900px; font-weight:300; margin-bottom:40px; }
.hero .cta-buttons a { display:inline-block; background-color:#800080; color:white; padding:16px 35px; border-radius:4px; margin:10px; font-size:1.15em; font-weight:bold; transition:background-color .3s ease, transform .2s ease; box-shadow:0 6px 15px rgba(0,0,0,0.25); }
.hero .cta-buttons a:hover { background-color:#A64D79; transform:translateY(-3px); box-shadow:0 8px 20px rgba(0,0,0,0.3); }

/* ── About ───────────────────────────────────────────────── */
.about-section { background-color:#E6E6FA; padding:70px 0; color:#333; }
.about-section h2 { color:#6A0DAD; }
.vision-mission { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:30px; margin-top:30px; }
.vision-mission-item { background:#fff; padding:28px; border-radius:6px; box-shadow:0 4px 15px rgba(0,0,0,0.07); }
.scripture { font-style:italic; color:#6A0DAD; margin-top:12px; font-size:0.95em; }

/* ── Team ────────────────────────────────────────────────── */
.team-section { background-color:#F8F8F8; padding:70px 0; }
.team-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:35px; margin-top:40px; }
.team-member-card { background:#fff; padding:30px; border-radius:6px; box-shadow:0 4px 15px rgba(0,0,0,0.1); text-align:center; display:flex; flex-direction:column; justify-content:space-between; transition:transform .3s ease, box-shadow .3s ease; border:1px solid #eee; }
.team-member-card:hover { transform:translateY(-4px); box-shadow:0 8px 25px rgba(0,0,0,0.12); }
.team-member-card img { width:140px; height:140px; border-radius:50%; object-fit:cover; margin:0 auto 25px; border:3px solid #DDA0DD; box-shadow:0 0 0 5px rgba(128,0,128,0.05); }
.team-member-card h3 { color:#800080; margin-bottom:8px; font-size:1.5em; }
.team-member-card p { font-size:0.9em; margin-bottom:12px; color:#555; }
.bible-verse { font-style:italic; color:#6A0DAD; font-size:0.85em !important; }

/* ── Conference card ─────────────────────────────────────── */
.conference-section { padding:70px 0; background-color:#F5F5DC; }
.conference-card {
    background: #fff;
    padding: 28px;
    border-radius: 8px;
    box-shadow: 0 6px 22px rgba(0,0,0,0.08);
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    border: 1px solid rgba(221,160,221,0.35);
}
.conference-card img { width:100%; height:auto; max-height:720px; object-fit:contain; border-radius:6px; }
.conference-details { margin-top:18px; color:#333; font-size:1.05em; line-height:1.6; }
.conference-details .title { font-size:1.25em; font-weight:700; color:#A64D79; margin-bottom:6px; }
.conference-cta { margin-top:18px; }
.btn-register {
    display:inline-block;
    padding:12px 26px;
    font-weight:700;
    border-radius:8px;
    background: linear-gradient(90deg,#800080,#D98BB0);
    color:#fff;
    box-shadow:0 8px 18px rgba(128,0,128,0.15);
    border: none;
    cursor:pointer;
    transition: transform .18s ease, box-shadow .18s ease;
    text-decoration: none;
    font-size: 1em;
}
.btn-register:hover { transform: translateY(-3px); box-shadow:0 12px 30px rgba(128,0,128,0.15); color:#fff; }

/* ── RSVP ────────────────────────────────────────────────── */
.rsvp-section { background-color: #FFFFFF; padding:70px 0; }
.rsvp-section .container { max-width: 920px; }
.rsvp-card { background:#fff; padding:26px; border-radius:8px; box-shadow:0 6px 18px rgba(0,0,0,0.06); border:1px solid rgba(221,160,221,0.28); }
.rsvp-header { text-align:center; margin-bottom:14px; }
.rsvp-event-info { text-align:center; font-size:1.05em; margin-bottom:18px; color:#555; }
form .grid { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
label { display:block; font-size:1rem; margin-bottom:6px; color:#333; font-weight:600; }
input[type="text"], input[type="email"], input[type="tel"], select {
    width:100%; padding:12px; border-radius:8px; border:1px solid #e6e6e6; font-size:1rem;
}
.full-width { grid-column: 1 / -1; }
.guest-block { background:#FAF7FF; border:1px solid rgba(221,160,221,0.2); padding:12px; border-radius:6px; margin-bottom:12px; }
.guest-title { font-weight:700; color:#800080; margin-bottom:8px; }
.submit-row { text-align:center; margin-top:12px; }
.btn-submit {
    padding:12px 26px; font-weight:700; border-radius:8px; border:none; cursor:pointer;
    background: linear-gradient(90deg,#800080,#C25E86); color:#fff; box-shadow:0 8px 20px rgba(255,105,180,0.12);
    transition: transform .18s ease, box-shadow .18s ease;
    font-size:1em;
}
.btn-submit:hover { transform: translateY(-3px); box-shadow:0 14px 34px rgba(255,105,180,0.15); }
.muted { color:#666; font-size:0.95em; }

/* ── Nuggets ─────────────────────────────────────────────── */
.nuggets-section { padding:70px 0; background-color:#F8F8F8; }
.nugget-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:28px; margin-top:35px; }
.nugget-card { background:#fff; padding:28px; border-radius:6px; box-shadow:0 4px 14px rgba(0,0,0,0.08); border-left:4px solid #DDA0DD; }
.nugget-card h3 { color:#800080; margin-bottom:10px; }
.nugget-card .scripture { display:block; font-style:italic; color:#6A0DAD; margin:8px 0; font-size:0.9em; }

/* ── Gallery ─────────────────────────────────────────────── */
.gallery-section { padding:70px 0; background-color:#F5F5DC; }
.gallery-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:12px; margin-top:30px; }
.gallery-item img { width:100%; height:180px; object-fit:cover; border-radius:6px; transition:transform .3s ease, box-shadow .3s ease; display:block; }
.gallery-item img:hover { transform:scale(1.04); box-shadow:0 6px 20px rgba(0,0,0,0.15); }

/* ── Resources ───────────────────────────────────────────── */
.resources-section { padding:70px 0; background-color:#F8F8F8; }
.resource-list { margin-top:30px; }
.resource-item { background:#fff; padding:24px; border-radius:6px; box-shadow:0 3px 12px rgba(0,0,0,0.07); margin-bottom:20px; }
.resource-item h3 { color:#800080; margin-bottom:8px; }
.resource-item ul { margin-top:12px; padding-left:18px; }
.resource-item li { margin-bottom:6px; }

/* ── Get Help ────────────────────────────────────────────── */
.get-help-section { padding:70px 0; background-color:#E6E6FA; }
.disclaimer-box { background:#fff8e1; border-left:4px solid #f0ad4e; padding:18px 22px; border-radius:6px; margin:24px 0; }
.disclaimer-box h3 { color:#b8860b; margin-bottom:8px; }
.help-category { margin-top:30px; }
.help-category h3 { color:#6A0DAD; border-bottom:2px solid #DDA0DD; padding-bottom:6px; margin-bottom:20px; }
.help-item { background:#fff; padding:18px; border-radius:6px; box-shadow:0 3px 10px rgba(0,0,0,0.06); margin-bottom:16px; }
.help-item h4 { color:#800080; margin-bottom:6px; }
.contact-details { font-weight:700; color:#A64D79; margin-bottom:6px; }

/* ── Contact ─────────────────────────────────────────────── */
.contact-section { padding:70px 0; background-color:#F5F5DC; }
.contact-info { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:28px; margin-top:30px; }
.contact-method { background:#fff; padding:28px; border-radius:6px; box-shadow:0 4px 14px rgba(0,0,0,0.08); }
.contact-method h3 { color:#800080; margin-bottom:10px; }

/* ── Page hero (interior pages) ─────────────────────────── */
.page-hero { background: linear-gradient(135deg, #A66FB0, #6A0DAD); text-align:center; padding:70px 20px 50px; color:white; }
.page-hero h1 { font-size:2.8em; color:white; text-shadow:2px 2px 4px rgba(0,0,0,0.2); }
.page-hero p { font-size:1.2em; color:rgba(255,255,255,0.9); max-width:700px; margin:12px auto 0; font-weight:300; }

/* ── Footer ──────────────────────────────────────────────── */
footer { background-color:#800080; color:white; text-align:center; padding:35px 25px; border-top:5px solid #A64D79; }
footer .footer-links { list-style:none; padding:0; margin-bottom:20px; display:flex; justify-content:center; flex-wrap:wrap; gap:20px; }
footer .footer-links a { color:white; font-size:0.9em; font-weight:300; }
footer .footer-links a:hover { color:#D98BB0; }

/* ── Notification bubble ─────────────────────────────────── */
.notify-bubble {
    position: fixed;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    bottom: 26px;
    background: linear-gradient(90deg,#D98BB0,#800080);
    color: white;
    padding: 14px 20px;
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    font-weight:700;
    z-index: 2000;
    transition: transform .45s cubic-bezier(.2,.9,.24,1), opacity .35s ease;
    opacity: 0;
    pointer-events: none;
}
.notify-bubble.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* ── Focus states (accessibility) ────────────────────────── */
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #800080;
    box-shadow: 0 0 0 3px rgba(128,0,128,0.18);
}
a:focus-visible, button:focus-visible, .dropdown-toggle:focus-visible {
    outline: 3px solid #A66FB0;
    outline-offset: 2px;
    border-radius: 3px;
}

/* ── Button hierarchy (hero CTAs) ────────────────────────── */
.hero .cta-buttons a.btn-secondary {
    background-color: transparent;
    border: 2px solid rgba(255,255,255,0.9);
    box-shadow: none;
}
.hero .cta-buttons a.btn-secondary:hover {
    background-color: rgba(255,255,255,0.18);
    border-color: #fff;
}
/* Highlighted "Get Help" pill in nav */
.nav-links a.nav-cta {
    background: #D98BB0;
    color: #fff;
    padding: 6px 16px;
    border-radius: 999px;
    font-weight: 700;
}
.nav-links a.nav-cta::after { display: none; }
.nav-links a.nav-cta:hover { background: #A64D79; color: #fff; }

/* ── Dropdown navigation ─────────────────────────────────── */
.nav-links li.has-dropdown { position: relative; }
.dropdown-toggle { cursor: pointer; user-select: none; }
.dropdown-toggle .caret { font-size: 0.7em; margin-left: 5px; transition: transform .25s ease; }
.dropdown {
    list-style: none;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    padding: 8px 0;
    margin-top: 8px;
    z-index: 1001;
}
.dropdown li { margin: 0; }
.dropdown a {
    display: block;
    color: #5A005A;
    padding: 10px 20px;
    font-size: 0.98em;
    letter-spacing: 0.2px;
}
.dropdown a::after { display: none; }
.dropdown a:hover, .dropdown a.active { background: #F3E9F3; color: #800080; }
.nav-links li.has-dropdown:hover > .dropdown,
.nav-links li.has-dropdown.open > .dropdown { display: block; }
.nav-links li.has-dropdown.open .caret { transform: rotate(180deg); }

/* ── Countdown clock ─────────────────────────────────────── */
.countdown-section {
    text-align: center;
    margin: 0 auto 34px;
    max-width: 820px;
}
.countdown-label {
    color: #6A0DAD;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.85em;
    margin-bottom: 14px;
}
.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}
.countdown-unit {
    background: #fff;
    border: 1px solid rgba(221,160,221,0.4);
    border-radius: 10px;
    padding: 16px 18px;
    min-width: 84px;
    box-shadow: 0 6px 18px rgba(128,0,128,0.08);
}
.countdown-unit .num {
    font-family: 'Playfair Display', serif;
    font-size: 2.2em;
    font-weight: 700;
    color: #800080;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.countdown-unit .unit {
    display: block;
    margin-top: 6px;
    font-size: 0.75em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a7d8a;
}
.countdown-expired {
    display: none;
    font-family: 'Playfair Display', serif;
    font-size: 1.4em;
    color: #800080;
    font-weight: 700;
}
.countdown-cta {
    margin-top: 22px;
}

/* ── Tickets remaining badge ─────────────────────────────── */
.tickets-remaining {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FAF7FF;
    border: 1px solid rgba(221,160,221,0.4);
    border-radius: 999px;
    padding: 9px 20px;
    font-size: 0.95em;
    font-weight: 600;
    color: #6A0DAD;
    margin: 0 auto 22px;
}
.tickets-remaining .count {
    font-family: 'Playfair Display', serif;
    font-size: 1.25em;
    font-weight: 700;
    color: #800080;
}
.tickets-remaining.low {
    background: #fff8e1;
    border-color: #f0ad4e;
    color: #b8860b;
}
.tickets-remaining.low .count { color: #b8860b; }

@media (max-width: 480px) {
    .countdown-timer { gap: 8px; }
    .countdown-unit { min-width: 68px; padding: 12px 10px; }
    .countdown-unit .num { font-size: 1.6em; }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .nav-links { display:none; position:absolute; top:91px; left:0; width:100%; background:#800080; flex-direction:column; padding:1rem 0; border-top:1px solid rgba(255,255,255,0.2); }
    .nav-links.active { display:flex; }
    .nav-links li { margin-left: 0; width: 100%; text-align: center; }
    .menu-toggle { display:block; position:absolute; right:15px; top:20px; }
    /* Dropdowns expand inline within the mobile menu */
    .nav-links li.has-dropdown .dropdown {
        position: static;
        display: none;
        box-shadow: none;
        background: rgba(255,255,255,0.08);
        border-radius: 0;
        margin-top: 6px;
        padding: 4px 0;
        min-width: 0;
    }
    .nav-links li.has-dropdown.open .dropdown { display: block; }
    .nav-links li.has-dropdown:hover > .dropdown { display: none; }
    .nav-links li.has-dropdown.open > .dropdown { display: block; }
    .dropdown a { color: #fff; padding: 10px 0; }
    .dropdown a:hover, .dropdown a.active { background: transparent; color: #FFD6EC; }
    .nav-links a.nav-cta { display: inline-block; margin: 6px auto; }
    form .grid { grid-template-columns: 1fr; }
    .conference-card { padding:18px; }
    .rsvp-card { padding:18px; }
    .hero h1 { font-size:2.4em; }
}
@media (max-width:480px) {
    .hero h1 { font-size:1.8em; }
    .page-hero h1 { font-size:2em; }
    .container { padding:15px; }
}
