/* Koinonia Youth Website - Polished Conversion-Focused Design */
/* Google Fonts are now loaded via <link> tags in HTML <head> instead of @import */

:root {
    --primary-navy: #0f1c3f;
    --primary-orange: #e87722;
    --light-orange: #ff9248;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --light-gray: #e9ecef;
    --medium-gray: #6c757d;
    /* Issue #27: darkened body text from #6c757d to #4a4f55 for WCAG AA contrast */
    --body-text: #4a4f55;
    --dark-gray: #212529;
    --gradient-primary: linear-gradient(135deg, #0f1c3f 0%, #1a3a6e 100%);
    --gradient-orange: linear-gradient(135deg, #e87722 0%, #ff9248 100%);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

/* Issue #27: use --body-text for better contrast on medium paragraphs */
p { color: var(--body-text); font-weight: 400; }

/* ========== SKIP NAVIGATION (issue #16) ========== */
.skip-nav {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--primary-navy);
    color: var(--white);
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    z-index: 9999;
    transition: top 0.2s ease;
}

.skip-nav:focus {
    top: 0;
    outline: 3px solid var(--primary-orange);
    outline-offset: 2px;
}

/* ========== GLOBAL FOCUS-VISIBLE STYLES (issue #19) ========== */
:focus-visible {
    outline: 3px solid var(--primary-orange);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Remove default outline only when focus-visible replaces it */
:focus:not(:focus-visible) {
    outline: none;
}

/* ========== NAVIGATION - Always Hamburger ========== */
nav {
    background: transparent;
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(15, 28, 63, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 40px; width: auto; border-radius: 8px; }
.logo-text {
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: var(--transition);
}

/* Hamburger always visible */
.mobile-menu-btn {
    display: block;
    background: none;
    border: 2px solid rgba(255,255,255,0.3);
    color: var(--white);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.4rem 0.7rem;
    border-radius: 8px;
    transition: var(--transition);
    line-height: 1;
}

.mobile-menu-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

/* Issue #18: aria-expanded is toggled via JS — style for open state */
.mobile-menu-btn[aria-expanded="true"] {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.6);
}

.nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 28, 63, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1rem 5%;
    list-style: none;
    gap: 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.nav-links.active { display: flex; }

.nav-links a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: block;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active { color: var(--light-orange); }
.nav-links li:last-child a { border-bottom: none; }

.nav-links .btn {
    display: inline-flex;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    border-bottom: none;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    background: var(--gradient-orange);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.4);
    box-shadow: none;
}

.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn-dark { background: var(--primary-navy); }

/* Dark outline button (for use on light backgrounds) */
.btn-outline-dark {
    background: transparent;
    border: 2px solid var(--primary-navy);
    color: var(--primary-navy);
    border-radius: 50px;
    padding: 0.85rem 1.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.btn-outline-dark:hover {
    background: var(--primary-navy);
    color: var(--white);
    transform: translateY(-2px);
}

/* ========== HERO ========== */
.hero {
    background: var(--gradient-primary);
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 6rem 5% 3rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('../images/logo.jpeg') center/cover;
    opacity: 0.06;
}

.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-content h1 { margin-bottom: 1rem; font-weight: 800; }

.hero-content .tagline {
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    color: var(--light-orange);
    margin-bottom: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.08em;
}

.hero-content p {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    max-width: 650px;
    margin: 0 auto 2rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
}

.hero-buttons { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ========== SECTIONS ========== */
section { padding: 4rem 5%; }

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 2.5rem;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-orange);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.section-title { color: var(--primary-navy); margin-bottom: 0.75rem; }

.section-subtitle {
    font-size: 1.05rem;
    color: var(--body-text);
    line-height: 1.7;
}

/* ========== FULL-WIDTH PHOTO SECTIONS ========== */
.photo-break {
    width: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden;
    position: relative;
}

/* Photo break images: object-fit + object-position for focal point control.
 * Individual object-position overrides are set via inline style= attributes
 * on each <img> to target the main subject of that specific photo.
 * Default is center center as a safe fallback. */
.photo-break img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: center center; /* overridden per-image via inline style */
    display: block;
}

.photo-break-short img { height: 280px; }

.photo-break .overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(15,28,63,0.3), rgba(15,28,63,0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 5%;
}

.photo-break .overlay h2 {
    color: var(--white);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.photo-break .overlay p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* Side-by-side photo + text */
.photo-text-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
}

/* Photo in the photo-text-row: object-position set inline per image */
.photo-text-row img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.photo-text-row .text-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 5%;
    background: var(--off-white);
}

.photo-text-row .text-side h3 {
    color: var(--primary-navy);
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.photo-text-row .text-side p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

/* ========== CARD GRIDS - FIXED SYMMETRY ========== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.card {
    background: var(--white);
    padding: 2rem;
    border-radius: 14px;
    border: 1px solid var(--light-gray);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.card .icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-orange);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.card h3 { color: var(--primary-navy); margin-bottom: 0.5rem; }
.card p { font-size: 0.95rem; line-height: 1.6; flex-grow: 1; }

.card .btn {
    margin-top: 1.25rem;
    align-self: flex-start;
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
}

/* Alternate card backgrounds */
.card-alt { background: var(--off-white); border-color: transparent; }
.card-alt:hover { background: var(--white); border-color: var(--light-gray); }

/* ========== PROBLEM SECTION ========== */
.problem-section { background: var(--off-white); }

/* ========== STATS SECTION ========== */
.stats-section {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 3rem 5%;
}

.stats-section .section-title { color: var(--white); }
.stats-section .section-subtitle { color: rgba(255,255,255,0.8); }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.stat-item h3 { font-size: 2.5rem; color: var(--light-orange); margin-bottom: 0.25rem; }
.stat-item p { color: rgba(255,255,255,0.8); font-size: 0.9rem; }

/* ========== PAGE HEADER ========== */
.page-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 7rem 5% 3rem;
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('../images/logo.jpeg') center/cover;
    opacity: 0.05;
}

.page-header h1 { position: relative; margin-bottom: 0.5rem; }
.page-header p {
    position: relative;
    font-size: 1.1rem;
    max-width: 550px;
    margin: 0 auto;
    color: rgba(255,255,255,0.8);
}

/* ========== ABOUT PAGE ========== */
.about-content { max-width: 850px; margin: 0 auto; }
.about-section { margin-bottom: 2.5rem; }

.about-section h2 {
    color: var(--primary-navy);
    font-size: 1.75rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.about-section h2::before {
    content: '';
    width: 4px;
    height: 100%;
    min-height: 35px;
    background: var(--gradient-orange);
    border-radius: 2px;
    flex-shrink: 0;
}

.about-section p { font-size: 1.05rem; line-height: 1.8; margin-bottom: 0.75rem; }

.about-section .highlight {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--primary-navy);
    font-weight: 500;
    padding: 1.25rem;
    background: var(--off-white);
    border-radius: 10px;
    border-left: 4px solid var(--primary-orange);
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.value-card {
    background: var(--off-white);
    padding: 1.25rem;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
}

.value-card:hover { background: var(--white); box-shadow: var(--shadow-md); }
.value-card h4 { color: var(--primary-navy); margin-bottom: 0.4rem; }

/* Leadership */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.leader-card {
    background: var(--off-white);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
}

.leader-card:hover { box-shadow: var(--shadow-md); }

/* Issue #30: Photo placeholder for leader cards when no headshot is available */
.leader-photo-placeholder {
    width: 72px;
    height: 72px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 auto 0.75rem;
    letter-spacing: 0.02em;
}

/* When a real photo is added, style it consistently */
.leader-card img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top; /* focus on face */
    margin: 0 auto 0.75rem;
    display: block;
}

.leader-card h4 { color: var(--primary-navy); font-size: 1rem; margin-bottom: 0.2rem; }
.leader-card .role { color: var(--primary-orange); font-weight: 600; font-size: 0.85rem; }
.leader-card .desc { margin-top: 0.5rem; font-size: 0.85rem; }

/* Photo inline for about/programs */
.photo-inline {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin: 1.5rem 0;
}

.photo-inline img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* ========== PROGRAMS PAGE ========== */
.program-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--light-gray);
}

