/* ═══════════════════════════════════════════════════════════════
   Stemma Global — design system
   Dark, premium, engineering-grade.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #0a0e15;
  --bg-2: #0d1220;
  --surface: #10161f;
  --surface-2: #141c28;
  --line: rgba(148, 163, 190, 0.14);
  --line-strong: rgba(148, 163, 190, 0.26);
  --text: #e8edf5;
  --muted: #8d97ab;
  --accent: #45d6c4;
  --accent-dim: rgba(69, 214, 196, 0.13);
  --accent-2: #f0b429;
  --danger: #ff7a7a;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --nav-h: 64px;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

/* ── Reset-ish ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 600; }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(69, 214, 196, 0.28); }

.wrap { width: min(1140px, calc(100% - 48px)); margin: 0 auto; }

/* ── Cross-document view transitions (seamless page changes) ── */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.16s ease both; }
::view-transition-new(root) { animation: vt-in 0.26s ease both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* ── Scrollbars ── */
* { scrollbar-width: thin; scrollbar-color: rgba(141, 151, 171, 0.35) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: rgba(141, 151, 171, 0.3); border-radius: 99px; }
*::-webkit-scrollbar-track { background: transparent; }

/* ═══ Navigation ═══ */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 60;
  background: rgba(10, 14, 21, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  width: min(1240px, calc(100% - 40px)); margin: 0 auto;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: 0.14em; }
.brand-word em { font-style: normal; color: var(--muted); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border-radius: 10px; border: none; background: none;
  color: var(--muted); font-size: 0.94rem; font-weight: 500; transition: color .18s, background .18s;
}
.nav-link:hover, .nav-link.is-active { color: var(--text); background: rgba(148, 163, 190, 0.08); }
.nav-cta { margin-left: 10px; }

/* dropdown */
.nav-drop { position: relative; }
.nav-drop-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0;
  width: 420px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu,
.nav-drop.open .nav-drop-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-drop-menu a {
  display: block; padding: 11px 14px; border-radius: 11px; color: var(--text);
  transition: background .15s;
}
.nav-drop-menu a:hover, .nav-drop-menu a.is-active { background: var(--accent-dim); }
.nav-drop-menu a strong { display: block; font-size: 0.95rem; }
.nav-drop-menu a span { display: block; color: var(--muted); font-size: 0.82rem; line-height: 1.45; margin-top: 2px; }

/* burger */
.nav-burger { display: none; background: none; border: 0; padding: 10px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ═══ Buttons ═══ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.94rem; transition: transform .18s ease, box-shadow .18s ease, background .18s, border-color .18s;
}
.btn:active { transform: scale(0.98); }
.btn-accent { background: var(--accent); color: #062621; }
.btn-accent:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(69, 214, 196, 0.32); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: rgba(148, 163, 190, 0.05); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.btn-lg { padding: 14px 28px; font-size: 1.02rem; border-radius: 14px; }

.kicker {
  display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.lede { color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.16rem); max-width: 640px; }

/* ═══ Chat hero ═══ */
.chat-hero {
  position: relative; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center;
  padding: calc(var(--nav-h) + 18px) 20px 20px;
  background:
    radial-gradient(52% 44% at 50% 0%, rgba(69, 214, 196, 0.09), transparent 70%),
    radial-gradient(40% 34% at 82% 22%, rgba(240, 180, 41, 0.05), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 56px 56px, 56px 56px;
  background-position: 0 0, 0 0, center top, center top;
}
.chat-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(90% 78% at 50% 42%, transparent 40%, var(--bg) 100%);
}
.chat-app {
  position: relative; z-index: 1;
  width: 100%; max-width: 900px; flex: 1;
  display: flex; flex-direction: column; min-height: 0;
}
.chat-scroll { flex: 1; overflow-y: auto; min-height: 0; padding: 6px 6px 18px; }

.chat-empty { text-align: center; padding: clamp(16px, 6vh, 64px) 10px 30px; }
.chat-empty .eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line-strong); border-radius: 99px;
  padding: 7px 16px; margin-bottom: 26px; background: rgba(16, 22, 31, 0.6);
}
.engine-tag { color: var(--accent); letter-spacing: 0.06em; text-transform: none; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(69,214,196,.5);} 55% { box-shadow: 0 0 0 7px rgba(69,214,196,0);} }
.chat-empty h1 { margin-bottom: 18px; }
.chat-empty .grad {
  background: linear-gradient(94deg, var(--accent) 10%, #7ce3d6 45%, var(--accent-2) 105%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.chat-empty .lede { margin: 0 auto 34px; }

.suggestions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 720px; margin: 0 auto; }
.chip-suggest {
  text-align: left; padding: 14px 16px; border-radius: var(--radius);
  background: rgba(16, 22, 31, 0.75); border: 1px solid var(--line);
  color: var(--muted); font-size: 0.9rem; line-height: 1.45;
  transition: border-color .18s, transform .18s, color .18s, background .18s;
}
.chip-suggest:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); background: var(--surface-2); }
.chip-suggest strong { display: block; color: var(--accent); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 5px; }

