/* maison-a-renover.lu : same family as estimation-luxembourg.lu (idemmo kit).
   Navy ink on paper, Archivo 400-700, hairline rules, the house gradient only as
   a thin rule (header, card tops). Type on 12 14 16 18 20 24 30 36 48 60,
   spacing on 4 8 12 16 24 32 40 48 64 96. Light only. */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/archivo-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/archivo-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; }

:root {
  color-scheme: light;
  --navy: #102b45;
  --paper: #fbfaf7;
  --paper-2: #f3f1ec;
  --paper-3: #e9e6df;
  --panel: #ffffff;
  --ink: #102b45;
  --ink2: #3a5573;
  --ink3: #56708b;
  --rule: #e2ddd4;
  --accent: #102b45;
  --accent-text: #ffffff;
  --good: #0f6b3f;
  --head-bg: rgba(251, 250, 247, .82);
  --gradient: linear-gradient(90deg, #e52d78 0%, #ff8a18 33%, #80c84b 66%, #12b8d7 100%);
  --font: "Archivo", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --r-ctl: 12px;
  --r-card: 16px;
  --shadow: 0 1px 2px rgba(16, 43, 69, .05), 0 8px 24px rgba(16, 43, 69, .06);
  --shadow-lift: 0 2px 4px rgba(16, 43, 69, .06), 0 24px 48px rgba(16, 43, 69, .12);
  --gutter: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 24px; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg, table { max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
p { margin: 0 0 16px; text-wrap: pretty; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; margin: 0 0 16px; overflow-wrap: break-word; hyphens: auto; text-wrap: balance; }
h1 { font-size: 36px; line-height: 40px; font-weight: 700; letter-spacing: -0.035em; }
@media (max-width: 420px) { h1 { font-size: 30px; line-height: 36px; } }
h2 { font-size: 30px; line-height: 36px; letter-spacing: -0.03em; }
h3, .h3 { font-size: 20px; line-height: 28px; letter-spacing: -0.01em; }
@media (min-width: 720px) { h1 { font-size: 48px; line-height: 52px; } h2 { font-size: 36px; line-height: 40px; } }
@media (min-width: 1100px) { h1 { font-size: 60px; line-height: 64px; } }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }
:focus-visible { outline: 3px solid #ff8a18; outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 12px 16px; z-index: 100; font-weight: 600; }
.skip:focus { left: 8px; top: 8px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* header */
.site-head { position: sticky; top: 0; z-index: 40; padding: 8px 0 0; }
.nav-shell { max-width: 1400px; margin: 0 auto; padding: 0 8px; }
@media (min-width: 720px) { .site-head { padding-top: 12px; } .nav-shell { padding: 0 24px; } }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 56px; padding: 8px 8px 8px 12px; background: var(--head-bg); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); border: 1px solid var(--rule); border-radius: 20px; box-shadow: var(--shadow); position: relative; }
.brand-rule { position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--gradient); border-radius: 2px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand-mono { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: var(--accent-text); font-weight: 700; font-size: 18px; position: relative; overflow: hidden; }
.brand-mono::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--gradient); }
.brand-id { display: grid; gap: 2px; min-width: 0; }
.brand-name { font-size: 18px; line-height: 20px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.brand-sub { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 14px; font-weight: 500; color: var(--ink3); white-space: nowrap; }
.brand-logo { height: 12px; width: auto; display: block; }
.nav-links { display: none; align-items: center; gap: 4px; }
.nav-links a:not(.btn) { padding: 8px 12px; border-radius: 10px; text-decoration: none; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink2); }
.nav-links a:not(.btn):hover, .nav-links a[aria-current] { color: var(--ink); background: var(--paper-2); }
@media (min-width: 1000px) { .nav-links { display: flex; } .menu { display: none; } }
.nav-tools { display: flex; align-items: center; gap: 4px; }
.lang-nav { display: flex; }
.lang-nav a { padding: 8px 6px; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .04em; text-decoration: none; color: var(--ink3); border-radius: 8px; }
.lang-nav a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; }
@media (max-width: 420px) { .brand-sub { display: none; } .brand-mono { width: 36px; height: 36px; } .lang-nav a { padding: 8px 3px; } .brand-name { font-size: 16px; } }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--rule); background: var(--panel); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span, .menu summary span::before, .menu summary span::after { display: block; width: 16px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; content: ""; }
.menu summary span::before { position: absolute; top: -5px; }
.menu summary span::after { position: absolute; top: 5px; }
.menu-panel { position: absolute; right: 0; top: 48px; width: min(280px, calc(100vw - 32px)); display: grid; gap: 4px; padding: 12px; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r-card); box-shadow: var(--shadow-lift); }
.menu-panel a:not(.btn) { padding: 12px; text-decoration: none; border-radius: 8px; font-weight: 500; }
.menu-panel a:not(.btn):hover { background: var(--paper-2); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: var(--r-ctl); font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; font-size: 16px; line-height: 24px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease); }
.btn:active { transform: scale(.98); }
.btn-sm { padding: 8px 14px; font-size: 14px; line-height: 20px; }
.btn-primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.btn-primary:hover { box-shadow: var(--shadow-lift); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { background: var(--paper-2); }
.btn-light { background: #fff; color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

/* hero */
.hero { padding: 40px 0 48px; }
@media (min-width: 900px) { .hero { padding: 72px 0 80px; } }
.hero-sub { padding-bottom: 32px; }
.hero-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr); gap: 64px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); margin-bottom: 16px; padding: 8px 12px; border: 1px solid var(--rule); border-radius: 999px; background: var(--panel); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gradient); flex: none; }
.tldr { background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--r-card); padding: 16px 20px; margin: 24px 0; font-size: 18px; line-height: 28px; color: var(--ink2); max-width: 760px; }
.tldr p:last-child { margin: 0; }
.sub { color: var(--ink2); font-size: 18px; line-height: 28px; max-width: 680px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }
.hero-note { font-size: 14px; line-height: 20px; color: var(--ink3); margin: 0; }
.crumbs { font-size: 14px; line-height: 20px; color: var(--ink3); margin-bottom: 16px; }
.crumbs a { color: var(--ink2); }

