/* ============================================================
   Kosi Kasi Nursery School — Shared Stylesheet
   ============================================================ */

/* --- Fonts --- */
@font-face {
    font-family: 'Corben';
    src: url('../fonts/Corben-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Corben';
    src: url('../fonts/Corben-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* --- Design Tokens --- */
:root {
    --color-primary:       #5b4bb7;
    --color-primary-light: #e5deff;
    --color-primary-mid:   #7464d2;
    --color-gold:          #F9B233;
    --color-gold-light:    #fff3d6;
    --color-secondary:     #006d41;
    --color-secondary-light: #90f4b7;
    --color-tertiary:      #0055c9;
    --color-tertiary-light: #dae2ff;
    --color-error:         #ba1a1a;
    --color-error-light:   #ffdad6;
    --color-bg:            #fcf8f8;
    --color-surface:       #fcf8f8;
    --color-surface-low:   #f6f3f2;
    --color-white:         #ffffff;
    --color-text:          #1c1b1b;
    --color-text-muted:    #484552;
    --color-border:        #c9c4d4;
    --color-outline:       #797584;

    --font-display: 'Corben', Georgia, 'Times New Roman', serif;
    --font-body:    'Poppins', system-ui, sans-serif;

    --gap-xs:  0.5rem;
    --gap-sm:  1rem;
    --gap-md:  2rem;
    --gap-lg:  4rem;
    --px-mobile:  1.5rem;
    --px-desktop: 5rem;
    --max-width: 1200px;

    --radius-sm:   0.25rem;
    --radius-md:   0.75rem;
    --radius-lg:   1.5rem;
    --radius-xl:   2.5rem;
    --radius-full: 9999px;

    --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
    --shadow-md:  0 4px 16px rgba(91,75,183,.12);
    --shadow-lg:  0 8px 32px rgba(91,75,183,.18);
    --shadow-btn: 0 4px 14px rgba(91,75,183,.35);

    --transition: 220ms ease;
    --transition-slow: 400ms ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }

/* --- Layout --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--px-mobile);
}
@media (min-width: 768px) {
    .container { padding-inline: var(--px-desktop); }
}
.section { padding-block: var(--gap-lg); }
.section--sm { padding-block: var(--gap-md); }

/* --- Typography --- */
.display {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-primary);
}
.headline-lg {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 400;
    line-height: 1.2;
}
.headline-md {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.3;
}
.body-lg  { font-size: 1.25rem; line-height: 1.6; }
.body-md  { font-size: 1rem; line-height: 1.6; }
.label    { font-size: .875rem; font-weight: 600; letter-spacing: .05em; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.75rem;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background var(--transition), color var(--transition),
                box-shadow var(--transition), transform var(--transition);
    white-space: nowrap;
}
.btn-primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: var(--shadow-btn);
}
.btn-primary:hover, .btn-primary:focus-visible {
    background: var(--color-primary-mid);
    box-shadow: 0 6px 20px rgba(91,75,183,.25);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}
.btn-outline:hover, .btn-outline:focus-visible {
    background: var(--color-primary);
    color: #fff;
}
.btn-gold {
    background: var(--color-gold);
    color: var(--color-text);
    box-shadow: 0 4px 14px rgba(249,178,51,.4);
}
.btn-gold:hover { background: #e8a020; transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--color-gold); outline-offset: 2px; }

/* --- Badge / Chip --- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .9rem;
    border-radius: var(--radius-full);
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .04em;
}
.badge-primary   { background: var(--color-primary-light); color: var(--color-primary); }
.badge-gold      { background: var(--color-gold-light);    color: #7a4e00; }
.badge-secondary { background: var(--color-secondary-light); color: var(--color-secondary); }
.badge-tertiary  { background: var(--color-tertiary-light);  color: var(--color-tertiary); }
.badge-error     { background: var(--color-error-light);     color: var(--color-error); }

/* --- Card --- */
.card {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(201,196,212,.3);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

/* --- Section Label (eyebrow text) --- */
.section-eyebrow {
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: .5rem;
    display: block;
}

/* --- Divider wave underline --- */
.wave-underline {
    position: relative;
    display: inline-block;
}
.wave-underline::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-gold);
    border-radius: var(--radius-full);
    opacity: .6;
}

/* --- Grid helpers --- */
.grid-2 { display: grid; gap: var(--gap-md); grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: var(--gap-md); grid-template-columns: 1fr; }
@media (min-width: 640px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* --- Background patterns --- */
.bg-dots {
    background-image: radial-gradient(rgba(91,75,183,.07) 1.5px, transparent 1.5px);
    background-size: 20px 20px;
}
.bg-grid {
    background-image:
        linear-gradient(rgba(91,75,183,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(91,75,183,.04) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* --- Blob shapes --- */
.blob { border-radius: 41% 59% 41% 59% / 46% 38% 62% 54%; }
.blob-2 { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }

/* ============================================================
   Navigation
   ============================================================ */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(252,248,248,.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: .75rem;
    gap: var(--gap-sm);
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
    text-decoration: none;
}
.nav-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    padding: 2px;
}
.nav-logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    display: none;
}
@media (min-width: 480px) { .nav-logo-text { display: block; } }

.nav-links {
    display: none;
    align-items: center;
    gap: .25rem;
}
@media (min-width: 900px) { .nav-links { display: flex; } }

.nav-links a {
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--color-text-muted);
    padding: .4rem .75rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
    position: relative;
}
.nav-links a:hover { color: var(--color-primary); background: rgba(91,75,183,.06); }
.nav-links a.active {
    color: var(--color-primary);
    font-weight: 700;
}
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: .75rem;
    right: .75rem;
    height: 2px;
    background: var(--color-gold);
    border-radius: var(--radius-full);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
}
.nav-enrol { display: none; }
@media (min-width: 900px) { .nav-enrol { display: inline-flex; } }

.nav-burger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--color-primary);
    transition: background var(--transition);
}
.nav-burger:hover { background: rgba(91,75,183,.08); }
@media (min-width: 900px) { .nav-burger { display: none; } }

