/*
Theme Name: CommunityNow Splash
Theme URI: https://communitynow.org
Author: CommunityNow
Author URI: https://communitynow.org
Description: A clean, modern splash landing page for CommunityNow — an initiative of Foster Care to Success focused on Career and Technical Education.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: communitynow-splash
Tags: one-page, custom-logo, education, nonprofit
*/

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

:root {
    --cn-green: #2a8c6e;
    --cn-green-dark: #1e6b53;
    --cn-green-light: #e8f5f0;
    --cn-teal: #3a9d8f;
    --cn-dark: #1a2332;
    --cn-gray: #4a5568;
    --cn-gray-light: #f7f8fa;
    --cn-white: #ffffff;
    --cn-text: #2d3748;
    --cn-text-light: #718096;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--cn-text);
    background: var(--cn-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

a:hover {
    color: var(--cn-green-dark);
}

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

/* === Header / Navigation === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo img {
    height: 44px;
    width: auto;
}

.site-logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--cn-dark);
    letter-spacing: -0.02em;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.header-nav a {
    color: var(--cn-gray);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.header-nav a:hover {
    color: var(--cn-green);
}

.header-contact-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background: var(--cn-green);
    color: var(--cn-white) !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.01em;
    transition: background 0.3s ease, transform 0.2s ease;
}

.header-contact-btn:hover {
    background: var(--cn-green-dark);
    color: var(--cn-white) !important;
    transform: translateY(-1px);
}

/* === Hero Section === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--cn-dark) 0%, #1a3a4a 50%, var(--cn-green-dark) 100%);
    overflow: hidden;
    padding-top: 72px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('assets/images/hero-bg.jpg') center/cover no-repeat;
    opacity: 0.15;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--cn-white), transparent);
    z-index: 1;
}

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

.hero-logo {
    display: inline-block;
    margin-bottom: 32px;
}

.hero-logo img {
    height: 100px;
    width: auto;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(42px, 6vw, 64px);
    font-weight: 800;
    color: var(--cn-white);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.hero-tagline {
    font-size: clamp(18px, 2.5vw, 24px);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 32px;
}

.hero-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    background: var(--cn-green);
    color: var(--cn-white);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(42, 140, 110, 0.4);
}

.hero-cta:hover {
    background: var(--cn-teal);
    color: var(--cn-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(42, 140, 110, 0.5);
}

.hero-cta svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.hero-cta:hover svg {
    transform: translateY(2px);
}

/* === Section Common === */
.section {
    padding: 100px 0;
}

.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cn-green);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 800;
    color: var(--cn-dark);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--cn-text-light);
    line-height: 1.7;
    max-width: 640px;
}

/* === About Section === */
.about {
    background: var(--cn-white);
}

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

.about-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.about-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.about-text p {
    color: var(--cn-gray);
    margin-bottom: 20px;
    font-size: 17px;
    line-height: 1.8;
}

.about-text p:last-child {
    margin-bottom: 0;
}

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

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

.mission-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    order: 2;
}

.mission-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.mission-content {
    order: 1;
}

.mission-content p {
    color: var(--cn-gray);
    margin-bottom: 20px;
    font-size: 17px;
    line-height: 1.8;
}

/* === Impact / Highlights Section === */
.highlights {
    background: linear-gradient(135deg, var(--cn-dark) 0%, #1a3a4a 100%);
    color: var(--cn-white);
    text-align: center;
}

.highlights .section-label {
    color: rgba(255, 255, 255, 0.6);
}

.highlights .section-title {
    color: var(--cn-white);
}

.highlights .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 auto 60px;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 960px;
    margin: 0 auto;
}

.highlight-card {
    padding: 40px 32px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease, background 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.1);
}

.highlight-icon {
    width: 56px;
    height: 56px;
    background: rgba(42, 140, 110, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.highlight-icon svg {
    width: 28px;
    height: 28px;
    color: var(--cn-teal);
}

.highlight-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--cn-white);
}

.highlight-card p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
}

/* === Vision 2026 Section === */
.vision {
    background: var(--cn-white);
}

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

.vision-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.vision-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.vision-text p {
    color: var(--cn-gray);
    margin-bottom: 20px;
    font-size: 17px;
    line-height: 1.8;
}

/* === Footer === */
.site-footer {
    background: var(--cn-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 40px;
}

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

.footer-brand .site-logo {
    margin-bottom: 16px;
}

.footer-brand .site-logo-text {
    color: var(--cn-white);
}

.footer-brand p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.55);
}

.footer-heading {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cn-white);
    margin-bottom: 20px;
}

.footer-contact p {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--cn-white);
    border-color: var(--cn-white);
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-fc2s {
    font-size: 13px;
}

.footer-fc2s a {
    color: rgba(255, 255, 255, 0.6);
}

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

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

.fade-in {
    animation: fadeInUp 0.8s ease both;
}

/* === Mobile Menu Toggle === */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--cn-dark);
    margin: 6px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

    .mission-image {
        order: 0;
    }

    .mission-content {
        order: 0;
    }

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

    .highlights-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .section {
        padding: 72px 0;
    }
}

@media (max-width: 768px) {
    .header-nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--cn-white);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    }

    .header-nav.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

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

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

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

    .hero-content {
        padding: 60px 20px;
    }

    .hero-logo img {
        height: 72px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .about-image img,
    .mission-image img,
    .vision-image img {
        height: 280px;
    }
}
