/* ─── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Lato', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: #444;
    background: #fff;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ─── Header ─────────────────────────────────────────────────────────────── */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo-link img {
    height: 54px;
    width: auto;
}
nav ul {
    display: flex;
    gap: 2rem;
    align-items: center;
}
nav ul li a {
    color: #ccc;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
}
nav ul li a:hover,
nav ul li a.active {
    color: #fff;
    border-bottom-color: #259595;
}

/* ─── Slider ─────────────────────────────────────────────────────────────── */
.slider-wrap {
    position: relative;
    width: 100%;
    height: 540px;
    overflow: hidden;
    margin-top: 78px;
}
.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideFade 24s infinite;
}
.slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.15) 55%, rgba(0,0,0,0.62) 100%);
}
.slide:nth-child(1) { background-image: url('../public/images/rrc.jpg');    animation-delay: 0s; }
.slide:nth-child(2) { background-image: url('../public/images/hd.jpg');     animation-delay: 6s; }
.slide:nth-child(3) { background-image: url('../public/images/rrctoo.jpg'); animation-delay: 12s; }
.slide:nth-child(4) { background-image: url('../public/images/desert3.jpg');animation-delay: 18s; }

@keyframes slideFade {
    0%   { opacity: 0; }
    4%   { opacity: 1; }
    25%  { opacity: 1; }
    30%  { opacity: 0; }
    100% { opacity: 0; }
}

.slide-caption {
    position: absolute;
    top: 0; right: 0;
    width: 38%;
    height: 100%;
    z-index: 10;
    display: flex;
    align-items: center;
    padding: 2.5rem 3rem;
}
.slide-caption-inner {
    background: rgba(0, 0, 0, 0.52);
    border-left: 4px solid #259595;
    padding: 1.8rem 1.8rem 1.8rem 1.5rem;
    border-radius: 0 2px 2px 0;
    backdrop-filter: blur(2px);
}
.slide-caption-inner p {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 300;
    line-height: 1.65;
}

/* ─── Page content wrapper ───────────────────────────────────────────────── */
.content-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem;
}
.page-intro {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3.5rem;
}
.page-intro h1 {
    font-size: 2rem;
    font-weight: 300;
    color: #1a1a1a;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}
.page-intro p {
    font-size: 1.05rem;
    color: #666;
}

/* ─── Simple hero for non-slider pages ──────────────────────────────────── */
.page-hero {
    margin-top: 78px;
    height: 220px;
    background: #1c1c1c;
    display: flex;
    align-items: center;
    justify-content: center;
}
.page-hero h1 {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ─── Home tagline banner ────────────────────────────────────────────────── */
.tagline-bar {
    background: #1c1c1c;
    color: #259595;
    text-align: center;
    padding: 1.2rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ─── About page ─────────────────────────────────────────────────────────── */
.about-intro {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 3.5rem;
}
.about-intro img {
    width: 200px;
    border-radius: 2px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.about-intro-text h2 {
    font-size: 1.6rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 1rem;
}
.about-intro-text p { margin-bottom: 1rem; }

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}
.support-section h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #259595;
}
.support-section ol,
.support-section ul {
    padding-left: 0;
}
.support-section ol { list-style: decimal; padding-left: 1.2rem; }
.support-section ul { list-style: disc; padding-left: 1.2rem; }
.support-section li { margin-bottom: 0.4rem; }

.grantee-section h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #259595;
}
.grantee-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.grantee-card {
    background: #f8f7f4;
    border-left: 3px solid #259595;
    padding: 1.4rem 1.6rem;
    border-radius: 0 2px 2px 0;
}
.grantee-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}
.grantee-card p {
    font-size: 0.92rem;
    color: #555;
    line-height: 1.6;
}

/* ─── Grants page ────────────────────────────────────────────────────────── */
.grants-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 4rem 2rem;
}
.grants-wrap h1 {
    font-size: 1.8rem;
    font-weight: 300;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}
