/* Nunito local font */
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url('fonts/nunito-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url('fonts/nunito-latinext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --floor: #D9A86C;
    --floor-light: #F3DDB8;
    --rug: #2E6E8E;
    --felt: #2FA36B;
    --felt-dark: #23804F;
    --rim: #8A5A32;
    --panel: #FFF8EC;
    --panel-edge: #E6D5B8;
    --ink: #3A2E25;
    --ink-soft: #7A6A5A;
    --head-blue: #3D7FD9;
    --gold: #F2B233;
    --gold-dark: #B57A12;
    --red: #D6312F;
    --red-dark: #8E1A1A;
    --font: 'Nunito', ui-rounded, 'SF Pro Rounded', 'Arial Rounded MT Bold', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --shadow: 0 3px 0 rgba(58, 46, 37, 0.14), 0 8px 18px rgba(58, 46, 37, 0.18);
    --radius: 18px;
    --max: 1080px;
}

:lang(ja) { --font: ui-rounded, 'Hiragino Maru Gothic ProN', 'Hiragino Sans', 'Yu Gothic', sans-serif; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--floor-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--head-blue); }
a:hover { color: var(--rug); }

.wrap { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }

/* ---------- Topo ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 248, 236, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 2px solid var(--panel-edge);
}

.topbar .wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 64px;
}

.brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--ink);
    text-decoration: none;
    margin-right: auto;
}

.brand img { width: 38px; height: 38px; }

.nav { display: flex; gap: 1.2rem; align-items: center; }

.nav a {
    color: var(--ink-soft);
    font-weight: 800;
    text-decoration: none;
}

.nav a:hover { color: var(--ink); }

.lang-switch {
    display: inline-flex;
    border: 2px solid var(--panel-edge);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

.lang-switch button {
    font: inherit;
    font-weight: 800;
    font-size: .85rem;
    border: 0;
    background: transparent;
    color: var(--ink-soft);
    padding: .25rem .7rem;
    cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
    background: var(--head-blue);
    color: #fff;
}

/* ---------- Hero ---------- */
.hero {
    background:
        radial-gradient(ellipse at 70% 60%, rgba(255, 255, 255, .35), transparent 60%),
        var(--floor);
    border-bottom: 6px solid #C48F52;
    overflow: hidden;
}

.hero .wrap {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 2rem;
    padding-block: 4.5rem 4rem;
}

.hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    line-height: 1.05;
    margin: 0 0 1rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

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

.hero p.lead {
    font-size: 1.2rem;
    margin: 0 0 1.8rem;
    max-width: 34ch;
}

.hero-art { filter: drop-shadow(0 18px 24px rgba(58, 46, 37, .28)); }

/* ---------- Botões / selos das lojas ---------- */
.stores { display: flex; flex-wrap: wrap; gap: .8rem; }

.store {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    min-width: 168px;
    padding: .55rem 1.1rem .65rem;
    border-radius: 14px;
    background: var(--ink);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 0 #1E1712;
    transition: transform .12s ease, box-shadow .12s ease;
}

.store:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 6px 0 #1E1712; }
.store:active { transform: translateY(2px); box-shadow: 0 2px 0 #1E1712; }

.store small { font-size: .72rem; opacity: .8; font-weight: 700; line-height: 1.2; }
.store strong { font-size: 1.1rem; line-height: 1.25; }

.store[aria-disabled="true"] { cursor: default; background: #6B5D50; box-shadow: 0 4px 0 #4A3F35; }
.store[aria-disabled="true"]:hover { transform: none; }

/* ---------- Seções ---------- */
section { padding-block: 4.5rem; }

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 3.6vw, 2.5rem);
    font-weight: 900;
    margin: 0 0 .5rem;
}

.section-sub {
    text-align: center;
    color: var(--ink-soft);
    margin: 0 auto 2.8rem;
    max-width: 52ch;
    font-size: 1.1rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.3rem;
}

.card {
    color: var(--ink);
    background: var(--panel);
    border: 2px solid var(--panel-edge);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem 1.5rem 1.6rem;
}

.card .icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: .9rem;
    background: var(--c, var(--head-blue));
    box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .18);
}

.card h3 { margin: 0 0 .4rem; font-size: 1.2rem; font-weight: 900; }
.card p { margin: 0; color: var(--ink-soft); }

