/* ========================================
   Diewert Foundation - Conversion-Optimized
   
   Color Tokens:
   --diewert-blue: #1A4C8B
   --movement-gold: #F4C542
   --neutral-sand: #F7F4EF
   --charcoal: #1A1A1A
   --white: #FFFFFF
   
   Conversion Architecture:
   - Sticky donation bar (persistent CTA)
   - Multiple CTA touchpoints
   - Trust stack (charity number, breakdown, testimonials)
   - Urgency messaging (2026 expansion)
   - Social proof (donor count, weekly momentum)
   - Emotional micro-story
   - Corporate partnership pathway
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --diewert-blue: #1A4C8B;
    --movement-gold: #F4C542;
    --neutral-sand: #F7F4EF;
    --charcoal: #1A1A1A;
    --white: #FFFFFF;
    --gray-light: #F5F5F5;
    --gray-medium: #D0D0D0;
    --transition: all 0.3s ease;
    
    /* Spacing */
    --xs: 8px;
    --s: 16px;
    --m: 24px;
    --l: 40px;
    --xl: 64px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--charcoal);
    background-color: var(--white);
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--s);
}

@media (min-width: 640px) {
    .container {
        padding: 0 var(--m);
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--l);
    }
}

/* ========================================
   Typography
   ======================================== */

h1 {
    font-size: clamp(36px, 7vw, 56px);
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: clamp(32px, 5vw, 40px);
    font-weight: 600;
    margin-bottom: var(--m);
    text-align: center;
}

h3 {
    font-size: clamp(24px, 4vw, 28px);
    font-weight: 600;
}

h4 {
    font-size: 18px;
    font-weight: 600;
}

p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
}

.section-intro {
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--l);
    color: #555;
}

/* ========================================
   Sticky Donation Bar (Persistent CTA)
   ======================================== */

.sticky-donation-bar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1001;
    background: linear-gradient(135deg, var(--diewert-blue) 0%, #0F2E5F 100%);
    color: var(--white);
    padding: var(--s) 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: none;
}

.sticky-donation-bar.show {
    display: block;
}

.sticky-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--m);
}

.sticky-text {
    font-size: 14px;
    font-weight: 500;
}

.btn-primary-sticky {
    background-color: var(--movement-gold);
    color: var(--charcoal);
    border: none;
    padding: var(--xs) var(--m);
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.btn-primary-sticky:hover {
    background-color: #E6B62F;
    transform: scale(1.05);
}

@media (max-width: 640px) {
    .sticky-container {
        flex-direction: column;
        gap: var(--s);
    }

    .sticky-text {
        font-size: 12px;
    }

    .btn-primary-sticky {
        width: 100%;
    }
}

/* ========================================
   Navigation
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
    padding: var(--s) 0;
    margin-top: 50px;
}

.navbar.scrolled {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--diewert-blue);
}

.nav-links {
    display: none;
    gap: var(--l);
    align-items: center;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    text-decoration: none;
    color: var(--charcoal);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--diewert-blue);
}

.nav-cta {
    padding: var(--xs) var(--m);
    font-size: 0.85rem;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: var(--xs);
    cursor: pointer;
}

@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--diewert-blue);
    transition: var(--transition);
}

/* ========================================
   Buttons
   ======================================== */

.btn-primary {
    background-color: var(--diewert-blue);
    color: var(--white);
    border: none;
    padding: var(--xs) var(--m);
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background-color: #0F2E5F;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 76, 139, 0.3);
}

.btn-secondary {
    background-color: var(--movement-gold);
    color: var(--charcoal);
    border: none;
    padding: var(--xs) var(--m);
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-secondary:hover {
    background-color: #E6B62F;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 197, 66, 0.3);
}

.btn-large {
    padding: var(--m) var(--l);
    font-size: 1rem;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 110px;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 76, 139, 0.55);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: var(--white);
    text-align: center;
    max-width: 900px;
}

.hero-text h1 {
    color: var(--white);
    margin-bottom: var(--m);
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: var(--l);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-ctas {
    display: flex;
    gap: var(--m);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

@media (max-width: 768px) {
    .hero-ctas {
        flex-direction: column;
    }

    .hero-ctas button {
        width: 100%;
    }

    .hero {
        margin-top: 50px;
    }
}

/* ========================================
   Sections
   ======================================== */

section {
    padding: var(--xl) 0;
}

@media (max-width: 768px) {
    section {
        padding: var(--l) 0;
    }
}

.section-cream {
    background-color: var(--neutral-sand);
}

/* ========================================
   Why Matters Section (Urgency)
   ======================================== */

.why-matters {
    background-color: var(--white);
}

.urgency-content {
    max-width: 900px;
    margin: 0 auto;
}

.urgency-text {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: var(--l);
    text-align: center;
    color: #555;
}

.expansion-goal {
    background: linear-gradient(135deg, rgba(26, 76, 139, 0.1) 0%, rgba(244, 197, 66, 0.1) 100%);
    padding: var(--l);
    border-radius: 8px;
    border-left: 4px solid var(--diewert-blue);
    text-align: center;
}

.expansion-icon {
    font-size: 2.5rem;
    margin-bottom: var(--m);
}

.expansion-goal h3 {
    color: var(--diewert-blue);
    margin-bottom: var(--s);
}

.expansion-goal p {
    font-size: 16px;
    color: #555;
}

/* ========================================
   About Section
   ======================================== */

.about {
    background-color: var(--white);
}

.principles-title {
    text-align: center;
    margin-bottom: var(--l);
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--l);
    margin-bottom: var(--xl);
}

.principle-card {
    background-color: var(--white);
    padding: var(--l);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
}

.principle-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(26, 76, 139, 0.15);
}

.principle-icon {
    font-size: 2.5rem;
    margin-bottom: var(--m);
}

.principle-card h4 {
    color: var(--diewert-blue);
    margin-bottom: var(--s);
}

.principle-card p {
    font-size: 16px;
    color: #666;
}

/* ========================================
   Impact Snapshot
   ======================================== */

.impact {
    background-color: var(--neutral-sand);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--l);
    margin: var(--l) 0 var(--l);
}

