/* ===================================
   SEARS FOUNDATION — Stylesheet
   Deep Blue & Gold Theme
   =================================== */

/* --- CSS Variables --- */
:root {
    --navy: #0a1628;
    --navy-light: #111d35;
    --navy-mid: #162544;
    --blue: #1a3a6b;
    --blue-light: #2a5298;
    --gold: #c9a84c;
    --gold-light: #e0c76a;
    --gold-pale: #f5e6b8;
    --white: #ffffff;
    --gray-100: #f0f2f5;
    --gray-200: #d8dce5;
    --gray-300: #b0b8c9;
    --gray-600: #6b7a94;
    --text: #e8eaf0;
    --text-muted: #9aa5b8;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-sans);
    background: var(--navy);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--gold-light);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.08);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 22, 40, 0.97);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 3px;
    color: var(--gold);
    transition: color 0.3s;
}

.nav-logo:hover {
    color: var(--gold-light);
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 8px;
}

.nav-link {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: color 0.3s, background 0.3s;
}

.nav-link:hover,
.nav-link.active-link {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.nav-cta {
    color: var(--navy) !important;
    background: var(--gold) !important;
    font-weight: 600;
    margin-left: 8px;
}

.nav-cta:hover {
    background: var(--gold-light) !important;
    color: var(--navy) !important;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(26, 58, 107, 0.5) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(201, 168, 76, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(42, 82, 152, 0.3) 0%, transparent 60%),
        linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 10% 20%, rgba(201, 168, 76, 0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 30% 60%, rgba(201, 168, 76, 0.2) 0%, transparent 100%),
        radial-gradient(1px 1px at 55% 15%, rgba(255, 255, 255, 0.15) 0%, transparent 100%),
        radial-gradient(1px 1px at 70% 45%, rgba(201, 168, 76, 0.25) 0%, transparent 100%),
        radial-gradient(1px 1px at 85% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 20% 80%, rgba(201, 168, 76, 0.35) 0%, transparent 100%),
        radial-gradient(1px 1px at 90% 30%, rgba(201, 168, 76, 0.2) 0%, transparent 100%),
        radial-gradient(1px 1px at 45% 90%, rgba(255, 255, 255, 0.12) 0%, transparent 100%);
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 20%;
    left: -10%;
    width: 120%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.15), transparent);
    transform: rotate(-5deg);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy);
}

.btn-primary:hover {
    background: var(--gold-light);
    color: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 168, 76, 0.25);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 1.5px solid rgba(201, 168, 76, 0.4);
}

.btn-outline:hover {
    border-color: var(--gold);
    background: rgba(201, 168, 76, 0.08);
    color: var(--gold-light);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* --- Sections --- */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.section-line {
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 0 auto;
    border-radius: 2px;
}

/* --- About Section --- */
.about {
    background: var(--navy);
    border-top: 1px solid rgba(201, 168, 76, 0.06);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.about-text .lead {
    font-size: 1.15rem;
    color: var(--gold-pale);
    margin-bottom: 20px;
    line-height: 1.8;
    font-weight: 400;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 0.98rem;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stat-card {
    background: var(--navy-light);
    border: 1px solid rgba(201, 168, 76, 0.08);
    border-radius: 12px;
    padding: 28px;
    transition: border-color 0.3s, transform 0.3s;
}

.stat-card:hover {
    border-color: rgba(201, 168, 76, 0.2);
    transform: translateY(-2px);
}

.stat-icon {
    width: 36px;
    height: 36px;
    color: var(--gold);
    margin-bottom: 12px;
}

.stat-icon svg {
    width: 100%;
    height: 100%;
}

.stat-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 6px;
}

.stat-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Mission Section --- */
.mission {
    background: var(--navy-light);
}

.mission-statement {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    color: var(--gold-pale);
    text-align: center;
    line-height: 1.7;
    max-width: 780px;
    margin: 0 auto 64px;
    padding: 40px;
    border-left: 3px solid var(--gold);
    background: rgba(201, 168, 76, 0.04);
    border-radius: 0 12px 12px 0;
    font-style: italic;
}

.mission-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.pillar {
    text-align: center;
    padding: 40px 24px;
}

.pillar-number {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 16px;
    padding: 6px 16px;
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: 20px;
}

.pillar h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 16px;
}

.pillar p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* --- Focus Areas Section --- */
.focus {
    background: var(--navy);
    border-top: 1px solid rgba(201, 168, 76, 0.06);
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.focus-card {
    background: var(--navy-light);
    border: 1px solid rgba(201, 168, 76, 0.08);
    border-radius: 16px;
    padding: 40px 32px;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.focus-card:hover {
    border-color: rgba(201, 168, 76, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.focus-icon {
    width: 48px;
    height: 48px;
    color: var(--gold);
    margin-bottom: 24px;
    padding: 10px;
    background: rgba(201, 168, 76, 0.08);
    border-radius: 12px;
}

.focus-icon svg {
    width: 100%;
    height: 100%;
}

.focus-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
}

.focus-card p {
    font-size: 0.93rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* --- Contact Section --- */
.contact {
    background: var(--navy-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-info h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 16px;
}

.contact-info p {
    color: var(--text-muted);
    font-size: 0.98rem;
    margin-bottom: 32px;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-item svg {
    width: 20px;
    height: 20px;
    color: var(--gold);
    flex-shrink: 0;
}

/* --- Form --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--navy);
    border: 1px solid rgba(201, 168, 76, 0.12);
    border-radius: 8px;
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-600);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239aa5b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}

.form-group select option {
    background: var(--navy);
    color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* --- Footer --- */
.footer {
    background: var(--navy);
    border-top: 1px solid rgba(201, 168, 76, 0.08);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand h3 {
    font-size: 1rem;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 12px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 320px;
}

.footer-links h4,
.footer-legal h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul,
.footer-legal ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a,
.footer-legal a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover,
.footer-legal a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(201, 168, 76, 0.08);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 4px;
}

.footer-disclaimer {
    font-size: 0.8rem !important;
    color: var(--gray-600);
    font-style: italic;
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 960px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .mission-pillars {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .pillar {
        padding: 24px;
        text-align: left;
    }

    .focus-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(10, 22, 40, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
        border-bottom: 1px solid rgba(201, 168, 76, 0.08);
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .nav-link {
        padding: 12px 16px;
        font-size: 1rem;
    }

    .nav-cta {
        margin-left: 0;
        text-align: center;
        margin-top: 8px;
    }

    .hero {
        min-height: 90vh;
        padding: 100px 20px 60px;
    }

    .section {
        padding: 72px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .mission-statement {
        padding: 24px;
        margin-bottom: 40px;
    }
}
