/* ===========================================================
   LifeLift Initiative — Public Site Stylesheet
   =========================================================== */

:root {
    --primary: #0F6E5B;
    --primary-dark: #0A4E40;
    --primary-light: #E4F2EE;
    --accent: #F2A93B;
    --accent-dark: #D68F1F;
    --dark: #16221F;
    --text: #33403C;
    --text-light: #6B7873;
    --bg-alt: #F6F9F7;
    --border: #E4E9E6;
    --white: #FFFFFF;
    --radius: 12px;
    --shadow: 0 10px 30px rgba(15, 46, 38, 0.08);
    --shadow-lg: 0 20px 50px rgba(15, 46, 38, 0.15);
    --font-head: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--dark);
    line-height: 1.25;
    font-weight: 700;
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { color: var(--text); }

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

.narrow { max-width: 780px; }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--dark); }
.btn-primary:hover { background: var(--accent-dark); box-shadow: var(--shadow); }
.btn-outline-light { border-color: rgba(255,255,255,0.7); color: var(--white); }
.btn-outline-light:hover { background: rgba(255,255,255,0.15); }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--primary);
}
.link-arrow i { transition: transform .2s ease; font-size: 0.85em; }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--primary-dark); color: rgba(255,255,255,0.85); font-size: 0.85rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 8px 24px; flex-wrap: wrap; gap: 6px; }
.topbar-contact span { margin-right: 20px; }
.topbar-contact i { margin-right: 6px; color: var(--accent); }
.topbar-social a { color: rgba(255,255,255,0.85); margin-left: 12px; }
.topbar-social a:hover { color: var(--accent); }

/* ---------- Header / Nav ---------- */
.site-header { background: var(--white); box-shadow: 0 2px 12px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 48px; width: 48px; object-fit: contain; border-radius: 50%; background: var(--primary-light); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--font-head); color: var(--primary-dark); font-size: 1.15rem; }
.brand-text small { color: var(--text-light); font-size: 0.75rem; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { font-weight: 600; font-size: 0.95rem; color: var(--text); padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a.active { color: var(--primary); border-color: var(--accent); }
.site-nav a.nav-cta { border: none; padding: 12px 24px; }
.site-nav a.nav-cta:hover { border: none; }

.nav-toggle, .nav-burger { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 620px; display: flex; align-items: center; color: var(--white); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.05); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(10,42,34,0.92) 20%, rgba(10,42,34,0.55) 75%); }
.hero-content { position: relative; z-index: 2; padding-top: 60px; padding-bottom: 60px; }
.eyebrow { color: var(--accent); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 14px; }
.hero h1 { color: var(--white); margin-bottom: 18px; max-width: 950px; }
.hero-lead { font-size: 1.15rem; color: rgba(255,255,255,0.9); margin-bottom: 30px; max-width: 720px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; min-height: 300px; display: flex; align-items: center; background-size: cover; background-position: center; color: var(--white); }
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(10,42,34,0.9), rgba(10,42,34,0.65)); }
.page-hero-content { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); }

