/* Afonso França — design system (see design.md) */
:root {
  --paper: #FAF8F4; --surface: #FFFFFF; --ink: #17212B; --muted: #56606B;
  --petrol: #0F3E57; --petrol-deep: #0A2C3E; --petrol-hover: #0C3247;
  --sand: #C7A77B; --sand-ink: #7E5F36; --sand-soft: #F2EEE7;
  --azulejo: #2B5C8A; --line: #E3DDD2;
  --ok: #2F6B4F; --warn: #8A5A12; --err: #A23B2A;
  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --r: 2px; --wrap: 1200px;
  --shadow: 0 18px 50px -24px rgba(10, 44, 62, .35);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--petrol); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--azulejo); }
:focus-visible { outline: 3px solid var(--azulejo); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); letter-spacing: -.005em; margin: 0 0 .5em; }
h1 { font-size: clamp(38px, 5vw, 54px); line-height: 1.08; }
h2 { font-size: clamp(28px, 3.2vw, 36px); line-height: 1.15; }
h3 { font-size: 24px; line-height: 1.25; }
h4 { font: 700 13px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .6em; }
p { margin: 0 0 1.1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--petrol); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow, .label { display: inline-block; font: 700 12.5px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sand-ink); margin-bottom: 14px; }
.eyebrow::before { content: ''; display: inline-block; width: 26px; height: 2px; background: var(--sand); vertical-align: middle; margin-right: 10px; }
.eyebrow.light { color: #E2CBA6; }
.lede { font-size: 20px; line-height: 1.55; color: var(--muted); max-width: 64ch; }
.n, .num { font-variant-numeric: tabular-nums; }
.ico { flex: none; vertical-align: -0.2em; }

/* Strip + header */
.strip { background: var(--petrol-deep); color: #C9D6DE; font-size: 13.5px; }
.strip .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.strip a { color: #fff; text-decoration: none; }
.strip a:hover { text-decoration: underline; color: #fff; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; }
.wordmark { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1; }
.wm-rule { width: 28px; height: 2px; background: var(--sand); margin-bottom: 7px; }
.wm-name { font: 600 23px/1 var(--serif); letter-spacing: .2em; }
.wm-sub { font: 600 10.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.wordmark.light { color: #fff; } .wordmark.light .wm-sub { color: #AFC2CD; }
.wordmark:hover { color: var(--ink); } .wordmark.light:hover { color: #fff; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.nav li { position: relative; }
.nav > ul > li > a { font: 600 13px/1 var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--ink); text-decoration: none; padding: 30px 0; display: block; border-bottom: 2px solid transparent; }
.nav > ul > li > a:hover, .nav > ul > li > a[aria-current] { color: var(--petrol); border-bottom-color: var(--sand); }
.submenu { position: absolute; top: 100%; left: -18px; min-width: 300px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--sand); box-shadow: var(--shadow); padding: 10px 0 !important; display: none !important; flex-direction: column; gap: 0 !important; }
.has-menu:hover .submenu, .has-menu:focus-within .submenu { display: flex !important; }
.submenu a { display: block; padding: 9px 20px; font-size: 15px; color: var(--ink); text-decoration: none; }
.submenu a:hover { background: var(--sand-soft); color: var(--petrol); }
.menu-toggle { display: none; align-items: center; gap: 8px; background: none; border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; font: 600 13px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: var(--r); font: 600 15px/1.2 var(--sans); letter-spacing: .02em; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--petrol); color: #fff; }
.btn-primary:hover { background: var(--petrol-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--petrol); border-color: var(--petrol); }
.btn-ghost:hover { background: var(--petrol); color: #fff; }
.btn-light { background: #fff; color: var(--petrol-deep); }
.btn-light:hover { background: var(--sand-soft); color: var(--petrol-deep); }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.6); background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }
.btn-block { width: 100%; margin-top: 10px; }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.arrow-link:hover .ico { transform: translateX(3px); }
.arrow-link .ico { transition: transform .15s; }

/* Sections */
.band { padding: 80px 0; }
.band.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-head { max-width: 760px; margin-bottom: 40px; }
.band-head p { color: var(--muted); font-size: 18px; }

/* Hero (home) */
.hero { position: relative; color: #fff; background: var(--petrol-deep) var(--ph-s, none) center/cover no-repeat; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10,44,62,.94) 0%, rgba(10,44,62,.86) 46%, rgba(10,44,62,.55) 100%); }
@media (min-width: 900px) { .hero { background-image: var(--ph); } }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; padding-top: 84px; padding-bottom: 92px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(40px, 5.4vw, 60px); }
.hero .lede { color: #D7E1E7; }
.hero .eyebrow { color: #E2CBA6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.18); }
.hero-facts div { font-size: 14px; color: #C9D6DE; max-width: 170px; line-height: 1.4; }
.hero-facts strong { display: block; font: 600 30px/1.1 var(--serif); color: #fff; margin-bottom: 4px; }

/* Page head */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 54px 0 46px; }
.page-head.photo { position: relative; color: #fff; background: var(--petrol-deep) var(--ph-s) center/cover no-repeat; border-bottom: 0; padding: 70px 0 62px; }
@media (min-width: 900px) { .page-head.photo { background-image: var(--ph); } }
.page-head.photo::before { content: ''; position: absolute; inset: 0; background: linear-gradient(95deg, rgba(10,44,62,.93), rgba(10,44,62,.78)); }
.page-head.photo .wrap { position: relative; }
.page-head.photo h1 { color: #fff; } .page-head.photo .lede { color: #D7E1E7; } .page-head.photo .eyebrow { color: #E2CBA6; }
.page-head h1 { max-width: 22ch; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--sand); }
.crumbs a { color: inherit; }
.page-head.photo .crumbs ol { color: #C9D6DE; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { display: inline-block; font: 600 12.5px/1 var(--sans); letter-spacing: .04em; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); color: var(--sand-ink); }
.page-head.photo .chip { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.28); color: #EBDCC2; }

/* Article layout */
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: start; }
.article { max-width: 760px; }
.article.solo { max-width: 860px; }
.article h2 { margin-top: 1.8em; padding-top: .2em; scroll-margin-top: 100px; }
.article h2:first-child { margin-top: 0; }
.article h3 { margin-top: 1.4em; }
.article ul, .article ol:not(.steps):not(.toc) { padding-left: 1.3em; margin: 0 0 1.2em; }
.article li { margin-bottom: .4em; }
.lead-in { font-size: 19px; font-weight: 600; color: var(--ink); }
.aside { position: sticky; top: 104px; display: grid; gap: 18px; }
.aside-box { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--sand); padding: 22px; }
.aside-box p { font-size: 15px; color: var(--muted); margin-bottom: .6em; }
.toc { list-style: none; padding: 0; margin: 0; counter-reset: t; }
.toc li { counter-increment: t; font-size: 15px; margin: 0; border-top: 1px solid var(--line); }
.toc li:first-child { border-top: 0; }
.toc a { display: flex; gap: 10px; padding: 8px 0; text-decoration: none; color: var(--ink); }
.toc a::before { content: counter(t, decimal-leading-zero); color: var(--sand-ink); font-variant-numeric: tabular-nums; font-size: 13px; padding-top: 2px; }
.toc a:hover { color: var(--petrol); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 0 1.6em; border: 1px solid var(--line); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: 15.5px; font-variant-numeric: tabular-nums; }
.data caption { text-align: left; font: 600 15px var(--sans); padding: 14px 16px 6px; color: var(--ink); caption-side: top; }
.data th, .data td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.data thead th { background: var(--sand-soft); font: 700 12px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.data tbody th { font-weight: 600; }
.data tbody tr:last-child > * { border-bottom: 0; }
.data .n { text-align: right; white-space: nowrap; }
.data tr.hl > * { background: #EEF3F7; }
.data tr.total > * { font-weight: 700; border-top: 2px solid var(--ink); }
.table-foot { font-size: 13.5px; color: var(--muted); padding: 10px 16px; margin: 0; border-top: 1px solid var(--line); }

/* Notes */
.note { border-left: 3px solid var(--sand); background: var(--surface); padding: 16px 20px; margin: 0 0 1.6em; font-size: 16px; }
.note strong { display: block; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--sand-ink); margin-bottom: 4px; }
.note > div > :last-child { margin-bottom: 0; }
.note.warn { border-left-color: var(--warn); background: #FBF5EA; }
.note.warn strong { color: var(--warn); }

/* Cards, steps, kpis */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin: 0 0 1.6em; }
.card { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--sand); padding: 28px; display: flex; flex-direction: column; transition: border-color .15s; }
.card:hover { border-color: var(--sand-ink); border-top-color: var(--sand-ink); }
.card h3 { font-size: 23px; margin-bottom: .4em; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--petrol); }
.card p { color: var(--muted); font-size: 16px; flex: 1; }
.card-ico { color: var(--petrol); margin-bottom: 14px; }
.cards.feature .card:first-child { background: var(--petrol); border-color: var(--petrol); border-top-color: var(--sand); }
.cards.feature .card:first-child h3 a, .cards.feature .card:first-child .card-ico, .cards.feature .card:first-child .arrow-link { color: #fff; }
.cards.feature .card:first-child p { color: #D2DEE5; }
.steps { list-style: none; padding: 0; margin: 0 0 1.6em; counter-reset: s; display: grid; gap: 0; }
.steps li { counter-increment: s; position: relative; padding: 4px 0 22px 64px; border-left: 1px solid var(--line); margin-left: 20px; }
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before { content: counter(s); position: absolute; left: -21px; top: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--surface); border: 1px solid var(--sand); color: var(--petrol); font: 600 20px/40px var(--serif); text-align: center; }
.steps h3 { font-size: 21px; margin: 6px 0 .3em; }
.steps p { color: var(--muted); font-size: 16px; margin: 0; }
.steps.row { grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps.row li { border: 1px solid var(--line); background: var(--surface); margin: 0; padding: 74px 26px 26px; }
.steps.row li::before { left: 26px; top: 22px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 0 0 1.6em; }
.kpis > div { background: var(--surface); padding: 18px 20px; }
.kpis strong { display: block; font: 600 30px/1.1 var(--serif); color: var(--petrol); font-variant-numeric: tabular-nums; }
.kpis span { font-size: 14px; color: var(--muted); }
.checklist { list-style: none; padding: 0 !important; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before { content: ''; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.checklist li:has(.ico)::before { display: none; }
.checklist li .ico { position: absolute; left: 0; top: .25em; color: var(--ok); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 0 0 1.6em; }
.grid-2 > * { min-width: 0; }
.figure { margin: 0 0 1.6em; }
.figure img { width: 100%; border: 1px solid var(--line); }
.figure figcaption { font-size: 13.5px; color: var(--muted); margin-top: 8px; }

/* CTA band */
.cta-band { background: var(--petrol-deep); color: #fff; position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; inset: 0; opacity: .14; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23C7A77B' stroke-width='1'%3E%3Crect x='.5' y='.5' width='55' height='55'/%3E%3Cpath d='M28 6 L50 28 L28 50 L6 28Z'/%3E%3Ccircle cx='28' cy='28' r='8'/%3E%3Cpath d='M0 0l12 12M56 0L44 12M0 56l12-12M56 56L44 44'/%3E%3C/g%3E%3C/svg%3E"); pointer-events: none; }
.cta-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #C9D6DE; font-size: 18px; margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* Footer */
.site-footer { background: #08222F; color: #AFC2CD; font-size: 15px; padding: 64px 0 28px; }
.site-footer a { color: #DCE6EC; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.foot-brand p { margin-top: 18px; }
.foot-contact { line-height: 2; }
.foot-h { font: 700 12.5px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #E2CBA6; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; line-height: 1.4; }
.footer-legal { padding-top: 24px; font-size: 13.5px; line-height: 1.6; color: #8FA6B3; }
.footer-legal p { max-width: 110ch; margin-bottom: .8em; }

/* Forms & tool controls */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field > label, .field > .flabel, fieldset.field > legend { font: 600 14.5px/1.3 var(--sans); color: var(--ink); padding: 0; }
.field .help { font-size: 13.5px; color: var(--muted); }
fieldset.field { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
fieldset.field > legend { margin-bottom: 8px; }
input[type=text], input[type=email], input[type=tel], input[type=number], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; font: 400 16px/1.4 var(--sans); color: var(--ink);
  background: #fff; border: 1px solid #CFC7B9; border-radius: var(--r); transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--petrol); box-shadow: 0 0 0 3px rgba(43,92,138,.25); }
input[aria-invalid=true], select[aria-invalid=true], textarea[aria-invalid=true] { border-color: var(--err); }
.ferr { color: var(--err); font-size: 13.5px; min-height: 0; }
.money { position: relative; }
.money::before { content: '€'; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.money input { padding-left: 30px; font-variant-numeric: tabular-nums; }
.seg { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid #CFC7B9; border-radius: var(--r); overflow: hidden; background: #fff; }
.seg label { flex: 1 1 auto; position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: block; text-align: center; padding: 11px 12px; font-size: 14.5px; font-weight: 600; color: var(--muted); border-right: 1px solid #E5DFD4; transition: background-color .15s, color .15s; }
.seg label:last-child span { border-right: 0; }
.seg input:checked + span { background: var(--petrol); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--azulejo); outline-offset: -3px; }
.seg label:hover span { color: var(--petrol); }
.seg input:checked:hover + span, .seg label:hover input:checked + span { color: #fff; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.presets button { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 10px; font: 600 13px var(--sans); color: var(--petrol); cursor: pointer; }
.presets button:hover { border-color: var(--petrol); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--petrol); }
.check.disabled { color: #9AA1A8; cursor: not-allowed; }
input[type=range] { width: 100%; accent-color: var(--petrol); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.form-grid .full { grid-column: 1 / -1; }
.form-status { padding: 18px 20px; border-left: 3px solid var(--ok); background: #EEF5F1; margin-top: 18px; }
.form-status.error { border-left-color: var(--err); background: #FBEFEC; }
.form-status h3 { font-size: 22px; margin-bottom: .2em; }
.form-status p { margin: 0; }

/* Calculator layout */
.tool { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px; align-items: start; }
.tool-panel { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--sand); padding: 28px; }
.tool-panel h2 { font-size: 26px; }
.results { position: sticky; top: 100px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.res-head { background: var(--petrol); color: #fff; padding: 24px 28px; }
.res-head .label { color: #E2CBA6; margin-bottom: 6px; }
.res-big { font: 600 46px/1.05 var(--serif); font-variant-numeric: tabular-nums; }
.res-sub { color: #C9D6DE; font-size: 15px; margin-top: 6px; }
.res-body { padding: 22px 28px 28px; }
.res-body .table-wrap { border: 0; margin-bottom: 1em; }
.res-body .data th, .res-body .data td { padding: 9px 0; }
.res-body .data thead th { background: none; padding-top: 0; }
.gap-box { border-left: 3px solid var(--azulejo); background: #EEF3F7; padding: 16px 18px; margin: 4px 0 18px; }
.gap-box strong.fig { display: block; font: 600 32px/1.1 var(--serif); color: var(--azulejo); font-variant-numeric: tabular-nums; }
.gap-box p { font-size: 15px; margin: 6px 0 0; color: var(--ink); }
.res-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.res-empty { color: var(--muted); font-size: 16px; padding: 8px 0; }
.method { font-size: 14px; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r); font-size: 15px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 90; }
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.fade { animation: fade .15s ease-out; }
@keyframes fade { from { opacity: .35; } to { opacity: 1; } }
.print-only { display: none; }

/* Home estimator */
.estimator { background: var(--surface); color: var(--ink); border-top: 3px solid var(--sand); box-shadow: 0 30px 70px -30px rgba(0,0,0,.6); padding: 28px; }
.estimator h2 { font-size: 26px; margin-bottom: 4px; }
.estimator .sub { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }
.est-out { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 6px 0 16px; }
.est-out div { background: var(--paper); padding: 12px 14px; }
.est-out span { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.est-out strong { font: 600 24px/1.2 var(--serif); font-variant-numeric: tabular-nums; }
.est-out .gap strong { color: var(--azulejo); }

/* Responsive */
@media (max-width: 1080px) {
  .nav ul { gap: 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 999px) {
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; box-shadow: var(--shadow); max-height: calc(100vh - 80px); overflow: auto; }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav > ul > li > a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .submenu { position: static; display: flex !important; box-shadow: none; border: 0; min-width: 0; padding: 0 0 6px 12px !important; }
  .submenu a { padding: 8px 0; }
  .nav .btn { margin-top: 16px; }
  .article-grid { grid-template-columns: 1fr; gap: 40px; }
  .aside { position: static; }
  .hero .wrap, .tool, .cta-inner { grid-template-columns: 1fr; }
  .results { position: static; }
  .cta-actions { justify-content: flex-start; }
  .steps.row { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .strip .wrap span:first-child { display: none; }
  .strip .wrap { justify-content: center; }
  .band { padding: 56px 0; }
  .hero .wrap { padding-top: 48px; padding-bottom: 56px; gap: 36px; }
  .form-grid, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .est-out { grid-template-columns: 1fr; }
  .res-big { font-size: 38px; }
  .tool-panel, .estimator { padding: 22px; }
  .wm-name { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* Print: clean memorandum */
@media print {
  body { background: #fff; font-size: 11.5pt; }
  .strip, .site-header, .site-footer, .cta-band, .page-head, .tool-panel, .res-actions, .no-print, .toast, .skip, .crumbs, .band-after { display: none !important; }
  .print-only { display: block; }
  .band { padding: 0; }
  .tool { display: block; }
  .results { box-shadow: none; border: 0; position: static; }
  .res-head { background: none; color: #000; padding: 0 0 8pt; border-bottom: 2pt solid #000; }
  .res-head .label, .res-sub { color: #333; }
  .res-body { padding: 8pt 0; }
  .gap-box { background: none; border-left: 2pt solid #000; }
  .gap-box strong.fig { color: #000; }
  a { color: #000; text-decoration: none; }
}
