/* Shared styles for topic pages (/pt/precos/, /pt/micro-capsulas/ ...). Layout comes from build.mjs. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --c-green-deep: #0f2318; --c-green: #1a3a2a; --c-green-mid: #2a5a3a;
    --c-gold: #c9a96e; --c-gold-light: #dfc28a; --c-cream: #f5f0ea; --c-beige: #e8e0d5; --c-white: #fff;
    --ff-display: 'Bodoni Moda', Georgia, serif; --ff-body: 'Outfit', -apple-system, sans-serif;
    --promo-h: 36px; --header-h: 72px;
}
html.promo-off { --promo-h: 0px; }
.promo-off .promo-bar, .promo-off .promo-only { display: none; }
html { font-size: 18px; scroll-behavior: smooth; scroll-padding-top: calc(var(--promo-h) + var(--header-h) + 16px); }
body { font-family: var(--ff-body); font-weight: 300; color: var(--c-green); background: var(--c-cream); line-height: 1.75; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ===== Promo bar + header (same look as the home page) ===== */
.promo-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 101; height: var(--promo-h); display: flex; align-items: center; justify-content: center; gap: 20px; padding: 0 48px; background: var(--c-gold); color: var(--c-green-deep); font-size: .78rem; letter-spacing: .08em; white-space: nowrap; overflow: hidden; text-decoration: none; transition: background .3s; }
.promo-bar:hover { background: var(--c-gold-light); }
.promo-bar strong { font-family: var(--ff-display); font-size: 1.05rem; font-weight: 600; margin-right: 6px; }
.promo-bar b { font-weight: 600; letter-spacing: .14em; }
.promo-bar__text { overflow: hidden; text-overflow: ellipsis; }
.promo-bar__short { display: none; }
.promo-bar__cta { font-weight: 500; text-transform: uppercase; letter-spacing: .12em; border-bottom: 1px solid currentColor; }

.header { position: fixed; top: var(--promo-h); left: 0; right: 0; z-index: 100; height: var(--header-h); padding: 0 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: rgba(15, 35, 24, .95); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-bottom: 1px solid rgba(201, 169, 110, .15); }
.header__logo-link { display: flex; flex-direction: column; text-decoration: none; line-height: 1; gap: 2px; flex-shrink: 0; }
.header__logo-main { font-family: var(--ff-display); font-size: 1.75rem; font-weight: 500; letter-spacing: .18em; margin-right: -.18em; text-align: center; background: linear-gradient(180deg, #e8d5a3 0%, #c9a96e 40%, #a8873f 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.header__logo-sub { display: flex; justify-content: space-between; font-size: .7rem; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.nav { display: flex; align-items: center; gap: 36px; }
.nav a { font-size: .8rem; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .85); text-decoration: none; transition: color .3s; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--c-gold); }
/* The menu is the home page's menu (subpages.mjs copies it); same sizes and steps as the home page */
.nav__group { position: relative; }
.nav__parent::after { content: ''; display: inline-block; margin-left: 7px; vertical-align: 3px; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; }
.nav__sub { position: absolute; top: 100%; left: -20px; z-index: 5; display: none; flex-direction: column; min-width: 240px; padding: 22px 0 10px; }
.nav__sub::before { content: ''; position: absolute; inset: 12px 0 0; z-index: -1; background: rgba(15, 35, 24, .97); border: 1px solid rgba(201, 169, 110, .2); border-radius: 8px; box-shadow: 0 12px 32px rgba(0, 0, 0, .3); }
.nav__group:hover .nav__sub, .nav__group:focus-within .nav__sub { display: flex; }
.nav .nav__sub a { padding: 9px 20px; font-size: .85rem; text-transform: none; letter-spacing: .03em; white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1240px) { .nav { gap: 22px; } }
@media (min-width: 901px) and (max-width: 1080px) { .nav { gap: 14px; } .nav a { font-size: .7rem; letter-spacing: .06em; } }
.header__right { display: flex; align-items: center; gap: 20px; }
.lang-switcher { position: relative; }
.lang-btn { padding: 8px 16px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .25); font: inherit; font-size: .75rem; color: rgba(255, 255, 255, .85); background: none; cursor: pointer; }
.lang-switcher__dropdown { position: absolute; top: calc(100% + 10px); right: 0; min-width: 100px; background: rgba(15, 35, 24, .97); border: 1px solid rgba(201, 169, 110, .2); border-radius: 8px; overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all .3s; }
.lang-switcher.open .lang-switcher__dropdown { opacity: 1; visibility: visible; transform: none; }
.lang-switcher__dropdown a { display: block; padding: 10px 16px; font-size: .75rem; color: rgba(255, 255, 255, .7); text-decoration: none; }
.lang-switcher__dropdown a:hover, .lang-switcher__dropdown a[aria-current="true"] { background: rgba(201, 169, 110, .15); color: var(--c-gold); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 4px; cursor: pointer; z-index: 101; }
.hamburger span { width: 24px; height: 2px; background: var(--c-gold); border-radius: 2px; transition: all .3s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Hero band ===== */
.sp-hero { background: var(--c-green-deep); color: var(--c-white); padding: calc(var(--promo-h) + var(--header-h) + 56px) 24px 64px; }
.sp-hero__inner { max-width: 980px; margin: 0 auto; }
.sp-crumbs { font-size: .78rem; letter-spacing: .08em; color: rgba(255, 255, 255, .75); margin-bottom: 28px; }
.sp-crumbs a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.sp-crumbs a:hover { color: var(--c-gold); }
.sp-crumbs span[aria-hidden] { margin: 0 8px; }
.section-label { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--c-gold); margin-bottom: 16px; }
.sp-hero h1 { font-family: var(--ff-display); font-style: italic; font-weight: 400; font-size: clamp(2.1rem, 5.5vw, 3.6rem); line-height: 1.12; max-width: 860px; }
.sp-hero__lead { font-size: 1.12rem; line-height: 1.8; color: rgba(255, 255, 255, .78); max-width: 720px; margin-top: 24px; }
.sp-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* ===== Buttons ===== */
.sp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 28px; background: var(--c-gold); color: var(--c-green-deep); border: 1px solid var(--c-gold); font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; transition: background .25s, color .25s; }
.sp-btn:hover { background: var(--c-gold-light); border-color: var(--c-gold-light); }
.sp-btn--ghost { background: transparent; color: var(--c-gold); }
.sp-btn--ghost:hover { background: rgba(201, 169, 110, .12); color: var(--c-gold-light); }
.sp-btn svg { width: 18px; height: 18px; fill: currentColor; }

