/* Jainam Gor Real Estate — site styles
   Brand: Sharp. Warm. Grounded. Orange is the needle, not the paint. */

:root {
  --ink: #17130F;
  --ink-2: #3D342C;
  --muted: #6B5B4C;          /* taupe darkened for readable small text */
  --signal: #FF8F1C;          /* buttons, needles, key numbers only */
  --rust: #DD5B00;            /* hover / pressed */
  --cream: #F8E8DB;
  --paper: #FFFBF6;
  --white: #FFFFFF;
  --taupe: #BFA084;
  --maroon: #3A0805;
  --line: rgba(23, 19, 15, .14);
  --line-strong: rgba(23, 19, 15, .28);
  --ok: #2F6B3B;

  --f-head: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --f-body: "Inter", ui-sans-serif, system-ui, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-sm: 4px;
  --r-md: 8px;
  --shadow: 0 1px 2px rgba(23, 19, 15, .06), 0 8px 24px -12px rgba(23, 19, 15, .18);
  --header-h: 112px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--f-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--rust); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 100; }
.skip:focus { top: 8px; }

h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }
.num { font-family: var(--f-head); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section--cream { background: var(--cream); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head p { margin: 0; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: var(--r-md);
  font: 600 .95rem/1.2 var(--f-head); letter-spacing: 0; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--signal { background: var(--signal); color: var(--ink); }
.btn--signal:hover { background: var(--rust); color: var(--white); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--ink-2); color: var(--paper); }
.btn--line { border-color: var(--line-strong); background: transparent; color: var(--ink); }
.btn--line:hover { border-color: var(--ink); color: var(--ink); }
.btn--sm { min-height: 36px; padding: 6px 12px; font-size: .875rem; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Header (sticky: contact strip + nav) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; }
.contact-strip { background: var(--ink); color: var(--cream); font-size: .875rem; }
.contact-strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.contact-strip a { color: var(--cream); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.contact-strip a:hover { color: var(--signal); }
.contact-strip svg { width: 15px; height: 15px; color: var(--signal); }
.contact-strip__links { display: flex; gap: 22px; align-items: center; }
.contact-strip__note { color: var(--taupe); }
.nav-bar { background: rgba(255, 251, 246, .96); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line); }
.nav-bar .wrap { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { width: 40px; height: 40px; }
.brand__name { font: 600 1.35rem/1 var(--f-head); letter-spacing: -.02em; }
.brand__tag { display: block; font: 500 .72rem/1.2 var(--f-body); color: var(--muted); letter-spacing: 0; margin-top: 3px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: var(--r-md); text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--ink-2); }
.nav a:hover { background: var(--cream); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--signal); border-radius: 0; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.account-chip { display: none; align-items: center; gap: 8px; font-size: .9rem; }
.is-member .account-chip { display: inline-flex; }
.is-member .js-login-open { display: none; }
.menu-toggle { display: none; background: none; border: 1.5px solid var(--line-strong); border-radius: var(--r-md); width: 44px; height: 44px; cursor: pointer; }
.menu-toggle svg { width: 22px; height: 22px; margin: auto; }

@media (max-width: 1020px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; box-shadow: var(--shadow); }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--signal); }
  .menu-toggle { display: grid; }
  .nav-actions { margin-left: auto; }
}
@media (max-width: 640px) {
  :root { --header-h: 100px; }
  .contact-strip__note, .contact-strip .label-long { display: none; }
  .contact-strip__links { gap: 16px; }
  .nav-bar .wrap { min-height: 60px; gap: 12px; }
  .brand img { width: 34px; height: 34px; }
  .brand__name { font-size: 1.15rem; }
  .brand__tag { display: none; }
  .hero__stats .num { font-size: 1.35rem; }
  .hero__stats div { padding: 14px 12px; }
  .nav-actions .btn { padding: 6px 10px; font-size: .82rem; min-height: 40px; }
  .account-chip span { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 6vw, 72px); background: var(--cream); border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { max-width: 15ch; }
.hero .lede { margin-bottom: 28px; }
.hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.hero__stats div { background: var(--paper); padding: 18px 16px; }
.hero__stats .num { display: block; font-size: 1.9rem; line-height: 1.1; }
.hero__stats span:last-child { font-size: .85rem; color: var(--muted); }
.hero__panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; box-shadow: var(--shadow); }
.hero__panel h2 { font-size: 1.15rem; margin-bottom: 4px; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }

