/* =========================
   Loving Hearts - Theme (Clean, Locked Spec)
   ========================= */

/* 1) Design Tokens */
:root {
    --lh-pink: #EFA6B2; /* Primary */
    --lh-sage: #8FB3A2; /* Secondary */
    --lh-cream: #FAF7F2; /* Background */
    --lh-charcoal: #333333; /* Text */
    --lh-gold: #D6B56D; /* Highlight */

    --lh-white: #ffffff;
    /* Surfaces */
    --lh-panel-1: rgba(255,255,255,0.94);
    --lh-panel-2: rgba(255,255,255,0.88);
    --lh-radius: 18px;
    /* Depth */
    --lh-shadow: 0 18px 55px rgba(0,0,0,0.10);
    --lh-shadow-hover: 0 24px 70px rgba(0,0,0,0.14);
}

/* 2) Base */
* {
    box-sizing: border-box;
}

.lh-body {
    background: var(--lh-cream);
    color: var(--lh-charcoal);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.lh-main {
    position: relative;
    min-height: calc(100vh - 220px);
}

/* Kill ALL underlines (Bootstrap adds underline on a:hover by default) */
a,
a:hover,
a:focus,
a:active,
a:visited {
    text-decoration: none !important;
}

/* =========================
   3) Header / Nav
   ========================= */
.lh-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.lh-nav {
    background: rgba(250, 247, 242, 0.92);
    border-bottom: 1px solid rgba(51,51,51,0.08);
}

.lh-brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 800;
    color: var(--lh-charcoal);
}

    .lh-brand:hover {
        color: var(--lh-charcoal);
    }

.lh-mark {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: var(--lh-pink);
    color: var(--lh-white);
    box-shadow: 0 10px 22px rgba(239,166,178,0.45);
    font-size: 18px;
}

.lh-brandtext {
    letter-spacing: .3px;
}

.lh-navlinks .nav-link {
    color: rgba(51,51,51,0.78);
    font-weight: 600;
    border-radius: 12px;
    padding: .45rem .75rem;
    border: 1px solid transparent;
}

    .lh-navlinks .nav-link:hover {
        background: rgba(239,166,178,0.16);
        color: var(--lh-charcoal);
    }

    /* Active page cue (uses .active from Layout) */
    .lh-navlinks .nav-link.active {
        background: rgba(51,51,51,0.06);
        color: var(--lh-charcoal);
        border-color: rgba(51,51,51,0.10);
    }

/* FIX: On Mission page, About controller-level link also gets .active.
   We neutralize the About link ONLY on that page so only Mission looks active. */
body[data-page="about-mission"] .lh-navlinks .nav-link.active[href="/About"],
body[data-page="about-mission"] .lh-navlinks .nav-link.active[href="/About/Index"] {
    background: transparent;
    border-color: transparent;
    color: rgba(51,51,51,0.78);
}

/* Navbar toggler visibility for light nav */
.lh-nav.navbar-light .navbar-toggler {
    border-color: rgba(51,51,51,0.18);
}

.lh-nav.navbar-light .navbar-toggler-icon {
    filter: none;
}

/* =========================
   4) Buttons
   ========================= */