/* ===== Article body ===== */
.sp-main { max-width: 820px; margin: 0 auto; padding: 72px 24px 24px; }
.sp-main h2 { font-family: var(--ff-display); font-weight: 400; font-size: clamp(1.6rem, 3.6vw, 2.1rem); line-height: 1.2; margin: 64px 0 18px; color: var(--c-green); }
.sp-main h2:first-child { margin-top: 0; }
.sp-main h3 { font-family: var(--ff-display); font-weight: 500; font-size: 1.25rem; margin: 36px 0 12px; }
.sp-main p { margin-bottom: 16px; }
.sp-main ul, .sp-main ol { margin: 0 0 20px 22px; }
.sp-main li { margin-bottom: 10px; padding-left: 4px; }
.sp-main b, .sp-main strong { font-weight: 500; }
.sp-main a:not(.sp-btn) { color: var(--c-green-mid); text-decoration: underline; text-decoration-color: rgba(201, 169, 110, .8); text-underline-offset: 4px; }
.sp-main a:not(.sp-btn):hover { color: var(--c-gold); }
.sp-more { font-weight: 400; }
.sp-note { background: var(--c-white); border-left: 2px solid var(--c-gold); padding: 18px 22px; margin: 24px 0; }
.sp-note p:last-child { margin-bottom: 0; }

/* steps */
.sp-steps { list-style: none; margin: 0 0 24px !important; counter-reset: step; }
.sp-steps li { counter-increment: step; position: relative; padding: 0 0 22px 64px !important; margin: 0; }
.sp-steps li::before { content: '0' counter(step); position: absolute; left: 0; top: -6px; font-family: var(--ff-display); font-style: italic; font-size: 2rem; color: var(--c-gold); line-height: 1; }
.sp-steps b { display: block; font-size: 1.05rem; margin-bottom: 2px; }

/* cards */
.sp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 24px 0 28px; }
.sp-card { background: var(--c-white); padding: 26px 24px; border-top: 2px solid var(--c-gold); }
.sp-card h3 { margin: 0 0 8px; font-size: 1.2rem; }
.sp-card p { font-size: .95rem; margin-bottom: 12px; }
.sp-card p:last-child { margin-bottom: 0; }
.sp-card--dark { background: var(--c-green); color: var(--c-white); }
.sp-card--dark h3 { color: var(--c-white); }
.sp-card--dark p { color: rgba(255, 255, 255, .8); }
.sp-card .sp-btn { margin-top: 8px; padding: 12px 20px; font-size: .72rem; }

