/* ============================================
   Lumberton Head Start Center — Styles
   ============================================ */

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

:root {
    --emerald-950: #042f23;
    --emerald-900: #064e3b;
    --emerald-800: #065f46;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --emerald-500: #10b981;
    --emerald-400: #34d399;
    --emerald-300: #6ee7b7;
    --emerald-200: #a7f3d0;
    --emerald-100: #d1fae5;
    --emerald-50:  #ecfdf5;

    --cream-50:  #fefce8;
    --cream-100: #faf590;
    --cream-200: #fef9c3;
    --cream-300: #fef08a;

    --stone-50:  #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-300: #d6d3d1;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.06), 0 10px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.08), 0 20px 48px rgba(0,0,0,0.1);
    --shadow-emerald: 0 8px 30px rgba(4,120,87,0.2);

    --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-body);
    color: var(--stone-800);
    background-color: var(--cream-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

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

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--emerald-800);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 200;
    font-weight: 500;
}
.skip-link:focus {
    top: 16px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--emerald-700);
    color: #fff;
    border-color: var(--emerald-700);
    box-shadow: var(--shadow-emerald);
}
.btn-primary:hover {
    background: var(--emerald-800);
    border-color: var(--emerald-800);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(4,120,87,0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--cream-100);
    border-color: rgba(255,255,255,0.35);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.7);
    color: #fff;
}

.btn-nav {
    background: var(--emerald-500);
    color: #fff;
    border-color: var(--emerald-500);
    padding: 10px 22px;
    font-size: 0.875rem;
}
.btn-nav:hover {
    background: var(--emerald-400);
    border-color: var(--emerald-400);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 250, 249, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--stone-200);
    transition: var(--transition);
}
.header.scrolled {
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--stone-900);
    letter-spacing: -0.02em;
}
.logo-accent {
    color: var(--emerald-700);
}
.logo--light .logo-text {
    color: #fff;
}
.logo--light .logo-accent {
    color: var(--emerald-300);
}

/* --- Nav --- */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-menu li a {
    padding: 8px 16px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--stone-700);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.nav-menu li a:hover {
    color: var(--emerald-700);
    background: var(--emerald-50);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--stone-700);
    border-radius: 2px;
    transition: var(--transition);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    padding-top: 76px;
    overflow: hidden;
    background: var(--emerald-900);
}
.hero-bg-pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-container {
    position: relative;
    z-index: 1;
    padding-top: 40px;
    padding-bottom: 120px;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 540px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--emerald-300);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}
.text-highlight {
    color: var(--emerald-400);
    position: relative;
}

.hero-subheadline {
    font-size: 1.125rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.78);
    margin-bottom: 36px;
    max-width: 480px;
}

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

/* Hero Cards */
.hero-cards {
    position: relative;
    min-height: 520px;
}

.stat-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    color: #fff;
}
.stat-card--main {
    padding: 36px 36px;
}
.stat-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16,185,129,0.2);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}
.stat-card-icon--sm {
    width: 40px;
    height: 40px;
    background: rgba(16,185,129,0.2);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stat-card-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--emerald-300);
    margin-bottom: 8px;
}
.stat-card-number span {
    font-size: 2rem;
    color: var(--emerald-400);
}
.stat-card-number--small {
    font-size: 2.25rem;
}
.stat-card-label {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.8);
}

.stat-card--float {
    position: absolute;
    z-index: 2;
}
.stat-card--float--top {
    top: -20px;
    right: -20px;
    padding: 20px 24px;
}
.stat-card--float--bottom {
    bottom: 40px;
    left: -30px;
    padding: 20px 24px;
}

.hero-card-image {
    position: absolute;
    bottom: -30px;
    right: 20px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    z-index: 1;
}
.hero-card-image img {
    width: 320px;
    height: 220px;
    object-fit: cover;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}
.hero-wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

/* --- Section Shared --- */
.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--emerald-700);
    background: var(--emerald-50);
    border: 1px solid var(--emerald-200);
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--stone-900);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--stone-600);
    max-width: 640px;
}

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

/* --- Services --- */
.services {
    padding: 100px 0;
    background: var(--cream-50);
}

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

.service-card {
    background: #fff;
    border: 1px solid var(--stone-200);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    transition: var(--transition);
}
.service-card:hover {
    border-color: var(--emerald-300);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--emerald-50);
    border: 1px solid var(--emerald-200);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    transition: var(--transition);
}
.service-card:hover .service-icon {
    background: var(--emerald-100);
    border-color: var(--emerald-400);
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--stone-900);
    margin-bottom: 12px;
}

.service-desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--stone-600);
}

/* --- Programs --- */
.programs {
    padding: 100px 0;
    background: var(--cream-100);
}

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

.programs-content .section-subtitle {
    margin-bottom: 40px;
}

.program-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.program-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.program-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--emerald-300);
    line-height: 1;
    min-width: 52px;
    opacity: 0.7;
}

.program-title {
    font-family: var(--font-heading);
    font-size: 1.1875rem;
    font-weight: 700;
    color: var(--stone-900);
    margin-bottom: 8px;
}