/* cards: thin gradient bar on top, never a side accent */
.card { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r-card); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gradient); }
.hero-card { padding: 28px 24px 16px; }
.fact { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--rule); margin: 0; }
.hero-card .eyebrow + .fact { border-top: 0; padding-top: 0; }
.fact-label { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink3); text-transform: uppercase; letter-spacing: .06em; }
.fact-value { font-size: 20px; line-height: 28px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fact-src { font-size: 12px; line-height: 16px; color: var(--ink3); }

/* sections */
.section { padding: 56px 0; }
@media (min-width: 900px) { .section { padding: 80px 0; } }
.section-alt { background: var(--paper-2); }
.section-lead { font-size: 18px; line-height: 28px; color: var(--ink2); max-width: 680px; }
.section-kicker { display: block; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); margin-bottom: 12px; }
.path-grid { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 820px) { .path-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
.path-card { padding: 28px 24px 24px; }
.path-card p { color: var(--ink2); }
.guide-grid { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.guide-card { padding: 24px 20px 16px; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.guide-card a { text-decoration: none; }
.guide-card a::after { content: ""; position: absolute; inset: 0; }
.guide-title { display: block; font-size: 18px; line-height: 26px; font-weight: 600; margin-bottom: 8px; }
.guide-card p { color: var(--ink2); font-size: 14px; line-height: 20px; margin: 0; }

/* prose */
.article-grid { display: grid; gap: 40px; padding-bottom: 64px; grid-template-columns: minmax(0, 1fr); }
.article-grid > * { min-width: 0; }
@media (min-width: 1000px) { .article-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; } .side { position: sticky; top: 104px; align-self: start; } }
.prose { max-width: 760px; }
.prose-narrow { padding-bottom: 64px; }
.home-prose { padding: 56px 0; }
.prose-section { padding-top: 24px; }
.prose h2 { font-size: 26px; line-height: 32px; margin-top: 16px; }
@media (min-width: 720px) { .prose h2 { font-size: 30px; line-height: 36px; } }
.prose h3 { margin-top: 24px; }
.prose p, .prose li { color: var(--ink2); }
.prose ul, .prose ol { padding-left: 20px; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); }
a.src { font-size: 13px; line-height: 20px; color: var(--ink3); white-space: normal; }
.note { font-size: 14px; line-height: 20px; color: var(--ink3); background: var(--paper-2); border-radius: 12px; padding: 12px 16px; }
.table-scroll { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--rule); border-radius: 12px; background: var(--panel); }
.table-scroll table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 14px; line-height: 20px; }
.table-scroll th, .table-scroll td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
.table-scroll td.n, .table-scroll th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-scroll thead th { background: var(--paper-2); font-weight: 600; color: var(--ink); }
.table-scroll caption { caption-side: bottom; text-align: left; padding: 8px 12px; font-size: 12px; color: var(--ink3); }
.side { display: grid; gap: 16px; }
.side-card { padding: 24px 20px 20px; }
.side-title { font-weight: 600; font-size: 18px; line-height: 26px; margin-bottom: 8px; }
.side-card p { color: var(--ink2); font-size: 14px; line-height: 20px; }
.side-list { list-style: none; padding: 0; margin: 0; font-size: 14px; line-height: 20px; }
.side-list li { border-top: 1px solid var(--rule); }
.side-list a { display: block; padding: 10px 0; text-decoration: none; color: var(--ink2); }
.side-list a:hover, .side-list a[aria-current] { color: var(--ink); text-decoration: underline; }