/* messages */
.msg { display: flex; margin: 16px 0; animation: msg-in .3s ease both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px); } }
.msg.user { justify-content: flex-end; }
.bubble {
  max-width: 82%; padding: 13px 17px; border-radius: 18px;
  font-size: 0.97rem; line-height: 1.6; overflow-wrap: break-word;
}
.msg.user .bubble { background: var(--accent-dim); border: 1px solid rgba(69, 214, 196, 0.3); border-bottom-right-radius: 6px; }
.msg.bot .bubble { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.bot.error .bubble { border-color: rgba(255, 122, 122, 0.4); color: var(--danger); }
.bubble p:last-child { margin-bottom: 0; }
.bubble ul { margin: 0.4em 0 0.6em; padding-left: 1.2em; }
.bubble li { margin: 0.25em 0; }
.bubble code { background: rgba(148,163,190,.12); border-radius: 5px; padding: 1px 6px; font-size: 0.88em; }
.bubble-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.file-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; color: var(--muted);
  border: 1px solid var(--line-strong); border-radius: 99px; padding: 3px 11px;
  background: rgba(10, 14, 21, 0.5);
}

/* thinking indicator */
.thinking { display: inline-flex; align-items: center; gap: 11px; color: var(--muted); font-size: 0.93rem; }
.thinking .dots { display: inline-flex; gap: 4px; }
.thinking .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); animation: bounce 1.2s infinite; }
.thinking .dots i:nth-child(2) { animation-delay: .15s; }
.thinking .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%,60%,100% { transform: translateY(0); opacity:.5;} 30% { transform: translateY(-4px); opacity:1;} }

/* ═══ Estimate card ═══ */
.est-card {
  width: 100%; margin-top: 12px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong); border-radius: 18px;
  overflow: hidden; position: relative;
}
.est-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.est-head { padding: 20px 22px 6px; display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; justify-content: space-between; }
.est-head h3 { margin: 0; font-size: 1.06rem; }
.est-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.est-chip {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 99px; border: 1px solid var(--line-strong); color: var(--muted);
}
.est-chip.accent { color: var(--accent); border-color: rgba(69, 214, 196, 0.4); }
.est-chip.warn { color: var(--accent-2); border-color: rgba(240, 180, 41, 0.4); }
.est-range { padding: 12px 22px 6px; }
.est-range .big { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 3.4vw, 2.1rem); letter-spacing: -0.01em; }
.est-range .sub { color: var(--muted); font-size: 0.88rem; margin-top: 3px; }
.est-range .sub strong { color: var(--text); }