/* Quick search */
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.quick label, .field label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.quick .full { grid-column: 1 / -1; }
.input, select.input {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md); background: var(--white); font-size: .95rem;
}
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 143, 28, .35); }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2317130F' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }

/* ---------- Project cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }

.card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.card__media { position: relative; aspect-ratio: 16 / 10; background: var(--cream); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__status { position: absolute; left: 12px; top: 12px; background: var(--paper); color: var(--ink); font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.card__status--ready { background: var(--ink); color: var(--cream); }
.card__body { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__title { font: 600 1.2rem/1.2 var(--f-head); letter-spacing: -.01em; margin: 0; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }   /* whole card clickable */
.card__where { font-size: .9rem; color: var(--muted); margin: 0; }
.card__facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .88rem; color: var(--ink-2); margin: 0; padding: 0; list-style: none; }
.card__foot { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.price-from { font-size: .8rem; color: var(--muted); }
.price-from strong { display: block; font: 600 1.35rem/1.15 var(--f-head); color: var(--ink); letter-spacing: -.01em; }

/* Placeholder art for projects without renderings */
.placeholder { width: 100%; height: 100%; display: grid; place-items: center; background:
  repeating-linear-gradient(135deg, transparent 0 22px, rgba(191, 160, 132, .18) 22px 23px), var(--cream); }
.placeholder span { font: 600 1.05rem/1.2 var(--f-head); color: var(--ink-2); text-align: center; padding: 0 20px; max-width: 18ch; }

/* ---------- The gauge (signature) ---------- */
.gauge { display: inline-flex; align-items: center; gap: 10px; }
.gauge svg { width: 58px; height: 34px; flex: none; overflow: visible; }
.gauge__track { fill: none; stroke: rgba(191, 160, 132, .38); stroke-width: 7; stroke-linecap: round; }
.gauge__ticks { stroke: var(--taupe); stroke-width: 1.5; }
.gauge__needle { stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; transform-origin: 30px 30px; }
.gauge__hub { fill: var(--signal); }
.gauge__text { font-size: .78rem; line-height: 1.25; color: var(--muted); text-align: right; }
.gauge__text strong { display: block; font: 600 .95rem/1.2 var(--f-head); color: var(--ink); }
.gauge--lg svg { width: 150px; height: 88px; }
.gauge--lg .gauge__track { stroke-width: 6; }
.gauge--lg .gauge__needle { stroke-width: 2; }
.gauge--lg .gauge__text { text-align: left; font-size: .9rem; }
.gauge--lg .gauge__text strong { font-size: 1.6rem; }
@media (prefers-reduced-motion: no-preference) {
  .gauge__needle { transition: transform .9s cubic-bezier(.2, .9, .2, 1); }
}

/* ---------- Search page ---------- */
.search-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow: auto; padding-right: 4px; }
.filters h2 { font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; }
.filter-group { border-top: 1px solid var(--line); padding: 14px 0; }
.filter-group legend, .filter-group > .filter-label { font-weight: 600; font-size: .9rem; padding: 0; margin-bottom: 8px; }
fieldset.filter-group { border-left: 0; border-right: 0; border-bottom: 0; margin: 0; min-width: 0; }
.check { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: .92rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.check .count { margin-left: auto; color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.range .input { min-height: 40px; padding: 8px 10px; font-size: .9rem; }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.results-bar h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
.results-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1.5px solid var(--line-strong); border-radius: var(--r-md); overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 8px 14px; min-height: 40px; cursor: pointer; font-weight: 600; font-size: .88rem; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--cream); border: 0; border-radius: 999px; padding: 5px 8px 5px 12px; font-size: .85rem; cursor: pointer; }
.chip svg { width: 14px; height: 14px; }
.chip:hover { background: var(--taupe); }
.filters-toggle { display: none; }
.empty { padding: 48px 24px; text-align: center; border: 1.5px dashed var(--line-strong); border-radius: var(--r-md); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--r-md); font-size: .9rem; z-index: 90; }
@media (max-width: 900px) {
  .search-layout { grid-template-columns: 1fr; }
  .filters { display: none; position: fixed; inset: 0; z-index: 70; background: var(--paper); max-height: none; padding: 20px var(--gutter) 100px; }
  .filters.is-open { display: block; }
  .filters-toggle { display: inline-flex; }
  .filters__close { display: inline-flex !important; }
  .filters__apply { display: flex !important; position: fixed; left: 0; right: 0; bottom: 0; padding: 12px var(--gutter); background: var(--paper); border-top: 1px solid var(--line); }
  .filters__apply .btn { flex: 1; }
}
.filters__close, .filters__apply { display: none !important; }