.program-desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--stone-600);
}

.programs-image {
    position: relative;
}
.programs-image img {
    width: 100%;
    height: 640px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}
.programs-image-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--emerald-400);
    border-radius: var(--radius-lg);
    opacity: 0.3;
    z-index: -1;
}

/* --- About --- */
.about {
    padding: 100px 0;
    background: #fff;
}

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

.about-image img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.about-text {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--stone-600);
    margin-bottom: 20px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--stone-200);
}

.about-stat {
    text-align: center;
}
.about-stat-number {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--emerald-600);
    margin-bottom: 4px;
}
.about-stat-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--stone-900);
    line-height: 1.1;
    margin-bottom: 6px;
}
.about-stat-value span {
    font-size: 1.25rem;
    color: var(--emerald-600);
}
.about-stat-label {
    font-size: 0.8125rem;
    color: var(--stone-600);
    line-height: 1.4;
}

/* --- Community --- */
.community {
    padding: 100px 0;
    background: var(--emerald-900);
    color: #fff;
}

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

.community .section-tag {
    background: rgba(16,185,129,0.15);
    border-color: rgba(16,185,129,0.3);
    color: var(--emerald-300);
}

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

.community-text {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.75);
    margin-bottom: 32px;
}

.eligibility-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.eligibility-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.88);
}
.eligibility-list li svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.community-image img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

/* --- Contact --- */
.contact {
    padding: 100px 0;
    background: var(--cream-50);
}

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

.contact-text {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--stone-600);
    margin-bottom: 40px;
}

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

.contact-detail {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-detail-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--emerald-50);
    border: 1px solid var(--emerald-200);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.contact-detail-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--stone-600);
    margin-bottom: 4px;
}

.contact-detail-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--stone-800);
}
.contact-detail-value a {
    color: var(--emerald-700);
    transition: var(--transition);
}
.contact-detail-value a:hover {
    color: var(--emerald-600);
    text-decoration: underline;
}

/* Contact Form */
.contact-form-wrapper {
    background: #fff;
    border: 1px solid var(--stone-200);
    border-radius: var(--radius-xl);
    padding: 44px;
    box-shadow: var(--shadow-md);
}

.contact-form-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--stone-900);
    margin-bottom: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--stone-700);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--stone-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--stone-800);
    background: var(--stone-50);
    transition: var(--transition);
    appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--emerald-500);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(16,185,129,0.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--stone-300);
}
.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-success {
    display: none;
    text-align: center;
    padding: 48px 24px;
}
.form-success svg {
    margin: 0 auto 20px;
}
.form-success h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--stone-900);
    margin-bottom: 12px;
}
.form-success p {
    font-size: 0.9375rem;
    color: var(--stone-600);
    line-height: 1.6;
    max-width: 320px;
    margin: 0 auto;
}

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

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

.footer-desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-top: 16px;
    max-width: 300px;
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-links a {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--emerald-400);
}

.footer-contact p {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 4px;
}
.footer-contact a {
    color: var(--emerald-400);
    transition: var(--transition);
}
.footer-contact a:hover {
    color: var(--emerald-300);
    text-decoration: underline;
}
.footer-hours {
    margin-top: 8px;
    font-size: 0.875rem !important;
    color: rgba(255,255,255,0.45) !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 28px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
}
.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.4);
}
.footer-disclaimer {
    font-size: 0.75rem !important;
    color: rgba(255,255,255,0.3) !important;
}

/* --- Reveal Animation --- */
[data-reveal] {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}
@media (prefers-reduced-motion: no-preference) {
    [data-reveal].reveal-hidden {
        opacity: 0;
        transform: translateY(24px);
    }
    [data-reveal].reveal-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .hero-cards {
        max-width: 500px;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .programs-layout,
    .about-grid,
    .community-grid,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .programs-image img,
    .about-image img,
    .community-image img {
        height: 400px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        background: rgba(250,250,249,0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        border-bottom: 1px solid var(--stone-200);
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        opacity: 0;
        transition: var(--transition);
        pointer-events: none;
    }
    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    .nav-menu li a {
        display: block;
        padding: 12px 16px;
        font-size: 1rem;
    }
    .btn-nav {
        text-align: center;
        justify-content: center;
    }

    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 100px;
    }
    .hero-cards {
        min-height: auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .stat-card--main {
        grid-column: 1 / -1;
    }
    .stat-card--float {
        position: static;
    }
    .hero-card-image {
        position: static;
        grid-column: 1 / -1;
    }
    .hero-card-image img {
        width: 100%;
        height: 200px;
    }

    .services {
        padding: 72px 0;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }

    .programs, .about, .community, .contact {
        padding: 72px 0;
    }

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

    .contact-form-wrapper {
        padding: 28px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }
    .btn {
        justify-content: center;
        width: 100%;
    }
    .hero-cards {
        grid-template-columns: 1fr;
    }
    .stat-card--main {
        grid-column: auto;
    }
    .hero-card-image {
        grid-column: auto;
    }
}
