/* Beida hub: 50/50 split landing. One radius system: pill buttons, 28px media. Single typeface: Outfit. */
@font-face {
    font-family: "Outfit";
    src: url("../fonts/outfit/outfit-latin.woff2") format("woff2");
    font-weight: 400 700;
    font-display: swap;
}

:root {
    --ink: #1b1620;
    --blush: #f5dcdf;
    --raspberry: #9c1137;   /* existing Beida brand colour, used for the baby CTA */
    --indigo: #1a2358;
    --marigold: #f2a900;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body.hub {
    font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--ink);
    -webkit-font-smoothing: antialiased;
}

.split {
    display: flex;
    min-height: 100dvh;
}

.pane {
    position: relative;
    flex: 1 1 0;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    transition: flex-grow 0.7s var(--ease);
    isolation: isolate;
}
.pane:hover, .pane:focus-visible { flex-grow: 1.22; }
.pane:focus-visible { outline: 4px solid var(--marigold); outline-offset: -8px; }

.pane--baby   { background: var(--blush); color: var(--ink); }
.pane--fabrics { background: var(--indigo); color: #fff; }

/* media layer */
.pane__media { position: absolute; inset: 0; z-index: -1; }
.pane__media--photo { background-size: cover; background-position: center 30%; }
.pane--fabrics .pane__media--photo { background-position: center 62%; transition: transform 1.4s var(--ease); }
.pane--fabrics:hover .pane__media--photo { transform: scale(1.04); }
.pane--fabrics .pane__media::before {   /* a light indigo wash so the shop photo sits with the brand instead of looking like stock */
    content: "";
    position: absolute; inset: 0;
    background: rgba(20, 30, 80, 0.22);
    mix-blend-mode: multiply;
}
.pane--fabrics .pane__media::after {   /* keeps the copy legible: deep at the bottom where the text sits, clear at the top */
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10, 14, 42, 0.94) 0%, rgba(10, 14, 42, 0.78) 26%, rgba(10, 14, 42, 0.25) 55%, rgba(10, 14, 42, 0) 72%);
}
.pane--fabrics .pane__body h2, .pane--fabrics .pane__body p { color: #fff; text-shadow: 0 2px 18px rgba(6, 10, 32, 0.55); }
.pane--fabrics .pane__body p { opacity: 1; }
.pane--baby .pane__media--photo::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(245, 220, 223, 0.95) 6%, rgba(245, 220, 223, 0) 58%);
}

/* baby: real product photos, white backgrounds dropped with multiply */
.products { position: absolute; inset: 0; background: var(--blush); } /* multiply needs a backdrop in the same stacking context */
.products img {
    position: absolute;
    mix-blend-mode: multiply;
    filter: brightness(1.05) contrast(1.05);
    width: min(36vw, 420px);
    height: auto;
    transition: transform 0.7s var(--ease);
}
.products .p1 { left: 50%; top: 9%;  width: min(30vw, 400px); transform: translateX(-50%) rotate(-3deg); }
.products .p2 { left: 4%;  top: 20%; width: min(22vw, 290px); transform: rotate(5deg); }
.products .p3 { right: 3%; top: 22%; width: min(20vw, 260px); transform: rotate(-6deg); }
.pane--baby:hover .p1 { transform: translateX(-50%) translateY(-10px) rotate(-1deg); }
.pane--baby:hover .p2 { transform: translateY(-8px) rotate(3deg); }
.pane--baby:hover .p3 { transform: translateY(-8px) rotate(-3deg); }

/* fabrics: wax-print tile (assets/stores/fabrics/pattern.svg) with fabric drape shading, until real photos are added at assets/stores/fabrics/hero.jpg */
.wax {
    position: absolute; inset: -4%;
    background: var(--indigo) url("../stores/fabrics/pattern.svg") center / clamp(300px, 30vw, 440px);
    transition: transform 1.4s var(--ease);
}
.wax::after {   /* soft folds so it reads as cloth, not wallpaper */
    content: "";
    position: absolute; inset: 0;
    background:
        linear-gradient(112deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0) 22%, rgba(8,12,48,0.28) 44%, rgba(255,255,255,0.10) 62%, rgba(8,12,48,0.30) 84%, rgba(255,255,255,0.08) 100%);
    mix-blend-mode: soft-light;
}
.pane--fabrics:hover .wax { transform: scale(1.06) rotate(-0.8deg); }

/* copy */
.pane__body {
    padding: clamp(1.5rem, 4vw, 4rem);
    padding-bottom: clamp(2.5rem, 7vh, 5rem);
    max-width: 38rem;
}
.pane__body h2 {
    font-size: clamp(2.5rem, 5.2vw, 4.75rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.02;
}
.pane__body p {
    margin-top: 0.9rem;
    font-size: clamp(1rem, 1.35vw, 1.2rem);
    line-height: 1.5;
    max-width: 32ch;
    text-wrap: balance;
    opacity: 0.92;
}
.cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.6rem;
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.cta span { transition: transform 0.25s var(--ease); }
.pane--baby .cta   { background: var(--raspberry); color: #fff; }
.pane--fabrics .cta { background: var(--marigold); color: var(--ink); }
.pane:hover .cta span { transform: translateX(5px); }
.pane:active .cta { transform: scale(0.97); }

/* seam badge */
.seam {
    position: fixed;
    left: 50%; top: clamp(1rem, 3vh, 2rem);
    transform: translateX(-50%);
    z-index: 2;
    display: grid; place-items: center;
    width: 5.5rem; height: 5.5rem;
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(27, 22, 32, 0.28);
}

/* entry motion: reveals the copy in order so the eye lands on name, then promise, then button */
@media (prefers-reduced-motion: no-preference) {
    .pane__body > * { transform: translateY(18px); animation: rise 0.9s var(--ease) forwards; }   /* motion only: the copy is never hidden */
    .pane__body > :nth-child(2) { animation-delay: 0.12s; }
    .pane__body > :nth-child(3) { animation-delay: 0.24s; }
    .pane--fabrics .pane__body > * { animation-delay: calc(var(--d, 0s) + 0.18s); }
    .products img { opacity: 0; animation: fade 1s var(--ease) 0.1s forwards; }
    .products .p2 { animation-delay: 0.25s; }
    .products .p3 { animation-delay: 0.4s; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    .pane, .products img, .wax, .cta, .cta span { transition: none; }
}

/* mobile: stacked halves, no hover growth */
@media (max-width: 767px) {
    .split { flex-direction: column; }
    .pane { min-height: 50dvh; }
    .pane:hover, .pane:focus-visible { flex-grow: 1; }
    .products .p1 { width: 46vw; top: 6%; }
    .products .p2 { width: 32vw; top: 10%; left: 2%; }
    .products .p3 { width: 30vw; top: 12%; right: 2%; }
    .seam { top: 50%; transform: translate(-50%, -50%); width: 4.25rem; height: 4.25rem; font-size: 1.05rem; position: fixed; }
    .pane__body { padding: 1.25rem 1.25rem 1.75rem; }
    .pane__body h2 { font-size: clamp(2rem, 9vw, 2.75rem); }
    .cta { margin-top: 1rem; padding: 0.75rem 1.3rem; }
}