/* ---------- Stats strip ---------- */
.stats-strip { background: var(--primary-dark); padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { display: block; font-family: var(--font-head); font-size: 2.4rem; font-weight: 800; color: var(--accent); }
.stat-label { color: rgba(255,255,255,0.85); font-size: 0.9rem; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-eyebrow { color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 0.8rem; margin-bottom: 10px; }
.section-intro { max-width: 640px; margin: 14px auto 0; color: var(--text-light); }
.section h2 { margin-bottom: 18px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.two-col-cards { display: grid; gap: 20px; }

.mini-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.mini-card i { font-size: 1.8rem; color: var(--accent); margin-bottom: 12px; }
.mini-card h3 { margin-bottom: 10px; }

/* ---------- Program cards (home) ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; margin-top: 40px; }
.program-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.program-card-img { height: 170px; background-size: cover; background-position: center; }
.program-card-body { padding: 24px; }
.program-card-body i { color: var(--accent); font-size: 1.4rem; margin-bottom: 10px; }
.program-card-body h3 { margin-bottom: 10px; font-size: 1.1rem; }
.program-card-body p { color: var(--text-light); font-size: 0.92rem; margin-bottom: 14px; }

/* ---------- Program feature (programs.php) ---------- */
.program-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; padding: 50px 0; border-bottom: 1px solid var(--border); }
.program-feature:last-child { border-bottom: none; }
.program-feature.reverse { direction: rtl; }
.program-feature.reverse > * { direction: ltr; }
.program-feature-img { height: 320px; border-radius: var(--radius); background-size: cover; background-position: center; box-shadow: var(--shadow); }
.program-feature-body i { color: var(--accent); font-size: 1.8rem; margin-bottom: 14px; }
.program-feature-body h2 { margin-bottom: 14px; }

/* ---------- Objectives ---------- */
.objectives-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: 40px; }
.objective-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; position: relative; }
.objective-num { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--primary-light); display: block; margin-bottom: 8px; }
.objective-card h3 { margin-bottom: 10px; font-size: 1.05rem; }
.objective-card p { color: var(--text-light); font-size: 0.92rem; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; margin-top: 40px; }
.team-card { text-align: center; }
.team-card img { width: 150px; height: 150px; object-fit: cover; border-radius: 50%; margin: 0 auto 16px; box-shadow: var(--shadow); border: 4px solid var(--white); }
.team-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.team-card p { color: var(--accent-dark); font-weight: 600; font-size: 0.9rem; }
.team-card-detailed { background: var(--white); padding: 30px 20px; border-radius: var(--radius); box-shadow: var(--shadow); }
.team-bio { color: var(--text-light); font-size: 0.88rem; margin-top: 10px; font-weight: 400; }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; margin-top: 40px; }
.news-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s ease; }
.news-card:hover { transform: translateY(-6px); }
.news-card img { height: 190px; width: 100%; object-fit: cover; }
.news-card-body { padding: 22px; }
.news-date { font-size: 0.78rem; color: var(--accent-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.news-card-body h3 { margin: 10px 0; font-size: 1.1rem; }
.news-card-body p { color: var(--text-light); font-size: 0.92rem; }
.article-body p { margin-bottom: 18px; font-size: 1.05rem; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; display: block; height: 260px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px; background: linear-gradient(to top, rgba(10,42,34,0.85), transparent); color: var(--white); font-weight: 600; font-size: 0.9rem; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--primary-dark), var(--primary)); color: var(--white); padding: 70px 0; text-align: center; }
.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.85); margin-bottom: 26px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---------- Forms ---------- */
.site-form { margin-top: 24px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.form-row input, .form-row textarea, .form-row select {
    width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px;
    font-family: var(--font-body); font-size: 0.95rem; background: var(--white);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }

.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-size: 0.92rem; }
.alert-error { background: #FDECEC; color: #B42318; border: 1px solid #F5C2C0; }
.alert-success { background: #E7F6EC; color: #0F6E5B; border: 1px solid #B7E4C7; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.75); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer-col h4 { color: var(--white); margin-bottom: 18px; font-size: 1rem; }
.footer-col p { color: rgba(255,255,255,0.65); font-size: 0.9rem; margin: 16px 0; }
.brand-footer .brand-text strong { color: var(--white); }
.brand-footer .brand-text small { color: rgba(255,255,255,0.6); }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); margin-right: 8px; }
.footer-social a:hover { background: var(--accent); color: var(--dark); }
.footer-links li, .footer-contact li { list-style: none; margin-bottom: 12px; font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent); }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; color: rgba(255,255,255,0.75); }
.footer-contact i { color: var(--accent); margin-top: 3px; }
.plain-list li { color: var(--text); }
.plain-list i { color: var(--primary); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; font-size: 0.82rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: rgba(255,255,255,0.55); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .two-col, .footer-grid { grid-template-columns: 1fr; }
    .program-feature { grid-template-columns: 1fr; }
    .program-feature.reverse { direction: ltr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px) {
    .topbar-contact span:last-child { display: none; }

    .nav-toggle { display: none; }
    .nav-burger {
        display: flex; flex-direction: column; justify-content: center; gap: 5px;
        width: 34px; height: 34px; cursor: pointer;
    }
    .nav-burger span { display: block; height: 2px; background: var(--dark); border-radius: 2px; }

    .site-nav {
        position: absolute; top: 100%; left: 0; right: 0; background: var(--white);
        flex-direction: column; align-items: flex-start; gap: 0; box-shadow: var(--shadow);
        max-height: 0; overflow: hidden; transition: max-height .3s ease;
    }
    .site-nav a { width: 100%; padding: 14px 24px; border-bottom: 1px solid var(--border); }
    .site-nav a.nav-cta { margin: 14px 24px; width: calc(100% - 48px); text-align: center; }

    .nav-toggle:checked ~ .site-nav { max-height: 500px; }

    .form-grid { grid-template-columns: 1fr; }
}
