/* ==========================================================================
   De Silva Family Child Care — site styles
   ========================================================================== */

:root {
    --cream: #fff8ef;
    --cream-deep: #fdeedb;
    --white: #ffffff;
    --ink: #2d3250;
    --ink-soft: #5b6080;
    --coral: #f2705f;
    --coral-dark: #d9533f;
    --sun: #ffc94d;
    --sun-soft: #fff1c9;
    --sky: #6cb8e6;
    --sky-soft: #def0fb;
    --leaf: #6cc28f;
    --leaf-soft: #def5e7;
    --grape: #a383d9;
    --grape-soft: #eee6fb;

    --radius-sm: 12px;
    --radius: 22px;
    --radius-lg: 36px;
    --shadow: 0 10px 30px rgba(45, 50, 80, 0.08);
    --shadow-lift: 0 16px 40px rgba(45, 50, 80, 0.14);

    --font-display: 'Fredoka', 'Nunito', system-ui, sans-serif;
    --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --wrap: 1160px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--coral-dark);
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    color: var(--ink);
}

h1 {
    font-size: clamp(2.3rem, 5.5vw, 3.75rem);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
}

h3 {
    font-size: 1.3rem;
}

:focus-visible {
    outline: 3px solid var(--sky);
    outline-offset: 3px;
    border-radius: 6px;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    background: var(--ink);
    color: var(--white);
    padding: 10px 16px;
    border-radius: 8px;
    z-index: 2000;
}

.skip-link:focus {
    left: 8px;
}

/* Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn svg {
    width: 20px;
    height: 20px;
}

.btn--primary {
    background: var(--coral);
    color: var(--white);
    box-shadow: 0 6px 0 var(--coral-dark);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 0 var(--coral-dark);
}

.btn--primary:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 var(--coral-dark);
}

.btn--ghost {
    background: var(--white);
    color: var(--ink);
    border-color: var(--ink);
}

.btn--ghost:hover {
    background: var(--sun-soft);
    transform: translateY(-2px);
}

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

/* Header & navigation
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 248, 239, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 2px dashed rgba(45, 50, 80, 0.08);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 84px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ink);
}

.brand__mark {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand__name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
}

.brand__tag {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ink-soft);
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.nav__link {
    display: block;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.nav__link:hover {
    background: var(--sun-soft);
}

.nav__link[aria-current="page"] {
    background: var(--sun);
}

.nav__cta {
    margin-left: 10px;
}

.nav__cta .btn {
    padding: 10px 22px;
    box-shadow: 0 4px 0 var(--coral-dark);
}

.nav__toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 14px;
    background: var(--sun);
    cursor: pointer;
    position: relative;
}

.nav__toggle span {
    position: absolute;
    left: 13px;
    width: 22px;
    height: 3px;
    border-radius: 3px;
    background: var(--ink);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav__toggle span:nth-child(1) { top: 16px; }
.nav__toggle span:nth-child(2) { top: 23px; }
.nav__toggle span:nth-child(3) { top: 30px; }

.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Little pill badge ("Spaces available") */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--leaf-soft);
    color: #2f7d50;
    font-weight: 800;
    font-size: 0.9rem;
}

.pill__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--leaf);
    box-shadow: 0 0 0 0 rgba(108, 194, 143, 0.6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(108, 194, 143, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(108, 194, 143, 0); }
    100% { box-shadow: 0 0 0 0 rgba(108, 194, 143, 0); }
}

/* Hero
   ========================================================================== */
.hero {
    position: relative;
    padding: 64px 0 96px;
    overflow: hidden;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 48px;
}

.hero h1 {
    margin: 18px 0 20px;
}

.hero h1 .scribble {
    position: relative;
    white-space: nowrap;
    color: var(--coral);
}

.hero h1 .scribble svg {
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
    height: 14px;
}

