/* ============================================
   Swift Family Child Care — Stylesheet
   Bold editorial · Emerald + Cream
   ============================================ */

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

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #1a2e1a;
    background-color: #faf8f4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul {
    list-style: none;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: #0d3b2f;
    color: #faf8f4;
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 8px 8px;
    z-index: 1000;
    font-weight: 500;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* ---------- Custom Properties ---------- */
:root {
    --emerald-900: #0d3b2f;
    --emerald-800: #145a45;
    --emerald-700: #1a7a5e;
    --emerald-600: #229472;
    --emerald-500: #2aad85;
    --cream-100: #faf8f4;
    --cream-200: #f3efe8;
    --cream-300: #e8e2d6;
    --cream-400: #d4cbb8;
    --text-dark: #1a2e1a;
    --text-medium: #3d5240;
    --text-light: #6b8270;
    --white: #ffffff;
    --font-serif: 'Lora', Georgia, serif;
    --font-sans: 'Inter', system-ui, sans-serif;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(13, 59, 47, 0.06);
    --shadow-md: 0 4px 20px rgba(13, 59, 47, 0.08);
    --shadow-lg: 0 8px 40px rgba(13, 59, 47, 0.12);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- Typography ---------- */
.section-heading {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.text-emerald {
    color: var(--emerald-700);
}

/* ---------- Label (section labels) ---------- */
.label-line {
    display: inline-block;
    width: 32px;
    height: 2px;
    background: var(--emerald-600);
    margin-right: 0.75rem;
    vertical-align: middle;
}

.label-text {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--emerald-700);
    vertical-align: middle;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 100px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.btn:hover .btn-arrow {
    transform: translate(4px, -2px);
}

.btn--primary {
    background: var(--emerald-800);
    color: var(--white);
}

.btn--primary:hover {
    background: var(--emerald-700);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn--ghost {
    background: transparent;
    color: var(--emerald-800);
    border: 1.5px solid var(--emerald-700);
}

.btn--ghost:hover {
    background: var(--emerald-800);
    color: var(--white);
    border-color: var(--emerald-800);
}

.btn--light {
    background: var(--white);
    color: var(--emerald-800);
}

.btn--light:hover {
    background: var(--cream-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

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

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 248, 244, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(13, 59, 47, 0.08);
    transition: var(--transition);
}

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

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

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

.logo-mark {
    font-size: 1.25rem;
}

/* Nav */
.nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-medium);
    border-radius: 100px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--emerald-800);
    background: rgba(13, 59, 47, 0.06);
}

.nav-link--cta {
    background: var(--emerald-800);
    color: var(--white);
    margin-left: 0.5rem;
}

.nav-link--cta:hover {
    background: var(--emerald-700);
    color: var(--white);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    z-index: 110;
}

.nav-toggle-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--emerald-800);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

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

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

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(26, 122, 94, 0.06) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(26, 122, 94, 0.04) 0%, transparent 40%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 4rem 0;
}

.hero-greeting {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--emerald-600);
    margin-bottom: 1rem;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.08;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-name {
    color: var(--emerald-700);
}

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--text-medium);
    max-width: 480px;
    margin-bottom: 2.5rem;
}

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

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

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

.hero-image-accent {
    position: absolute;
    bottom: -24px;
    left: -24px;
    width: 120px;
    height: 120px;
    background: var(--emerald-700);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.15;
}

/* ---------- Intro Strip ---------- */
.intro-strip {
    background: var(--emerald-800);
    padding: 1.5rem 0;
}

.intro-strip-inner {
    display: flex;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.intro-item {
    display: flex;
    align-items: center;
    gap: 0;
}

.intro-label {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(250, 248, 244, 0.85);
    padding: 0 2rem;
}

.intro-divider {
    width: 4px;
    height: 4px;
    background: rgba(250, 248, 244, 0.3);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ---------- About ---------- */
.about {
    padding: 8rem 0;
    background: var(--cream-100);
}

.about-container {
    max-width: 1200px;
}

.about-label {
    margin-bottom: 3rem;
}

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

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

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

.about-text-col p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 1.25rem;
}

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

/* ---------- Services ---------- */
.services {
    padding: 8rem 0;
    background: var(--cream-200);
}

.services-header {
    max-width: 680px;
    margin-bottom: 4rem;
}

.services-heading {
    margin-bottom: 1.25rem;
}

.services-intro {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-medium);
}

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

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
    transition: var(--transition);
    border: 1px solid rgba(13, 59, 47, 0.06);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card-number {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: var(--cream-300);
    line-height: 1;
}