/* Mobile menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--color-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--gap-md);
    padding: var(--gap-lg) var(--px-mobile);
    animation: slideDown .25s ease;
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-12px); } }
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { text-align: center; display: flex; flex-direction: column; gap: var(--gap-sm); }
.mobile-menu a {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    transition: color var(--transition);
}
.mobile-menu a:hover { color: var(--color-gold); }
/* Enrol Now button keeps its pill — make its label visible (gold on purple) */
.mobile-menu a.btn { color: var(--color-gold); }
.mobile-menu a.btn:hover { color: var(--color-gold); }
.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-text-muted);
    transition: background var(--transition);
}
.mobile-menu-close:hover { background: rgba(0,0,0,.06); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    background: var(--color-surface-low);
    border-top: 1px solid rgba(201,196,212,.4);
    padding-top: var(--gap-lg);
}
.footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gap-lg);
    padding-bottom: var(--gap-lg);
}
@media (min-width: 640px) {
    .footer-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
    .footer-inner { grid-template-columns: 1.5fr 1fr 1.5fr; }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: var(--gap-sm);
}
.footer-logo img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    padding: 3px;
}
.footer-logo span {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}
.footer-tagline {
    font-size: .9375rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin-bottom: var(--gap-md);
}

.footer-sitemap h3,
.footer-contact h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--gap-sm);
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--color-gold);
    display: inline-block;
}
.footer-sitemap ul {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.footer-sitemap a {
    font-size: .9375rem;
    color: var(--color-text-muted);
    transition: color var(--transition), padding-left var(--transition);
}
.footer-sitemap a:hover { color: var(--color-primary); padding-left: .25rem; }

.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-bottom: var(--gap-md);
}
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    font-size: .9375rem;
    color: var(--color-text-muted);
}
.footer-contact .material-symbols-outlined {
    font-size: 1.25rem;
    color: var(--color-primary);
    flex-shrink: 0;
    margin-top: .1rem;
}
.footer-contact a { transition: color var(--transition); }
.footer-contact a:hover { color: var(--color-primary); }

.footer-social {
    display: flex;
    gap: .75rem;
    align-items: center;
}
.footer-social a {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--color-surface);
    color: var(--color-text-muted);
    transition: background var(--transition), color var(--transition), transform var(--transition);
    border: 1px solid var(--color-border);
}
.footer-social a:hover { transform: translateY(-3px); }
.footer-social a.wa:hover  { background: #25d366; color: #fff; border-color: #25d366; }
.footer-social a.fb:hover  { background: #1877f2; color: #fff; border-color: #1877f2; }
.footer-social svg { width: 20px; height: 20px; fill: currentColor; }

.footer-bottom {
    border-top: 1px solid rgba(201,196,212,.4);
    padding-block: 1.25rem;
    text-align: center;
    font-size: .875rem;
    color: var(--color-text-muted);
}

/* ============================================================
   Floating Buttons (WhatsApp + Facebook)
   ============================================================ */
.floating-ctas {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    align-items: flex-end;
}
.floating-btn {
    width: 52px; height: 52px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
}
.floating-btn:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(0,0,0,.28); }
.floating-btn--wa  { background: #25d366; color: #fff; }
.floating-btn--fb  { background: #1877f2; color: #fff; }
.floating-btn svg  { width: 26px; height: 26px; fill: currentColor; }
.floating-btn::before {
    content: attr(data-label);
    position: absolute;
    right: calc(100% + .75rem);
    background: var(--color-text);
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
    padding: .3rem .65rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}
.floating-btn:hover::before { opacity: 1; }

/* ============================================================
   Hero Sections (shared pattern)
   ============================================================ */
.page-hero {
    background: var(--color-primary-light);
    position: relative;
    overflow: hidden;
    padding: var(--gap-lg) 0;
    text-align: center;
}
.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: var(--color-bg);
    clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--gap-sm);
}
.page-hero p {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 42ch;
    margin-inline: auto;
}

/* ============================================================
   Stats Strip
   ============================================================ */
.stats-strip {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--gap-md);
    padding: var(--gap-md);
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius-xl);
}
.stat-item { text-align: center; padding: .5rem var(--gap-sm); }
.stat-number {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-gold);
    display: block;
}
.stat-label { font-size: .875rem; font-weight: 600; opacity: .9; }