/* tables */
.sp-table-wrap { overflow-x: auto; margin: 20px 0 16px; }
.sp-table { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--c-white); }
.sp-table th, .sp-table td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid rgba(26, 58, 42, .12); }
.sp-table thead th { font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--c-green-mid); background: var(--c-beige); }
.sp-table td:last-child, .sp-table th:last-child { text-align: right; white-space: nowrap; }
.sp-table td small { display: block; font-size: .82rem; color: var(--c-green-mid); }
.sp-table .sp-price { font-family: var(--ff-display); font-size: 1.15rem; font-weight: 500; }
.sp-table--plain td:last-child { white-space: normal; }

/* works strip */
.sp-works { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 24px 0 8px; }
.sp-work { position: relative; padding: 0; border: 0; background: var(--c-green-deep); cursor: pointer; aspect-ratio: 9 / 16; overflow: hidden; text-align: left; font: inherit; }
.sp-work img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.sp-work:hover img { transform: scale(1.04); }
.sp-work__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 12px 12px; background: linear-gradient(transparent, rgba(10, 20, 14, .85)); color: var(--c-white); font-size: .78rem; line-height: 1.35; }
.sp-work__cap span { display: block; color: var(--c-gold-light); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; margin-top: 3px; }
.sp-work__play { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(15, 35, 24, .6); border: 1px solid rgba(201, 169, 110, .6); }
.sp-work__play::after { content: ''; position: absolute; left: 13px; top: 10px; border-left: 11px solid var(--c-gold); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.sp-lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; background: rgba(5, 12, 8, .94); padding: 24px; }
.sp-lightbox.active { display: flex; }
.sp-lightbox video { max-width: 100%; max-height: 82vh; }
.sp-lightbox__close { position: absolute; top: 18px; right: 22px; background: none; border: 0; color: var(--c-white); font-size: 1.8rem; cursor: pointer; }
.sp-lightbox__cta { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); }

/* FAQ */
.sp-faq { margin: 20px 0 8px; }
.sp-faq__item { border-bottom: 1px solid rgba(26, 58, 42, .15); }
.sp-faq__item summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 400; font-size: 1.05rem; }
.sp-faq__item summary::-webkit-details-marker { display: none; }
.sp-faq__item summary::after { content: '+'; position: absolute; right: 4px; top: 14px; font-size: 1.6rem; font-weight: 200; color: var(--c-gold); transition: transform .3s; }
.sp-faq__item[open] summary::after { transform: rotate(45deg); }
.sp-faq__item > div { padding: 0 0 20px; color: var(--c-green-mid); }

/* CTA band */
.sp-cta { background: var(--c-green); color: var(--c-white); padding: 64px 24px; margin-top: 72px; text-align: center; }
.sp-cta h2 { font-family: var(--ff-display); font-style: italic; font-weight: 400; font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 14px; }
.sp-cta p { max-width: 620px; margin: 0 auto 28px; color: rgba(255, 255, 255, .78); }

/* related pages */
.sp-related { max-width: 980px; margin: 0 auto; padding: 64px 24px; }
.sp-related h2 { font-family: var(--ff-display); font-weight: 400; font-size: 1.6rem; margin-bottom: 22px; }
.sp-related__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.sp-related__grid a { display: block; padding: 20px 22px; background: var(--c-white); text-decoration: none; border-bottom: 2px solid transparent; transition: border-color .25s; }
.sp-related__grid a:hover { border-color: var(--c-gold); }
.sp-related__grid b { display: block; font-family: var(--ff-display); font-weight: 500; font-size: 1.1rem; margin-bottom: 4px; }
.sp-related__grid span { font-size: .88rem; color: var(--c-green-mid); }

/* ===== Contacts: same block as at the bottom of the home page ===== */
.contacts { padding: 120px 48px; background: var(--c-cream); color: var(--c-green-deep); }
.contacts__inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.contacts__title { font-family: var(--ff-display); font-size: clamp(2.8rem, 5vw, 4rem); font-weight: 400; font-style: italic; color: var(--c-green); margin-bottom: 48px; }
.contacts__item { margin-bottom: 28px; }
.contacts__item-label { font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: rgba(26, 58, 42, .7); margin-bottom: 8px; }
.contacts__item-value { font-size: 1.15rem; font-weight: 400; color: var(--c-green); }
.contacts__item-value a { color: var(--c-green); text-decoration: none; transition: color .3s; }
.contacts__item-value a:hover { color: var(--c-gold); }
.contacts__map { border-radius: 4px; overflow: hidden; height: 420px; }
.contacts__map iframe { width: 100%; height: 100%; border: 0; }
.cookie-settings-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.sp-main .sp-articles { margin: 24px 0 8px; }
.sp-main .sp-articles a { color: var(--c-green); text-decoration: none; }