/* Excel-style table */
.table-wrap { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); overflow: auto; max-height: 75vh; }
table.data { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .9rem; }
table.data th, table.data td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
table.data thead th { position: sticky; top: 0; background: var(--cream); z-index: 2; font-weight: 600; font-size: .82rem; color: var(--ink); vertical-align: bottom; }
table.data td.n, table.data th.n { text-align: right; font-variant-numeric: tabular-nums; }
table.data tbody tr:hover td { background: #FFF6EC; }
table.data td a { font-weight: 600; text-decoration: none; }
table.data td a:hover { text-decoration: underline; }
.th-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; }
.th-btn .ico { width: 18px; height: 18px; border: 1px solid var(--line-strong); border-radius: 3px; display: grid; place-items: center; background: var(--white); }
.th-btn .ico svg { width: 10px; height: 10px; }
.th-btn.is-filtered .ico { background: var(--signal); border-color: var(--signal); }
.colmenu { position: absolute; z-index: 80; width: 260px; background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--r-md); box-shadow: 0 12px 32px -8px rgba(23, 19, 15, .35); padding: 12px; font-size: .9rem; }
.colmenu__sort { display: grid; gap: 2px; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.colmenu__sort button { text-align: left; background: none; border: 0; padding: 6px 8px; border-radius: var(--r-sm); cursor: pointer; }
.colmenu__sort button:hover { background: var(--cream); }
.colmenu__list { max-height: 220px; overflow: auto; margin: 8px 0; }
.colmenu__foot { display: flex; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); }

/* ---------- Project page ---------- */
.p-hero { background: var(--cream); border-bottom: 1px solid var(--line); }
.p-hero__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 0; }
.p-hero__media { position: relative; min-height: 360px; background: var(--ink); overflow: hidden; }
.p-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p-hero__body { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.p-hero__body h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 4px; }
.crumbs a { color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 24px; margin: 0; }
.facts dt { font-size: .8rem; color: var(--muted); }
.facts dd { margin: 0; font: 600 1.1rem/1.25 var(--f-head); }
.p-hero__cta { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 900px) { .p-hero__grid { grid-template-columns: 1fr; } .p-hero__media { min-height: 220px; } }

.p-main { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.p-side { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 16px; }
@media (max-width: 1000px) { .p-main { grid-template-columns: 1fr; } .p-side { position: static; } }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; }
.panel h2, .panel h3 { font-size: 1.1rem; }
.panel--ink { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.panel--ink a { color: var(--cream); }
.block { margin-bottom: 44px; }
.block > h2 { font-size: 1.5rem; }
.map { width: 100%; height: 300px; border: 1px solid var(--line); border-radius: var(--r-md); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--white); }
.gallery figcaption { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.docs { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.docs a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; background: var(--white); }
.docs a:hover { border-color: var(--ink); color: var(--ink); }
.docs svg { width: 22px; height: 22px; color: var(--rust); flex: none; }
.docs .size { margin-left: auto; color: var(--muted); font-size: .8rem; }
.model-detail { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); margin-bottom: 10px; }
.model-detail summary { cursor: pointer; padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; list-style: none; }
.model-detail summary::-webkit-details-marker { display: none; }
.model-detail summary .sub { grid-column: 1; font-size: .85rem; color: var(--muted); }
.model-detail summary .num { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: 1.15rem; }
.model-detail[open] summary { border-bottom: 1px solid var(--line); }
.model-detail .inner { padding: 16px; display: grid; gap: 12px; font-size: .92rem; }
.model-detail .inner dl { display: grid; grid-template-columns: 160px 1fr; gap: 6px 16px; margin: 0; }
.model-detail .inner dt { color: var(--muted); }
.model-detail .inner dd { margin: 0; white-space: pre-line; }
.model-detail:target { border-color: var(--signal); box-shadow: 0 0 0 3px rgba(255, 143, 28, .3); }
@media (max-width: 640px) { .model-detail .inner dl { grid-template-columns: 1fr; } .model-detail .inner dt { margin-top: 6px; } }