.grants-wrap .lead {
    font-size: 1.05rem;
    color: #666;
    margin-bottom: 2.5rem;
}
.grants-wrap h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 2rem 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.criteria-list {
    list-style: disc;
    padding-left: 1.4rem;
    margin-bottom: 1.5rem;
}
.criteria-list li { margin-bottom: 0.4rem; }
.loi-list {
    list-style: decimal;
    padding-left: 1.4rem;
    margin-bottom: 1.5rem;
}
.loi-list li { margin-bottom: 0.5rem; }
.grants-wrap p { margin-bottom: 1rem; }
.highlight-box {
    background: #f8f7f4;
    border-left: 3px solid #259595;
    padding: 1.2rem 1.5rem;
    margin: 2rem 0;
    border-radius: 0 2px 2px 0;
}
.highlight-box a { color: #1a7878; font-weight: 600; }
.highlight-box a:hover { text-decoration: underline; }

/* ─── Contact page ───────────────────────────────────────────────────────── */
.contact-wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 4rem;
    align-items: start;
}
.contact-form-side h1 {
    font-size: 1.8rem;
    font-weight: 300;
    color: #1a1a1a;
    margin-bottom: 0.4rem;
}
.contact-form-side .lead { color: #666; margin-bottom: 2rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 2px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #333;
    background: #fafafa;
    transition: border-color 0.2s, background 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #259595;
    background: #fff;
}
.form-group textarea { min-height: 140px; resize: vertical; }
.btn-submit {
    background: #259595;
    color: #fff;
    border: none;
    padding: 0.8rem 2.2rem;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-submit:hover { background: #1a7878; }
.form-message {
    padding: 0.9rem 1.2rem;
    border-radius: 2px;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
}
.form-message.success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.form-message.error   { background: #fce4ec; color: #c62828; border: 1px solid #f8bbd9; }

.contact-info-side {
    background: #f8f7f4;
    padding: 2rem;
    border-top: 3px solid #259595;
}
.contact-info-side h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.contact-info-side p {
    margin-bottom: 0.7rem;
    font-size: 0.95rem;
    color: #555;
}
.contact-info-side a { color: #1a7878; }
.contact-info-side a:hover { text-decoration: underline; }
.contact-info-side .divider {
    border: none;
    border-top: 1px solid #e0ddd4;
    margin: 1.2rem 0;
}
.contact-info-side .grant-note {
    font-size: 0.88rem;
    color: #777;
    line-height: 1.6;
}
.contact-info-side .grant-note a { font-weight: 600; }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
footer {
    background: #141414;
    color: #888;
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.85rem;
    margin-top: 0;
}
footer p { margin-bottom: 0.3rem; }
footer .footer-name { color: #bbb; font-size: 0.9rem; margin-bottom: 0.4rem; }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .two-col,
    .grantee-grid { grid-template-columns: 1fr; }
    .about-intro  { grid-template-columns: 1fr; }
    .about-intro img { width: 160px; }
    .contact-wrap { grid-template-columns: 1fr; }
    .slide-caption { width: 55%; }
}
@media (max-width: 640px) {
    .header-inner { padding: 0 1rem; }
    nav ul { gap: 1rem; }
    nav ul li a { font-size: 0.8rem; }
    .logo-link img { height: 42px; }
    .slider-wrap { height: 380px; }
    .slide-caption { width: 100%; padding: 1.5rem; }
    .slide-caption-inner { border-left: none; border-top: 4px solid #259595; padding: 1.4rem 1.2rem 1.4rem 1.2rem; }
    .slide-caption-inner p { font-size: 0.95rem; }
    .content-wrap { padding: 2.5rem 1.2rem; }
    .grants-wrap  { padding: 2.5rem 1.2rem; }
    .contact-wrap { padding: 2.5rem 1.2rem; gap: 2rem; }
}