/* footer */
.sp-footer { background: var(--c-green-deep); color: rgba(255, 255, 255, .75); padding: 64px 24px 96px; font-size: .92rem; }
.sp-footer__inner { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; }
.sp-footer h2 { font-family: var(--ff-display); font-weight: 400; font-size: 1.4rem; color: var(--c-white); margin-bottom: 18px; }
.sp-footer p { margin-bottom: 10px; }
.sp-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.sp-footer a:hover { color: var(--c-gold); }
.sp-footer__label { display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c-gold); }
.sp-footer ul { list-style: none; columns: 2; column-gap: 24px; }
.sp-footer li { margin-bottom: 10px; break-inside: avoid; }
.sp-footer__legal { max-width: 980px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid rgba(201, 169, 110, .15); font-size: .8rem; color: rgba(255, 255, 255, .5); }
.cookie-settings-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* WhatsApp float */
.whatsapp-float { position: fixed; bottom: 32px; right: 32px; z-index: 99; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; background: #25D366; border-radius: 50%; box-shadow: 0 4px 20px rgba(37, 211, 102, .4); transition: transform .3s; }
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 32px; height: 32px; fill: #fff; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    /* backdrop-filter would make the header the containing block of the fixed menu and clip it */
    .header { padding: 0 24px; background: var(--c-green-deep); backdrop-filter: none; -webkit-backdrop-filter: none; }
    .hamburger { display: flex; }
    /* side panel, as on the home page */
    .nav { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; flex-direction: column; align-items: flex-start; gap: 28px; padding: 100px 40px 40px; background: var(--c-green-deep); overflow-y: auto; transition: right .4s ease; box-shadow: -4px 0 24px rgba(0, 0, 0, .3); }
    .nav.open { right: 0; }
    .nav a { font-size: 1rem; color: rgba(255, 255, 255, .8); }
    .nav__parent::after { display: none; }
    .nav__sub { position: static; display: flex; min-width: 0; padding: 14px 0 0 14px; gap: 14px; border-left: 1px solid rgba(201, 169, 110, .3); margin-top: 14px; }
    .nav__sub::before { display: none; }
    .nav .nav__sub a { padding: 0; font-size: .9rem; color: rgba(255, 255, 255, .65); white-space: normal; }
}
@media (max-width: 900px) {
    .contacts { padding: 80px 24px; }
    .contacts__inner { grid-template-columns: 1fr; gap: 40px; }
    .contacts__map { height: 320px; }
}
@media (max-width: 760px) {
    .sp-works { grid-template-columns: repeat(2, 1fr); }
    .sp-footer__inner { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 600px) {
    .contacts__title { font-size: clamp(2rem, 6vw, 3rem); }
    .contacts__map { height: 260px; }
    :root { --header-h: 64px; }
    .promo-bar { padding: 0 16px; gap: 10px; font-size: .72rem; letter-spacing: .04em; }
    .promo-bar__long, .promo-bar__cta { display: none; }
    .promo-bar__short { display: inline; }
    .promo-bar__text::after { content: ' →'; }
    .header__logo-main { font-size: 1.5rem; }
    .sp-hero { padding: calc(var(--promo-h) + var(--header-h) + 36px) 16px 48px; }
    .sp-main { padding: 48px 16px 8px; }
    .sp-hero__actions .sp-btn { width: 100%; }
    .sp-table { font-size: .88rem; }
    .sp-table th, .sp-table td { padding: 12px 10px; }
    .sp-table--stack thead { display: none; }
    .sp-table--stack tr { display: block; padding: 12px 14px; border-bottom: 1px solid rgba(26, 58, 42, .12); }
    .sp-table--stack td { display: block; border: 0; padding: 2px 0; text-align: left !important; white-space: normal !important; }
    .sp-table--stack td[data-label]::before { content: attr(data-label) ': '; color: var(--c-green-mid); font-size: .82rem; }
    .sp-related, .sp-cta { padding-left: 16px; padding-right: 16px; }
    .sp-footer { padding: 48px 16px 96px; }
    .sp-footer ul { columns: 1; }
    .whatsapp-float { bottom: 20px; right: 16px; width: 54px; height: 54px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
