/* Roman Shield for Profound Autism — Shared Styles */
:root {
    --blue: #1B4B8C;
    --blue-dark: #142f5c;
    --gold: #D4AF37;
    --gold-light: #e8cc6a;
    --green: #4CAF50;
    --charcoal: #2C2C2C;
    --white: #FFFFFF;
    --soft-white: #F5F5F5;
    --light-blue: #e8eef6;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--charcoal);
    background: var(--white);
}
h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; line-height: 1.3; }
h1 { font-size: 2.8rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }

/* Nav */
nav {
    background: var(--white);
    border-bottom: 3px solid var(--gold);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--blue);
}
.nav-brand:hover { text-decoration: none; }
.nav-shield {
    width: 36px;
    height: 40px;
    background: var(--blue);
    clip-path: polygon(50% 0%, 100% 10%, 100% 60%, 50% 100%, 0% 60%, 0% 10%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.nav-shield::after {
    content: '';
    width: 18px;
    height: 20px;
    background: var(--gold);
    clip-path: polygon(50% 0%, 100% 10%, 100% 60%, 50% 100%, 0% 60%, 0% 10%);
    position: absolute;
}
.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
    flex-wrap: wrap;
}
.nav-links a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--charcoal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.nav-links a:hover { color: var(--blue); text-decoration: none; }
.nav-links a.active { color: var(--blue); border-bottom: 2px solid var(--gold); padding-bottom: 2px; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s, transform 0.1s;
    cursor: pointer;
    border: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--blue-dark); }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-dark); }

/* Page Header */
.page-header {
    background: linear-gradient(135deg, rgba(20,47,92,0.85) 0%, rgba(27,75,140,0.8) 100%);
    color: var(--white);
    padding: 80px 0 72px;
    text-align: center;
    background-size: cover;
    background-position: center;
}
.page-header h1 { font-size: 2.4rem; margin-bottom: 12px; }
.page-header h1 span { color: var(--gold); }
.page-header p { font-size: 1.05rem; opacity: 0.9; max-width: 600px; margin: 0 auto; }

/* Page-specific header backgrounds */
.page-header-about { background-image: linear-gradient(135deg, rgba(20,47,92,0.82) 0%, rgba(27,75,140,0.78) 100%), url('images/about.jpg'); }
.page-header-advocacy { background-image: linear-gradient(135deg, rgba(20,47,92,0.82) 0%, rgba(27,75,140,0.78) 100%), url('images/advocacy.jpg'); }
.page-header-stories { background-image: linear-gradient(135deg, rgba(20,47,92,0.82) 0%, rgba(27,75,140,0.78) 100%), url('images/stories.jpg'); }
.page-header-resources { background-image: linear-gradient(135deg, rgba(20,47,92,0.82) 0%, rgba(27,75,140,0.78) 100%), url('images/resources.jpg'); }
.page-header-volunteer { background-image: linear-gradient(135deg, rgba(20,47,92,0.82) 0%, rgba(27,75,140,0.78) 100%), url('images/volunteer.jpg'); }
.page-header-donate { background-image: linear-gradient(135deg, rgba(20,47,92,0.82) 0%, rgba(27,75,140,0.78) 100%), url('images/donate.jpg'); }
.page-header-beneficiary { background-image: linear-gradient(135deg, rgba(20,47,92,0.82) 0%, rgba(27,75,140,0.78) 100%), url('images/stories.jpg'); }
.page-header-governance { background-image: linear-gradient(135deg, rgba(20,47,92,0.82) 0%, rgba(27,75,140,0.78) 100%), url('images/about.jpg'); }
.page-header-investment { background-image: linear-gradient(135deg, rgba(20,47,92,0.82) 0%, rgba(27,75,140,0.78) 100%), url('images/advocacy.jpg'); }
.page-header-contact { background-image: linear-gradient(135deg, rgba(20,47,92,0.82) 0%, rgba(27,75,140,0.78) 100%), url('images/contact.jpg'); }

/* Section with background image */
.section-image {
    background-size: cover;
    background-position: center;
    position: relative;
}
.section-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(20,47,92,0.85);
}
.section-image > .container { position: relative; z-index: 1; }

/* Content Sections */
.content-section { background: var(--white); }
.alt-section { background: var(--soft-white); }
.blue-section { background: var(--blue); color: var(--white); }

.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.content-block h2 { color: var(--blue); }
.content-block p { margin-bottom: 16px; }
.content-block ul { margin: 12px 0 16px 20px; }
.content-block li { margin-bottom: 6px; font-size: 0.95rem; }

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.card {
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 28px;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.card:hover { box-shadow: 0 4px 20px rgba(27,75,140,0.1); border-color: var(--blue); }
.card h3 { color: var(--blue); }
.card p { font-size: 0.9rem; color: #555; margin-top: 8px; }
.card-icon {
    width: 48px;
    height: 48px;
    background: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
}

/* Info Box */
.info-box {
    background: var(--white);
    border-left: 4px solid var(--gold);
    padding: 24px 28px;
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
}
.info-box h3 {
    color: var(--gold);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

/* Contact Form */
.contact-form {
    max-width: 560px;
    margin: 0 auto;
}
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--charcoal);
}
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--blue); outline: none; }
textarea.form-input { resize: vertical; min-height: 120px; }

/* Footer */
footer {
    background: #1a1a1a;
    color: #999;
    padding: 40px 0;
    font-size: 0.85rem;
}
footer .container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
}
footer h4 { color: #ccc; font-size: 0.9rem; margin-bottom: 12px; }
footer a { color: #bbb; }
footer a:hover { color: var(--gold); }
footer ul { list-style: none; }
footer li { margin-bottom: 6px; }
.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 32px;
    padding-top: 20px;
    text-align: center;
    color: #666;
    font-size: 0.8rem;
}

/* Gold line divider */
.gold-line { width: 60px; height: 3px; background: var(--gold); margin: 20px auto 24px; }

/* Mobile */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    section { padding: 56px 0; }
    .page-header { padding: 48px 0 40px; }
    .content-grid { grid-template-columns: 1fr; gap: 32px; }
    .nav-links { gap: 12px; }
    footer .container { grid-template-columns: 1fr; gap: 24px; }
}