/* faq, sources */
.faq { padding-top: 32px; }
.faq-item { border-top: 1px solid var(--rule); }
.faq-item:last-of-type { border-bottom: 1px solid var(--rule); }
.faq-item summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 600; font-size: 18px; line-height: 26px; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 22px; color: var(--ink3); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-a { padding: 0 0 16px; color: var(--ink2); }
.sources { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rule); }
.sources ol { padding-left: 20px; font-size: 14px; line-height: 20px; color: var(--ink3); }
.sources li { margin-bottom: 8px; color: var(--ink3); overflow-wrap: anywhere; }

/* seller band */
.seller-band { background: var(--navy); color: #fff; padding: 40px 0; position: relative; }
.seller-band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gradient); }
.seller-inner { display: grid; gap: 20px; align-items: center; }
@media (min-width: 820px) { .seller-inner { grid-template-columns: 1fr auto; gap: 40px; } }
.seller-q { font-size: 24px; line-height: 32px; font-weight: 600; margin-bottom: 8px; }
.seller-inner p { color: #d7e0ea; margin: 0; }
.seller-inner .seller-q { color: #fff; }

/* form */
.form-layout { display: grid; gap: 32px; }
@media (min-width: 960px) { .form-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; } }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.ticks li { padding-left: 24px; position: relative; color: var(--ink2); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 10px; height: 6px; border-left: 2px solid var(--good); border-bottom: 2px solid var(--good); transform: rotate(-45deg); }
.agent-card { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--rule); border-radius: var(--r-card); background: var(--panel); max-width: 400px; }
.agent-mono { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: var(--accent-text); font-weight: 700; }
.agent-card p { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink2); }
.agent-card strong { display: block; color: var(--ink); font-size: 16px; line-height: 24px; }
.lead-form { padding: 28px 20px 20px; display: grid; gap: 16px; }
@media (min-width: 720px) { .lead-form { padding: 32px 28px 28px; } }
.form-grid { display: grid; gap: 12px; }
@media (min-width: 600px) { .form-grid { grid-template-columns: 1fr 1fr; } .field-wide { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; font-size: 14px; line-height: 20px; font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; font-weight: 400; font-size: 16px; line-height: 24px; padding: 10px 12px; border: 1px solid #c9c2b6; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; min-width: 0; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--ink3); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: #b3261e; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 20px; color: var(--ink2); }
.check input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--navy); }
.disclosure { font-size: 13px; line-height: 18px; color: var(--ink3); margin: 0; }
.form-status { margin: 0; padding: 12px 16px; border-radius: 10px; background: var(--paper-2); font-size: 14px; line-height: 20px; }