.est-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 0.92rem; }
.est-table th, .est-table td { padding: 10px 22px; text-align: left; }
.est-table th { color: var(--muted); font-weight: 500; font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.est-table td { border-bottom: 1px solid var(--line); }
.est-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.est-table .row-note td { color: var(--muted); }
.est-table .row-total td { border-bottom: none; font-weight: 700; font-family: var(--font-display); font-size: 1rem; padding-top: 13px; }
.est-details { padding: 8px 22px 6px; }
.est-details details { border-top: 1px solid var(--line); }
.est-details summary {
  cursor: pointer; list-style: none; padding: 11px 0; color: var(--muted);
  font-size: 0.88rem; font-weight: 600; display: flex; justify-content: space-between; align-items: center;
  transition: color .15s;
}
.est-details summary:hover { color: var(--text); }
.est-details summary::after { content: "+"; font-size: 1.05rem; color: var(--accent); }
.est-details details[open] summary::after { content: "–"; }
.est-details ul { margin: 0 0 12px; padding-left: 1.15em; color: var(--muted); font-size: 0.9rem; }
.est-details li { margin: 0.3em 0; }
.est-questions { padding: 10px 22px 4px; display: flex; flex-wrap: wrap; gap: 8px; }
.est-q {
  border: 1px dashed var(--line-strong); background: none; color: var(--muted);
  border-radius: 99px; padding: 6px 14px; font-size: 0.82rem; text-align: left;
  transition: color .15s, border-color .15s;
}
.est-q:hover { color: var(--accent); border-color: var(--accent); }
.est-foot { padding: 12px 22px 18px; color: var(--muted); font-size: 0.76rem; line-height: 1.55; }

/* ═══ Composer ═══ */
.composer { position: relative; padding-top: 8px; }
.file-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 8px; }
.file-chips .chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  border-radius: 10px; padding: 6px 11px; font-size: 0.82rem;
}
.file-chips .chip .sz { color: var(--muted); font-size: 0.74rem; }
.file-chips .chip button { background: none; border: 0; color: var(--muted); padding: 0 2px; font-size: 1rem; line-height: 1; }
.file-chips .chip button:hover { color: var(--danger); }

.composer-box {
  display: flex; align-items: flex-end; gap: 8px;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 18px; padding: 9px 10px;
  transition: border-color .2s, box-shadow .2s;
}
.composer-box:focus-within { border-color: rgba(69, 214, 196, 0.55); box-shadow: 0 0 0 4px rgba(69, 214, 196, 0.09); }
.composer-box textarea {
  flex: 1; resize: none; border: 0; background: none; color: var(--text);
  font: inherit; font-size: 0.98rem; line-height: 1.5; padding: 8px 4px;
  max-height: 180px; outline: none;
}
.composer-box textarea::placeholder { color: var(--muted); }
.icon-btn {
  flex: none; width: 40px; height: 40px; border-radius: 12px; border: 0;
  background: none; color: var(--muted); display: grid; place-items: center;
  transition: color .18s, background .18s;
}
.icon-btn:hover { color: var(--accent); background: var(--accent-dim); }
.currency-select {
  flex: none; background: var(--surface-2); color: var(--muted);
  border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 0.82rem; font-weight: 600; padding: 8px 6px; margin-bottom: 3px;
  outline: none; cursor: pointer;
}
.send-btn {
  flex: none; width: 40px; height: 40px; border-radius: 12px; border: 0;
  background: var(--accent); color: #062621; display: grid; place-items: center;
  transition: transform .18s, box-shadow .18s, opacity .18s;
}
.send-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(69, 214, 196, 0.35); }
.send-btn:disabled { opacity: 0.45; transform: none; box-shadow: none; cursor: default; }
.composer-note { text-align: center; color: var(--muted); font-size: 0.74rem; margin: 10px 4px 0; }

/* drag & drop overlay */
.drop-overlay {
  position: absolute; inset: 0; z-index: 5; display: none;
  border: 2px dashed var(--accent); border-radius: 22px;
  background: rgba(10, 14, 21, 0.88); backdrop-filter: blur(4px);
  place-items: center; text-align: center;
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 600;
}
.drop-overlay span { display: block; color: var(--muted); font-family: var(--font-body); font-size: 0.9rem; font-weight: 400; margin-top: 8px; }
.chat-app.dragging .drop-overlay { display: grid; }

.scroll-hint {
  position: relative; z-index: 1; margin-top: 10px; color: var(--muted);
  animation: hint 2.4s ease-in-out infinite;
}
@keyframes hint { 0%,100% { transform: translateY(0);} 50% { transform: translateY(5px);} }