.program-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 1.5rem 2rem;
}

.program-header h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.35rem;
}

/* Program photo: object-position set inline per image to focus on main subject */
.program-photo img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.program-content { padding: 2rem; }
.program-content p { font-size: 1rem; line-height: 1.7; }

.program-content h4 {
    color: var(--primary-navy);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.program-content ul { list-style: none; }

.program-content li {
    padding: 0.5rem 0;
    padding-left: 1.75rem;
    position: relative;
    font-size: 0.95rem;
    color: var(--body-text);
}

.program-content li::before {
    content: "\2713";
    color: var(--primary-orange);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.program-content li strong { color: var(--dark-gray); }

.program-cta {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: var(--off-white);
    border-radius: 10px;
}

.program-cta strong { color: var(--primary-navy); }
.program-cta a { color: var(--primary-orange); text-decoration: none; font-weight: 600; }

/* ========== DONATE PAGE ========== */
/* Issue #35: consolidated into a single responsive grid */
.donation-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 1000px;
    margin: 0 auto 2rem;
}

/* Full 6-card grid on donate page */
.donation-options-full {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1050px;
}

.donation-card {
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: 14px;
    padding: 1.75rem;
    text-align: center;
    transition: var(--transition);
}

.donation-card:hover {
    border-color: var(--primary-orange);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.donation-card.featured {
    border-color: var(--primary-orange);
    position: relative;
}

.donation-card.featured::before {
    content: 'Most Flexible';
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-orange);
    color: white;
    padding: 0.2rem 0.85rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.donation-card .icon {
    width: 50px;
    height: 50px;
    background: var(--off-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin: 0 auto 1rem;
}

.donation-card h3 { color: var(--primary-navy); margin-bottom: 0.5rem; font-size: 1.1rem; }
.donation-card p { margin-bottom: 1rem; font-size: 0.9rem; }

.donation-card .amount {
    font-size: 2rem;
    color: var(--primary-orange);
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.donation-card .amount-label {
    font-size: 0.8rem;
    color: var(--body-text);
    margin-bottom: 1.25rem;
}

/* Donation Form */
.custom-donation { background: var(--off-white); padding: 3rem 5%; }

.donation-form {
    max-width: 480px;
    margin: 0 auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--primary-navy);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 0.875rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(232, 119, 34, 0.15);
}

.donation-form .btn { width: 100%; padding: 0.85rem; font-size: 1rem; }

.form-note {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--body-text);
}

/* Impact Cards */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.impact-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 14px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--light-gray);
}