/* tool */
.tool-section { padding: 8px 0 24px; }
.tool { padding: 24px 16px 20px; }
@media (min-width: 720px) { .tool { padding: 32px 28px 28px; } }
.tool-note { font-size: 14px; line-height: 20px; color: var(--ink3); max-width: 760px; margin-top: 16px; }
.t-settings { display: grid; gap: 12px; margin-bottom: 24px; }
@media (min-width: 800px) { .t-settings { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.t-set { border: 1px solid var(--rule); border-radius: 12px; padding: 12px 14px; background: var(--paper); }
.t-set legend, .t-set .t-set-title { font-size: 14px; line-height: 20px; font-weight: 600; padding: 0; margin-bottom: 8px; }
.t-set p { font-size: 13px; line-height: 18px; color: var(--ink3); margin: 8px 0 0; }
.t-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-bottom: 16px; }
.t-add .field { flex: 1 1 240px; }
.t-rows { display: grid; gap: 12px; margin-bottom: 20px; }
.t-row { border: 1px solid var(--rule); border-radius: 12px; padding: 16px 14px 12px; background: var(--panel); }
.t-row-head { display: flex; justify-content: space-between; gap: 8px; align-items: start; margin-bottom: 12px; }
.t-row-title { font-weight: 600; font-size: 16px; line-height: 24px; margin: 0; }
.t-remove { background: none; border: 1px solid var(--rule); border-radius: 8px; padding: 4px 10px; font: inherit; font-size: 13px; color: var(--ink2); cursor: pointer; flex: none; }
.t-fields { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); }
.t-fields .field { font-size: 13px; line-height: 18px; }
.t-out { display: grid; gap: 4px 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 14px; line-height: 20px; }
.t-out span { color: var(--ink3); display: block; font-size: 12px; line-height: 16px; }
.t-out b { font-variant-numeric: tabular-nums; font-weight: 600; }
.t-why { font-size: 13px; line-height: 18px; color: var(--ink3); margin: 8px 0 0; }
.t-total { border-radius: 12px; background: var(--navy); color: #fff; padding: 20px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.t-total span { display: block; font-size: 12px; line-height: 16px; color: #d7e0ea; text-transform: uppercase; letter-spacing: .06em; }
.t-total b { font-size: 22px; line-height: 30px; font-variant-numeric: tabular-nums; }
.t-empty { color: var(--ink3); font-size: 14px; margin: 0; padding: 16px; border: 1px dashed var(--rule); border-radius: 12px; }
.t-warn { font-size: 13px; line-height: 18px; color: var(--ink2); margin: 12px 0 0; }
.cmp { padding: 24px 16px 20px; margin: 16px 0 24px; }
@media (min-width: 720px) { .cmp { padding: 28px 24px 24px; } }
.cmp .form-grid { margin-bottom: 16px; }
.cmp-out { font-size: 16px; line-height: 24px; color: var(--ink); margin: 0; }
.cmp-out b { font-variant-numeric: tabular-nums; }

/* footer */
.site-foot { border-top: 1px solid var(--rule); padding: 48px 0 40px; background: var(--paper); }
.foot-grid { display: grid; gap: 24px; font-size: 14px; line-height: 20px; color: var(--ink2); }
@media (min-width: 820px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; } }
.foot-brand { font-weight: 700; font-size: 18px; color: var(--ink); }
.foot-label { font-weight: 600; color: var(--ink); }
.foot-small { font-size: 12px; line-height: 16px; color: var(--ink3); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
/* very narrow screens: the brand gives way before the language links */
.brand { flex: 1 1 auto; }
.brand-name { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 359px) { .brand-name { font-size: 14px; } .lang-nav a { padding: 8px 2px; } }