.metric-card {
    text-align: center;
    padding: var(--l);
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.metric-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--diewert-blue);
    margin-bottom: var(--s);
}

.metric-label {
    font-size: 14px;
    color: #666;
}

.impact-cta {
    text-align: center;
    margin-top: var(--l);
}

/* ========================================
   Donation Breakdown (Trust Stack)
   ======================================== */

.donation-breakdown {
    background-color: var(--white);
}

.breakdown-visual {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--l);
    margin: var(--l) 0;
}

.breakdown-item {
    background: linear-gradient(135deg, rgba(26, 76, 139, 0.05) 0%, rgba(244, 197, 66, 0.05) 100%);
    padding: var(--l);
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(26, 76, 139, 0.1);
}

.breakdown-percent {
    font-size: 36px;
    font-weight: 700;
    color: var(--diewert-blue);
    margin-bottom: var(--s);
}

.breakdown-label {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.trust-badge {
    background-color: var(--neutral-sand);
    padding: var(--l);
    border-radius: 8px;
    text-align: center;
    margin-top: var(--l);
    border: 2px solid var(--diewert-blue);
}

.trust-badge p {
    font-size: 14px;
    line-height: 1.8;
}

/* ========================================
   Impact Creation
   ======================================== */

.impact-creation {
    background-color: var(--neutral-sand);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--l);
    margin: var(--l) 0;
}

.impact-item {
    background-color: var(--white);
    padding: var(--l);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition);
}

.impact-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(26, 76, 139, 0.15);
}

.impact-icon {
    font-size: 2.5rem;
    margin-bottom: var(--m);
}

.impact-item h3 {
    color: var(--diewert-blue);
    margin-bottom: var(--s);
}

.impact-item p {
    font-size: 16px;
    color: #666;
}

/* ========================================
   Micro-Story Section (Emotional)
   ======================================== */

.micro-story {
    background: linear-gradient(135deg, var(--diewert-blue) 0%, #0F2E5F 100%);
    color: var(--white);
    padding: var(--xl) 0;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
}

.story-text h2 {
    color: var(--white);
    margin-bottom: var(--l);
}

.story-quote {
    font-size: 20px;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: var(--m);
    padding: var(--l);
    border-left: 4px solid var(--movement-gold);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.story-author {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: var(--m);
}

.story-context {
    font-size: 16px;
    opacity: 0.9;
}

/* ========================================
   Donation Options (Multiple CTAs)
   ======================================== */

.donation-options {
    background-color: var(--neutral-sand);
}

.donation-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--l);
    margin-top: var(--l);
}
.donation-card {
    background-color: var(--white);
    padding: var(--l);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.donation-card.featured {
    border: 3px solid var(--movement-gold);
    transform: scale(1.02);
}

.donation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(26, 76, 139, 0.15);
}