.hero__lead {
    font-size: 1.2rem;
    color: var(--ink-soft);
    max-width: 34em;
    margin-bottom: 30px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero__art {
    position: relative;
}

.hero__blob {
    position: absolute;
    inset: -8% -6% -4% -6%;
    z-index: 0;
}

.hero__art img {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 12% 4% 6%;
}

/* Floating decorations */
.deco {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.deco--sun { top: 40px; right: 4%; width: 70px; animation: spin 30s linear infinite; }
.deco--star { bottom: 90px; left: 3%; width: 38px; animation: bob 5s ease-in-out infinite; }
.deco--cloud { top: 120px; left: 42%; width: 90px; animation: drift 9s ease-in-out infinite; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 50% { transform: translateY(-12px) rotate(10deg); } }
@keyframes drift { 50% { transform: translateX(18px); } }

/* Wavy section divider */
.wave {
    display: block;
    width: 100%;
    height: 60px;
}

/* Quick facts strip
   ========================================================================== */
.facts {
    background: var(--white);
    padding: 20px 0 64px;
}

.facts__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.fact {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: var(--radius);
    background: var(--cream);
}

.fact__icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 18px;
}

.fact__icon svg {
    width: 30px;
    height: 30px;
}

.fact__value {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.35rem;
    line-height: 1.1;
}

.fact__label {
    color: var(--ink-soft);
    font-size: 0.95rem;
    font-weight: 600;
}

/* Tints, shared by icons and cards */
.tint-coral { background: #ffe3de; color: var(--coral-dark); }
.tint-sun { background: var(--sun-soft); color: #b9820c; }
.tint-sky { background: var(--sky-soft); color: #2d84bb; }
.tint-leaf { background: var(--leaf-soft); color: #2f8a55; }
.tint-grape { background: var(--grape-soft); color: #7656b3; }

/* Generic sections
   ========================================================================== */
.section {
    padding: 88px 0;
}

.section--white {
    background: var(--white);
}

.section__head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 52px;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 10px;
}

.section__head p {
    margin-top: 14px;
    color: var(--ink-soft);
    font-size: 1.15rem;
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px 26px;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-6px) rotate(-0.5deg);
    box-shadow: var(--shadow-lift);
}

.card__icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    margin-bottom: 18px;
}

.card__icon svg {
    width: 34px;
    height: 34px;
}

.card h3 {
    margin-bottom: 8px;
}

.card p {
    color: var(--ink-soft);
}

.section--white .card {
    background: var(--cream);
    box-shadow: none;
}

/* Split layout (text + list) */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.split p + p {
    margin-top: 16px;
}

.split .lead {
    font-size: 1.15rem;
    color: var(--ink-soft);
    margin-top: 16px;
}

.checklist {
    list-style: none;
    display: grid;
    gap: 14px;
}

.checklist li {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--white);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    font-weight: 700;
}

.section--white .checklist li {
    background: var(--cream);
    box-shadow: none;
}

.checklist__tick {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--leaf);
    color: var(--white);
}

.checklist__tick svg {
    width: 18px;
    height: 18px;
}

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

.option {
    position: relative;
    text-align: center;
    padding: 36px 24px 30px;
    border-radius: var(--radius-lg);
    border: 3px dashed currentColor;
}

.option h3 {
    color: var(--ink);
    margin: 14px 0 6px;
}

.option p {
    color: var(--ink-soft);
}

.option__emoji {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--white);
}

.option__emoji svg {
    width: 38px;
    height: 38px;
}

/* Call-to-action band */
.cta {
    position: relative;
    background: var(--ink);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 56px 48px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 36px;
    align-items: center;
    overflow: hidden;
}

.cta h2 {
    color: var(--white);
}

.cta p {
    color: rgba(255, 255, 255, 0.8);
    margin-top: 12px;
    font-size: 1.1rem;
}

.cta__contacts {
    display: grid;
    gap: 14px;
}

.contact-chip {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.contact-chip:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateX(4px);
}

.contact-chip__icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 14px;
}

.contact-chip__icon svg {
    width: 24px;
    height: 24px;
}

.contact-chip small {
    display: block;
    font-size: 0.85rem;
    opacity: 0.75;
    font-weight: 600;
}

.contact-chip strong {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.2rem;
    word-break: break-word;
}

.cta__dots {
    position: absolute;
    right: -40px;
    top: -40px;
    width: 220px;
    opacity: 0.18;
    pointer-events: none;
}

/* Page banner (inner pages)
   ========================================================================== */
.page-banner {
    position: relative;
    text-align: center;
    padding: 72px 0 40px;
    overflow: hidden;
}

.page-banner .deco--star {
    bottom: 16px;
}

.page-banner p {
    max-width: 640px;
    margin: 16px auto 0;
    color: var(--ink-soft);
    font-size: 1.2rem;
}

/* Prose (About page) */
.prose {
    max-width: 760px;
    margin: 0 auto;
}

.prose h2 {
    margin: 48px 0 14px;
}

.prose p {
    color: var(--ink-soft);
    font-size: 1.12rem;
}

.prose p + p {
    margin-top: 14px;
}

.quote {
    position: relative;
    margin: 0 auto;
    max-width: 820px;
    padding: 40px 44px;
    border-radius: var(--radius-lg);
    background: var(--sun-soft);
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.6vw, 1.7rem);
    line-height: 1.4;
    text-align: center;
}

