/* =========================================================================
   Happy Kids Haven — Design tokens & base
   Brand colours are sampled from the supplied logo and used as ACCENTS.
   The core UI stays white / warm off-white with deep plum-charcoal text.
   ========================================================================= */
:root {
    /* Brand (logo) */
    --hk-pink: #F872B2;
    --hk-pink-deep: #C93C7E;      /* AA on white for text & buttons */
    --hk-pink-soft: #FDE6F1;
    --hk-pink-tint: #FFF5FA;
    --hk-green: #A8D850;
    --hk-green-deep: #4E7F1E;
    --hk-green-soft: #EDF6DA;
    --hk-green-tint: #F7FBEE;
    --hk-blue: #58D8F8;
    --hk-blue-deep: #13799A;
    --hk-blue-soft: #DDF5FC;
    --hk-blue-tint: #F1FBFE;
    --hk-orange: #F8A848;
    --hk-orange-deep: #A85C0B;
    --hk-orange-soft: #FDEBD3;
    --hk-orange-tint: #FFF8EF;

    /* Neutrals */
    --hk-ink: #2B2530;
    --hk-ink-2: #463F4C;
    --hk-muted: #6C6571;
    --hk-subtle: #938C97;
    --hk-line: #ECE6E1;
    --hk-line-strong: #DCD3CB;
    --hk-bg: #FFFFFF;
    --hk-bg-soft: #FBF8F5;
    --hk-bg-warm: #F6F0EA;
    --hk-whatsapp: #157A4F;
    --hk-whatsapp-hover: #0F6640;
    --hk-success: #2F7D32;
    --hk-success-soft: #E8F4E6;
    --hk-warning: #9A5B00;
    --hk-warning-soft: #FDF1DF;
    --hk-danger: #B42318;
    --hk-danger-soft: #FDECEA;

    /* Typography */
    --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --fs-xs: 0.75rem;
    --fs-sm: 0.8125rem;
    --fs-base: 0.9375rem;
    --fs-md: 1.0625rem;
    --fs-lg: 1.25rem;
    --fs-xl: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
    --fs-2xl: clamp(1.875rem, 1.4rem + 1.8vw, 2.625rem);
    --fs-3xl: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);

    /* Spacing (4px grid) */
    --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px;
    --sp-8: 32px; --sp-10: 40px; --sp-12: 48px; --sp-16: 64px; --sp-20: 80px; --sp-24: 96px;
    --section-y: clamp(48px, 4vw + 24px, 96px);

    /* Shape — soft and modern, never "toy-like" */
    --r-xs: 6px;
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;
    --r-pill: 999px;

    /* Elevation */
    --sh-1: 0 1px 2px rgba(43, 37, 48, .05), 0 1px 1px rgba(43, 37, 48, .03);
    --sh-2: 0 6px 20px rgba(43, 37, 48, .07);
    --sh-3: 0 18px 48px rgba(43, 37, 48, .12);
    --sh-focus: 0 0 0 3px #fff, 0 0 0 5px var(--hk-pink-deep);

    /* Motion */
    --ease: cubic-bezier(.2, .7, .2, 1);
    --dur-1: 150ms;
    --dur-2: 260ms;
    --dur-3: 420ms;

    /* Layout */
    --container: 1320px;
    --gutter: 16px;
    --header-h: 72px;
}

@media (min-width: 768px) { :root { --gutter: 24px; } }
@media (min-width: 1200px) { :root { --gutter: 40px; --header-h: 80px; } }

@media (prefers-reduced-motion: reduce) {
    :root { --dur-1: 0ms; --dur-2: 0ms; --dur-3: 0ms; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--hk-bg);
    color: var(--hk-ink);
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 var(--sp-3); line-height: 1.15; font-weight: 700; }
p { margin: 0 0 var(--sp-4); }
ul, ol { padding-left: 1.2em; }
hr { border: 0; border-top: 1px solid var(--hk-line); margin: var(--sp-6) 0; }
:focus-visible { outline: none; box-shadow: var(--sh-focus); border-radius: var(--r-xs); }
/* Headings focused programmatically after navigation (FocusOnNavigate) shouldn't show a ring. */
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { box-shadow: none; outline: none; }
::selection { background: var(--hk-pink-soft); color: var(--hk-ink); }

/* Override MudBlazor's body defaults so the storefront owns typography */
.mud-typography { font-family: var(--font-sans); }

/* ---------------------------------------------------------------- type helpers */
.display, .section-title, .page-title {
    font-family: var(--font-display);
    font-variation-settings: "SOFT" 100;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--hk-ink);
}
.page-title { font-size: var(--fs-2xl); margin-bottom: var(--sp-3); }
.section-title { font-size: var(--fs-xl); margin: 0; }
.eyebrow {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--hk-pink-deep);
    margin: 0 0 var(--sp-2);
}
.lead { font-size: var(--fs-md); color: var(--hk-ink-2); max-width: 62ch; }
.muted { color: var(--hk-muted); }
.small { font-size: var(--fs-sm); }
.center { text-align: center; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: var(--sp-4); top: -60px; z-index: 2000;
    background: var(--hk-ink); color: #fff; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-sm); text-decoration: none;
}
.skip-link:focus { top: var(--sp-4); }

/* ---------------------------------------------------------------- layout helpers */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: 860px; }
.container.mid { max-width: 1080px; }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * .6); }
.section--soft { background: var(--hk-bg-soft); }
.section--warm { background: var(--hk-bg-warm); }
.stack > * + * { margin-top: var(--sp-4); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; justify-content: center; }
.grid-2 { display: grid; gap: var(--sp-6); }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: var(--sp-10); } }

@media (max-width: 1023.98px) { .hide-mobile { display: none !important; } }
@media (min-width: 1024px) { .hide-desktop { display: none !important; } }

.page-loading { display: grid; place-items: center; min-height: 40vh; gap: var(--sp-3); }
