/* =========================================================
   BORN BABIES - Main Stylesheet
   Brand direction: Yellow + Red + Deep Navy
   No pure black. Mobile-first and reusable.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700&family=Nunito+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --bb-yellow: #ffd43b;
    --bb-yellow-soft: #fff8d8;
    --bb-red: #e53935;
    --bb-red-dark: #c92e2b;
    --bb-navy: #14213d;
    --bb-navy-2: #20365f;
    --bb-cream: #fffdf7;
    --bb-white: #ffffff;
    --bb-text: #26344d;
    --bb-muted: #667085;
    --bb-border: #eee5d1;
    --bb-shadow: 0 14px 40px rgba(20, 33, 61, 0.09);
    --bb-radius: 22px;
    --container: 1180px;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Nunito Sans", sans-serif;
    color: var(--bb-text);
    background: var(--bb-cream);
    line-height: 1.65;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(92%, var(--container));
    margin-inline: auto;
}

.section {
    padding: 88px 0;
}

.section-sm {
    padding: 56px 0;
}

.section-soft {
    background: var(--bb-yellow-soft);
}

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

.text-center {
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--bb-red);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 3px;
    border-radius: 20px;
    background: var(--bb-yellow);
}

h1, h2, h3, h4 {
    margin: 0 0 18px;
    color: var(--bb-navy);
    line-height: 1.15;
    font-weight: 800;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5.2rem);
    letter-spacing: -0.04em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: -0.025em;
}

h3 {
    font-size: 1.35rem;
}

p {
    margin: 0 0 18px;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 44px;
}

.section-heading.center {
    margin-inline: auto;
    text-align: center;
}

.section-heading p {
    color: var(--bb-muted);
    font-size: 1.05rem;
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 253, 247, .96);
    border-bottom: 1px solid rgba(238, 229, 209, .9);
    backdrop-filter: blur(12px);
}

.navbar {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    width: 120px;
    height: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--bb-navy);
    font-size: .92rem;
    font-weight: 700;
    transition: .2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--bb-red);
    background: var(--bb-yellow-soft);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: var(--bb-yellow);
    color: var(--bb-navy);
}

.mobile-menu {
    display: none;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 12px 22px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--bb-red);
    color: var(--bb-white);
    box-shadow: 0 10px 24px rgba(229, 57, 53, .18);
}

.btn-primary:hover {
    background: var(--bb-red-dark);
}

.btn-yellow {
    background: var(--bb-yellow);
    color: var(--bb-navy);
}

.btn-outline {
    border-color: var(--bb-navy);
    color: var(--bb-navy);
    background: transparent;
}

.btn-outline:hover {
    background: var(--bb-navy);
    color: var(--bb-white);
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 90px;
    background:
        radial-gradient(circle at 86% 12%, rgba(255, 212, 59, .34), transparent 26%),
        radial-gradient(circle at 5% 88%, rgba(229, 57, 53, .08), transparent 25%),
        var(--bb-cream);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 64px;
}

.hero-copy {
    max-width: 680px;
}

.hero-copy h1 span {
    color: var(--bb-red);
}

.hero-copy p {
    max-width: 620px;
    font-size: 1.12rem;
    color: var(--bb-muted);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero-visual {
    position: relative;
}

.hero-card {
    position: relative;
    min-height: 480px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 36px;
    background: var(--bb-yellow);
    box-shadow: var(--bb-shadow);
}

.hero-card::before,
.hero-card::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .38);
}

.hero-card::before {
    width: 260px;
    height: 260px;
    top: -100px;
    right: -60px;
}

.hero-card::after {
    width: 180px;
    height: 180px;
    bottom: -80px;
    left: -50px;
}

.hero-placeholder {
    position: relative;
    z-index: 1;
    width: 82%;
    min-height: 340px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 30px;
    background: var(--bb-white);
    overflow: hidden;
}

.hero-placeholder img {
    width: 100%;
    height: 100%;
    min-height: 340px;
    display: block;
    object-fit: cover;
}

/* ---------- Stats ---------- */

.stats {
    margin-top: -28px;
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--bb-white);
    border-radius: 22px;
    box-shadow: var(--bb-shadow);
    overflow: hidden;
}

.stat {
    padding: 28px 22px;
    text-align: center;
    border-right: 1px solid var(--bb-border);
}

.stat:last-child {
    border-right: 0;
}

.stat strong {
    display: block;
    color: var(--bb-red);
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 8px;
}

.stat span {
    color: var(--bb-muted);
    font-weight: 700;
    font-size: .9rem;
}

