:root {
    --ink: #14323c;
    --muted: #4d6670;
    --paper: #f3f7f8;
    --paper-2: #e5eef1;
    --white: #f8fbfc;
    --line: rgba(20, 50, 60, .12);
    --teal: #2e90b1;
    --teal-deep: #14556c;
    --sun: #e0a22a;
    --sun-deep: #a07619;
    --green: #46b161;
    --clay: #1f7f9e;
    --berry: #2f8f4c;
    --sage: #46b161;
    --wood: #c48a1e;
    --shadow: 0 24px 50px rgba(20, 50, 60, .12);
    --serif: "Fraunces", "Iowan Old Style", Palatino, serif;
    --sans: "Outfit", "Segoe UI", sans-serif;
    --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(1200px 500px at 90% -10%, rgba(224, 162, 42, .22), transparent 55%),
        radial-gradient(900px 420px at -10% 20%, rgba(46, 144, 177, .18), transparent 50%),
        var(--paper);
    font-family: var(--sans);
    font-weight: 340;
    font-size: 1.05rem;
    line-height: 1.55;
}
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -.03em; line-height: 1.08; scroll-margin-top: 96px; }
h1 { font-size: clamp(2.6rem, 6vw, 5.3rem); margin: .2em 0 .35em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); margin: 0 0 .4em; }
p { margin: 0 0 1em; }
.sr, .skip {
    position: absolute;
    left: -999px;
}
.skip:focus {
    left: 1rem;
    top: 1rem;
    z-index: 20;
    background: var(--ink);
    color: white;
    padding: .6rem 1rem;
}

.wrap { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 2rem)); }

.nav {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(16px);
    background: rgba(243, 247, 248, .96);
    border-bottom: 1px solid transparent;
}
.nav.is-stuck { border-bottom-color: var(--line); }
.nav-inner {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.brand { display: flex; gap: .75rem; align-items: center; text-decoration: none; }
.brand strong { display: block; font-family: var(--serif); font-size: 1.25rem; letter-spacing: -.03em; }
.brand small { color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-size: .68rem; }
.brand-logo { width: 52px; height: auto; display: block; }
.brand-foot .brand-logo { width: 44px; }
.menu { display: flex; align-items: center; gap: .3rem; }
.menu a {
    text-decoration: none;
    padding: .55rem .8rem;
    border-radius: 999px;
    color: var(--ink);
}
.menu a.is-on, .menu a:hover { background: rgba(20, 50, 60, .06); }
.menu-cta { background: var(--teal-deep) !important; color: #f8fbfc !important; }
.menu-cta:hover { background: var(--teal) !important; }
.nav-toggle {
    display: none;
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--white);
}
.nav-toggle i { display: block; height: 2px; margin: 6px 12px; background: var(--ink); }

.kicker {
    display: flex; align-items: center; gap: .6rem;
    text-transform: uppercase; letter-spacing: .14em;
    font-size: .75rem; color: var(--teal-deep); margin: 0 0 .8rem;
}
.kicker span { width: 28px; height: 2px; background: var(--sun); display: inline-block; }
.lead { font-size: 1.18rem; max-width: 42rem; color: var(--muted); }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none; border: 0; cursor: pointer;
    border-radius: 999px; padding: .9rem 1.25rem;
    font: inherit; font-weight: 580;
}
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: #f0c15a; }
.btn-line { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(28,25,21,.3); }
.btn-line-light { color: white; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.45); }
.btn-teal { background: var(--teal); color: white; }
.btn-block { width: 100%; margin-top: .5rem; }
.text-link { color: var(--teal-deep); font-weight: 580; }