/* ---------- Sign-up wall (soft) ---------- */
.gated { position: relative; }
.is-locked .gated > .gated__content { filter: blur(9px); pointer-events: none; user-select: none; }
.gated__veil { display: none; }
.is-locked .gated__veil {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
  position: absolute; inset: 0; z-index: 3; background: rgba(255, 251, 246, .55); border-radius: var(--r-md);
  cursor: pointer; border: 0; width: 100%; padding: 24px; font: inherit; color: var(--ink);
}
.gated__veil strong { font: 600 1.15rem/1.25 var(--f-head); }
.gated__veil svg { width: 28px; height: 28px; color: var(--rust); }
.gated--min { min-height: 220px; }
.free-note { display: none; background: var(--ink); color: var(--cream); padding: 12px 16px; border-radius: var(--r-md); font-size: .92rem; margin-bottom: 24px; }
.free-note a { color: var(--signal); }
.is-free-view .free-note { display: block; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(23, 19, 15, .55); }
.modal.is-open { display: flex; }
.modal__box { position: relative; width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--paper); border-radius: var(--r-md); padding: 28px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }
.modal__close { position: absolute; right: 10px; top: 10px; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; border-radius: var(--r-md); }
.modal__close:hover { background: var(--cream); }
.modal__close svg { width: 20px; height: 20px; margin: auto; }
.modal h2 { font-size: 1.5rem; margin-right: 32px; }
.modal .tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin: 16px 0 20px; }
.modal .tabs button { flex: 1; background: none; border: 0; padding: 10px; cursor: pointer; font-weight: 600; color: var(--muted); }
.modal .tabs button[aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--signal); }
.form { display: grid; gap: 14px; }
.form .btn { width: 100%; }
.form-error { color: #9B1C00; font-size: .9rem; min-height: 1.2em; margin: 0; }
.form-fine { font-size: .8rem; color: var(--muted); }
.check-line { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--ink-2); }
.check-line input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--ink); flex: none; }