.c-green { --c: var(--felt); }
.c-gold { --c: var(--gold); }
.c-red { --c: var(--red); }
.c-blue { --c: var(--head-blue); }
.c-rug { --c: var(--rug); }
.c-orange { --c: #F29B30; }

/* Salões da carreira */
.venues-band { background: var(--rug); color: #fff; }
.venues-band .section-sub { color: rgba(255, 255, 255, .8); }

.venues {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    counter-reset: venue;
}

.venue {
    position: relative;
    border-radius: var(--radius);
    padding: 1.4rem 1.2rem 1.3rem;
    background: rgba(255, 255, 255, .1);
    border: 2px solid rgba(255, 255, 255, .18);
}

.venue::before {
    counter-increment: venue;
    content: counter(venue);
    position: absolute;
    top: -14px;
    left: 1.1rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 900;
    background: var(--gold);
    color: var(--ink);
    box-shadow: 0 3px 0 var(--gold-dark);
}

.venue h3 { margin: .3rem 0 .3rem; font-size: 1.15rem; }
.venue p { margin: 0; opacity: .85; font-size: .95rem; }
.venue .stars { color: var(--gold); letter-spacing: .15em; font-size: .9rem; }

/* Promessa justa */
.fair {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.fair li {
    display: flex;
    gap: .85rem;
    align-items: center;
    background: #fff;
    border-radius: 14px;
    padding: 1.1rem 1.25rem;
    border: 2px solid var(--panel-edge);
    font-weight: 700;
    line-height: 1.35;
    min-height: 76px;
}

.fair li span {
    flex: 1;
}

.fair li i.bi {
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--felt);
    color: #fff;
    font-size: .95rem;
}

/* Plataformas */
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.platform h3 { display: flex; align-items: center; gap: .5rem; }
.platform ul { margin: .6rem 0 0; padding-left: 1.1rem; color: var(--ink-soft); }

.tag {
    display: inline-block;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: .1rem .55rem;
    border-radius: 999px;
    background: var(--panel-edge);
    color: var(--ink);
}

/* FAQ / suporte */
.faq { max-width: 760px; margin-inline: auto; display: grid; gap: .8rem; }

.faq details {
    background: var(--panel);
    border: 2px solid var(--panel-edge);
    border-radius: 14px;
    padding: .9rem 1.2rem;
}

.faq summary {
    cursor: pointer;
    font-weight: 900;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i.bi { font-size: 1.1rem; color: var(--ink-soft); font-weight: 900; }
.faq details[open] summary i.bi::before { content: "\f2e2"; } /* bi-dash-lg */
.faq details p { margin: .6rem 0 0; color: var(--ink-soft); }

.contact-box {
    max-width: 760px;
    margin: 2rem auto 0;
    text-align: center;
    background: var(--gold);
    border-radius: var(--radius);
    padding: 1.4rem;
    box-shadow: 0 5px 0 var(--gold-dark);
    font-weight: 800;
}

.contact-box a { color: var(--ink); }

/* ---------- Rodapé ---------- */
footer {
    background: var(--ink);
    color: rgba(255, 255, 255, .75);
    padding-block: 2.2rem;
    font-size: .92rem;
}

footer .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    justify-content: space-between;
    align-items: center;
}

footer a { color: #fff; }
footer nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* ---------- Página de texto (política) ---------- */
.doc { padding-block: 3rem 4.5rem; }

.doc article {
    background: var(--panel);
    border: 2px solid var(--panel-edge);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: clamp(1.4rem, 4vw, 3rem);
    max-width: 860px;
    margin-inline: auto;
}

.doc h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.15; margin: 0 0 .3rem; font-weight: 900; }
.doc h2 { font-size: 1.35rem; margin: 2.2rem 0 .6rem; font-weight: 900; }
.doc h3 { font-size: 1.08rem; margin: 1.4rem 0 .4rem; }
.doc .updated { color: var(--ink-soft); margin: 0 0 1.5rem; font-weight: 700; }
.doc li { margin-bottom: .35rem; }

.doc .summary {
    background: #fff;
    border-left: 6px solid var(--felt);
    border-radius: 12px;
    padding: 1rem 1.3rem;
    margin: 1.2rem 0 1.5rem;
}

.doc .summary ul { margin: .4rem 0 0; padding-left: 1.2rem; }

.doc table { width: 100%; border-collapse: collapse; margin: .8rem 0; font-size: .95rem; }
.doc th, .doc td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--panel-edge); vertical-align: top; }
.doc th { background: #fff; }

.doc .toc { columns: 2; column-gap: 2rem; padding-left: 1.2rem; }

[hidden] { display: none !important; }

.nf { text-align: center; }
.nf img { margin: 0 auto 1rem; }

/* ---------- Responsivo ---------- */
@media (max-width: 860px) {
    .hero .wrap { grid-template-columns: 1fr; padding-block: 3rem; text-align: center; }
    .hero p.lead { margin-inline: auto; }
    .stores { justify-content: center; }
    .hero-art { max-width: 460px; margin-inline: auto; }
    .venues { grid-template-columns: repeat(2, 1fr); row-gap: 1.6rem; }
    .platforms { grid-template-columns: 1fr; }
    .nav a.hide-sm { display: none; }
    .doc .toc { columns: 1; }
}

@media (max-width: 520px) {
    .venues { grid-template-columns: 1fr; }
    .nav { gap: .7rem; }
    .brand span { display: none; }
    .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; }
    .doc thead { display: none; }
    .doc td:first-child { font-weight: 900; padding-bottom: 0; border: 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .store { transition: none; }
}