.btn-lh-primary {
    background: var(--lh-pink);
    color: var(--lh-white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 999px;
    padding: .65rem 1.05rem;
    font-weight: 700;
    box-shadow: 0 14px 32px rgba(239,166,178,0.32);
    transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}

    .btn-lh-primary:hover {
        filter: brightness(0.97);
        transform: translateY(-1px);
        box-shadow: 0 18px 40px rgba(239,166,178,0.36);
        color: var(--lh-white);
    }

    .btn-lh-primary:active {
        transform: translateY(0) scale(0.98);
    }

.btn-lh-outline {
    background: transparent;
    color: var(--lh-charcoal);
    border: 1px solid rgba(51,51,51,0.18);
    border-radius: 999px;
    padding: .65rem 1.05rem;
    font-weight: 700;
    transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

    .btn-lh-outline:hover {
        background: rgba(143,179,162,0.16);
        border-color: rgba(143,179,162,0.55);
        transform: translateY(-1px);
        color: var(--lh-charcoal);
    }

    .btn-lh-outline:active {
        transform: translateY(0) scale(0.98);
    }

/* =========================
   5) Sections / Typography
   ========================= */
.lh-hero {
    padding: 4.25rem 0 2.5rem;
    background: radial-gradient(900px 360px at 20% 0%, rgba(239,166,178,0.35), transparent 60%), radial-gradient(900px 360px at 90% 10%, rgba(143,179,162,0.28), transparent 55%), var(--lh-cream);
    border-bottom: 1px solid rgba(51,51,51,0.06);
}

.lh-eyebrow {
    display: inline-block;
    padding: .25rem .7rem;
    border-radius: 999px;
    background: rgba(214,181,109,0.22);
    color: rgba(51,51,51,0.80);
    font-weight: 700;
    margin-bottom: .75rem;
}

.lh-title {
    font-size: clamp(2.0rem, 3.2vw, 3.0rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: .75rem;
}

.lh-lead {
    max-width: 56ch;
    font-size: 1.1rem;
    color: rgba(51,51,51,0.78);
    margin-bottom: 1.25rem;
}

.lh-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.lh-section {
    padding: 2.75rem 0;
}

/* Panels / Cards: more depth + premium surface */
.lh-panel {
    background: linear-gradient(180deg, var(--lh-panel-1), var(--lh-panel-2));
    border-radius: var(--lh-radius);
    padding: 1.35rem;
    border: 1px solid rgba(51,51,51,0.07);
    box-shadow: var(--lh-shadow);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

    .lh-panel:hover {
        transform: translateY(-2px);
        box-shadow: var(--lh-shadow-hover);
        border-color: rgba(51,51,51,0.11);
    }

    /* If you nest panels inside panels, keep inner ones calm */
    .lh-panel .lh-panel {
        background: rgba(255,255,255,0.85);
        box-shadow: none;
        border-color: rgba(51,51,51,0.06);
        transform: none !important;
    }

.lh-h2 {
    font-weight: 900;
    letter-spacing: .2px;
    margin-bottom: .65rem;
}

.lh-text {
    color: rgba(51,51,51,0.80);
    margin: 0;
    line-height: 1.65;
}

/* Content helpers (lists inside panels) */
.lh-panel ul {
    padding-left: 1.2rem;
    margin-bottom: 1rem;
}

.lh-panel li {
    margin-bottom: 0.35rem;
    line-height: 1.55;
}

    .lh-panel li::marker {
        color: var(--lh-sage);
    }

/* Keep grid panels full-height */
.row.g-4 > [class*="col-"] .lh-panel {
    height: 100%;
}

/* =========================
   6) Footer
   ========================= */
.lh-footer {
    padding: 2.5rem 0 1.5rem;
    background: rgba(255,255,255,0.75);
    border-top: 1px solid rgba(51,51,51,0.08);
}

.lh-footerbrand {
    display: flex;
    gap: .75rem;
    align-items: center;
}

.lh-footername {
    font-weight: 900;
}

.lh-footersub {
    color: rgba(51,51,51,0.72);
}

.lh-footerlabel {
    font-weight: 800;
    margin-bottom: .35rem;
}

.lh-footertext {
    color: rgba(51,51,51,0.80);
}

.lh-footerlinks {
    display: grid;
    gap: .35rem;
}

.lh-link {
    color: rgba(51,51,51,0.80);
    font-weight: 700;
}

    .lh-link:hover {
        color: var(--lh-pink);
    }

.lh-hr {
    margin: 1.5rem 0 1rem;
    border-color: rgba(51,51,51,0.10);
}

.lh-footerfine {
    color: rgba(51,51,51,0.66);
}

/* =========================
   7) Page Identity Strip + Per-page Accents
   Uses: body[data-page="controller-action"]
   ========================= */
.lh-main::before {
    content: "";
    display: block;
    height: 6px;
    background: var(--lh-pink);
}

/* Accent strip mapping (your requested alternation) */
body[data-page="home-index"] .lh-main::before {
    background: var(--lh-pink);
}

body[data-page="about-index"] .lh-main::before {
    background: var(--lh-gold);
}

body[data-page="about-mission"] .lh-main::before {
    background: var(--lh-sage);
}

body[data-page="volunteer-howto"] .lh-main::before {
    background: var(--lh-pink);
}

body[data-page="volunteer-index"] .lh-main::before {
    background: var(--lh-gold);
}

body[data-page="events-index"] .lh-main::before {
    background: var(--lh-sage);
}

body[data-page="gallery-index"] .lh-main::before {
    background: var(--lh-pink);
}

body[data-page="contact-index"] .lh-main::before {
    background: var(--lh-gold);
}

body[data-controller="legal"] .lh-main::before {
    background: rgba(51,51,51,0.30);
}

/* Hero variations */
body[data-page="home-index"] .lh-hero {
    background: radial-gradient(900px 360px at 20% 0%, rgba(239,166,178,0.35), transparent 60%), radial-gradient(900px 360px at 90% 10%, rgba(143,179,162,0.28), transparent 55%), var(--lh-cream);
}

body[data-page="about-index"] .lh-hero {
    background: radial-gradient(900px 360px at 30% 0%, rgba(214,181,109,0.35), transparent 60%), radial-gradient(900px 360px at 90% 20%, rgba(239,166,178,0.18), transparent 55%), var(--lh-cream);
}

body[data-page="about-mission"] .lh-hero {
    background: radial-gradient(900px 360px at 25% 0%, rgba(143,179,162,0.35), transparent 60%), radial-gradient(900px 360px at 85% 10%, rgba(214,181,109,0.18), transparent 55%), var(--lh-cream);
}

body[data-page="volunteer-howto"] .lh-hero {
    background: radial-gradient(900px 360px at 20% 0%, rgba(239,166,178,0.35), transparent 60%), radial-gradient(900px 360px at 90% 10%, rgba(143,179,162,0.20), transparent 55%), var(--lh-cream);
}

body[data-page="volunteer-index"] .lh-hero {
    background: radial-gradient(900px 360px at 30% 0%, rgba(214,181,109,0.35), transparent 60%), radial-gradient(900px 360px at 90% 20%, rgba(239,166,178,0.16), transparent 55%), var(--lh-cream);
}

body[data-page="events-index"] .lh-hero {
    background: radial-gradient(900px 360px at 25% 0%, rgba(143,179,162,0.35), transparent 60%), radial-gradient(900px 360px at 85% 10%, rgba(51,51,51,0.08), transparent 55%), var(--lh-cream);
}

body[data-page="gallery-index"] .lh-hero {
    background: radial-gradient(900px 360px at 25% 0%, rgba(239,166,178,0.30), transparent 60%), radial-gradient(900px 360px at 85% 10%, rgba(143,179,162,0.18), transparent 55%), var(--lh-cream);
}

body[data-page="contact-index"] .lh-hero {
    background: radial-gradient(900px 360px at 25% 0%, rgba(214,181,109,0.28), transparent 60%), radial-gradient(900px 360px at 85% 10%, rgba(143,179,162,0.18), transparent 55%), var(--lh-cream);
}

/* =========================
   8) Forms (polish)
   ========================= */
.form-control,
.form-select,
textarea.form-control {
    border-radius: 14px;
    border: 1px solid rgba(51,51,51,0.18);
    background: rgba(255,255,255,0.94);
    transition: box-shadow .14s ease, border-color .14s ease;
}

    .form-control:focus,
    .form-select:focus,
    textarea.form-control:focus {
        border-color: rgba(239,166,178,0.60);
        box-shadow: 0 0 0 4px rgba(239,166,178,0.22);
        outline: none;
    }

/* Focus ring matches per-page accent */
body[data-page="about-index"] .form-control:focus,
body[data-page="about-index"] .form-select:focus,
body[data-page="about-index"] textarea.form-control:focus {
    border-color: rgba(214,181,109,0.70);
    box-shadow: 0 0 0 4px rgba(214,181,109,0.20);
}

body[data-page="about-mission"] .form-control:focus,
body[data-page="about-mission"] .form-select:focus,
body[data-page="about-mission"] textarea.form-control:focus,
body[data-page="events-index"] .form-control:focus,
body[data-page="events-index"] .form-select:focus,
body[data-page="events-index"] textarea.form-control:focus {
    border-color: rgba(143,179,162,0.75);
    box-shadow: 0 0 0 4px rgba(143,179,162,0.22);
}
/* Final polish: spacing + readability */
.lh-hero .container,
.lh-section .container,
.lh-footer .container {
    max-width: 1100px;
}

.lh-title {
    letter-spacing: -0.3px;
}

.lh-panel {
    backdrop-filter: blur(6px);
}

    /* Make long lines easier to read */
    .lh-panel .lh-text,
    .lh-lead {
        text-wrap: pretty;
    }