/* ---------- WhatsApp ---------- */
.wa-fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--ink); color: #25D366; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px -8px rgba(23, 19, 15, .6); }
.wa-fab:hover { background: var(--ink-2); }
.wa-fab svg { width: 30px; height: 30px; }
.wa-pop { position: fixed; right: 20px; bottom: 90px; z-index: 60; width: min(330px, calc(100vw - 40px)); background: var(--white); border-radius: var(--r-md); overflow: hidden; box-shadow: 0 20px 48px -12px rgba(23, 19, 15, .45); display: none; }
.wa-pop.is-open { display: block; }
@media (prefers-reduced-motion: no-preference) { .wa-pop.is-open { animation: pop .22s ease-out; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wa-pop__head { background: var(--ink); color: var(--cream); padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.wa-pop__head img { width: 40px; height: 40px; border-radius: 50%; background: var(--cream); padding: 6px; }
.wa-pop__head strong { display: block; font-family: var(--f-head); }
.wa-pop__head span { font-size: .8rem; color: var(--taupe); }
.wa-pop__close { margin-left: auto; background: none; border: 0; color: var(--cream); cursor: pointer; width: 36px; height: 36px; border-radius: var(--r-sm); }
.wa-pop__close:hover { background: rgba(255, 255, 255, .1); }
.wa-pop__close svg { width: 18px; height: 18px; margin: auto; }
.wa-pop__body { padding: 16px; background: var(--cream); }
.wa-bubble { background: var(--white); border-radius: 0 var(--r-md) var(--r-md) var(--r-md); padding: 10px 12px; font-size: .92rem; box-shadow: 0 1px 1px rgba(0, 0, 0, .06); }
.wa-pop__foot { padding: 12px 16px 16px; background: var(--cream); }
.wa-pop__foot .btn { width: 100%; background: #25D366; color: var(--ink); }
.wa-pop__foot .btn:hover { background: #1EBE5A; color: var(--ink); }

/* ---------- Content pages ---------- */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.8em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose table { border-collapse: collapse; width: 100%; font-size: .92rem; margin: 0 0 1.2em; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--cream); }
.callout { border-left: 4px solid var(--signal); background: var(--white); padding: 14px 18px; border-radius: 0 var(--r-md) var(--r-md) 0; margin: 0 0 1.2em; }
.page-head { padding: clamp(36px, 5vw, 64px) 0 clamp(24px, 3vw, 36px); background: var(--cream); border-bottom: 1px solid var(--line); }
.page-head .lede { margin: 0; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 16px); font-size: .9rem; }
.toc ol { padding-left: 1.1em; margin: 0; }
.toc li { margin-bottom: 6px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } .toc { position: static; } }

.post-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.post-list a { display: grid; grid-template-columns: 140px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.post-list a:hover h3 { color: var(--rust); }
.post-list time { color: var(--muted); font-size: .9rem; }
.post-list p { margin: 0; color: var(--ink-2); }
@media (max-width: 640px) { .post-list a { grid-template-columns: 1fr; gap: 6px; } }

.area-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.area-link { display: block; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; }
.area-link:hover { border-color: var(--ink); color: var(--ink); }
.area-link strong { display: block; font: 600 1.3rem/1.2 var(--f-head); margin-bottom: 4px; }
.area-link span { color: var(--muted); font-size: .9rem; }

/* Calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.calc .form { gap: 16px; }
.calc .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc-out { position: sticky; top: calc(var(--header-h) + 16px); }
.big-number { font: 600 clamp(2.4rem, 5vw, 3.4rem)/1 var(--f-head); letter-spacing: -.03em; margin: 6px 0 4px; }
.big-number small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.breakdown { width: 100%; border-collapse: collapse; font-size: .92rem; margin-top: 16px; }
.breakdown td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.breakdown td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--f-head); }
.breakdown tr.total td { font-weight: 600; border-bottom: 0; border-top: 1.5px solid var(--ink); }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } .calc-out { position: static; } }

/* ---------- Contact band & footer ---------- */
.contact-band { background: var(--ink); color: var(--cream); }
.contact-band .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.contact-band h2 { color: var(--paper); }
.contact-band p { color: var(--taupe); margin: 0; }
.contact-band .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.contact-band .btn--line { color: var(--cream); border-color: rgba(248, 232, 219, .4); }
.contact-band .btn--line:hover { border-color: var(--cream); color: var(--paper); }
@media (max-width: 800px) { .contact-band .wrap { grid-template-columns: 1fr; } .contact-band .actions { justify-content: flex-start; } }

.site-footer { background: var(--maroon); color: var(--cream); font-size: .92rem; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--signal); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 56px 0 36px; }
.footer-grid h3 { font-size: .95rem; color: var(--paper); margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.footer-brand img { width: 44px; height: 44px; }
.footer-brand strong { font: 600 1.3rem/1 var(--f-head); color: var(--paper); }
.footer-tag { color: var(--taupe); margin: 0 0 12px; }
.footer-legal { border-top: 1px solid rgba(248, 232, 219, .18); padding: 20px 0 28px; color: var(--taupe); font-size: .82rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.footer-legal p { margin: 0; max-width: 80ch; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

@media print { .site-header, .wa-fab, .wa-pop, .contact-band { display: none; } }
