/* ══════════════════════════════════════════════════════════════════
   Bubblelê — Design System & Layout (performance-optimised)
   ══════════════════════════════════════════════════════════════════ */

/* ── Tokens ── */
:root {
    --primary:              #a43b2c;
    --primary-container:    #ff7f6a;
    --on-primary:           #ffffff;
    --on-primary-container: #73180c;
    --secondary:            #3a646f;
    --secondary-container:  #bbe7f3;
    --background:           #f9f9f7;
    --surface:              #f9f9f7;
    --surface-container-low:#f4f4f2;
    --surface-container:    #eeeeec;
    --on-surface:           #1a1c1b;
    --on-surface-variant:   #57423e;
    --pastel-pink:          #FCE4EC;
    --bubble-blue:          #E3F2FD;
    --mint-glaze:           #E8F5E9;
    --radius-card:          2rem;
    --radius-pill:          9999px;
    /* shadow uses opacity instead of blur for perf */
    --shadow-soft:          0 4px 24px rgba(164, 59, 44, 0.07),
                            0 1px 4px  rgba(164, 59, 44, 0.04);
    --shadow-btn:           0 6px 20px rgba(164, 59, 44, 0.22),
                            inset 0 0 0 1px rgba(255,255,255,.18);
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--background);
    color: var(--on-surface);
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Bubble Background ──
   Static CSS gradient — cheap, no JS, no filter repaints.
── */
body.bubble-bg {
    background-image:
        radial-gradient(ellipse 60% 50% at 15% 25%, rgba(227,242,253,.5) 0%, transparent 100%),
        radial-gradient(ellipse 55% 45% at 85% 75%, rgba(252,228,236,.5) 0%, transparent 100%);
    background-color: var(--background);
    background-attachment: local;
    min-height: 100vh;
}

/* ── Glass panels ──
   backdrop-filter kept ONLY on the navbar (single fixed layer = fine).
   Cards and panels use an opaque semi-transparent fill instead — identical
   look, ~80% less compositing work.
── */
.glass-panel {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, .7);
}

/* ── Container ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* ── Buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: var(--on-primary);
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 700;
    font-size: .95rem;
    box-shadow: var(--shadow-btn);
    transition: filter .18s, transform .14s;
    white-space: nowrap;
}
.btn-primary:hover  { filter: brightness(1.1); transform: translateY(-2px); }
.btn-primary:active { transform: scale(.97); }

.btn-primary.btn-large { padding: 18px 40px; font-size: 1.05rem; }

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    color: var(--primary);
    border: 1.5px solid rgba(164,59,44,.2);
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 700;
    font-size: .95rem;
    transition: background .18s, transform .14s;
    white-space: nowrap;
}
.btn-outline:hover  { background: var(--surface-container); transform: translateY(-2px); }
.btn-outline:active { transform: scale(.97); }

.btn-toy {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--surface-container);
    color: var(--primary);
    padding: 14px 0;
    border-radius: var(--radius-pill);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: .875rem;
    /* box-shadow only — no transform on hover (avoids compositing toy grid) */
    transition: background .18s, color .18s, box-shadow .18s;
    box-shadow: 0 2px 8px rgba(164,59,44,.1);
}
.btn-toy:hover {
    background: var(--primary);
    color: var(--on-primary);
    box-shadow: 0 6px 20px rgba(164,59,44,.25);
}

/* ═══════════════════════════════════
   NAVBAR
   ─ Only element allowed backdrop-filter;
     promoted to its own GPU layer with
     transform: translateZ(0).
═══════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255,255,255,.82);
    /* single blur on a fixed element = one cheap composited layer */
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transform: translateZ(0);          /* promote to GPU layer once */
    box-shadow: 0 1px 0 rgba(164,59,44,.06), 0 4px 16px rgba(164,59,44,.05);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.nav-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.nav-logo-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav-links a {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 500;
    color: var(--on-surface-variant);
    font-size: .95rem;
    transition: color .18s;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 2px;
}

.nav-cta { flex-shrink: 0; }

#mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
    padding: 4px;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: rgba(255,255,255,.97);
    border-top: 1px solid rgba(164,59,44,.08);
    padding: 20px 24px 24px;
}
.mobile-menu.open { display: flex; }
.mobile-nav-links { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.mobile-nav-links a {
    padding: 10px 0;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 500;
    color: var(--on-surface-variant);
    font-size: 1rem;
    border-bottom: 1px solid rgba(0,0,0,.05);
}
.mobile-nav-links a:last-child { border-bottom: none; }
.mobile-ctas .btn-primary { width: 100%; justify-content: center; }

@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    #mobile-toggle { display: block; }
}

/* ═══════════════════════════════════
   HERO
═══════════════════════════════════ */
.hero-section {
    padding: 100px 0 64px;
}
@media (min-width: 769px) { .hero-section { padding: 120px 0 96px; } }

.hero-inner {
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding: 40px 32px;
    border-radius: 2rem;
    box-shadow: var(--shadow-soft);
}
@media (min-width: 769px) {
    .hero-inner {
        flex-direction: row;
        align-items: center;
        padding: 56px 64px;
    }
}

.hero-text { flex: 1; display: flex; flex-direction: column; gap: 20px; }

.hero-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--primary-container);
    line-height: 1.15;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--on-surface-variant);
    max-width: 480px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 8px;
}

.hero-image-wrap {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 280px;
}

.hero-image-circle {
    width: min(380px, 90%);
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    border: 8px solid rgba(255,255,255,.7);
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 1;
}
.hero-image-circle img { width: 100%; height: 100%; object-fit: cover; }

/* Blobs: plain divs with border-radius + background — no filter blur.
   Same feel, zero GPU compositing cost. */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    opacity: .55;
}
.hero-blob-blue {
    width: 160px; height: 160px;
    background: var(--bubble-blue);
    top: -24px; right: -24px;
}
.hero-blob-pink {
    width: 200px; height: 200px;
    background: var(--pastel-pink);
    bottom: -24px; left: -24px;
}

/* ═══════════════════════════════════
   FEATURES
═══════════════════════════════════ */
.features-section {
    background: var(--surface-container-low);
    padding: 64px 0;
}
@media (min-width: 769px) { .features-section { padding: 96px 0; } }

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 769px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
    padding: 36px 28px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
}

.feature-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}
.feature-icon-pink  { background: var(--pastel-pink); }
.feature-icon-blue  { background: var(--bubble-blue); }
.feature-icon-mint  { background: var(--mint-glaze); }

.feature-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-container);
}
.feature-desc {
    color: var(--on-surface-variant);
    font-size: .93rem;
    line-height: 1.6;
}

/* ═══════════════════════════════════
   SECTION HEADER
═══════════════════════════════════ */
.section-header {
    text-align: center;
    margin-bottom: 52px;
}
.section-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--primary-container);
    margin-bottom: 12px;
}
.section-sub {
    font-size: 1.05rem;
    color: var(--on-surface-variant);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ═══════════════════════════════════
   TOYS
═══════════════════════════════════ */
.toys-section { padding: 64px 0; }
@media (min-width: 769px) { .toys-section { padding: 96px 0; } }

.toys-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 769px) { .toys-grid { grid-template-columns: repeat(3, 1fr); } }

.toy-card {
    border-radius: 2.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    /* box-shadow transition only — no transform = no extra layer per card */
    transition: box-shadow .25s;
}
.toy-card:hover {
    box-shadow: 0 8px 32px rgba(164,59,44,.13), 0 2px 6px rgba(164,59,44,.06);
}

.toy-img-wrap {
    height: 240px;
    overflow: hidden;
    padding: 20px;
}
.toy-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.5rem;
    /* image scale on hover with contain so only this img repaints */
    transition: transform .45s ease;
    will-change: transform;
}
.toy-card:hover .toy-img-wrap img { transform: scale(1.04); }

.toy-img-pink    { background: rgba(252,228,236,.4); }
.toy-img-surface { background: rgba(238,238,236,.55); }
.toy-img-blue    { background: rgba(227,242,253,.4); }

.toy-body {
    padding: 24px 28px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
}
.toy-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-container);
}
.toy-desc {
    color: var(--on-surface-variant);
    font-size: .93rem;
    line-height: 1.65;
    flex: 1;
}