/* Contact / register page
   ========================================================================== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;
    align-items: start;
}

.contact-side {
    display: grid;
    gap: 18px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--ink);
    transition: transform 0.2s ease;
}

a.info-card:hover {
    transform: translateY(-3px);
}

.info-card small {
    display: block;
    color: var(--ink-soft);
    font-weight: 700;
    font-size: 0.85rem;
}

.info-card strong {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem;
    word-break: break-word;
}

.form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
    border-top: 10px solid var(--sun);
}

.form-card h2 {
    font-size: 1.8rem;
}

.form-card > p {
    color: var(--ink-soft);
    margin: 8px 0 26px;
}

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

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.field .optional {
    font-weight: 600;
    color: var(--ink-soft);
}

.field input,
.field textarea {
    width: 100%;
    font: inherit;
    color: var(--ink);
    padding: 13px 16px;
    border: 2px solid #ebe3d6;
    border-radius: var(--radius-sm);
    background: var(--cream);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--sky);
    background: var(--white);
}

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

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-status {
    margin-top: 14px;
    font-weight: 700;
    color: var(--coral-dark);
    min-height: 1.5em;
}

/* Pricing table */
.price-table {
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.price-table th,
.price-table td {
    text-align: left;
    padding: 18px 22px;
}

.price-table thead th {
    background: var(--sun);
    font-family: var(--font-display);
    font-weight: 600;
}

.price-table tbody tr:nth-child(even) {
    background: var(--cream);
}

.price-table td:nth-child(3) {
    font-weight: 800;
    color: var(--coral-dark);
    white-space: nowrap;
}

/* Success page */
.success {
    min-height: 70vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 72px 0;
}

.success__badge {
    width: 110px;
    height: 110px;
    margin: 0 auto 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--leaf);
    color: var(--white);
    box-shadow: 0 0 0 14px var(--leaf-soft);
}

.success__badge svg {
    width: 56px;
    height: 56px;
}

.success p {
    max-width: 520px;
    margin: 16px auto 30px;
    color: var(--ink-soft);
    font-size: 1.15rem;
}

/* Footer
   ========================================================================== */
.site-footer {
    background: var(--cream-deep);
    padding: 56px 0 28px;
    margin-top: 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
}

.footer__grid h4 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.footer__grid p,
.footer__grid li {
    color: var(--ink-soft);
}

.footer__grid ul {
    list-style: none;
    display: grid;
    gap: 6px;
}

.footer__grid a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
}

.footer__grid a:hover {
    color: var(--coral-dark);
}

.footer__about {
    margin-top: 14px;
    max-width: 30em;
}

.footer__bottom {
    margin-top: 40px;
    padding-top: 22px;
    border-top: 2px dashed rgba(45, 50, 80, 0.12);
    text-align: center;
    font-size: 0.9rem;
    color: var(--ink-soft);
}

/* Crayon-colour stripe under the header */
.rainbow {
    height: 6px;
    background: linear-gradient(90deg,
        var(--coral) 0 20%, var(--sun) 20% 40%, var(--leaf) 40% 60%,
        var(--sky) 60% 80%, var(--grape) 80% 100%);
}

/* Reveal-on-scroll */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Responsive
   ========================================================================== */
@media (max-width: 960px) {
    .nav__toggle {
        display: block;
    }

    .nav__menu {
        position: absolute;
        top: 84px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 16px 24px 24px;
        background: var(--cream);
        border-bottom: 2px dashed rgba(45, 50, 80, 0.1);
        box-shadow: 0 20px 30px rgba(45, 50, 80, 0.08);
        transform-origin: top;
        transform: scaleY(0);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
    }

    .nav__menu.is-open {
        transform: scaleY(1);
        opacity: 1;
        visibility: visible;
    }

    .nav__link {
        text-align: center;
        padding: 14px;
        font-size: 1.1rem;
    }

    .nav__cta {
        margin: 8px 0 0;
    }

    .nav__cta .btn {
        width: 100%;
        padding: 14px;
    }

    .hero__grid,
    .split,
    .cta,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 40px 0 64px;
        text-align: center;
    }

    .hero__lead {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__art {
        max-width: 520px;
        margin: 0 auto;
    }

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

    .options {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer__grid > :first-child {
        grid-column: 1 / -1;
    }

    .deco--cloud {
        display: none;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 1rem;
    }

    .wrap {
        padding: 0 16px;
    }

    .brand__name {
        font-size: 1.15rem;
    }

    .brand__mark {
        width: 42px;
        height: 42px;
    }

    .section {
        padding: 64px 0;
    }

    .facts__grid,
    .form-row,
    .footer__grid {
        grid-template-columns: 1fr;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .cta {
        padding: 40px 22px;
        border-radius: var(--radius);
    }

    .form-card {
        padding: 28px 20px;
        border-radius: var(--radius);
    }

    .quote {
        padding: 30px 22px;
    }

    .price-table th,
    .price-table td {
        padding: 14px 12px;
        font-size: 0.95rem;
    }

    .price-table th:nth-child(4),
    .price-table td:nth-child(4) {
        display: none;
    }

    .deco--sun {
        width: 48px;
    }

    .deco--star {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

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