/* ---------- Cards ---------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.card {
    background: var(--bb-white);
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius);
    padding: 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(20, 33, 61, .04);
    transition: transform .25s ease, box-shadow .25s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--bb-shadow);
}

.icon-box {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border-radius: 17px;
    background: var(--bb-yellow-soft);
    color: var(--bb-red);
    font-size: 1.5rem;
}

.card p {
    color: var(--bb-muted);
    margin-bottom: 0;
}

/* ---------- Categories ---------- */

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

.category-card {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 24px;
    border-radius: 24px;
    background: var(--bb-white);
    border: 1px solid var(--bb-border);
    position: relative;
    overflow: hidden;
    transition: transform .25s ease;
}

.category-card::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    right: -38px;
    top: -38px;
    border-radius: 50%;
    background: var(--bb-yellow);
    opacity: .6;
}

.category-card img {
    width: 100%;
    height: 120px;
    display: block;
    object-fit: contain;
    margin-bottom: 18px;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card > * {
    position: relative;
    z-index: 1;
}

.category-card h3 {
    margin-top: auto;
    margin-bottom: 5px;
}

.category-card span {
    color: var(--bb-muted);
    font-size: .9rem;
}

/* ---------- Brand showcase ---------- */

.brand-showcase {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 50px;
    align-items: center;
}

.media-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 42px;
    align-items: center;
}

.media-copy .section-heading {
    margin-bottom: 18px;
}

.media-copy .section-heading:last-child,
.media-copy p:last-child {
    margin-bottom: 0;
}

.media-card {
    overflow: hidden;
    border-radius: 30px;
    border: 1px solid var(--bb-border);
    background: var(--bb-white);
    box-shadow: var(--bb-shadow);
}

.media-card img {
    width: 100%;
    min-height: 360px;
    display: block;
    object-fit: cover;
}

.media-card.contain {
    background:
        radial-gradient(circle at top left, rgba(255, 212, 59, .3), transparent 36%),
        linear-gradient(180deg, #fffaf0 0%, #ffffff 100%);
}

.media-card.contain img {
    object-fit: contain;
    padding: 26px;
}

.card .media-card + h3 {
    margin-top: 24px;
}

.media-grid {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 20px;
    align-items: stretch;
}

.logo-media-card {
    display: grid;
    place-items: center;
    padding: 30px;
    border-radius: 30px;
    border: 1px solid var(--bb-border);
    background: linear-gradient(180deg, #fff7bf 0%, #fffdf2 100%);
    box-shadow: var(--bb-shadow);
}

.logo-media-card img {
    width: min(100%, 320px);
    min-height: auto;
    object-fit: contain;
}

.brand-panel {
    padding: 44px;
    border-radius: 30px;
    background: var(--bb-navy);
    color: var(--bb-white);
}

.brand-panel h2,
.brand-panel h3 {
    color: var(--bb-white);
}

.brand-panel p {
    color: rgba(255,255,255,.78);
}

.brand-visual {
    min-height: 360px;
    display: grid;
    place-items: center;
    border-radius: 30px;
    background: var(--bb-yellow);
}

.brand-logo-placeholder {
    width: 75%;
    min-height: 230px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: var(--bb-white);
    text-align: center;
}

.brand-logo-placeholder strong {
    font-family: "Baloo 2", sans-serif;
    font-size: 2.7rem;
    color: var(--bb-red);
}

/* ---------- Store cards ---------- */

.store-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.store-card {
    background: var(--bb-white);
    border: 1px solid var(--bb-border);
    border-radius: 22px;
    padding: 26px;
}

.store-card .location {
    color: var(--bb-red);
    font-weight: 800;
    margin-bottom: 8px;
}

.store-card p {
    color: var(--bb-muted);
}

.store-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.store-actions .btn {
    min-height: 42px;
    padding: 9px 16px;
    font-size: .86rem;
}

/* ---------- CTA ---------- */

.cta {
    padding: 70px 0;
}

.cta-box {
    position: relative;
    overflow: hidden;
    padding: 58px;
    border-radius: 32px;
    background: var(--bb-yellow);
    text-align: center;
}

.cta-box::before,
.cta-box::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.35);
}

.cta-box::before {
    width: 190px;
    height: 190px;
    left: -70px;
    bottom: -90px;
}

.cta-box::after {
    width: 160px;
    height: 160px;
    right: -50px;
    top: -70px;
}

.cta-box > * {
    position: relative;
    z-index: 1;
}

.cta-box p {
    max-width: 650px;
    margin: 0 auto 26px;
    color: var(--bb-navy-2);
}

/* ---------- Page hero ---------- */

.page-hero {
    padding: 72px 0;
    background: var(--bb-yellow-soft);
    border-bottom: 1px solid var(--bb-border);
}

.page-hero .section-heading {
    margin-bottom: 0;
}

.page-hero-banner {
    margin-top: 28px;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid var(--bb-border);
    box-shadow: var(--bb-shadow);
}