/* ═══ Sections ═══ */
.section { padding: clamp(72px, 11vh, 120px) 0; position: relative; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 6vh, 56px); }
.section-sub { color: var(--muted); margin-top: 14px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  transition: transform .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.card p { color: var(--muted); font-size: 0.94rem; margin: 0; }
.card-num { font-family: var(--font-display); color: var(--accent); font-weight: 700; font-size: 0.9rem; display: block; margin-bottom: 14px; }
.card-tight { padding: 22px; }

/* industries bento */
.ind-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.ind-card {
  grid-column: span 2; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; color: var(--text);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.ind-card:nth-child(1), .ind-card:nth-child(2) { grid-column: span 3; }
.ind-card:hover { transform: translateY(-4px); border-color: rgba(69, 214, 196, 0.5); background: var(--surface-2); }
.ind-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.ind-arrow { color: var(--muted); transition: color .2s, transform .2s; }
.ind-card:hover .ind-arrow { color: var(--accent); transform: translate(2px, -2px); }
.ind-card p { color: var(--muted); font-size: 0.92rem; flex: 1; }
.ind-tag { color: var(--accent); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; }

/* offices */
.office-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform .25s ease, border-color .25s ease;
}
.office-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.office-region { color: var(--accent-2); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.office-card h3 { font-size: 1.5rem; margin: 10px 0 2px; }
.office-country { color: var(--muted); font-size: 0.86rem; display: block; margin-bottom: 12px; }
.office-card p { color: var(--muted); font-size: 0.92rem; }
.office-tz { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.office-tz .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* CTA band */
.cta-band { padding: clamp(64px, 10vh, 110px) 0; text-align: center; }
.cta-band .wrap {
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(69, 214, 196, 0.12), transparent 70%),
    var(--surface);
  border: 1px solid var(--line-strong); border-radius: 24px;
  padding: clamp(48px, 8vh, 80px) 28px;
}
.cta-band p { color: var(--muted); max-width: 520px; margin: 0 auto 30px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ═══ Inner pages ═══ */
.page-hero {
  padding: calc(var(--nav-h) + clamp(56px, 10vh, 110px)) 0 clamp(48px, 7vh, 80px);
  background:
    radial-gradient(46% 60% at 68% 0%, rgba(69, 214, 196, 0.08), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 100% 100%, 56px 56px, 56px 56px;
  position: relative;
}
.page-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(100% 90% at 50% 30%, transparent 30%, var(--bg) 100%); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .lede { margin-bottom: 30px; max-width: 700px; }
.page-hero .cta-actions { justify-content: flex-start; }

.stat-band { border-block: 1px solid var(--line); background: var(--bg-2); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 30px 0; }
.stat { text-align: center; }
.stat-value { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--accent); display: block; }
.stat-label { color: var(--muted); font-size: 0.85rem; }

.prose-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.prose p { color: var(--muted); font-size: 1.02rem; }
.prose p:first-child { color: var(--text); }
.cap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.eng-list { border-top: 1px solid var(--line); }
.eng-row { display: flex; gap: clamp(18px, 4vw, 44px); padding: 26px 6px; border-bottom: 1px solid var(--line); transition: background .2s; }
.eng-row:hover { background: rgba(148, 163, 190, 0.03); }
.eng-num { font-family: var(--font-display); color: var(--accent); font-weight: 700; padding-top: 3px; }
.eng-row p { color: var(--muted); margin: 0; font-size: 0.95rem; }

.ind-pager { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 70px; }
.ind-pager a {
  flex: 1; max-width: 330px; padding: 18px 22px;
  border: 1px solid var(--line); border-radius: var(--radius); color: var(--text);
  transition: border-color .2s, transform .2s;
}
.ind-pager a:hover { border-color: var(--accent); transform: translateY(-2px); }
.ind-pager a span { display: block; color: var(--muted); font-size: 0.78rem; margin-bottom: 4px; }
.ind-pager a strong { font-family: var(--font-display); }
.ind-pager .right { text-align: right; }

/* ═══ Footer ═══ */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 0.8fr 0.8fr 1.3fr; gap: 40px; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; margin: 18px 0 14px; max-width: 300px; }
.footer-mail { font-weight: 600; }
.footer-col h4, .footer-offices h4 {
  font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px;
}
.footer-col a { display: block; color: var(--text); opacity: 0.82; font-size: 0.92rem; padding: 5px 0; transition: color .15s, opacity .15s; }
.footer-col a:hover { color: var(--accent); opacity: 1; }
.footer-office { padding: 7px 0; }
.footer-office strong { display: block; font-size: 0.92rem; }
.footer-office span { color: var(--muted); font-size: 0.8rem; }
.footer-bar {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  color: var(--muted); font-size: 0.78rem;
}

/* ═══ Reveal on scroll ═══ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ═══ Responsive ═══ */
@media (max-width: 960px) {
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto; z-index: 55;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(10, 14, 21, 0.97); backdrop-filter: blur(16px);
    padding: 14px 20px 22px; border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .22s ease, opacity .22s ease, visibility .22s;
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-burger { display: block; }
  .nav-cta { margin: 10px 0 0; }
  .nav-drop-menu {
    position: static; translate: none; width: auto; opacity: 1; visibility: visible;
    transform: none; box-shadow: none; border: 0; background: none; padding: 0 0 0 12px;
    display: none;
  }
  .nav-drop.open .nav-drop-menu { display: block; }
  .grid-3, .grid-4, .stat-row, .cap-grid { grid-template-columns: 1fr; }
  .ind-grid { grid-template-columns: 1fr; }
  .ind-card, .ind-card:nth-child(1), .ind-card:nth-child(2) { grid-column: span 1; }
  .prose-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .suggestions { grid-template-columns: 1fr; }
  .bubble { max-width: 92%; }
  .est-table th, .est-table td { padding: 9px 14px; font-size: 0.86rem; }
  .ind-pager { flex-direction: column; }
  .ind-pager a { max-width: none; }
  .ind-pager .right { text-align: left; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .currency-select { font-size: 0.74rem; padding: 8px 2px; }
}

/* ═══ Lead capture (inside estimate card) ═══ */
.lead-cta { border-top: 1px solid var(--line); padding: 16px 22px 20px; }
.lead-head { font-family: var(--font-display); font-weight: 600; margin-bottom: 12px; }
.lead-form { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.lead-form textarea, .lead-form .btn, .lead-form .lead-note { grid-column: 1 / -1; }
.lead-form input, .lead-form textarea {
  background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 10px;
  color: var(--text); font: inherit; font-size: 0.9rem; padding: 10px 12px; outline: none;
  transition: border-color .18s;
}
.lead-form input::placeholder, .lead-form textarea::placeholder { color: var(--muted); }
.lead-form input:focus, .lead-form textarea:focus { border-color: rgba(69, 214, 196, 0.55); }
.lead-form textarea { resize: vertical; }
.lead-note { color: var(--muted); font-size: 0.75rem; text-align: center; }
.lead-note.warn { color: var(--accent-2); }
.lead-done { color: var(--accent); font-weight: 600; padding: 6px 0; }
@media (max-width: 960px) { .lead-form { grid-template-columns: 1fr; } }

/* ═══ Contact modal ═══ */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 8, 12, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-card {
  position: relative; width: min(540px, 100%);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 20px;
  padding: 28px; box-shadow: var(--shadow);
  animation: modal-in .25s ease both;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.modal-sub { color: var(--muted); font-size: 0.92rem; margin: 0 0 18px; }
.modal-x {
  position: absolute; top: 12px; right: 14px; background: none; border: 0;
  color: var(--muted); font-size: 1.6rem; line-height: 1; padding: 4px 8px;
}
.modal-x:hover { color: var(--text); }
.modal .lead-form { grid-template-columns: 1fr 1fr; }
.modal .lead-form input[name="company"] { grid-column: 1 / -1; }
@media (max-width: 560px) { .modal .lead-form { grid-template-columns: 1fr; } }

/* ═══ Reduced motion ═══ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