/* ═══════════════════════════════════
   MISSÃO
═══════════════════════════════════ */
.missao-section { padding: 48px 0; }
@media (min-width: 769px) { .missao-section { padding: 72px 0; } }

.missao-panel {
    padding: 52px 36px;
    border-radius: 3rem;
    box-shadow: var(--shadow-soft);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
@media (min-width: 769px) { .missao-panel { padding: 72px 80px; } }

.missao-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
}
.missao-text {
    font-size: 1.12rem;
    color: var(--on-surface-variant);
    line-height: 1.75;
    max-width: 640px;
    margin: 0 auto;
}

/* ═══════════════════════════════════
   CTA / CONTATO
═══════════════════════════════════ */
.cta-section { padding: 32px 0 80px; }
@media (min-width: 769px) { .cta-section { padding: 48px 0 96px; } }

.cta-panel {
    padding: 52px 36px;
    border-radius: 3rem;
    box-shadow: var(--shadow-soft);
    text-align: center;
    /* gradient via background-color + border — no compositing */
    background: linear-gradient(135deg, rgba(255,255,255,.95) 0%, rgba(252,228,236,.55) 100%);
    border: 1px solid rgba(255,255,255,.7);
}
@media (min-width: 769px) { .cta-panel { padding: 68px 80px; } }

.cta-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 14px;
}
.cta-sub {
    font-size: 1.08rem;
    color: var(--on-surface-variant);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* ═══════════════════════════════════
   FOOTER
═══════════════════════════════════ */
#site-footer {
    background: var(--surface-container-low);
    border-top: 1px solid rgba(26,28,27,.05);
    padding: 64px 0;
}
@media (min-width: 769px) { #site-footer { padding: 88px 0; } }

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 44px;
}
@media (min-width: 769px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-logo {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 14px;
}
.footer-tagline {
    color: var(--on-surface-variant);
    font-size: .9rem;
    line-height: 1.6;
    max-width: 340px;
    margin-bottom: 22px;
}
.footer-socials { display: flex; gap: 12px; }
.social-btn {
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    transition: box-shadow .18s;
}
.social-btn:hover { box-shadow: 0 4px 16px rgba(164,59,44,.18); }

.footer-col-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 18px;
}
.footer-links-list { display: flex; flex-direction: column; gap: 10px; }
.footer-links-list a {
    color: var(--on-surface-variant);
    font-size: .93rem;
    transition: color .18s;
}
.footer-links-list a:hover { color: var(--primary); }

.footer-contact { display: flex; flex-direction: column; gap: 14px; }
.footer-contact p { font-size: .93rem; color: var(--on-surface-variant); line-height: 1.5; }
.footer-contact strong { color: var(--primary); display: block; margin-bottom: 3px; }
.footer-contact a { color: var(--on-surface-variant); transition: color .18s; }
.footer-contact a:hover { color: var(--primary); }

/* ═══════════════════════════════════
   FLOATING WHATSAPP BUTTON
   will-change applied here because
   it's a single element that scales —
   browser pins it to its own layer.
═══════════════════════════════════ */
.whatsapp-fab {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: var(--on-primary);
    padding: 16px 20px;
    border-radius: var(--radius-pill);
    box-shadow: 0 8px 28px rgba(164,59,44,.3);
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 700;
    font-size: .9rem;
    transition: transform .18s, box-shadow .18s;
    will-change: transform;
    overflow: hidden;
}
.whatsapp-fab:hover {
    transform: scale(1.06);
    box-shadow: 0 12px 36px rgba(164,59,44,.38);
}
.fab-label {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width .35s ease;
}
.whatsapp-fab:hover .fab-label { max-width: 120px; }

/* ═══════════════════════════════════
   ENTRY CONTENT (blog/page)
═══════════════════════════════════ */
.entry-content h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.8rem; margin: 1.5em 0 .6em; color: var(--primary-container); }
.entry-content p  { color: var(--on-surface-variant); line-height: 1.7; margin-bottom: 1em; }
.entry-content a  { color: var(--primary); text-decoration: underline; }

/* ── Reduced motion preference ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