/* ============================================================
   Bento Grid (Events page)
   ============================================================ */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gap-md);
}
@media (min-width: 640px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
    .bento-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; }
    .bento-large { grid-column: span 2; grid-row: span 2; }
    .bento-tall  { grid-row: span 2; }
    .bento-wide  { grid-column: span 2; }
}

/* ============================================================
   Modal / Lightbox
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(0,0,0,.7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--gap-sm);
    animation: fadeIn .2s ease;
    overflow-y: auto;
}
@keyframes fadeIn { from { opacity: 0; } }
.modal-overlay[hidden] { display: none; }

.modal-box {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    max-width: 760px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideUp .25s ease;
}
@keyframes modalSlideUp { from { opacity: 0; transform: translateY(20px); } }

.modal-close {
    position: sticky;
    top: 1rem;
    left: calc(100% - 3rem);
    z-index: 1;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--color-surface);
    color: var(--color-text-muted);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    transition: background var(--transition), color var(--transition);
    float: right;
    margin: .75rem .75rem 0 0;
}
.modal-close:hover { background: var(--color-error-light); color: var(--color-error); }

.modal-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}
.modal-body { padding: var(--gap-md); }

/* ============================================================
   Masonry Gallery Grid
   ============================================================ */
.gallery-grid {
    columns: 1;
    gap: var(--gap-sm);
}
@media (min-width: 480px) { .gallery-grid { columns: 2; } }
@media (min-width: 768px) { .gallery-grid { columns: 3; } }

.gallery-item {
    break-inside: avoid;
    margin-bottom: var(--gap-sm);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    position: relative;
}
.gallery-item img {
    width: 100%;
    display: block;
    transition: transform var(--transition-slow);
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(91,75,183,.0);
    transition: background var(--transition);
}
.gallery-item:hover::after { background: rgba(91,75,183,.15); }

/* Gallery filter tabs */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: var(--gap-md);
}
.filter-tab {
    padding: .45rem 1.1rem;
    border-radius: var(--radius-full);
    font-size: .875rem;
    font-weight: 600;
    border: 2px solid var(--color-border);
    color: var(--color-text-muted);
    background: transparent;
    transition: all var(--transition);
}
.filter-tab:hover, .filter-tab.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}
.gallery-item[hidden] { display: none; }

/* ============================================================
   Slideshow (Venue Hire)
   ============================================================ */
.slideshow {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    aspect-ratio: 16/7;
    background: var(--color-surface-low);
}
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,.8);
    color: var(--color-primary);
    display: flex; align-items: center; justify-content: center;
    transition: background var(--transition), transform var(--transition);
    backdrop-filter: blur(4px);
}
.slide-btn:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.slide-prev { left: .75rem; }
.slide-next { right: .75rem; }
.slide-dots {
    position: absolute;
    bottom: .75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: .5rem;
}
.slide-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    transition: background var(--transition), transform var(--transition);
    cursor: pointer;
}
.slide-dot.active { background: #fff; transform: scale(1.3); }

/* ============================================================
   Popup Photo Gallery (Venue Hire)
   ============================================================ */
.photo-popup {
    position: fixed;
    inset: 0;
    z-index: 400;
    background: rgba(0,0,0,.9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--gap-sm);
    animation: fadeIn .2s ease;
}
.photo-popup[hidden] { display: none; }
.popup-inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    gap: .75rem;
}
.popup-img {
    max-width: 80vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
}
.popup-nav {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background var(--transition);
}
.popup-nav:hover { background: rgba(255,255,255,.3); }
.popup-close {
    position: absolute;
    top: -3rem;
    right: 0;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--transition);
}
.popup-close:hover { background: rgba(255,255,255,.3); }
.popup-counter {
    position: absolute;
    bottom: -2.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.7);
    font-size: .875rem;
}

/* ============================================================
   Scroll-reveal Animations
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
    opacity: 1;
    transform: none;
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* Float animations */
@keyframes playfulFloat {
    0%   { transform: translateY(0) rotate(0deg); }
    50%  { transform: translateY(-10px) rotate(2deg); }
    100% { transform: translateY(0) rotate(0deg); }
}
.float   { animation: playfulFloat 6s ease-in-out infinite; }
.float-d { animation: playfulFloat 7s ease-in-out infinite 1s; }
.float-f { animation: playfulFloat 4s ease-in-out infinite .5s; }

/* Doodle draw-on */
.doodle-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawDoodle 3s ease forwards;
}
@keyframes drawDoodle { to { stroke-dashoffset: 0; } }

/* ============================================================
   Accessibility
   ============================================================ */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
:focus-visible { outline: 3px solid var(--color-gold); outline-offset: 3px; }

/* ============================================================
   Reduce Motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}
