/* ==========================================================================
   George Brown Memorial Foundation — Website Styles
   ========================================================================== */

:root {
    --primary: #0b203a;         /* deep navy */
    --primary-dark: #071528;
    --accent: #b8892b;          /* warm gold */
    --accent-dark: #8f6a20;
    --secondary: #2e6b5a;       /* forest */
    --text: #2b2f36;
    --text-light: #566072;
    --muted: #8892a6;
    --bg: #ffffff;
    --bg-soft: #f6f4ef;
    --bg-alt: #f0ede4;
    --border: #e5e3dd;
    --white: #ffffff;
    --shadow-sm: 0 2px 6px rgba(10, 20, 40, 0.06);
    --shadow: 0 10px 30px rgba(10, 20, 40, 0.08);
    --shadow-lg: 0 20px 60px rgba(10, 20, 40, 0.15);
    --radius: 8px;
    --radius-lg: 14px;
    --transition: all 0.3s ease;
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--sans);
    color: var(--text);
    line-height: 1.7;
    background: var(--bg);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }
ul { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--serif); color: var(--primary); font-weight: 700; line-height: 1.25; margin-bottom: 0.6em; }
h1 { font-size: clamp(2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }
p { margin-bottom: 1em; color: var(--text-light); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

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

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px;
    border: 2px solid transparent;
    border-radius: var(--radius);
    font-weight: 600; font-size: 0.95rem; letter-spacing: 0.3px;
    text-transform: uppercase;
    cursor: pointer; transition: var(--transition);
    font-family: var(--sans);
}
.btn-primary { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }
.btn-dark { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-dark:hover { background: var(--primary-dark); color: var(--white); }

/* ================= TOP BAR ================= */
.topbar {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    padding: 10px 0;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.topbar a { color: rgba(255,255,255,0.85); }
.topbar a:hover { color: var(--accent); }
.topbar i { color: var(--accent); margin-right: 6px; }
.topbar .sep { margin: 0 12px; opacity: 0.4; }

/* ================= HEADER ================= */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 1000;
    box-shadow: var(--shadow-sm);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 24px;
    gap: 24px;
}
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand-logo { width: 60px; height: 60px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-title {
    font-family: var(--serif); font-weight: 700;
    color: var(--primary); font-size: 1.15rem;
    letter-spacing: 0.2px;
}
.brand-sub { font-size: 0.72rem; color: var(--accent); text-transform: uppercase; letter-spacing: 2px; margin-top: 4px; font-weight: 600; }

/* Primary Nav — single line, no wrap */
.primary-nav { flex: 1; display: flex; justify-content: flex-end; }
.nav-list {
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
    align-items: center;
    gap: 4px;
}
.nav-link {
    display: inline-block;
    padding: 10px 14px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.3px;
    border-radius: 6px;
    position: relative;
}
.nav-link::after {
    content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px;
    height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--accent); }
.nav-link:hover { color: var(--accent); background: var(--bg-soft); }

.nav-toggle {
    display: none;
    background: transparent; border: none;
    width: 40px; height: 40px; cursor: pointer;
    flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span {
    display: block; width: 26px; height: 3px;
    background: var(--primary); border-radius: 2px; transition: var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ================= PAGE HERO ================= */
.page-hero {
    background-size: cover; background-position: center;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}
.page-hero-inner { max-width: 900px; margin: 0 auto; }
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,0.9); font-size: 1.15rem; max-width: 720px; margin: 0 auto; }
.eyebrow {
    display: inline-block;
    color: var(--accent);
    letter-spacing: 4px; font-weight: 600; font-size: 0.85rem;
    text-transform: uppercase; margin-bottom: 18px;
}
.breadcrumbs {
    margin-top: 28px; display: inline-flex; gap: 10px; align-items: center;
    color: rgba(255,255,255,0.8); font-size: 0.9rem;
}
.breadcrumbs a { color: rgba(255,255,255,0.8); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span[aria-current] { color: var(--accent); }

/* ================= HOMEPAGE HERO (larger) ================= */
.home-hero {
    position: relative;
    min-height: 640px;
    display: flex; align-items: center;
    background-size: cover; background-position: center;
    color: var(--white);
    overflow: hidden;
}
.home-hero::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(120deg, rgba(7,21,40,0.85) 0%, rgba(7,21,40,0.45) 100%);
}
.home-hero-inner { position: relative; max-width: 780px; padding: 100px 0; }
.home-hero h1 { color: var(--white); font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 24px; }
.home-hero p { font-size: 1.2rem; color: rgba(255,255,255,0.95); margin-bottom: 32px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* ================= SECTIONS ================= */
section.section { padding: 90px 0; }
.section-header { text-align: center; max-width: 780px; margin: 0 auto 60px; }
.section-header .eyebrow { color: var(--accent); }
.section-header h2 { margin-bottom: 18px; }
.section-header p { font-size: 1.05rem; }
.bg-soft { background: var(--bg-soft); }
.bg-alt  { background: var(--bg-alt); }
.bg-dark { background: var(--primary); color: rgba(255,255,255,0.9); }
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 { color: var(--white); }
.bg-dark p { color: rgba(255,255,255,0.85); }

/* Two column split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-image img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.split-image { position: relative; }
.split-badge {
    position: absolute; bottom: -30px; right: -20px;
    background: var(--accent); color: var(--white);
    padding: 24px 30px; border-radius: var(--radius-lg);
    text-align: center; box-shadow: var(--shadow-lg);
}
.split-badge strong { display: block; font-size: 2.2rem; font-family: var(--serif); line-height: 1; }
.split-badge span { font-size: 0.8rem; letter-spacing: 1.5px; text-transform: uppercase; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat { padding: 30px 20px; }
.stat .num { font-family: var(--serif); font-size: 3rem; color: var(--accent); font-weight: 700; line-height: 1; }
.stat .label { font-size: 0.9rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-light); margin-top: 10px; }
.bg-dark .stat .label { color: rgba(255,255,255,0.7); }

/* Cards / Program grid */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-image { height: 220px; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card:hover .card-image img { transform: scale(1.05); }
.card-body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.card-icon {
    width: 54px; height: 54px; border-radius: 50%;
    background: var(--bg-soft); color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; margin-bottom: 18px;
}
.card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.card p { flex: 1; margin-bottom: 18px; }
.card .card-link {
    color: var(--accent); font-weight: 600; font-size: 0.9rem;
    letter-spacing: 1px; text-transform: uppercase;
    display: inline-flex; align-items: center; gap: 8px;
}
.card .card-link:hover { gap: 14px; }

/* Feature list */
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.feature {
    display: flex; gap: 20px;
    padding: 24px; background: var(--white);
    border-radius: var(--radius); border-left: 4px solid var(--accent);
    box-shadow: var(--shadow-sm);
}
.feature-icon {
    flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%;
    background: var(--bg-soft); color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
}
.feature h4 { margin-bottom: 8px; }
.feature p { margin: 0; font-size: 0.95rem; }

/* Timeline */
.timeline { position: relative; padding: 20px 0; }
.timeline::before {
    content: ''; position: absolute; left: 50%; top: 0; bottom: 0;
    width: 3px; background: var(--border); transform: translateX(-50%);
}
.timeline-item {
    position: relative; width: 50%; padding: 30px 40px;
}
.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; }
.timeline-item::before {
    content: ''; position: absolute; top: 40px;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--accent); border: 4px solid var(--white); box-shadow: 0 0 0 3px var(--accent);
}
.timeline-item:nth-child(odd)::before  { right: -9px; }
.timeline-item:nth-child(even)::before { left: -9px; }
.timeline-year { color: var(--accent); font-weight: 700; font-family: var(--serif); font-size: 1.4rem; }
.timeline-content { background: var(--white); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-top: 10px; }

/* Values / icon rows */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.value {
    padding: 36px 24px; background: var(--white);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value .icon-circle {
    width: 76px; height: 76px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: var(--white);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.8rem; margin-bottom: 20px;
}
.value h3 { font-size: 1.15rem; }
.value p { margin: 0; font-size: 0.95rem; }

/* Blockquote / testimonial */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.testimonial {
    background: var(--white); padding: 34px; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); position: relative;
}
.testimonial::before {
    content: '\201C'; position: absolute; top: 10px; left: 20px;
    font-family: var(--serif); font-size: 5rem; color: var(--accent); opacity: 0.25; line-height: 1;
}
.testimonial p { font-style: italic; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-author img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.testimonial-author strong { color: var(--primary); }
.testimonial-author span { display: block; font-size: 0.85rem; color: var(--muted); }

/* News grid */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.news-item { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); }
.news-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-item .card-image { height: 240px; }
.news-body { padding: 26px; }
.news-meta { font-size: 0.8rem; color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 12px; }
.news-meta span { color: var(--accent); }
.news-body h3 { font-size: 1.2rem; margin-bottom: 12px; }
.news-body h3 a { color: var(--primary); }
.news-body h3 a:hover { color: var(--accent); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 50px; }
.contact-info { background: var(--primary); color: rgba(255,255,255,0.9); padding: 40px; border-radius: var(--radius-lg); }
.contact-info h3 { color: var(--white); }
.contact-info ul { margin-top: 24px; }
.contact-info li { display: flex; gap: 16px; margin-bottom: 20px; align-items: flex-start; }
.contact-info li i { color: var(--accent); font-size: 1.15rem; margin-top: 4px; }
.contact-info a { color: rgba(255,255,255,0.9); }
.contact-info a:hover { color: var(--accent); }
.social { display: flex; gap: 10px; margin-top: 30px; }
.social a {
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(255,255,255,0.1); color: var(--white);
    display: flex; align-items: center; justify-content: center;
}
.social a:hover { background: var(--accent); color: var(--white); }

.contact-form {
    background: var(--white); padding: 40px; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--primary); font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px 14px;
    border: 1px solid var(--border); border-radius: var(--radius);
    font-family: var(--sans); font-size: 0.95rem;
    transition: var(--transition); background: var(--bg-soft);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--accent); background: var(--white);
    box-shadow: 0 0 0 3px rgba(184,137,43,0.15);
}
.form-group textarea { resize: vertical; min-height: 140px; }