.hero { position: relative; overflow: hidden; padding: 2.2rem 0 3rem; }
.azulejo {
    position: absolute; inset: auto -80px -120px auto;
    width: 420px; height: 420px; opacity: .35; pointer-events: none;
    background:
        linear-gradient(45deg, transparent 46%, rgba(46,144,177,.4) 47% 53%, transparent 54%),
        linear-gradient(-45deg, transparent 46%, rgba(70,177,97,.35) 47% 53%, transparent 54%);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle, #000 40%, transparent 72%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem; align-items: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.4rem 0 1.6rem; }
.facts { display: flex; gap: 1.4rem; margin: 0; }
.facts div { min-width: 7rem; }
.facts dt { font-family: var(--serif); font-size: 2.4rem; font-weight: 560; }
.facts dd { margin: 0; color: var(--muted); }

.hero-art { position: relative; min-height: 420px; }
.sunflower {
    width: 280px; height: 280px; margin: 40px auto; position: relative;
    animation: sway 8s ease-in-out infinite;
}
.sunflower i {
    position: absolute; left: 50%; top: 50%; width: 54px; height: 110px;
    margin: -96px 0 0 -27px; border-radius: 60px 60px 40px 40px;
    background: linear-gradient(#d8f3ea, #46b161);
    transform-origin: 50% 96px;
}
.sunflower i:nth-child(odd) { background: linear-gradient(#d7f3f8, #2e90b1); }
.sunflower i:nth-child(1) { transform: rotate(0deg); }
.sunflower i:nth-child(2) { transform: rotate(45deg); }
.sunflower i:nth-child(3) { transform: rotate(90deg); }
.sunflower i:nth-child(4) { transform: rotate(135deg); }
.sunflower i:nth-child(5) { transform: rotate(180deg); }
.sunflower i:nth-child(6) { transform: rotate(225deg); }
.sunflower i:nth-child(7) { transform: rotate(270deg); }
.sunflower i:nth-child(8) { transform: rotate(315deg); }
.sunflower b {
    position: absolute; inset: 92px; border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #f3cc6a, #e0a22a 62%, #a07619);
    box-shadow: 0 10px 30px rgba(20, 50, 60, .18);
}
.selo {
    position: absolute; background: var(--white); border-radius: 999px;
    padding: .55rem .9rem; box-shadow: var(--shadow); font-size: .92rem;
}
.selo-a { top: 18px; left: 0; }
.selo-b { right: 0; top: 46%; background: var(--teal-deep); color: white; }
.selo-c { left: 12%; bottom: 24px; background: var(--sun); }

@keyframes sway {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(3deg); }
}

.section { padding: 4.2rem 0; }
.section-tight { padding-top: 0; }
.section-balcao { padding: .4rem 0 0; }

.balcao-card {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(16rem, .75fr);
    gap: 1.4rem 2rem;
    align-items: center;
    background: var(--white);
    border-radius: 32px;
    padding: 1.1rem 1.6rem 1.1rem 1.2rem;
    box-shadow: inset 0 0 0 1px var(--line);
}
.balcao-card img {
    display: block;
    width: 100%;
    height: auto;
}
.balcao-copy h2 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
.balcao-copy p:last-of-type { color: var(--muted); margin-bottom: 1rem; }
.balcao-soon {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .4rem .85rem;
    background: #e7f6ec;
    color: #1d6a36;
    font-weight: 580;
    font-size: .92rem;
}
.section-head { max-width: 40rem; margin-bottom: 1.6rem; }
.section-head p:last-child { color: var(--muted); }

.patio {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
}
.patio .room { grid-column: span 3; }
.patio .room:nth-child(n + 5) { grid-column: span 4; }
.room {
    display: flex; flex-direction: column; gap: .45rem;
    text-decoration: none; color: var(--ink);
    background: var(--white); border-radius: var(--radius);
    padding: 1.3rem 1.3rem 1.15rem;
    min-height: 210px;
    box-shadow: inset 0 0 0 1px var(--line);
    position: relative; overflow: hidden;
    transition: transform .25s ease;
}
.room:hover { transform: translateY(-4px); }
.patio .room strong { font-size: 1.45rem; }
.room-icon { width: 48px; height: 48px; }
.room-icon svg { width: 48px; height: 48px; }
.room-cat { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; color: var(--muted); }
.room strong { font-family: var(--serif); font-size: 1.7rem; font-weight: 560; letter-spacing: -.03em; }
.room em { font-style: normal; color: var(--muted); }
.room-go { margin-top: auto; font-weight: 580; }
.room::after {
    content: ""; position: absolute; right: -30px; bottom: -40px;
    width: 140px; height: 140px; border-radius: 50%; opacity: .18;
}
.tom-sun { color: #6d5210; } .tom-sun::after { background: var(--sun); }
.tom-teal::after { background: var(--teal); }
.tom-clay::after { background: var(--clay); }
.tom-berry::after { background: var(--berry); }
.tom-sage::after { background: var(--sage); }
.tom-wood::after { background: var(--wood); }
.tom-ink::after { background: var(--ink); }
.room.tom-sun { background: linear-gradient(180deg, #fff6e2, #f8fbfc); }
.room.tom-teal { background: linear-gradient(180deg, #e5f4f8, #f8fbfc); }
.room.tom-clay { background: linear-gradient(180deg, #e3f1f6, #f8fbfc); }
.room.tom-berry { background: linear-gradient(180deg, #e5f6ea, #f8fbfc); }
.room.tom-sage { background: linear-gradient(180deg, #e7f7ec, #f8fbfc); }
.room.tom-wood { background: linear-gradient(180deg, #fbf3e2, #f8fbfc); }
.room.tom-ink { background: linear-gradient(180deg, #e7eef1, #f8fbfc); }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 14px; }
.panel { border-radius: 32px; padding: 2rem; min-height: 320px; }
.panel-story { background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }

.report-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.report-card, .report-more {
    background: var(--white); border-radius: 24px; padding: 1.3rem;
    box-shadow: inset 0 0 0 1px var(--line); text-decoration: none;
    display: flex; flex-direction: column; gap: .4rem; min-height: 180px;
}
.report-card span, .report-line span { font-family: var(--serif); font-size: 2rem; }
.report-card a { margin-top: auto; font-weight: 580; color: var(--teal-deep); }
.report-card em { margin-top: auto; color: var(--muted); font-style: normal; font-size: .95rem; }
.report-more { justify-content: flex-end; background: var(--ink); color: white; font-family: var(--serif); font-size: 1.6rem; }

.page-hero { padding: 3.2rem 0 1rem; }
.page-hero-sun { background: linear-gradient(#ffe9b8, transparent); }
.page-hero-teal { background: linear-gradient(#d4eef6, transparent); }
.page-hero-clay { background: linear-gradient(#d7ebf3, transparent); }
.page-hero-berry { background: linear-gradient(#d8f3e0, transparent); }
.page-hero-sage { background: linear-gradient(#d9f5e2, transparent); }
.page-hero-wood { background: linear-gradient(#f8e8c4, transparent); }
.page-hero-ink { background: linear-gradient(#dce6ea, transparent); }

.prose-grid { display: grid; grid-template-columns: 1.4fr .7fr; gap: 2rem; align-items: start; }
.prose h2 { margin-top: 1.4em; font-size: 1.8rem; }
.ticks { padding: 0; margin: 0 0 1rem; list-style: none; }
.ticks li { padding: .45rem 0 .45rem 1.5rem; position: relative; border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); position: absolute; left: 0; top: .85rem; }

.side-card, .organs article {
    background: var(--white); border-radius: 28px; padding: 1.3rem 1.3rem 1.1rem;
    box-shadow: inset 0 0 0 1px var(--line);
}
.side-sticky { position: sticky; top: 96px; }
.side-card ul, .ficha { list-style: none; padding: 0; margin: 0 0 1rem; }
.side-card li, .ficha li { display: flex; flex-direction: column; gap: .15rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.side-card li span, .ficha li span { color: var(--muted); font-size: .85rem; }
.organs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.organs li { display: block; }
.organs li span { display: block; color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.after-organs { margin-top: 1.4rem; }

.valence-list { display: flex; flex-direction: column; gap: 14px; }
.valence {
    display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center;
    text-decoration: none; background: var(--white); border-radius: 28px; padding: 1.2rem 1.3rem;
    box-shadow: inset 0 0 0 1px var(--line);
}
.valence h2 { font-size: 2rem; margin: .1rem 0 .3rem; }
.valence p { color: var(--muted); margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: .8rem 0 0; list-style: none; }
.chips li { background: rgba(28,25,21,.05); border-radius: 999px; padding: .25rem .7rem; font-size: .88rem; }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mini { display: flex; flex-direction: column; gap: .3rem; text-decoration: none; background: var(--white); border-radius: 22px; padding: 1.1rem; box-shadow: inset 0 0 0 1px var(--line); }
.mini strong { font-family: var(--serif); font-size: 1.35rem; }

.contact-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.2rem; }
.form, .report-line {
    background: var(--white); border-radius: 28px; padding: 1.3rem;
    box-shadow: inset 0 0 0 1px var(--line);
}
.form label, .admin-form label { display: flex; flex-direction: column; gap: .35rem; font-weight: 460; margin-bottom: .85rem; }
input, select, textarea {
    font: inherit; color: inherit; background: #fff;
    border: 1px solid rgba(28,25,21,.16); border-radius: 14px; padding: .8rem .9rem; width: 100%;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--sun); border-color: transparent; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.form-note { color: var(--muted); font-size: .92rem; }
.form { position: relative; }
.hp {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.contact-side { display: flex; flex-direction: column; gap: 14px; }
.map-frame { border-radius: 28px; overflow: hidden; min-height: 240px; box-shadow: inset 0 0 0 1px var(--line); }
.map-frame iframe { width: 100%; height: 260px; border: 0; }
.phone-grid { margin-top: 1.4rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.phone-grid article { background: rgba(255,253,248,.7); border-radius: 20px; padding: 1rem 1.1rem; box-shadow: inset 0 0 0 1px var(--line); }
.phone-grid h3 { margin: 0 0 .4rem; font-size: 1.25rem; }
.phone-grid p { margin: 0 0 .35rem; color: var(--muted); font-size: .95rem; }

.report-stack {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 18px;
    box-shadow: inset 0 0 0 1px var(--line);
    overflow: hidden;
}
.report-line { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.report-stack .report-line {
    padding: .9rem 1.15rem;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    border-bottom: 1px solid var(--line);
    gap: 1rem;
}
.report-stack .report-line:last-child { border-bottom: 0; }
.report-stack .report-line:hover { background: #f7fbfc; }
.report-stack .report-line > div { display: flex; align-items: center; gap: .85rem; min-width: 0; }
.report-stack .report-year {
    font-family: var(--sans);
    font-size: .92rem;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--teal-deep);
    background: #e7f3f7;
    border-radius: 999px;
    padding: .28rem .7rem;
    flex: none;
}
.report-line h2 { font-size: 1.7rem; margin: 0; }
.report-stack .report-line h2 { font-family: var(--sans); font-size: 1.02rem; font-weight: 560; letter-spacing: 0; }
.report-stack .report-copy { min-width: 0; }
.report-stack .report-copy p { margin: .15rem 0 0; font-size: .92rem; }
.report-line p { margin: .3rem 0 0; color: var(--muted); }
.report-stack .btn { padding: .45rem .85rem; font-size: .92rem; flex: none; }
.report-stack .pending {
    font-family: var(--sans);
    font-size: .88rem;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--muted);
    white-space: nowrap;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .28rem .7rem;
    flex: none;
}
.empty { color: var(--muted); }

.flash {
    width: min(1180px, calc(100% - 2rem));
    margin: .8rem auto 0;
    padding: .8rem 1rem;
    border-radius: 16px;
    background: #e5f6df;
}
.flash-erro { background: #fde2d8; }

.footer { background: #0f3d4c; color: #e7f2f6; padding: 3rem 0 1.2rem; margin-top: 2rem; }
.footer a { color: inherit; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr .9fr; gap: 1.5rem; }
.footer h2 { font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; font-family: var(--sans); margin-top: 1.2rem; }
.footer-grid > div > h2:first-child { margin-top: 0; }
.footer-grid a, .brand-foot { display: block; text-decoration: none; margin-bottom: .35rem; }
.brand-foot { display: flex; gap: .6rem; align-items: center; font-family: var(--serif); font-size: 1.25rem; }
.footer-base { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.12); color: #b7c9d0; font-size: .92rem; }

@media (max-width: 980px) {
    .hero-grid, .split, .prose-grid, .contact-layout, .footer-grid, .report-row, .organs, .mini-grid, .balcao-card { grid-template-columns: 1fr; }
    .patio { grid-template-columns: 1fr 1fr; }
    .patio .room,
    .patio .room:nth-child(n + 5) { grid-column: auto; }
    .phone-grid { grid-template-columns: 1fr 1fr; }
    .valence { flex-direction: column; align-items: flex-start; }
    .report-stack .report-line { flex-direction: row; align-items: center; }
    .valence { grid-template-columns: 1fr; }
    .hero-art { min-height: 340px; }
    .side-sticky { position: static; }
}
@media (max-width: 760px) {
    .nav-toggle { display: inline-block; }
    .menu {
        display: none; position: absolute; left: 1rem; right: 1rem; top: 74px;
        flex-direction: column; align-items: stretch; background: var(--white);
        border-radius: 20px; padding: .6rem; box-shadow: var(--shadow);
    }
    .menu.is-open { display: flex; }
    .patio, .phone-grid, .facts, .form-row { grid-template-columns: 1fr; display: grid; }
    .patio .room,
    .patio .room:nth-child(n + 5) { grid-column: auto; }
    .facts { display: grid; grid-template-columns: repeat(3, 1fr); }
    .footer-base { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
