/* =====================================================
   BETHEL HOUSE FOUNDATION - SHARED STYLES
   Themes: white, green (default), ivory, dark
===================================================== */

:root {
    --gold: #b99a60;
    --gold-light: #e8dcc4;
    --background: #ffffff;
    --surface: #f7f6f2;
    --card: #ffffff;
    --text: #252525;
    --muted: #666666;
    --heading: #252525;
    --border: #e8e6e0;
    --header: #ffffff;
    --footer: #202020;
    --logo-filter: none;
}

html[data-theme="green"] {
    --background: #174c3c;
    --surface: #10392d;
    --card: #205b48;
    --text: #f3f5f2;
    --muted: #d0ded7;
    --heading: #ffffff;
    --border: rgba(255,255,255,.13);
    --header: #10392d;
    --footer: #0b2d23;
    --logo-filter: invert(1);
}

html[data-theme="ivory"] {
    --background: #f3eee4;
    --surface: #ebe4d7;
    --card: #fffdf8;
    --text: #302e29;
    --muted: #6b655c;
    --heading: #302e29;
    --border: #e2d9ca;
    --header: #fffdf8;
    --footer: #28251f;
    --logo-filter: none;
}

html[data-theme="dark"] {
    --background: #252525;
    --surface: #303030;
    --card: #383838;
    --text: #f0f0f0;
    --muted: #c4c4c4;
    --heading: #ffffff;
    --border: #494949;
    --header: #202020;
    --footer: #151515;
    --logo-filter: invert(1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.7;
    transition: background .3s, color .3s;
    overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
p { color: var(--muted); }

.container { width: 90%; max-width: 1220px; margin: auto; }

.section-label {
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 17px;
}

.section-heading {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.25;
    font-weight: normal;
    color: var(--heading);
    margin-bottom: 23px;
}

.gold-line { height: 2px; width: 55px; background: var(--gold); margin-top: 27px; }

.center { text-align: center; }

/* Photos: keep faces in frame (crop from the top, not the middle) */
.photo, .intro-image img, .programme-image img, .mentorship-gallery img, .news-card img {
    object-fit: cover;
    object-position: center 18%;
}

/* =====================================================
   BUTTONS
===================================================== */

.button {
    display: inline-block;
    padding: 14px 26px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    transition: .3s;
    cursor: pointer;
    border: 1px solid transparent;
    font-family: inherit;
}
.button-gold { background: var(--gold); color: #fff; }
.button-gold:hover { background: #957540; transform: translateY(-2px); }
.button-outline { border-color: var(--gold); color: var(--gold); }
.button-outline:hover { background: var(--gold); color: #fff; }
.hero .button-outline { border-color: #fff; color: #fff; }
.hero .button-outline:hover { background: #fff; color: #252525; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
    display: inline-block;
    color: var(--gold);
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 6px;
    margin-top: 5px;
    background: none;
    border-top: 0; border-left: 0; border-right: 0;
    cursor: pointer;
    font-family: inherit;
}
.text-link:hover { color: var(--heading); }

/* =====================================================
   HEADER
===================================================== */

header.site-header {
    background: var(--header);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: background .3s;
}

.navbar {
    min-height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.brand img { width: 150px; height: auto; object-fit: contain; filter: var(--logo-filter); }

.nav-right { display: flex; align-items: center; gap: 18px; }

.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a {
    font-size: 11px;
    font-weight: 700;
    color: var(--text);
    transition: .3s;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a.nav-cta { padding: 11px 16px; border: 1px solid var(--gold); color: var(--gold); }
.nav-links a.nav-cta:hover { background: var(--gold); color: #fff; }

.icon-btn {
    width: 42px; height: 42px;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: .3s;
}
.icon-btn:hover { color: var(--gold); border-color: var(--gold); }

.menu-toggle { display: none; }

/* Theme icon + popover */
.theme-control { position: relative; }
.theme-menu {
    position: absolute;
    right: 0;
    top: 52px;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
    min-width: 190px;
    padding: 8px;
    display: none;
    z-index: 1200;
}
.theme-menu.open { display: block; }
.theme-menu button {
    width: 100%;
    display: flex; align-items: center; gap: 12px;
    background: transparent;
    border: 0;
    padding: 10px 12px;
    color: var(--text);
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}
.theme-menu button:hover { background: var(--surface); }
.theme-menu button.selected { color: var(--gold); font-weight: bold; }
.swatch { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--gold); flex: none; }
.sw-white { background: #fff; }
.sw-green { background: #174c3c; }
.sw-ivory { background: #f3eee4; }
.sw-dark { background: #252525; }
.theme-menu .fa-check { margin-left: auto; font-size: 11px; visibility: hidden; }
.theme-menu button.selected .fa-check { visibility: visible; }

/* Mobile side drawer */
.drawer-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.55);
    opacity: 0; visibility: hidden;
    transition: .3s;
    z-index: 1900;
}
.drawer-overlay.open { opacity: 1; visibility: visible; }

.drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 310px; max-width: 86vw;
    background: var(--header);
    border-left: 3px solid var(--gold);
    transform: translateX(100%);
    transition: transform .35s ease;
    z-index: 2000;
    display: flex; flex-direction: column;
    padding: 20px 24px 30px;
    overflow-y: auto;
    visibility: hidden;
}
.drawer.open { transform: translateX(0); visibility: visible; }

.drawer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.drawer-top img { width: 120px; filter: var(--logo-filter); }
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a {
    padding: 15px 4px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text);
}
.drawer nav a.active, .drawer nav a:hover { color: var(--gold); }
.drawer .button { margin-top: 26px; text-align: center; }

/* =====================================================
   HERO (home) AND PAGE HERO (inner pages)
===================================================== */

.hero {
    min-height: 650px;
    display: flex;
    align-items: center;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(15,20,17,.90) 0%, rgba(15,20,17,.68) 50%, rgba(15,20,17,.25) 100%),
        url("https://bethelhousefoundation.com/wp-content/uploads/2025/11/img_1437.jpg") center 20% / cover no-repeat;
}
.hero-content { max-width: 760px; padding: 110px 0; }
.hero-label {
    display: flex; align-items: center; gap: 13px;
    color: #e5c991; font-size: 11px; font-weight: bold;
    letter-spacing: 3px; text-transform: uppercase; margin-bottom: 25px;
}
.hero-label::before { content: ""; width: 38px; height: 1px; background: var(--gold); }
.hero h1 {
    font-family: Georgia, serif;
    font-size: clamp(42px, 6.5vw, 76px);
    line-height: 1.12; font-weight: normal; margin-bottom: 25px; color: #fff;
}
.hero h1 span { color: #d9bc84; font-style: italic; }
.hero p { max-width: 600px; color: #e6e6e6; font-size: 15px; line-height: 1.9; margin-bottom: 35px; }

.page-hero {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 85px 0 75px;
    position: relative;
}
.page-hero::after {
    content: ""; position: absolute; left: 0; bottom: 0;
    height: 3px; width: 120px; background: var(--gold);
}
.page-hero h1 {
    font-family: Georgia, serif;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.15; font-weight: normal; color: var(--heading); margin-bottom: 18px;
}
.page-hero p { max-width: 680px; font-size: 15px; }

/* =====================================================
   GENERIC SECTIONS
===================================================== */

.section { padding: 100px 0; background: var(--background); }
.section.alt { background: var(--surface); }
.section-head { max-width: 760px; margin: 0 auto 55px; text-align: center; }
.section-head p { font-size: 14px; }
.section-head.left { margin-left: 0; text-align: left; }

.intro-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; }
.intro-image { position: relative; }
.intro-image img { width: 100%; height: 480px; }
.image-caption {
    position: absolute; right: -20px; bottom: 25px;
    background: var(--card); padding: 22px 28px;
    box-shadow: 0 5px 30px rgba(0,0,0,.15);
    max-width: 230px; font-family: Georgia, serif; font-size: 19px; line-height: 1.4; color: var(--heading);
}
.intro-text p { font-size: 14px; margin-bottom: 17px; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.card-grid.four { grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
    background: var(--card);
    padding: 35px 30px;
    border-top: 2px solid var(--gold);
    transition: .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 10px 25px rgba(0,0,0,.12); }
.card .num { font-family: Georgia, serif; font-size: 42px; color: var(--gold); opacity: .8; margin-bottom: 10px; }
.card .ico { font-size: 28px; color: var(--gold); margin-bottom: 16px; }
.card h3 { font-family: Georgia, serif; font-size: 24px; font-weight: normal; color: var(--heading); margin-bottom: 12px; }
.card p { font-size: 13px; }

/* Programmes */
.programme-list { display: flex; flex-direction: column; gap: 80px; }
.programme { display: grid; grid-template-columns: 1fr 1fr; gap: 75px; align-items: center; }
.programme:nth-child(even) .programme-image { order: 2; }
.programme-image { overflow: hidden; background: var(--surface); }
.programme-image img { width: 100%; height: 380px; transition: transform .6s; }
.programme:hover .programme-image img { transform: scale(1.035); }
.programme-content .number { color: var(--gold); font-size: 11px; font-weight: bold; letter-spacing: 2px; margin-bottom: 15px; }
.programme-content h3 { font-family: Georgia, serif; font-size: 33px; line-height: 1.25; font-weight: normal; color: var(--heading); margin-bottom: 20px; }
.programme-content p { font-size: 14px; margin-bottom: 18px; }

.mentorship-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 50px; }
.mentorship-gallery img { width: 100%; height: 220px; }

/* Statement */
.statement { background: #252525; padding: 105px 20px; text-align: center; color: #fff; }
.statement-inner { max-width: 880px; margin: auto; }
.quote-mark { color: var(--gold); font-family: Georgia, serif; font-size: 65px; line-height: 1; }
.statement h2 { font-family: Georgia, serif; font-size: clamp(26px, 4vw, 42px); line-height: 1.45; font-weight: normal; color: #fff; margin: 20px 0 28px; }
.statement p { color: #c7c7c7; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }

/* CTA band */
.cta-band { padding: 100px 20px; background: var(--surface); text-align: center; }
.cta-inner { max-width: 760px; margin: auto; }
.cta-band h2 { font-family: Georgia, serif; font-size: clamp(30px, 4vw, 42px); font-weight: normal; line-height: 1.3; color: var(--heading); margin-bottom: 20px; }
.cta-band p { font-size: 14px; margin-bottom: 30px; }

/* Student chapters feature */
.feature-band {
    background: linear-gradient(135deg, #10392d, #174c3c);
    color: #fff; padding: 95px 0;
}
.feature-band .section-heading { color: #fff; }
.feature-band p { color: #d0ded7; font-size: 14px; margin-bottom: 18px; }
.feature-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 70px; align-items: center; }
.values-strip {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px;
    padding: 34px 20px;
    border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold);
    font-family: Georgia, serif; font-size: clamp(18px, 2.6vw, 26px);
    letter-spacing: 3px; text-transform: uppercase; color: var(--heading);
}
.values-strip span { color: var(--gold); }
.badge {
    display: inline-block; padding: 6px 14px; font-size: 11px; font-weight: bold;
    letter-spacing: 2px; text-transform: uppercase;
    background: var(--gold); color: #fff; margin-bottom: 20px;
}
.check-list { list-style: none; margin: 10px 0 25px; }
.check-list li { position: relative; padding: 9px 0 9px 32px; color: var(--muted); font-size: 14px; }
.check-list li::before {
    content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900;
    position: absolute; left: 0; top: 9px; color: var(--gold); font-size: 13px;
}
.feature-band .check-list li { color: #d0ded7; }

/* =====================================================
   CHAPTERS LIST (togglers)
===================================================== */

.toolbar { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.search-box { position: relative; flex: 1 1 280px; max-width: 460px; }
.search-box i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--gold); }
.search-box input {
    width: 100%; padding: 14px 16px 14px 44px;
    background: var(--card); color: var(--text);
    border: 1px solid var(--border); font-size: 14px; font-family: inherit; outline: none;
}
.search-box input:focus { border-color: var(--gold); }
.toolbar-actions { display: flex; gap: 10px; }
.count-note { font-size: 13px; color: var(--muted); }

.chapter-list { display: flex; flex-direction: column; gap: 12px; }
.chapter {
    background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--gold);
}
.chapter-toggle {
    width: 100%; display: flex; align-items: center; gap: 16px;
    padding: 20px 22px; background: transparent; border: 0; cursor: pointer;
    color: var(--heading); font-family: Georgia, serif; font-size: 19px; text-align: left;
}
.chapter-toggle .idx { color: var(--gold); font-size: 13px; font-family: Arial, sans-serif; font-weight: bold; min-width: 26px; }
.chapter-toggle .name { flex: 1; }
.chapter-toggle .chev { color: var(--gold); transition: transform .3s; font-size: 14px; }
.chapter.open .chev { transform: rotate(180deg); }
.chapter-body { display: none; padding: 4px 22px 24px; border-top: 1px solid var(--border); }
.chapter.open .chapter-body { display: block; }
.officers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 30px; padding-top: 22px; }
.officer .role { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); font-weight: bold; margin-bottom: 4px; }
.officer .person { color: var(--text); font-size: 15px; }
.officer .person.tba { color: var(--muted); font-style: italic; }
.officer a.person { text-decoration: underline; text-decoration-color: var(--gold); }
.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }

/* =====================================================
   NEWS AND EVENTS
===================================================== */

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.news-card { background: var(--card); border: 1px solid var(--border); display: flex; flex-direction: column; transition: .3s; }
.news-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,.12); }
.news-card img { width: 100%; height: 220px; }
.news-card .body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.news-meta { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); font-weight: bold; margin-bottom: 10px; }
.news-card h3 { font-family: Georgia, serif; font-size: 22px; font-weight: normal; line-height: 1.3; color: var(--heading); margin-bottom: 12px; }
.news-card p { font-size: 13px; margin-bottom: 18px; }
.news-card .text-link { align-self: flex-start; margin-top: auto; }

.modal {
    position: fixed; inset: 0; z-index: 3000;
    background: rgba(0,0,0,.7);
    display: none; align-items: flex-start; justify-content: center;
    padding: 40px 16px; overflow-y: auto;
}
.modal.open { display: flex; }
.modal-box { background: var(--card); max-width: 800px; width: 100%; position: relative; border-top: 3px solid var(--gold); }
.modal-box img { width: 100%; height: 320px; object-fit: cover; object-position: center 18%; }
.modal-content { padding: 36px 40px 44px; }
.modal-content h2 { font-family: Georgia, serif; font-size: clamp(26px, 4vw, 36px); font-weight: normal; line-height: 1.25; color: var(--heading); margin-bottom: 18px; }
.modal-content p { font-size: 15px; margin-bottom: 16px; }
.modal-close {
    position: absolute; top: 14px; right: 14px; z-index: 2;
    background: var(--gold); color: #fff; border: 0;
    width: 40px; height: 40px; border-radius: 50%; font-size: 16px; cursor: pointer;
}

.event-list { display: flex; flex-direction: column; gap: 20px; }
.event { display: grid; grid-template-columns: 120px 1fr auto; gap: 28px; align-items: center; background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--gold); padding: 26px 30px; }
.event-date { text-align: center; border-right: 1px solid var(--border); padding-right: 24px; }
.event-date .big { font-family: Georgia, serif; font-size: 22px; color: var(--gold); line-height: 1.2; }
.event-date .small { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.event h3 { font-family: Georgia, serif; font-size: 22px; font-weight: normal; color: var(--heading); margin-bottom: 6px; }
.event p { font-size: 13px; }
.event .where { font-size: 12px; color: var(--gold); margin-top: 6px; }

/* =====================================================
   CONTACT
===================================================== */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-panel { padding: 40px; background: var(--surface); border-left: 3px solid var(--gold); }
.contact-panel h3 { font-family: Georgia, serif; font-size: 27px; font-weight: normal; color: var(--heading); margin-bottom: 15px; }
.contact-panel p { font-size: 13px; margin-bottom: 22px; }
.contact-line { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--border); color: var(--text); font-size: 14px; }
.contact-line i { color: var(--gold); margin-top: 5px; width: 18px; text-align: center; }
.contact-line a:hover { color: var(--gold); }

/* =====================================================
   FOOTER
===================================================== */

footer.site-footer { background: var(--footer); color: #fff; padding: 60px 0 25px; }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; padding-bottom: 40px; flex-wrap: wrap; }
.footer-logo img { width: 150px; filter: invert(1); }
.footer-description { color: #b8b8b8; font-size: 12px; max-width: 340px; margin-top: 12px; }
.footer-col h4 { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13px; color: #ddd; padding: 4px 0; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid #444; padding-top: 23px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-bottom p { color: #999; font-size: 11px; }

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

@media (max-width: 1100px) {
    .nav-links { display: none; }
    .menu-toggle { display: inline-flex; }
    .navbar { min-height: 78px; }
    .brand img { width: 130px; }
}

@media (max-width: 900px) {
    .intro-grid, .programme, .contact-grid, .feature-grid { grid-template-columns: 1fr; gap: 40px; }
    .programme:nth-child(even) .programme-image { order: 0; }
    .card-grid, .news-grid { grid-template-columns: 1fr 1fr; }
    .card-grid.four { grid-template-columns: 1fr 1fr; }
    .mentorship-gallery { grid-template-columns: repeat(2, 1fr); }
    .officers { grid-template-columns: 1fr 1fr; }
    .image-caption { right: 12px; }
}

@media (max-width: 650px) {
    html { scroll-padding-top: 85px; }
    .hero { min-height: 560px; background-position: 62% 15%; }
    .hero-content { padding: 80px 0; }
    .section, .cta-band, .feature-band { padding: 70px 0; }
    .page-hero { padding: 60px 0 55px; }
    .intro-image img { height: 360px; }
    .programme-image img { height: 300px; }
    .programme-list { gap: 60px; }
    .card-grid, .card-grid.four, .news-grid { grid-template-columns: 1fr; }
    .mentorship-gallery img { height: 170px; }
    .officers { grid-template-columns: 1fr; }
    .event { grid-template-columns: 1fr; gap: 16px; padding: 22px; }
    .event-date { border-right: 0; border-bottom: 1px solid var(--border); padding: 0 0 14px; text-align: left; }
    .chapter-toggle { font-size: 17px; padding: 18px 16px; }
    .chapter-body { padding: 4px 16px 20px; }
    .modal-content { padding: 26px 22px 32px; }
    .modal-box img { height: 220px; }
    .contact-panel { padding: 28px 22px; }
    .footer-top, .footer-bottom { flex-direction: column; }
    .button { width: 100%; text-align: center; }
    .button-row { flex-direction: column; }
}
