/* ========================================
   CSS Reset & Base Styles
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: #2c3e50;
    background-color: #fafaf8;
    overflow-x: hidden;
}

/* Modern heading styles */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ========================================
   Color Palette
   ======================================== */
:root {
    --color-primary: #7a9b7d;        /* Sage green */
    --color-primary-light: #a4c4a7;
    --color-primary-dark: #5f7d62;
    --color-text: #2c3e50;
    --color-text-light: #5a6c7d;
    --color-bg-cream: #fafaf8;
    --color-bg-white: #ffffff;
    --color-bg-light: #f5f4f0;
    --color-accent-warm: #d4a574;
    --color-shadow: rgba(0, 0, 0, 0.08);
    --color-shadow-hover: rgba(0, 0, 0, 0.12);
}

/* ========================================
   Navigation
   ======================================== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px var(--color-shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.nav-brand:hover {
    opacity: 0.8;
}

.nav-logo {
    height: 40px;
    width: auto;
    display: block;
}

.nav-brand-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text-light);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary-dark);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #e8ede8 0%, #f5f4f0 50%, #fafaf8 100%);
    background-image: 
        linear-gradient(135deg, rgba(122, 155, 125, 0.05) 0%, rgba(245, 244, 240, 0.8) 100%),
        url('https://images.unsplash.com/photo-1511895426328-dc8714191300?w=1600&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding: 2rem;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(250, 250, 248, 0.75);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: var(--color-primary-dark);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    font-weight: 400;
}

.hero-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(122, 155, 125, 0.3);
}

.hero-button:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(122, 155, 125, 0.4);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-light);
    font-size: 0.9rem;
    animation: bounce 2s infinite;
    z-index: 2;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ========================================
   Parallax Sections
   ======================================== */
.parallax-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(250, 250, 248, 0.92);
    z-index: 1;
}

.section-why {
    background-image: url('https://images.unsplash.com/photo-1609220136736-443140cffec6?w=1600&q=80');
}

.section-how {
    background-image: url('https://images.unsplash.com/photo-1516627145497-ae6968895b74?w=1600&q=80');
}

.section-reconnect {
    background-image: url('https://images.unsplash.com/photo-1511895426328-dc8714191300?w=1600&q=80');
}

/* ========================================
   Content Wrapper & Cards
   ======================================== */
.content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
    text-align: center;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.section-subtitle {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 400;
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: 3rem;
    line-height: 1.4;
}

.content-card {
    background: var(--color-bg-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--color-shadow);
    margin-bottom: 3rem;
}

.lead-text {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.content-card p {
    margin-bottom: 1rem;
}

.content-card p:last-child {
    margin-bottom: 0;
}

/* ========================================
   Facts Grid
   ======================================== */
.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.fact-card {
    background: var(--color-bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--color-shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px var(--color-shadow-hover);
}

.fact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* ========================================
   Quote Cards
   ======================================== */
.quote-card {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 6px 30px rgba(122, 155, 125, 0.3);
    margin: 3rem 0;
    border-left: 5px solid var(--color-accent-warm);
}

.quote-card p {
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.quote-card p:first-child {
    font-size: 1.5rem;
    font-weight: 600;
}

.quote-small {
    font-size: 1.1rem !important;
    font-weight: 400 !important;
    opacity: 0.95;
}

/* ========================================
   Steps Container
   ======================================== */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin: 3rem 0;
}

.step-card {
    background: var(--color-bg-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--color-shadow);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 25px var(--color-shadow-hover);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(122, 155, 125, 0.4);
}

.step-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.step-intro {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.step-list {
    list-style: none;
    margin: 1.5rem 0;
}

.step-list li {
    padding-left: 2rem;
    margin-bottom: 1rem;
    position: relative;
    line-height: 1.6;
}

.step-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.2rem;
}

.step-note {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--color-bg-light);
    font-style: italic;
    color: var(--color-text-light);
}

/* ========================================
   Reconnect Grid
   ======================================== */
.reconnect-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.reconnect-card {
    background: var(--color-bg-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--color-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--color-primary);
}

.reconnect-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px var(--color-shadow-hover);
}

.reconnect-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
}

.reconnect-time {
    font-size: 0.95rem;
    color: var(--color-text-light);
    font-weight: 500;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-bg-light);
}

.reconnect-list {
    list-style: none;
}

.reconnect-list li {
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    position: relative;
    line-height: 1.6;
}

.reconnect-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}

/* ========================================
   Footer / Resources Section
   ======================================== */
.resources-section {
    background: linear-gradient(180deg, var(--color-bg-light) 0%, var(--color-bg-cream) 100%);
    padding: 6rem 2rem 3rem;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--color-primary-dark);
    text-align: center;
    margin-bottom: 1rem;
}

.footer-subtitle {
    font-size: 1.3rem;
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: 4rem;
    font-style: italic;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.resource-card {
    background: var(--color-bg-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--color-shadow);
}

.resource-card h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-bottom: 1.5rem;
}

.resource-card ul {
    list-style: none;
}

.resource-card li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.resource-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.2rem;
}

.resource-card a {
    color: var(--color-primary-dark);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.resource-card a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.crisis-card {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    color: white;
    border: 3px solid var(--color-accent-warm);
}

.crisis-card h4 {
    color: white;
}

.crisis-number {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 2px solid var(--color-bg-light);
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-logo {
        height: 32px;
    }

    .nav-brand-text {
        font-size: 1.1rem;
    }

    .nav-links {
        gap: 1.5rem;
        font-size: 0.9rem;
    }

    .parallax-section {
        padding: 4rem 1.5rem;
        background-attachment: scroll;
    }

    .hero-section {
        background-attachment: scroll;
    }

    .content-card,
    .step-card,
    .reconnect-card,
    .resource-card {
        padding: 2rem;
    }

    .quote-card {
        padding: 2rem;
    }

    .facts-grid,
    .reconnect-grid,
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .nav-logo {
        height: 28px;
    }

    .nav-brand-text {
        font-size: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .hero-section {
        padding: 1rem;
    }

    .parallax-section {
        padding: 3rem 1rem;
    }

    .content-card,
    .step-card,
    .reconnect-card,
    .resource-card {
        padding: 1.5rem;
    }

    .quote-card {
        padding: 1.5rem;
    }

    .step-card:hover {
        transform: none;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .parallax-section {
        background-attachment: scroll;
    }
    
    #navbar,
    .scroll-indicator {
        display: none;
    }
}

