/* =============================================
   EMPOWER DREAMS — Modern Nonprofit Website
   ============================================= */

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

:root {
    --color-primary: #e8891c;
    --color-primary-dark: #d47a12;
    --color-primary-light: #f5a94d;
    --color-dark: #1a1a2e;
    --color-dark-soft: #2d2d44;
    --color-text: #374151;
    --color-text-light: #6b7280;
    --color-bg: #ffffff;
    --color-bg-warm: #faf8f5;
    --color-bg-cream: #f5f0eb;
    --color-border: #e5e7eb;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

.section {
    padding: 100px 0;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    color: var(--color-dark);
    line-height: 1.25;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}

.section-label {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 12px;
    display: block;
}

.section-label-light {
    color: var(--color-primary-light);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 20px;
}

.section-title.light {
    color: #fff;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    line-height: 1.8;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(232, 137, 28, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.05rem;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
}

.navbar.scrolled .nav-logo .logo-white {
    opacity: 0;
}

.navbar.scrolled .nav-logo .logo-color {
    opacity: 1;
}

.navbar.scrolled .nav-link {
    color: var(--color-text);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--color-primary);
}

.navbar.scrolled .nav-link-donate {
    color: #fff;
}

.navbar.scrolled .nav-toggle span {
    background: var(--color-dark);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    position: relative;
}

.nav-logo img {
    height: 36px;
    width: auto;
    transition: opacity 0.3s ease;
}

.nav-logo .logo-white {
    opacity: 1;
}

.nav-logo .logo-color {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 50px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.nav-link-donate {
    background: var(--color-primary);
    color: #fff !important;
    padding: 10px 24px;
    margin-left: 8px;
}

.nav-link-donate:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: var(--transition);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(232, 137, 28, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(232, 137, 28, 0.1) 0%, transparent 50%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.03"><path d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/></g></g></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
    z-index: 2;
}

.hero-tagline {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 600;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 40px;
    font-style: italic;
}

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

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    width: 28px;
    height: 28px;
    border-right: 2px solid rgba(255,255,255,0.4);
    border-bottom: 2px solid rgba(255,255,255,0.4);
    transform: rotate(45deg);
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% { transform: rotate(45deg) translateY(0); }
    40% { transform: rotate(45deg) translateY(8px); }
    60% { transform: rotate(45deg) translateY(4px); }
}

/* --- Stats Bar --- */
.stats-bar {
    background: var(--color-dark);
    padding: 48px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-item {
    padding: 16px;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.stat-suffix {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    margin-top: 8px;
    font-weight: 400;
}

/* --- Mission / Video Section --- */
.mission-section {
    background: var(--color-bg-warm);
}

.video-feature {
    max-width: 800px;
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.video-placeholder {
    position: relative;
    aspect-ratio: 16 / 9;
    cursor: pointer;
    overflow: hidden;
}

.video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.video-placeholder:hover .video-thumb {
    transform: scale(1.03);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    width: 72px;
    height: 50px;
    transition: var(--transition);
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.video-placeholder:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 20px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
}

/* --- Ministry Update --- */
.ministry-update {
    background: var(--color-bg);
}

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

.update-content p {
    font-size: 1.05rem;
    color: var(--color-text-light);
    margin-bottom: 32px;
    line-height: 1.8;
}

.update-content .section-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
}

/* --- Stories Grid --- */
.stories-section {
    background: var(--color-bg-warm);
}

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

.story-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.story-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.story-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.story-thumb img,
.story-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.story-card:hover .story-thumb img {
    transform: scale(1.08);
}

.story-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    background: rgba(232, 137, 28, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.story-play svg {
    width: 22px;
    height: 22px;
    margin-left: 2px;
}

.story-card:hover .story-play {
    transform: translate(-50%, -50%) scale(1.12);
    background: var(--color-primary);
}

.story-thumb .video-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.story-thumb .video-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-thumb .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    background: rgba(232, 137, 28, 0.9);
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.story-thumb .play-button svg {
    width: 22px;
    height: 22px;
    margin-left: 2px;
}

.story-thumb .play-button:hover {
    transform: translate(-50%, -50%) scale(1.12);
    background: var(--color-primary);
}

.story-content {
    padding: 24px;
}

.story-content h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    font-family: var(--font-sans);
    font-weight: 600;
}

.story-content p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* --- Get Involved --- */
.get-involved {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    overflow: hidden;
}

.get-involved-overlay {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.02"><path d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/></g></g></svg>');
}

.involved-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
    z-index: 1;
}

.involved-text {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 16px;
    line-height: 1.8;
}

.involved-actions {
    display: flex;
    gap: 16px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.involved-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: var(--transition);
}

.feature-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(232, 137, 28, 0.3);
    transform: translateX(4px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    color: var(--color-primary);
    margin-bottom: 16px;
}

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

.feature-card h3 {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
}

/* --- Tools Section --- */
.tools-section {
    background: var(--color-bg);
}

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

.tool-card {
    background: var(--color-bg-warm);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.tool-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-light);
}

.tool-icon {
    width: 56px;
    height: 56px;
    color: var(--color-primary);
    margin: 0 auto 24px;
}

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

.tool-card h3 {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.tool-card p {
    font-size: 0.92rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 24px;
}

.tool-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.tool-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tool-stat strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primary);
}

.tool-stat span {
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin-top: 2px;
}

/* --- Newsletter --- */
.newsletter-section {
    padding: 80px 0;
    background: var(--color-bg-warm);
}

.newsletter-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 56px 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    box-shadow: var(--shadow-md);
}

.newsletter-content h2 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.newsletter-content p {
    color: var(--color-text-light);
    font-size: 1rem;
}

.newsletter-form {
    flex-shrink: 0;
}

.form-group {
    display: flex;
    gap: 12px;
}

.form-group input {
    padding: 14px 20px;
    border: 2px solid var(--color-border);
    border-radius: 50px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    width: 280px;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(232, 137, 28, 0.15);
}

/* --- Footer --- */
.footer {
    background: var(--color-dark);
    color: rgba(255,255,255,0.65);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 32px;
    width: auto;
}

.footer-mission {
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 20px;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-primary);
    padding-left: 4px;
}

.footer-contact address {
    font-style: normal;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.footer-email {
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-email:hover {
    color: var(--color-primary-light);
}

.footer-bottom {
    text-align: center;
    padding: 28px 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

/* --- Animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .update-grid,
    .involved-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .stories-grid,
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .newsletter-card {
        flex-direction: column;
        text-align: center;
        padding: 40px 32px;
    }

    .form-group input {
        width: 240px;
    }
}

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

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-dark);
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        padding: 24px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.3);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links .nav-link {
        color: rgba(255,255,255,0.85);
        font-size: 1.1rem;
        padding: 12px 20px;
        width: 100%;
        text-align: left;
    }

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

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .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);
    }

    .hero-title {
        font-size: clamp(1.5rem, 5vw, 2.2rem);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat-number {
        font-size: 2.25rem;
    }

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

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

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

    .form-group {
        flex-direction: column;
    }

    .form-group input {
        width: 100%;
    }

    .form-group .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
    }

    .involved-actions {
        flex-direction: column;
    }

    .newsletter-card {
        padding: 32px 20px;
    }
}
