/* ============================================
   First Friends Child Care — Stylesheet
   ============================================ */

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

:root {
    --navy-900: #0d1b2a;
    --navy-800: #1e3a5f;
    --navy-700: #2b4c7a;
    --navy-600: #3d5f8a;
    --navy-500: #4a6fa5;
    --gold-500: #c8a45c;
    --gold-400: #d4b76a;
    --gold-300: #e0ca82;
    --gold-200: #f0e4b0;
    --cream-50: #faf8f4;
    --cream-100: #f5f0e8;
    --cream-200: #ede5d5;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --white: #ffffff;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.05);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    background: var(--cream-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

ul {
    list-style: none;
}

/* Typography */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: 1rem;
}

.section-label--gold {
    color: var(--gold-400);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--navy-800);
    margin-bottom: 1.25rem;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--navy-800);
    color: var(--white);
    border: 2px solid var(--navy-800);
}

.btn-primary:hover {
    background: var(--navy-700);
    border-color: var(--navy-700);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--navy-800);
    border: 2px solid var(--navy-800);
}

.btn-secondary:hover {
    background: var(--navy-800);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-gold {
    background: var(--gold-500);
    color: var(--navy-900);
    border: 2px solid var(--gold-500);
}

.btn-gold:hover {
    background: var(--gold-400);
    border-color: var(--gold-400);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
    transform: translateY(-1px);
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--navy-800);
}

.nav-logo-text {
    letter-spacing: -0.01em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-600);
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
    color: var(--navy-800);
    background: var(--gray-100);
}

.nav-cta {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
    background: var(--navy-800);
    border-radius: var(--radius-sm);
    margin-left: 0.75rem;
    transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
    background: var(--navy-700);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy-800);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
    min-height: 100vh;
    padding-top: 72px;
    background: var(--cream-50);
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold-500);
    display: inline-block;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--navy-800);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--gray-600);
    margin-bottom: 2rem;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hero-stat-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy-800);
}

.hero-stat-label {
    font-size: 0.8125rem;
    color: var(--gray-500);
    font-weight: 500;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--gray-200);
}

.hero-image {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.hero-image-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-image-main img {
    width: 100%;
    height: 750px;
    object-fit: cover;
}

.hero-image-accent {
    position: absolute;
    bottom: -1rem;
    left: -2rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 4px solid var(--white);
}

.hero-image-accent img {
    width: 400px;
    height: 300px;
    object-fit: cover;
}

.hero-image-badge {
    position: absolute;
    top: 1.5rem;
    right: -1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy-800);
}

.hero-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-900) 100%);
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 0;
}

/* About */
.about {
    padding: 7rem 0;
    background: var(--white);
}

.about-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.about-image-stack {
    position: relative;
}

.about-image-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

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

.about-image-float {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 4px solid var(--white);
}

.about-image-float img {
    width: 320px;
    height: 240px;
    object-fit: cover;
}

.about-text-col {
    padding: 1rem 0;
}

.about-lead {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--gray-600);
    margin-bottom: 1.25rem;
}

.about-body {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--gray-500);
    margin-bottom: 2rem;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-value {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-700);
}

.about-value-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Programs */
.programs {
    padding: 7rem 0;
    background: var(--navy-800);
    position: relative;
}

.programs-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.programs-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 4rem;
}

.programs-subtitle {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.7);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.program-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.3s ease;
}

.program-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(200,164,92,0.3);
    transform: translateY(-4px);
}

.program-card-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(200,164,92,0.25);
    line-height: 1;
    margin-bottom: 1.25rem;
}

.program-card-title {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.program-card-desc {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.65);
    margin-bottom: 1.25rem;
}

.program-card-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.program-card-features li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.75);
}

.program-card-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--gold-500);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Approach */
.approach {
    padding: 7rem 0;
    background: var(--cream-50);
}

.approach-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.approach-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 4rem;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.approach-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.approach-card:hover {
    border-color: var(--gold-500);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.approach-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    background: var(--cream-100);
    border-radius: var(--radius-sm);
}

.approach-card-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--navy-800);
    margin-bottom: 0.75rem;
}

.approach-card-text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--gray-500);
}

/* CTA Section */
.cta-section {
    padding: 7rem 0;
    background: var(--navy-800);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13,27,42,0.95) 0%, rgba(30,58,95,0.9) 100%);
    z-index: 0;
}

.cta-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.cta-content {
    padding: 2rem 0;
}

.cta-text {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.75);
    margin-bottom: 2rem;
    max-width: 500px;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.cta-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

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

/* Contact */
.contact {
    padding: 7rem 0;
    background: var(--white);
}

.contact-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-lead {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--gray-500);
    margin-bottom: 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-detail-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream-100);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.contact-detail-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.contact-detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-400);
}

.contact-detail-value {
    font-size: 0.9375rem;
    color: var(--gray-700);
    font-weight: 500;
}

.contact-phone {
    color: var(--navy-800);
    font-weight: 600;
}

.contact-phone:hover {
    color: var(--gold-500);
}

.contact-map {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Contact Form */
.contact-form-col {
    background: var(--cream-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.contact-form-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--navy-800);
    margin-bottom: 1.5rem;
}

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

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.375rem;
    letter-spacing: 0.02em;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    font-family: var(--font-body);
    color: var(--gray-800);
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-input:focus {
    border-color: var(--navy-500);
    box-shadow: 0 0 0 3px rgba(74,111,165,0.1);
}

.form-input::placeholder {
    color: var(--gray-400);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-success {
    text-align: center;
    padding: 3rem 1rem;
}

.form-success-icon {
    margin-bottom: 1rem;
}

.form-success-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--navy-800);
    margin-bottom: 0.5rem;
}

.form-success-text {
    font-size: 0.9375rem;
    color: var(--gray-500);
}

/* Footer */
.footer {
    background: var(--navy-900);
    padding: 4rem 0 2rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.footer-tagline {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
    max-width: 280px;
}

.footer-heading {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold-500);
    margin-bottom: 1rem;
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-links li a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    transition: color 0.2s;
}

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

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
}

.footer-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    transition: color 0.2s;
}

.footer-phone:hover {
    color: var(--gold-400);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.4);
}

/* Mobile Menu */
.nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem;
    box-shadow: var(--shadow-lg);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container,
    .about-grid,
    .cta-container,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-image {
        order: -1;
        max-width: 500px;
    }
    
    .hero-image-main img {
        height: 500px;
    }
    
    .hero-image-accent {
        left: 0;
    }
    
    .hero-pattern {
        display: none;
    }
    
    .about-image-float {
        right: 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-cta {
        margin-left: 0;
        margin-top: 0.5rem;
        text-align: center;
    }
    
    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 3rem;
    }
    
    .hero-container {
        padding: 2rem 1.25rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .hero-image-accent {
        display: none;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .approach-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-container {
        padding: 0 1.25rem;
    }
    
    .cta-image img {
        height: 400px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image-main img {
        height: 400px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