.service-card-icon {
    width: 56px;
    height: 56px;
    background: var(--emerald-800);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.service-card-title {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.service-card-desc {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--text-medium);
}

/* ---------- Philosophy ---------- */
.philosophy {
    padding: 8rem 0;
    background: var(--emerald-900);
    color: var(--cream-100);
}

.philosophy-container {
    max-width: 1200px;
}

.philosophy-label {
    margin-bottom: 3rem;
}

.philosophy-label .label-line {
    background: var(--emerald-500);
}

.philosophy-label .label-text {
    color: var(--emerald-400);
}

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

.philosophy-quote {
    position: relative;
    padding: 2.5rem;
    background: rgba(250, 248, 244, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(250, 248, 244, 0.08);
}

.quote-mark {
    color: var(--emerald-500);
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.philosophy-quote p {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    line-height: 1.75;
    color: var(--cream-100);
    font-style: italic;
}

.philosophy-quote p em {
    color: var(--emerald-400);
    font-style: italic;
}

.philosophy-values {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.value-item {
    display: flex;
    gap: 1.25rem;
    align-items: start;
}

.value-icon {
    width: 44px;
    height: 44px;
    background: rgba(42, 173, 133, 0.15);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-400);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.value-title {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--cream-100);
    margin-bottom: 0.375rem;
}

.value-desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(250, 248, 244, 0.65);
}

/* ---------- Community ---------- */
.community {
    padding: 8rem 0;
    background: var(--cream-100);
}

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

.community-label {
    margin-bottom: 2rem;
}

.community-heading {
    margin-bottom: 1.5rem;
}

.community-content p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 1.25rem;
}

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

/* ---------- CTA Strip ---------- */
.cta-strip {
    background: var(--emerald-700);
    padding: 4rem 0;
}

.cta-strip-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    text-align: center;
}

.cta-strip-text {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 500;
    color: var(--cream-100);
}

/* ---------- Contact ---------- */
.contact {
    padding: 8rem 0;
    background: var(--cream-200);
}

.contact-container {
    max-width: 1200px;
}

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

.contact-label {
    margin-bottom: 2rem;
}

.contact-heading {
    margin-bottom: 1.25rem;
}

.contact-info-col > p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 2.5rem;
}

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

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

.contact-detail-icon {
    width: 44px;
    height: 44px;
    background: var(--emerald-800);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.contact-detail-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.contact-detail-value {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
}

.contact-detail-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--emerald-700);
    transition: var(--transition);
}

.contact-detail-link:hover {
    color: var(--emerald-800);
    text-decoration: underline;
}

/* Form */
.contact-form-col {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(13, 59, 47, 0.06);
}

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

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-medium);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--text-dark);
    background: var(--cream-100);
    border: 1.5px solid var(--cream-300);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    outline: none;
}

.form-input::placeholder {
    color: var(--text-light);
}

.form-input:focus {
    border-color: var(--emerald-600);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(26, 122, 94, 0.1);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b8270' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

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

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

.success-icon {
    color: var(--emerald-600);
    margin: 0 auto 1.25rem;
}

.success-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.success-text {
    font-size: 0.9375rem;
    color: var(--text-medium);
    line-height: 1.7;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--emerald-900);
    padding: 3rem 0;
    text-align: center;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo-mark {
    font-size: 1.25rem;
}

.footer-name {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--cream-100);
}

.footer-address {
    font-size: 0.875rem;
    color: rgba(250, 248, 244, 0.5);
}

.footer-copy {
    font-size: 0.8125rem;
    color: rgba(250, 248, 244, 0.35);
}

/* ---------- Scroll Reveal (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        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);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-container {
        gap: 2.5rem;
    }

    .hero-image-wrapper img {
        height: 480px;
    }

    .about-grid,
    .philosophy-grid,
    .contact-grid {
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .primary-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(250, 248, 244, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 1.5rem;
        border-bottom: 1px solid rgba(13, 59, 47, 0.08);
        transform: translateY(-120%);
        opacity: 0;
        transition: var(--transition);
        pointer-events: none;
    }

    .primary-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-list {
        flex-direction: column;
        gap: 0.25rem;
        width: 100%;
    }

    .nav-link {
        width: 100%;
        padding: 0.875rem 1rem;
        border-radius: var(--radius-sm);
    }

    .nav-link--cta {
        margin-left: 0;
        margin-top: 0.5rem;
        text-align: center;
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 4rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-image-wrapper {
        order: -1;
    }

    .hero-image-wrapper img {
        height: 360px;
    }

    .hero-image-accent {
        width: 80px;
        height: 80px;
        bottom: -16px;
        left: -16px;
    }

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

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

    /* Sections */
    .about,
    .services,
    .philosophy,
    .community,
    .contact {
        padding: 5rem 0;
    }

    .about-grid,
    .philosophy-grid,
    .contact-grid,
    .community-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-image-col img,
    .philosophy-quote {
        height: auto;
    }

    .about-image-col img {
        height: 360px;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* CTA */
    .cta-strip-inner {
        flex-direction: column;
        gap: 1.5rem;
    }

    /* Contact form */
    .contact-form-col {
        padding: 1.75rem;
    }
}

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

    .hero-headline {
        font-size: clamp(2rem, 8vw, 2.75rem);
    }

    .section-heading {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
    }

    .service-card {
        padding: 1.75rem;
    }

    .intro-label {
        padding: 0 1.25rem;
        font-size: 0.75rem;
    }
}