.page-hero-banner img {
    width: 100%;
    max-height: 360px;
    display: block;
    object-fit: cover;
}

.contact-hero {
    padding-bottom: 72px;
}

.contact-hero-card {
    background:
        radial-gradient(circle at 86% 12%, rgba(255, 255, 255, .42), transparent 26%),
        radial-gradient(circle at 10% 86%, rgba(229, 57, 53, .10), transparent 24%),
        var(--bb-yellow);
}

.contact-hero-placeholder {
    background: linear-gradient(180deg, #fffdf7 0%, #fff7dd 100%);
    padding: 18px;
}

.contact-hero-placeholder img {
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: contain;
}

.store-filter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    align-items: end;
    gap: 22px;
    margin-bottom: 28px;
    padding: 24px 28px;
    border: 1px solid var(--bb-border);
    border-radius: 24px;
    background: rgba(255, 255, 255, .78);
}

.store-filter-copy p {
    margin: 10px 0 0;
    color: var(--bb-muted);
}

.store-search {
    width: 100%;
    max-width: none;
    margin-top: 0;
    min-height: 56px;
    background: var(--bb-white);
}

/* ---------- Forms ---------- */

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 800;
    color: var(--bb-navy);
}

.form-control {
    width: 100%;
    border: 1px solid var(--bb-border);
    border-radius: 14px;
    background: var(--bb-white);
    color: var(--bb-text);
    padding: 13px 15px;
    outline: 0;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.form-control:focus {
    border-color: var(--bb-yellow);
    box-shadow: 0 0 0 4px rgba(255,212,59,.18);
}

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

.map-embed {
    margin: 22px 0;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid var(--bb-border);
}

.map-embed iframe {
    width: 100%;
    height: 280px;
    display: block;
    border: 0;
}

/* ---------- Footer ---------- */

.site-footer {
    background: var(--bb-navy);
    color: rgba(255,255,255,.78);
    padding: 68px 0 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand img {
    width: 130px;
    background: var(--bb-white);
    border-radius: 14px;
    padding: 5px;
    margin-bottom: 16px;
}

.footer-brand p {
    max-width: 330px;
}

.footer-title {
    color: var(--bb-yellow);
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.footer-links {
    display: grid;
    gap: 9px;
}

.footer-links a:hover {
    color: var(--bb-yellow);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 28px;
    margin-top: 42px;
    border-top: 1px solid rgba(255,255,255,.12);
    font-size: .88rem;
}

/* ---------- Floating WhatsApp ---------- */

.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 900;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--bb-red);
    color: var(--bb-white);
    box-shadow: 0 12px 30px rgba(229,57,53,.28);
    font-weight: 900;
}

/* ---------- Reveal animation ---------- */

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .65s ease, transform .65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */

@media (max-width: 1050px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: grid;
        place-items: center;
    }

    .mobile-menu {
        position: absolute;
        left: 0;
        right: 0;
        top: 82px;
        display: block;
        background: var(--bb-white);
        border-bottom: 1px solid var(--bb-border);
        box-shadow: var(--bb-shadow);
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
    }

    .mobile-menu.open {
        max-height: 620px;
    }

    .mobile-menu a {
        display: block;
        padding: 14px 4%;
        color: var(--bb-navy);
        font-weight: 800;
        border-bottom: 1px solid #f5efdf;
    }

    .hero-grid,
    .brand-showcase,
    .media-split {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        max-width: 700px;
        width: 100%;
        margin-inline: auto;
    }

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

    .stat:nth-child(2) {
        border-right: 0;
    }

    .stat:nth-child(-n+2) {
        border-bottom: 1px solid var(--bb-border);
    }

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

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

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

    .store-filter {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

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

@media (max-width: 680px) {
    .section {
        padding: 62px 0;
    }

    .navbar {
        min-height: 72px;
    }

    .logo img {
        width: 96px;
    }

    .mobile-menu {
        top: 72px;
    }

    .nav-actions .btn {
        display: none;
    }

    .hero {
        padding: 48px 0 68px;
    }

    .hero-card {
        min-height: 340px;
    }

    .hero-placeholder {
        min-height: 250px;
    }

    .stats-grid,
    .category-grid,
    .store-grid,
    .card-grid,
    .form-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .stat {
        border-right: 0;
        border-bottom: 1px solid var(--bb-border);
    }

    .stat:last-child {
        border-bottom: 0;
    }

    .brand-panel {
        padding: 30px;
    }

    .cta-box {
        padding: 42px 24px;
    }

    .footer-bottom {
        flex-direction: column;
    }

    h1 {
        font-size: 2.65rem;
    }

    .hero-buttons,
    .store-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }
}

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