.impact-card .amount {
    font-size: 1.75rem;
    color: var(--primary-orange);
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.impact-card h4 { color: var(--primary-navy); margin-bottom: 0.3rem; }

/* Contact grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.contact-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--off-white);
    border-radius: 10px;
}

.contact-item .icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.contact-item h4 { color: var(--primary-navy); margin-bottom: 0.3rem; }
.contact-item p { font-size: 0.95rem; }
.contact-item a { color: var(--primary-orange); text-decoration: none; font-weight: 500; }

/* Photo gallery for donate */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.photo-gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center center;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.photo-gallery img:hover { transform: scale(1.02); box-shadow: var(--shadow-xl); }

/* ========== CTA SECTION ========== */
.cta-section {
    background: var(--gradient-primary);
    text-align: center;
    color: var(--white);
    padding: 3rem 5%;
}

.cta-section h2 { color: var(--white); margin-bottom: 0.75rem; }

.cta-section p {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    max-width: 550px;
    margin: 0 auto 1.5rem;
}

/* ========== FOOTER ========== */
footer {
    background: var(--primary-navy);
    color: var(--white);
    padding: 2.5rem 5% 1.5rem;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-section h4 { color: var(--light-orange); margin-bottom: 1rem; font-size: 1rem; }
.footer-section p { color: rgba(255,255,255,0.7); line-height: 1.7; font-size: 0.9rem; }

.footer-section a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-section a:hover { color: var(--light-orange); }

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .grid-3 { grid-template-columns: 1fr; max-width: 500px; }
    .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    .stat-item h3 { font-size: 2rem; }
    .values-grid { grid-template-columns: 1fr; }
    .donation-options { grid-template-columns: 1fr; max-width: 400px; }
    .donation-options-full { grid-template-columns: repeat(2, 1fr); max-width: 700px; }
    .impact-grid { grid-template-columns: 1fr; max-width: 400px; }
    .photo-gallery { grid-template-columns: 1fr; max-width: 500px; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .photo-text-row { grid-template-columns: 1fr; }
    .photo-text-row img { height: 250px; }
    .photo-text-row .text-side { padding: 2rem 5%; }
}

@media (max-width: 640px) {
    .donation-options-full { grid-template-columns: 1fr; max-width: 400px; }
}

@media (max-width: 768px) {
    section { padding: 3rem 5%; }
    .hero { min-height: 75vh; padding: 5.5rem 5% 3rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .page-header { padding: 6rem 5% 2.5rem; }
    .about-section h2 { font-size: 1.4rem; }
    /* Responsive photo heights — keep subjects visible on small screens */
    .photo-break img { height: 240px; }
    .photo-break-short img { height: 200px; }
    .photo-inline img { height: 220px; }
    .program-photo img { height: 220px; }
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ========== PRINT STYLES ========== */
@media print {
    nav, .mobile-menu-btn, .skip-nav { display: none; }
    .hero { min-height: auto; padding: 2rem 0; }
    .photo-break { display: none; }
}