/* Alert / notice */
.alert { padding: 16px 20px; border-radius: var(--radius); margin-bottom: 24px; }
.alert-success { background: #e8f5e9; color: #2e7d32; border-left: 4px solid #2e7d32; }
.alert-error   { background: #fdecea; color: #c62828; border-left: 4px solid #c62828; }

/* Info boxes */
.info-box {
    padding: 30px; background: var(--bg-soft);
    border-radius: var(--radius-lg); border-left: 4px solid var(--accent);
    margin-bottom: 30px;
}
.info-box h3 { margin-bottom: 12px; }
.info-box ul { padding-left: 0; }
.info-box li { padding: 8px 0 8px 30px; position: relative; color: var(--text-light); }
.info-box li::before {
    content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; left: 0; top: 8px; color: var(--accent);
}

/* Content prose */
.prose h2 { margin-top: 40px; }
.prose h3 { margin-top: 30px; color: var(--primary); }
.prose p { font-size: 1.02rem; }
.prose ul { margin: 0 0 1.5em 1.5em; }
.prose ul li { padding: 5px 0 5px 5px; color: var(--text-light); position: relative; list-style: none; padding-left: 25px; }
.prose ul li::before { content: '\f105'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; top: 5px; color: var(--accent); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery img { border-radius: var(--radius); height: 220px; object-fit: cover; width: 100%; transition: var(--transition); }
.gallery img:hover { transform: scale(1.03); box-shadow: var(--shadow); }

/* Newsletter */
.newsletter { background: var(--primary); color: var(--white); padding: 60px 0; }
.newsletter-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.newsletter h2 { color: var(--white); margin-bottom: 10px; }
.newsletter p { color: rgba(255,255,255,0.85); margin: 0; }
.newsletter-form { display: flex; gap: 12px; }
.newsletter-form input {
    flex: 1; padding: 14px 18px; border: none; border-radius: var(--radius);
    font-family: var(--sans); font-size: 0.95rem;
}

/* ================= FOOTER ================= */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,0.75); padding-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr; gap: 40px; padding-bottom: 50px; }
.footer-col h4 { color: var(--white); font-family: var(--sans); font-size: 1rem; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.footer-col h4::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 40px; height: 3px; background: var(--accent); border-radius: 2px;
}
.footer-brand .brand { margin-bottom: 20px; }
.footer-brand .brand-title { color: var(--white); font-size: 1.1rem; }
.footer-brand .brand-sub { color: var(--accent); }
.footer-about { font-size: 0.92rem; line-height: 1.7; margin-bottom: 20px; }
.footer-registry { font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.footer-registry strong { color: var(--white); }

.footer-links li, .footer-contact li { padding: 6px 0; font-size: 0.92rem; }
.footer-links a { color: rgba(255,255,255,0.75); display: inline-flex; align-items: center; gap: 8px; }
.footer-links a i { color: var(--accent); font-size: 0.75rem; }
.footer-links a:hover { color: var(--accent); }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact li i { color: var(--accent); margin-top: 4px; }
.footer-contact a { color: rgba(255,255,255,0.75); }
.footer-contact a:hover { color: var(--accent); }

.footer-bottom { background: rgba(0,0,0,0.25); padding: 20px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 0.87rem; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: rgba(255,255,255,0.75); }
.footer-legal a:hover { color: var(--accent); }

/* Back to top */
.back-to-top {
    position: fixed; bottom: 30px; right: 30px;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--accent); color: var(--white);
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: var(--transition);
    box-shadow: var(--shadow); z-index: 999;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--accent-dark); transform: translateY(-4px); }

