/* ========================
   CSS VARIABLES
======================== */
:root {
    --color-primary: #2F4A6D;
    --color-secondary: #7A9E9F;
    --color-accent: #3A7CA5;

    --color-bg: #F4F6F7;
    --color-surface: #FFFFFF;

    --color-text-primary: #1F1F1F;
    --color-text-secondary: #555555;

    --color-border: #D6DADF;
}

/* ========================
   GLOBAL STYLES
======================== */
body {
    overflow-x: hidden;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--color-bg);
    font-size: 17px;
    line-height: 1.7;
    color: var(--color-text-primary);
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    /*overflow: hidden;   !* prevents child overflow *!*/
}

.container.narrow {
    max-width: 720px;
}

h1 {
    font-size: 2.2rem;
    line-height: 1.3;
    color: var(--color-primary);
}

h2 {
    font-size: 1.6rem;
    margin-bottom: 16px;
    color: var(--color-primary);
}

h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--color-primary);
}

p {
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 14px;
}

.narrow p {
    font-size: 1.1rem;
}

/* ========================
   HEADER
======================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-text {
    white-space: nowrap;
    font-size: 1.1rem;
    color: var(--color-primary);
    font-weight: 600;
}

.logo img {
    height: 40px;
    display: block;
}

/* NAV */
.nav-list {
    list-style: none;
    display: flex;
    gap: 22px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-list a,
.nav-list button {
    text-decoration: none;
    color: var(--color-text-primary);
    font-size: 1rem;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-list a:hover,
.nav-list button:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

/* DROPDOWN */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 8px 0;
    min-width: 220px;
    display: none;
    z-index: 1000;
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    padding: 8px 16px;
}

/* DONATE BUTTON */
.donate-btn a {
    padding: 6px 12px;
    border: 1px solid var(--color-primary);
    border-radius: 4px;
    color: var(--color-primary);
}

.donate-btn a:hover {
    background: var(--color-primary);
    color: #fff;
}

/* ========================
   HERO
======================== */
.hero-banner {
    display: grid;
    grid-template-columns: 20% 60% 20%;
    align-items: stretch;

    width: 100%;
    max-width: 1400px;
    margin: 0 auto;

    overflow: hidden;
}
/* Ensure all columns take full height */
.hero-banner > div {
    height: 100%;
}

/* Images behave consistently */
.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Optional soft look for side images */
.hero-side img {
    opacity: 0.9;
}

/* HERO CONTENT */
.hero-content {
    padding: 30px 0;
    text-align: center;
}

.hero-subtext {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* CTA */
.cta-group {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 18px;
    font-size: 0.95rem;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.btn.primary {
    background: var(--color-primary);
    color: #fff;
}

.btn.secondary {
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ========================
   SECTIONS
======================== */
.section {
    padding: 64px 20px;
    position: relative;
    z-index: 1;   /* lower than header */
}

.section.alt {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.section-divider {
    width: 60px;
    height: 2px;
    background: var(--color-border);
    margin: 30px auto;
}

/* ========================
   GRID / CARDS
======================== */
.focus-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.focus-item {
    padding: 18px;
    border-radius: 8px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    transition: transform 0.2s ease;
}

.focus-item:hover {
    transform: translateY(-3px);
}

/* ========================
   BOOK SECTION
======================== */
.book-section {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
    margin-top: 20px;
}

.book-image img {
    width: 180px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    filter: saturate(0.9) contrast(0.95);
}

.book-subtitle {
    font-style: italic;
    color: var(--color-text-secondary);
    margin-bottom: 10px;
}

/* ========================
   CONTENT ELEMENTS
======================== */
em {
    font-style: italic;
}

.inline-highlight {
    font-style: italic;
    color: var(--color-primary);
    font-weight: 500;
}

blockquote {
    margin: 20px 0;
    padding: 16px;
    border-left: 4px solid var(--color-primary);
    background: #f9f7fc;
    font-style: italic;
}

hr {
    margin: 30px 0;
    border: none;
    border-top: 1px solid var(--color-border);
}

.note {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

.intro {
    max-width: 700px;
    margin-bottom: 20px;
}

.date {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

.lead {
    font-size: 1.1rem;
}

.closing {
    font-weight: 500;
}

/* ========================
   FORM
======================== */
.contact-form {
    max-width: 500px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 1rem;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(38, 19, 51, 0.1);
}

/* ========================
   FOOTER
======================== */
.site-footer {
    margin-top: 40px;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-links p a {
    text-decoration: none !important;
    color: var(--color-primary) !important;;
}

.footer-links p a:hover {
    text-decoration: underline !important;;
}

.menu-toggle {
    display: none;
}

@media (max-width: 768px) {

    .pigeon { display: none; }
    .focus-grid {
        grid-template-columns: 1fr;
    }
    .book-section {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .book-image img {
        width: 140px;
        margin: 0 auto;
    }

    .menu-toggle {
        display: block;
    }

    .header-container {
        flex-wrap: wrap;
    }

    /* 🔴 Hide nav completely */
    .main-nav {
        display: none;
        width: 100%;
        border-top: 1px solid var(--color-border);
        margin-top: 10px;
    }

    /* ✅ Show only when toggled */
    .main-nav.open {
        display: block;
    }

    /* 🔴 Override desktop flex */
    .nav-list {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px 0;
        width: 100%;
    }

    /* Dropdown fix */
    .dropdown-menu {
        position: static;
        border: none;
        padding-left: 16px;
        display: none;
    }

    .dropdown.open .dropdown-menu {
        display: block;
    }
}