/* Vitrine: base shared by every style. Colors and fonts come from CSS variables set per site
   (--bg, --surface, --text, --muted, --accent, --on-accent, --font-head, --font-body, --head-weight, --head-tracking). */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0; background: var(--bg); color: var(--text);
    font-family: var(--font-body); font-size: 17px; line-height: 1.65;
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 {
    font-family: var(--font-head); font-weight: var(--head-weight); letter-spacing: var(--head-tracking);
    line-height: 1.05; margin: 0 0 .5em; text-wrap: balance;
}
h1 em, h2 em { font-style: italic; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.wrap { width: min(1240px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(860px, 100% - 48px); }
.kicker { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.2em; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: inherit; opacity: .9; max-width: 34em; }
.section { padding: clamp(64px, 9vw, 140px) 0; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    background: var(--accent); color: var(--on-accent); text-decoration: none;
    font-weight: 600; font-size: .95rem; padding: .95em 1.6em; border-radius: 999px; border: 0; cursor: pointer;
    transition: transform .25s ease, opacity .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-small { padding: .6em 1.1em; font-size: .85rem; }
.btn-large { padding: 1.1em 2em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.link-arrow { text-decoration: none; font-weight: 600; font-size: .95rem; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow::after { content: " →"; }
.link-back { display: inline-block; text-decoration: none; color: var(--muted); font-size: .9rem; margin-bottom: 1.6em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { text-decoration: none; font-family: var(--font-head); font-weight: var(--head-weight); font-size: 1.35rem; letter-spacing: var(--head-tracking); }
.brand img { display: block; height: var(--logo-h, 56px); max-height: var(--logo-h, 56px); width: auto; max-width: min(320px, 55vw); object-fit: contain; }
@media (max-width: 720px) { .brand img { height: calc(var(--logo-h, 56px) * .8); max-height: calc(var(--logo-h, 56px) * .8); } }
/* A dark logo on a dark header (dark site, or over the photo) or a light logo on a light header gets a small plate,
   so it never disappears. LogoTone tells which logos need it. */
.brand.logo-dark img, .brand.logo-light img { box-sizing: border-box; border-radius: 10px; padding: 5px 10px; transition: background .3s; }
.is-dark .site-header .brand.logo-dark img,
.site-header.over-photo:not(.scrolled) .brand.logo-dark img { background: rgba(255, 255, 255, .94); }
body:not(.is-dark) .site-header:not(.over-photo) .brand.logo-light img,
body:not(.is-dark) .site-header.over-photo.scrolled .brand.logo-light img { background: rgba(17, 19, 21, .9); }
.nav { display: flex; align-items: center; gap: 32px; font-size: .92rem; }
.nav a:not(.btn) { text-decoration: none; opacity: .85; }
.nav a:not(.btn):hover { opacity: 1; }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; color: inherit; }
.menu-btn span { display: block; width: 24px; height: 2px; background: currentColor; margin: 6px auto; transition: transform .3s; }
.site-header.over-photo { position: fixed; left: 0; right: 0; background: transparent; backdrop-filter: none; color: #fff; transition: background .3s, color .3s; }
.site-header.over-photo.scrolled { background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); color: var(--text); }

/* Hero: shared variants */
.hero { position: relative; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero--full { min-height: 100svh; display: grid; color: #fff; }
.hero--full > * { grid-area: 1 / 1; }
.hero--full .hero-media { position: relative; }
.hero--full .hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.55) 100%); }
.hero--full .hero-text { position: relative; display: flex; align-items: flex-end; padding: 0 0 clamp(48px, 8vw, 110px); }
.hero--full .hero-inner { width: min(1240px, 100% - 48px); margin-inline: auto; }
.hero--full .kicker { color: rgba(255,255,255,.8); }
.hero--full h1 { font-size: clamp(3rem, 8vw, 7.5rem); max-width: 11em; }
.hero--full .btn { background: #fff; color: #111; }
.is-dark .hero--full .btn { background: var(--accent); color: var(--on-accent); }

.hero--split { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100svh - 76px); }
.hero--split .hero-media { order: 2; }
/* The photo fills its space without deciding the height: a portrait photo never makes the opening taller than the screen. */
.hero--full .hero-media, .hero--center .hero-media, .hero--split .hero-media { position: relative; overflow: hidden; }
.hero--full .hero-media img, .hero--center .hero-media img, .hero--split .hero-media img { position: absolute; inset: 0; }
.hero--split .hero-text { display: flex; align-items: center; padding: clamp(32px, 6vw, 96px); }
.hero--split h1 { font-size: clamp(2.6rem, 5.4vw, 5.6rem); }

.hero--frame { padding: 24px 24px 0; }
.hero--frame .hero-media { height: min(72svh, 760px); border-radius: 4px; overflow: hidden; }
.hero--frame .hero-text { width: min(1240px, 100% - 48px); margin: 0 auto; padding: clamp(32px, 5vw, 72px) 0 0; }
.hero--frame .hero-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; }
.hero--frame .hero-inner .kicker { grid-column: 1 / -1; margin: 0; }
.hero--frame h1 { font-size: clamp(2.6rem, 6vw, 6rem); margin: 0; }
.hero--frame .hero-actions { grid-column: 2; }
.hero--frame .lead { grid-column: 2; grid-row: 2; margin: 0 0 1em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 1.6em; }

/* Bento hero */
.bento { display: grid; grid-template-columns: 1.2fr 1fr .8fr; grid-template-rows: auto 220px; gap: 14px; padding-top: 14px; }
.bento > * { border-radius: 28px; overflow: hidden; }
.bento-title { grid-row: 1 / 3; background: var(--accent); color: var(--on-accent); padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: flex-end; min-height: 560px; }
.bento-title .kicker { color: inherit; opacity: .7; }
.bento-title h1 { font-size: clamp(2.6rem, 5vw, 5.2rem); }
.bento-title .btn { background: var(--on-accent); color: var(--accent); align-self: flex-start; margin-top: 1.2em; }
.bento-photo { grid-column: 2 / 4; position: relative; min-height: clamp(320px, 46svh, 520px); }
.bento-photo img { position: absolute; inset: 0; } /* the photo never decides the height */
.bento-photo img, .bento-item img { width: 100%; height: 100%; object-fit: cover; }
.bento-stat { background: var(--surface); padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; }
.bento-stat strong { font-family: var(--font-head); font-size: clamp(2.6rem, 4vw, 4rem); line-height: 1; letter-spacing: var(--head-tracking); }
.bento-item { position: relative; text-decoration: none; color: #fff; }
.bento-item span { position: absolute; left: 20px; right: 20px; bottom: 18px; font-weight: 600; text-shadow: 0 1px 12px rgba(0,0,0,.4); }

/* Section heads and grids */
.section-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0 24px; margin-bottom: clamp(32px, 5vw, 64px); }
.section-head .kicker { grid-column: 1 / -1; }
.section-head h2 { font-size: clamp(2.2rem, 4.6vw, 4.2rem); margin: 0; }
.grid { display: grid; gap: clamp(20px, 2.4vw, 36px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Cards */
.card { display: block; text-decoration: none; color: inherit; }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 18px 0 0; }
.card-title { font-size: 1.45rem; margin: 0 0 .3em; line-height: 1.15; }
.card .kicker { margin-bottom: .6em; font-size: .72rem; }
.facts { color: var(--muted); font-size: .92rem; margin: 0 0 .4em; }
.price { font-weight: 600; font-size: 1.05rem; margin: 0; }
.card.is-closed .card-media img { filter: grayscale(.6); opacity: .8; }
.ribbon { position: absolute; top: 14px; left: 14px; background: var(--bg); color: var(--text); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .5em .9em; border-radius: 999px; }
.ribbon-offer { background: var(--accent); color: var(--on-accent); }
.price-old { opacity: .6; font-weight: 400; font-size: .85em; }
.item-aside .price-old { margin: 0 0 .1em; font-size: 1.05rem; }
.offer-tag { display: inline-block; background: var(--accent); color: var(--on-accent); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .45em .9em; border-radius: 999px; margin: 0 0 .8em; }
.ribbon-sold, .ribbon-rented { background: var(--accent); color: var(--on-accent); }
.ribbon-inline { position: static; display: inline-block; margin-bottom: 1.4em; background: var(--surface); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 110px); align-items: center; }
.about-media { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-text h2 { font-size: clamp(2rem, 3.8vw, 3.4rem); }
.about-text p { max-width: 34em; }

/* Stats */
.stats { padding-block: clamp(40px, 6vw, 90px); border-block: 1px solid color-mix(in srgb, var(--text) 14%, transparent); }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; }
.stat strong { display: block; font-family: var(--font-head); font-weight: var(--head-weight); font-size: clamp(3rem, 6vw, 5.4rem); line-height: 1; letter-spacing: var(--head-tracking); }
.stat span { color: var(--muted); }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(32px, 5vw, 80px); }
.quote { margin: 0; }
.quote blockquote { margin: 0 0 1em; font-family: var(--font-head); font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.3; letter-spacing: var(--head-tracking); }
.quote figcaption { color: var(--muted); font-size: .92rem; }

/* Contact */
.contact { background: var(--surface); }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; }
.contact h2 { font-size: clamp(2.4rem, 5vw, 4.6rem); }
.contact-list { margin: 0; display: grid; gap: 22px; }
.contact-list dt { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-list dd { margin: 4px 0 0; font-size: 1.1rem; }

/* Footer */
.site-footer { padding: 64px 0 32px; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-name { font-family: var(--font-head); font-size: 1.6rem; margin-bottom: .3em; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--text) 12%, transparent); }

/* WhatsApp button (always visible) */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; align-items: center; gap: 8px; background: #1FAF5A; color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem; padding: 12px 18px 12px 14px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.wa-float svg { width: 24px; height: 24px; }

/* List page */
.list-head { padding-bottom: 0; }
.list-head h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
.list-body { padding-top: 40px; }
.filters { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin-bottom: 28px; }
.f-search, .filters select { width: 100%; font: inherit; font-size: .95rem; color: var(--text); background: var(--bg); border: 1px solid color-mix(in srgb, var(--text) 22%, transparent); border-radius: 12px; padding: .8em 1em; }
.f-toggle { display: none; }
.f-panel { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; align-items: end; }
.f-field { display: grid; gap: 6px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.f-field:has(.f-checks) { grid-column: 1 / -1; }
.f-checks { display: flex; flex-wrap: wrap; gap: 8px; text-transform: none; letter-spacing: 0; }
.f-actions { display: flex; gap: 20px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: .45em .9em; border-radius: 999px; background: var(--surface); color: var(--text); font-size: .9rem; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.list-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; gap: 16px; }
.list-bar p { margin: 0; }
.sort-form label { display: flex; align-items: center; gap: 10px; }
.sort-form select { font: inherit; font-size: .9rem; border: 0; background: transparent; color: var(--text); }
.empty { padding: 60px 0; color: var(--muted); }

/* Item page */
.page-item main { padding-top: 0; }
.item-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 280px 280px; gap: 8px; padding: 8px; position: relative; }
.item-gallery.is-single { grid-template-columns: 1fr; grid-template-rows: 70svh; }
.g-cell { padding: 0; border: 0; cursor: zoom-in; overflow: hidden; background: var(--surface); }
.g-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.g-cell:hover img { transform: scale(1.03); }
.g-0 { grid-row: 1 / 3; }
.g-more { position: absolute; right: 24px; bottom: 24px; background: var(--bg); padding: .5em 1em; border-radius: 999px; font-weight: 600; font-size: .85rem; pointer-events: none; }
.item-main { padding-top: 48px; }
.item-grid { display: grid; grid-template-columns: 1fr 360px; gap: clamp(32px, 6vw, 96px); align-items: start; }
.item-title { font-size: clamp(2.2rem, 4.6vw, 4rem); }
.item-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 18px; margin: 32px 0; padding: 26px 0; border-block: 1px solid color-mix(in srgb, var(--text) 14%, transparent); }
.item-facts dt { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.item-facts dd { margin: 4px 0 0; font-size: 1.2rem; font-family: var(--font-head); }
.item-text { font-size: 1.08rem; max-width: 40em; }
.item-sub { font-size: clamp(1.5rem, 2.6vw, 2.2rem); margin-top: 1.6em; }
.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.room { background: var(--surface); padding: 22px; border-radius: 6px; }
.room h3 { font-size: 1.2rem; margin-bottom: .3em; }
.room p { margin: 0; color: var(--muted); font-size: .95rem; }
.item-aside { position: sticky; top: 100px; }
.aside-card { background: var(--surface); padding: 28px; border-radius: 6px; }
.aside-price { font-family: var(--font-head); font-size: 2.2rem; line-height: 1.1; margin-bottom: .4em; letter-spacing: var(--head-tracking); }
.lightbox { border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgba(10,10,10,.96); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; padding: 16px; }
.lb-close { top: 8px; right: 16px; } .lb-prev { left: 8px; top: 50%; transform: translateY(-50%); } .lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* Gentle reveal on scroll */
@media (prefers-reduced-motion: no-preference) {
    .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
    .js [data-reveal].in { opacity: 1; transform: none; }
}

/* Phone: designed, not just shrunk */
@media (max-width: 860px) {
    body { font-size: 16px; }
    .wrap, .narrow { width: calc(100% - 32px); }
    .menu-btn { display: block; }
    .nav { position: fixed; inset: 76px 0 auto 0; background: var(--bg); color: var(--text); flex-direction: column; align-items: flex-start; gap: 20px; padding: 28px 24px 36px; font-size: 1.3rem; transform: translateY(calc(-100% - 90px)); visibility: hidden; transition: transform .4s, visibility 0s .4s; box-shadow: 0 20px 40px rgba(0,0,0,.08); }
    .nav.open { transform: none; visibility: visible; transition: transform .4s; }
    .hero--full h1 { font-size: clamp(2.6rem, 12vw, 4rem); }
    .hero--split { grid-template-columns: 1fr; min-height: 0; }
    .hero--split .hero-media { order: 0; height: 56svh; }
    .hero--split .hero-text { padding: 36px 16px 8px; }
    .hero--frame { padding: 12px 12px 0; }
    .hero--frame .hero-media { height: 52svh; }
    .hero--frame .hero-inner { grid-template-columns: 1fr; gap: 18px; }
    .hero--frame .hero-actions, .hero--frame .lead { grid-column: 1; grid-row: auto; }
    .bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto 260px 180px; }
    .bento-title { grid-column: 1 / -1; grid-row: auto; min-height: 0; }
    .bento-photo { grid-column: 1 / -1; min-height: 0; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .section-head { grid-template-columns: 1fr; gap: 12px; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .item-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 46svh 120px; padding: 0; }
    .g-0 { grid-column: 1 / -1; grid-row: 1; }
    .g-3, .g-4 { display: none; }
    .item-grid { grid-template-columns: 1fr; }
    .item-aside { position: static; }
    .filters { grid-template-columns: 1fr auto; }
    .f-toggle { display: inline-flex; }
    .f-panel { display: none; }
    .f-panel.open { display: grid; }
    .wa-float span { display: none; }
    .wa-float { padding: 14px; }
}

/* Item gallery arrangement by number of photos */
.item-gallery.c-2 { grid-template-columns: 1fr 1fr; grid-template-rows: min(64svh, 620px); }
.item-gallery.c-2 .g-0 { grid-row: auto; }
.item-gallery.c-3 { grid-template-columns: 2fr 1fr; }
.item-gallery.c-4 { grid-template-columns: 2fr 1fr 1fr; }
.item-gallery.c-4 .g-1 { grid-column: 2 / 4; }
@media (max-width: 860px) {
    .item-gallery.c-2 { grid-template-columns: 1fr 1fr; grid-template-rows: 46svh; }
    .item-gallery.c-2 .g-0, .item-gallery.c-2 .g-1 { grid-column: auto; grid-row: auto; }
    .item-gallery.c-3, .item-gallery.c-4 { grid-template-columns: 1fr 1fr; }
    .item-gallery.c-4 .g-1 { grid-column: auto; }
}

/* The hero is above the fold: a short entrance on load, never waiting for the scroll */
@media (prefers-reduced-motion: no-preference) {
    @keyframes vt-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
    .hero-inner, .bento > * { animation: vt-rise .7s cubic-bezier(.2,.7,.2,1) both; }
    .bento > :nth-child(2) { animation-delay: .08s; } .bento > :nth-child(3) { animation-delay: .16s; } .bento > :nth-child(4) { animation-delay: .24s; }
}

/* Frequently asked questions */
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq h2 { font-size: clamp(2rem, 3.8vw, 3.4rem); }
.qa { border-bottom: 1px solid color-mix(in srgb, var(--text) 14%, transparent); }
.qa summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; font-family: var(--font-head); font-size: clamp(1.15rem, 1.8vw, 1.45rem); letter-spacing: var(--head-tracking); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--font-body); font-size: 1.4rem; transition: transform .3s; }
.qa[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.qa p { margin: 0 0 22px; color: var(--muted); max-width: 40em; }
.t-quadra .faq-list { background: var(--surface); border-radius: var(--r); padding: 8px 28px; }
.t-quadra .qa:last-child { border-bottom: 0; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* Anchors (#sobre, #contato...) stop below the fixed header */
section[id] { scroll-margin-top: 84px; }

/* ---- Order by WhatsApp (several items in one message) */
.add-btn {
    position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center; background: var(--accent); color: var(--on-accent);
    font-size: 1.75rem; line-height: 1; font-weight: 700; cursor: pointer;
    /* A light ring and a darker shadow keep the button visible on any photo and on dark palettes. */
    border: 2px solid rgba(255,255,255,.92); box-shadow: 0 4px 16px rgba(0,0,0,.45);
    transition: transform .2s ease;
}
.add-btn:hover, .add-btn:focus-visible { transform: scale(1.08); }
.add-btn.added, [data-add].added { animation: vt-pop .5s ease; }
@keyframes vt-pop { 50% { transform: scale(1.2); } }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px currentColor; margin-top: 10px; }
.cart-fab {
    position: fixed; left: 20px; bottom: 20px; z-index: 40; display: flex; align-items: center; gap: 10px;
    background: var(--accent); color: var(--on-accent); border: 0; border-radius: 999px; padding: 13px 20px;
    font: 600 .95rem var(--font-body); box-shadow: 0 10px 30px rgba(0,0,0,.22); cursor: pointer;
}
.cart-fab b { background: var(--on-accent); color: var(--accent); min-width: 26px; height: 26px; border-radius: 13px; display: grid; place-items: center; font-size: .85rem; }
.cart-fab[hidden] { display: none; }
.cart-dialog {
    width: min(460px, 100% - 24px); max-height: min(86vh, 720px); border: 0; border-radius: 22px; padding: 22px;
    background: var(--bg); color: var(--text); box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.cart-dialog::backdrop { background: rgba(0,0,0,.45); }
.cart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cart-head h2 { font-size: 1.5rem; margin: 0; }
.cart-x { background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: inherit; }
.cart-list { list-style: none; margin: 16px 0; padding: 0; }
.cart-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid color-mix(in srgb, var(--text) 12%, transparent); }
.cart-name { font-size: .95rem; }
.cart-qty { display: flex; align-items: center; gap: 10px; flex: none; }
.cart-qty button { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid currentColor; background: none; color: inherit; font-size: 1.1rem; cursor: pointer; }
.cart-total { font-weight: 700; font-size: 1.1rem; text-align: right; }
.cart-note-label { display: block; font-size: .9rem; margin-bottom: 14px; }
.cart-note-label textarea, .lead-form input, .lead-form textarea {
    display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: 12px; font: inherit; font-size: 16px;
    border: 1.5px solid color-mix(in srgb, var(--text) 22%, transparent); background: var(--surface); color: var(--text);
}
.btn.is-off { opacity: .45; pointer-events: none; }
.link-clear { display: block; margin: 12px auto 4px; background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: .85rem; }

/* ---- "Let me know" (contact left by the visitor) */
.lead-section { background: var(--surface); }
.lead-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.lead-wrap h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
.lead-form { display: grid; gap: 14px; }
.lead-form label > span { font-size: .9rem; font-weight: 600; }
.lead-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; }
.lead-consent input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--accent); }
.lead-error { color: #B3261E; font-weight: 600; margin: 0; }
.is-dark .lead-error { color: #FFB4AB; }
.lead-done { grid-column: 1 / -1; text-align: center; }
.quote-stars { color: var(--accent-text); letter-spacing: .12em; margin: 0 0 .6em; font-size: 1rem; }
.quote-stars span { opacity: .25; }
.quotes-more { margin-top: 2em; text-align: center; }
.quotes-more a { color: inherit; }
.review-wrap { max-width: 640px; }
.review-wrap h1 { margin-bottom: .3em; }
.stars-pick { border: 0; padding: 0; margin: 0; }
.stars-pick legend { font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
.stars-row { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.stars-row input { position: absolute; opacity: 0; pointer-events: none; }
.stars-row label { font-size: 2.2rem; line-height: 1; cursor: pointer; color: color-mix(in srgb, var(--text) 18%, transparent); transition: color .15s; }
.stars-row input:checked ~ label, .stars-row label:hover, .stars-row label:hover ~ label { color: var(--accent-text); }
.stars-row input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(2rem, 4vw, 3rem); }

/* ---- Link in bio */
.page-links main { min-height: 100svh; }
.links-page { width: min(520px, 100% - 32px); margin: 0 auto; padding: 48px 0 32px; text-align: center; }
.links-logo { width: 96px; height: 96px; border-radius: 50%; object-fit: contain; background: var(--surface); margin: 0 auto 16px; }
.links-initial { display: grid; place-items: center; font: var(--head-weight) 2.6rem var(--font-head); color: var(--accent-text); }
.links-head h1 { font-size: clamp(1.7rem, 6vw, 2.2rem); margin-bottom: .25em; }
.links-list { display: grid; gap: 12px; margin: 26px 0 34px; }
.link-btn {
    display: block; padding: 1em 1.4em; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem;
    background: var(--surface); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--text) 16%, transparent); transition: transform .2s;
}
.link-btn:hover { transform: translateY(-2px); }
.links-sub { font-size: 1.2rem; margin-bottom: 14px; }
.links-items { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: left; }
.links-item { text-decoration: none; display: grid; gap: 4px; }
.links-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: var(--surface); }
.links-item-title { font-size: .88rem; font-weight: 600; line-height: 1.3; }
.links-item-price { font-size: .82rem; color: var(--muted); }
.links-foot { margin-top: 34px; }

@media (max-width: 760px) {
    .lead-wrap, .lead-row { grid-template-columns: 1fr; }
    .cart-fab { left: 14px; bottom: 16px; }
}

/* Tall thumbnails (?mini=1, "see every style"): the frame is taller than a screen, so the openings keep the
   height they have on a normal computer screen (800px) instead of filling the whole frame. */
.is-mini .hero--full, .is-mini .hero--center { min-height: 800px; }
.is-mini .hero--split { min-height: 724px; }
.is-mini .hero--frame .hero-media { height: 576px; }
.is-mini.t-quadra .hero--split { min-height: 680px; }
.is-mini .wa-float { display: none; }