/* ================= RESPONSIVE ================= */
@media (max-width: 1100px) {
    .brand-title { font-size: 1rem; }
    .brand-sub { font-size: 0.65rem; letter-spacing: 1.5px; }
    .nav-link { padding: 10px 10px; font-size: 0.85rem; }
    .brand-logo { width: 52px; height: 52px; }
}
@media (max-width: 960px) {
    .nav-toggle { display: flex; }
    .primary-nav {
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--white); box-shadow: var(--shadow);
        max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
    }
    .primary-nav.open { max-height: 600px; }
    .nav-list {
        flex-direction: column; white-space: normal;
        padding: 20px; align-items: stretch; gap: 0;
    }
    .nav-link { display: block; padding: 14px 16px; border-bottom: 1px solid var(--border); }
    .nav-link::after { display: none; }

    .split { grid-template-columns: 1fr; gap: 40px; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .cards, .news-grid, .testimonials, .gallery { grid-template-columns: repeat(2, 1fr); }
    .values { grid-template-columns: repeat(2, 1fr); }
    .feature-list, .form-row { grid-template-columns: 1fr; }
    .contact-grid, .newsletter-inner, .footer-bottom-inner { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .newsletter-inner { text-align: center; }
    .newsletter-form { flex-direction: column; }
    .timeline::before { left: 20px; }
    .timeline-item, .timeline-item:nth-child(even) { width: 100%; left: 0; padding-left: 60px; text-align: left; }
    .timeline-item:nth-child(odd) { text-align: left; }
    .timeline-item::before, .timeline-item:nth-child(odd)::before, .timeline-item:nth-child(even)::before { left: 12px; right: auto; }
    .topbar { display: none; }
}
@media (max-width: 600px) {
    section.section { padding: 60px 0; }
    .home-hero { min-height: 500px; }
    .cards, .news-grid, .testimonials, .gallery, .values, .footer-grid { grid-template-columns: 1fr; }
    .brand-sub { display: none; }
    .split-badge { right: 10px; bottom: -20px; padding: 16px 20px; }
    .split-badge strong { font-size: 1.6rem; }
}
