/* ===================================
   Ann's Home Family Child Care
   Bold Editorial Style
   Plum + Amber Palette
   =================================== */

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

:root {
    --plum-950: #1a0f1a;
    --plum-900: #2d1530;
    --plum-800: #3d1f42;
    --plum-700: #5D3A5A;
    --plum-600: #7a4a75;
    --plum-500: #9b5f96;
    --plum-100: #f5e6f5;
    --plum-50: #fdf3fd;

    --amber-500: #F4C54F;
    --amber-400: #f6d06a;
    --amber-300: #f9dba8;
    --amber-100: #fff8e6;

    --cream: #FDF8F4;
    --warm-white: #FEFCFA;
    --ink: #1a1018;
    --ink-light: #3d2a3d;
    --ink-muted: #6b5468;

    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-sm: 0 1px 3px rgba(93, 58, 90, 0.08);
    --shadow-md: 0 4px 20px rgba(93, 58, 90, 0.12);
    --shadow-lg: 0 8px 40px rgba(93, 58, 90, 0.16);
    --shadow-xl: 0 16px 60px rgba(93, 58, 90, 0.20);
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--cream);
    color: var(--ink);
    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;
}

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

/* --- Typography --- */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--plum-700);
    margin-bottom: 16px;
}

.section-heading {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 24px;
}

.section-heading em {
    font-style: italic;
    color: var(--plum-700);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

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

.btn--primary:hover {
    background: var(--plum-800);
    border-color: var(--plum-800);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--outline {
    background: transparent;
    color: var(--plum-700);
    border-color: var(--plum-700);
}

.btn--outline:hover {
    background: var(--plum-700);
    color: #fff;
    transform: translateY(-2px);
}

.btn--large {
    padding: 18px 36px;
    font-size: 1rem;
}

.btn--full {
    width: 100%;
    justify-content: center;
    padding: 18px 28px;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 248, 244, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(93, 58, 90, 0.08);
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

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

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

.logo-mark {
    width: 36px;
    height: 36px;
    background: var(--plum-700);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.logo-mark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: var(--amber-500);
    border-radius: 50%;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ink);
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.main-nav a {
    padding: 10px 18px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ink-light);
    border-radius: var(--radius-xl);
    transition: all 0.25s ease;
}

.main-nav a:hover {
    color: var(--plum-700);
    background: var(--plum-100);
}

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

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* --- Hero --- */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    background: var(--cream);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(244, 197, 79, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(93, 58, 90, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--plum-600);
    margin-bottom: 24px;
    background: var(--plum-100);
    padding: 8px 16px;
    border-radius: var(--radius-xl);
}

.hero-eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--amber-500);
    border-radius: 50%;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--ink);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-sub {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--ink-muted);
    margin-bottom: 40px;
    max-width: 480px;
}

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

.hero-visual {
    position: relative;
    min-height: 560px;
}

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

.hero-card--main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.stat-card {
    position: absolute;
    background: #fff;
    padding: 20px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-card--1 {
    bottom: 40px;
    left: -40px;
    z-index: 2;
}

.stat-card--2 {
    top: 40px;
    right: -30px;
    z-index: 2;
}

.stat-card--3 {
    bottom: -20px;
    right: 20px;
    z-index: 2;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--plum-700);
}

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

/* --- Intro --- */
.intro {
    padding: 100px 0;
    background: var(--warm-white);
}

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

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

.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.intro-content .section-heading {
    margin-bottom: 24px;
}

.intro-content p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--ink-light);
    margin-bottom: 20px;
}

.intro-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink-light);
}

.feature svg {
    color: var(--amber-500);
    flex-shrink: 0;
}

/* --- Services --- */
.services {
    padding: 100px 0;
    background: var(--plum-900);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(244, 197, 79, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.services .container {
    position: relative;
    z-index: 1;
}

.services .section-header {
    text-align: center;
    margin-bottom: 64px;
}

.services .section-eyebrow {
    color: var(--amber-500);
}

.services .section-heading {
    color: #fff;
}

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

.service-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(244, 197, 79, 0.3);
    transform: translateY(-4px);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--amber-500);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--plum-900);
}

.service-title {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.service-desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
}

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

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

.philosophy-content p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--ink-light);
    margin-bottom: 20px;
}

