/* ===================================
   Happy Heart's Childcare - Styles
   =================================== */

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

:root {
    /* Palette: Teal + Slate Grey */
    --teal-900: #134e4a;
    --teal-800: #115e59;
    --teal-700: #0f766e;
    --teal-600: #0d9488;
    --teal-500: #14b8a6;
    --teal-100: #ccfbf1;
    --teal-50:  #f0fdfa;
    
    --slate-950: #0f172a;
    --slate-900: #1e293b;
    --slate-800: #334155;
    --slate-700: #475569;
    --slate-600: #64748b;
    --slate-500: #94a3b8;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50:  #f8fafc;
    --white:     #ffffff;
    
    /* Typography */
    --font-serif: 'Lora', Georgia, serif;
    --font-sans:  'Manrope', system-ui, sans-serif;
    
    /* Spacing */
    --container-max: 1200px;
    --section-pad: 6rem;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-sans);
    color: var(--slate-800);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
    color: var(--slate-950);
}

.section-tag {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--teal-700);
    margin-bottom: 1rem;
    background: var(--teal-50);
    padding: 0.5rem 1rem;
    border-radius: 100px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 1.5rem;
}

.lead {
    font-size: 1.125rem;
    color: var(--slate-700);
    max-width: 600px;
    margin-bottom: 2rem;
}

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

.btn--primary {
    background-color: var(--teal-700);
    color: var(--white);
}

.btn--primary:hover {
    background-color: var(--teal-800);
    transform: translateY(-2px);
}

.btn--light {
    background-color: var(--white);
    color: var(--teal-900);
}

.btn--light:hover {
    background-color: var(--teal-50);
    transform: translateY(-2px);
}

.btn--outline-light {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn--outline-light:hover {
    background-color: var(--white);
    color: var(--teal-900);
}

.btn--full {
    width: 100%;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--slate-200);
    padding: 1rem 0;
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--slate-950);
}

.logo-icon {
    color: var(--teal-700);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--slate-700);
}

.nav-links a:hover {
    color: var(--teal-700);
}

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

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--slate-800);
    transition: var(--transition);
}

/* --- Hero --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(19, 78, 74, 0.7) 100%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 800px;
    padding-top: 5rem;
}

.hero-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: var(--teal-100);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(5px);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-title em {
    font-style: italic;
    color: var(--teal-100);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--slate-200);
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.6;
}

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

/* --- Value Props --- */
.value-props {
    padding: var(--section-pad) 0;
    background: var(--slate-50);
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.value-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.value-icon {
    width: 64px;
    height: 64px;
    background: var(--teal-50);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-700);
    margin-bottom: 1.5rem;
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.value-card p {
    color: var(--slate-600);
    line-height: 1.7;
}

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

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

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

.about-img {
    border-radius: 8px;
    width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.about-accent {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    width: 200px;
    height: 200px;
    background: var(--teal-100);
    border-radius: 8px;
    z-index: -1;
}

.about-content .section-tag {
    margin-bottom: 1rem;
}

.about-content p {
    color: var(--slate-700);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.check-list {
    margin-top: 2rem;
    display: grid;
    gap: 1rem;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: var(--slate-800);
}

.check-list li::before {
    content: '';
    width: 20px;
    height: 20px;
    background: var(--teal-700);
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

/* --- Services --- */
.services {
    padding: var(--section-pad) 0;
    background: var(--slate-50);
}

.text-center {
    text-align: center;
}

.section-header {
    margin-bottom: 4rem;
}

.section-desc {
    color: var(--slate-600);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 3rem 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--slate-200);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--teal-700);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    border-color: var(--teal-700);
    transform: translateY(-3px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.service-num {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 600;
    color: var(--teal-100);
    line-height: 1;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--slate-600);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-age {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--teal-700);
    background: var(--teal-50);
    padding: 0.5rem 1rem;
    border-radius: 100px;
}

/* --- Gallery --- */
.gallery {
    padding: var(--section-pad) 0;
    background: var(--white);
}

.gallery-header {
    text-align: center;
    margin-bottom: 3rem;
}

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

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 3/4;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: var(--white);
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 600;
}

/* --- Contact --- */
.contact {
    padding: var(--section-pad) 0;
    background: var(--slate-950);
    color: var(--white);
}

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

.contact .section-tag {
    background: rgba(20, 184, 166, 0.2);
    color: var(--teal-100);
}

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

.contact .lead {
    color: var(--slate-500);
}

.contact-details {
    margin-top: 3rem;
    display: grid;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.25rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-500);
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--slate-500);
    line-height: 1.6;
}

.contact-item a {
    color: var(--teal-400);
}

.contact-item a:hover {
    color: var(--teal-300);
}

/* --- Form --- */
.contact-form-wrapper {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    color: var(--slate-800);
}

.contact-form h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--slate-950);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--slate-200);
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--slate-800);
    background: var(--slate-50);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--teal-700);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.form-success {
    display: none;
    background: var(--teal-50);
    border: 1px solid var(--teal-200);
    color: var(--teal-900);
    padding: 1.5rem;
    border-radius: 6px;
    text-align: center;
    margin-top: 1rem;
}

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

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

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-brand p {
    line-height: 1.7;
    max-width: 300px;
}

.footer-links h4 {
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.footer-links ul {
    display: grid;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--slate-500);
}

.footer-links a:hover {
    color: var(--teal-400);
}

.footer-bottom {
    border-top: 1px solid var(--slate-800);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

/* --- Animations --- */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-up {
    transform: translateY(30px);
}

.reveal-left {
    transform: translateX(-30px);
}

.reveal-right {
    transform: translateX(30px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0);
}

/* --- Responsive --- */
@media (max-width: 968px) {
    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image-wrapper {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .about-accent {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-pad: 4rem;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--slate-200);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .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-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