.donation-card.featured:hover {
    transform: scale(1.02) translateY(-4px);
}

.badge {
    position: absolute;
    top: -12px;
    left: 20px;
    background-color: var(--movement-gold);
    color: var(--charcoal);
    padding: var(--xs) var(--m);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.donation-card h3 {
    color: var(--diewert-blue);
    margin-bottom: var(--s);
    margin-top: var(--s);
}

.donation-description {
    font-size: 16px;
    color: #555;
    margin-bottom: var(--m);
}

.donation-social {
    font-size: 14px;
    color: var(--diewert-blue);
    font-weight: 600;
    margin-bottom: var(--s);
}

.donation-example {
    font-size: 14px;
    color: #666;
    margin-bottom: var(--m);
}

.donation-benefit {
    font-size: 14px;
    color: #666;
    margin-bottom: var(--m);
}

.donation-reassurance {
    font-size: 13px;
    color: #999;
    margin-bottom: var(--l);
    font-style: italic;
}

.corporate-options {
    font-size: 14px;
    color: #666;
    margin-bottom: var(--m);
    text-align: left;
}

.corporate-options p {
    margin-bottom: var(--s);
}

.donation-card button {
    margin-top: auto;
}

/* ========================================
   Momentum Section (Social Proof)
   ======================================== */

.momentum {
    background: linear-gradient(135deg, rgba(26, 76, 139, 0.05) 0%, rgba(244, 197, 66, 0.05) 100%);
    padding: var(--l) 0;
}

.momentum-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.momentum-content h3 {
    color: var(--diewert-blue);
    margin-bottom: var(--m);
}

.momentum-stat {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: var(--m);
    color: #555;
}

.momentum-text {
    font-size: 16px;
    color: #666;
}

/* ========================================
   Testimonials Section
   ======================================== */

.testimonials {
    background-color: var(--neutral-sand);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--l);
    margin-top: var(--l);
}

.testimonial-card {
    background-color: var(--white);
    padding: var(--l);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--movement-gold);
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: var(--m);
    font-style: italic;
    color: #555;
}

.testimonial-author {
    font-weight: 600;
    color: var(--diewert-blue);
    font-style: normal;
}

/* ========================================
   FAQ Section
   ======================================== */

.faq {
    background-color: var(--white);
}

.faq-items {
    max-width: 800px;
    margin: var(--l) auto 0;
}

.faq-item {
    margin-bottom: var(--s);
    border: 1px solid var(--gray-medium);
    border-radius: 6px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: var(--m);
    background-color: var(--white);
    border: none;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: var(--charcoal);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.faq-question:hover {
    background-color: var(--neutral-sand);
}

.faq-icon {
    font-size: 1.5rem;
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: var(--neutral-sand);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: var(--m);
    font-size: 16px;
    color: #555;
    line-height: 1.8;
}

/* ========================================
   Final CTA Section
   ======================================== */

.final-cta {
    background-color: var(--neutral-sand);
    text-align: center;
}

.final-cta h2 {
    color: var(--diewert-blue);
}

.final-cta-text {
    font-size: 18px;
    margin-bottom: var(--l);
    color: #555;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background-color: var(--diewert-blue);
    color: var(--white);
    padding: var(--l) 0 var(--m);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--l);
    margin-bottom: var(--l);
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: var(--m);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--s);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-section p {
    font-size: 14px;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: var(--m);
    text-align: center;
    font-size: 14px;
    opacity: 0.8;
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    h2 {
        font-size: 28px;
    }

    .donation-cards {
        grid-template-columns: 1fr;
    }

    .donation-card.featured {
        transform: scale(1);
    }

    .donation-card.featured:hover {
        transform: translateY(-4px);
    }

    .principles-grid {
        grid-template-columns: 1fr;
    }

    .impact-grid {
        grid-template-columns: 1fr;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .btn-large {
        padding: var(--m) var(--m);
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--s);
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-intro {
        font-size: 16px;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .hero-ctas button {
        width: 100%;
    }

    .sticky-container {
        flex-direction: column;
    }

    .sticky-text {
        font-size: 12px;
    }
}