.philosophy-content blockquote {
    margin-top: 32px;
    padding: 24px 28px;
    background: var(--plum-100);
    border-left: 4px solid var(--amber-500);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.philosophy-content blockquote p {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--plum-700);
    line-height: 1.6;
    margin-bottom: 0;
}

.philosophy-visual {
    position: relative;
    min-height: 500px;
}

.philosophy-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.philosophy-image-grid img {
    border-radius: var(--radius-md);
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    box-shadow: var(--shadow-md);
}

.philosophy-quote-card {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--plum-700);
    color: #fff;
    padding: 24px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 320px;
    text-align: center;
}

.philosophy-quote-card .quote-mark {
    font-family: var(--font-serif);
    font-size: 4rem;
    line-height: 1;
    color: var(--amber-500);
    display: block;
    margin-bottom: -8px;
}

.philosophy-quote-card p {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-style: italic;
    line-height: 1.5;
}

/* --- Testimonials --- */
.testimonials {
    padding: 100px 0;
    background: var(--warm-white);
}

.testimonials .section-header {
    text-align: center;
    margin-bottom: 64px;
}

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

.testimonial-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(93, 58, 90, 0.06);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--ink-light);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--plum-700);
}

/* --- CTA --- */
.cta {
    padding: 100px 0;
    background: var(--plum-700);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(244, 197, 79, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.cta .container {
    position: relative;
    z-index: 1;
}

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

.cta-content .section-eyebrow {
    color: var(--amber-500);
}

.cta-content .section-heading {
    color: #fff;
}

.cta-content p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 40px;
}

.cta-contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cta-contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.25s ease;
}

.cta-contact-item:hover {
    color: var(--amber-500);
}

.cta-contact-item svg {
    color: var(--amber-500);
    flex-shrink: 0;
}

/* --- Contact Form --- */
.cta-form-wrapper {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    box-shadow: var(--shadow-xl);
}

.form-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 32px;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(93, 58, 90, 0.15);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--ink);
    background: var(--cream);
    transition: all 0.25s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--plum-700);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(93, 58, 90, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--ink-muted);
}

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

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    gap: 16px;
}

.form-success svg {
    color: var(--plum-700);
}

.form-success p {
    font-size: 1.0625rem;
    color: var(--ink-light);
    font-weight: 500;
}

/* --- Footer --- */
.site-footer {
    background: var(--plum-950);
    padding: 64px 0 32px;
}

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

.footer-brand .logo-text {
    color: #fff;
}

.footer-tagline {
    margin-top: 16px;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.25s ease;
}

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

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.25s ease;
}

.footer-contact a:hover {
    color: var(--amber-500);
}

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

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

/* --- Scroll Reveal --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* --- Mobile Menu --- */
.main-nav.active {
    display: flex;
}

.main-nav ul {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(253, 248, 244, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 8px;
    border-bottom: 1px solid rgba(93, 58, 90, 0.08);
    box-shadow: var(--shadow-md);
}

.main-nav.active ul {
    display: flex;
}

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

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

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
        min-height: 400px;
    }

    .intro-layout,
    .philosophy-layout,
    .cta-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

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

@media (max-width: 768px) {
    .main-nav ul {
        position: static;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        flex-direction: column;
        padding: 0;
        box-shadow: none;
        border: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(253, 248, 244, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(93, 58, 90, 0.08);
        padding: 16px 24px;
        box-shadow: var(--shadow-md);
        display: none;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        position: static;
        flex-direction: column;
        padding: 0;
        background: transparent;
        box-shadow: none;
        border: none;
        backdrop-filter: none;
    }

    .hero {
        padding-top: 120px;
        padding-bottom: 60px;
    }

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

    .hero-actions .btn {
        justify-content: center;
    }

    .stat-card {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
    }

    .hero-visual {
        min-height: auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .hero-card--main {
        grid-column: 1 / -1;
        min-height: 280px;
    }

    .hero-card--main img {
        height: 280px;
    }

    .stat-card--1,
    .stat-card--2,
    .stat-card--3 {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
    }

    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .philosophy-visual {
        min-height: auto;
    }

    .philosophy-image-grid {
        grid-template-columns: 1fr 1fr;
    }

    .philosophy-quote-card {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 16px;
    }

    .cta-form-wrapper {
        padding: 32px 24px;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-headline {
        font-size: 2rem;
    }

    .section-heading {
        font-size: 1.75rem;
    }

    .philosophy-image-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }

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

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

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
