/* NRGROUP — Dark design system */
:root {
  --bg: #0a0d12;
  --bg-soft: #11151c;
  --bg-muted: #1a1f29;
  --bg-card: #141921;
  --ink: #f5f7fa;
  --ink-2: #c5ccd6;
  --ink-3: #8893a3;
  --ink-4: #5b6573;
  --line: #1f2530;
  --line-2: #2a3140;
  --line-3: #3a4253;
  --brand: #1b9cda;        /* logo blue */
  --brand-deep: #0f6fa0;
  --brand-2: #84c341;      /* logo green */
  --brand-2-deep: #5fa024;
  --danger: #ff5a5a;
  --warning: #f5b651;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3), 0 2px 8px rgba(0,0,0,.2);
  --shadow-md: 0 8px 24px -6px rgba(0,0,0,.5), 0 2px 6px rgba(0,0,0,.3);
  --shadow-lg: 0 24px 60px -16px rgba(0,0,0,.65);
  --container: 1200px;
  --header-h: 76px;
  font-feature-settings: "ss01", "cv11";
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); }
body {
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--brand); color: #fff; }

h1, h2, h3, h4 {
  font-family: 'Manrope', sans-serif;
  letter-spacing: -0.022em;
  margin: 0;
  line-height: 1.1;
  font-weight: 800;
  color: var(--ink);
}
h1 { font-size: clamp(38px, 5.4vw, 68px); letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -0.025em; }
h3 { font-size: clamp(20px, 2vw, 24px); }
p { margin: 0; color: var(--ink-2); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(10, 13, 18, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand-link {
  display: flex; align-items: center; gap: 12px;
}
.brand-link img { height: 48px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; white-space: nowrap; }
.brand-text strong { font-weight: 800; letter-spacing: -.02em; font-size: 17px; color: var(--ink); }
.brand-text span { color: var(--ink-3); font-size: 12px; margin-top: 4px; }
@media (max-width: 1100px) { .brand-text span { display: none; } }
@media (max-width: 520px) { .brand-text { display: none; } }

.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 15px;
  transition: background .15s ease, color .15s ease;
}
.nav a:hover { background: var(--bg-muted); color: var(--ink); }
.nav a.active { color: var(--ink); background: var(--bg-muted); }

.header-cta {
  display: flex; align-items: center; gap: 10px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--ink); color: #0a0d12; }
.btn.primary:hover { background: #fff; box-shadow: 0 8px 22px -6px rgba(255,255,255,.2); }
.btn.brand { background: var(--brand); color: #fff; }
.btn.brand:hover { background: var(--brand-deep); }
.btn.outline { background: transparent; color: var(--ink); border: 1px solid var(--line-3); }
.btn.outline:hover { background: var(--bg-muted); border-color: var(--ink-3); }
.btn.ghost { color: var(--ink-2); padding: 10px 14px; }
.btn.ghost:hover { background: var(--bg-muted); color: var(--ink); }
.btn.lg { padding: 14px 24px; font-size: 16px; }
.btn.sm { padding: 8px 12px; font-size: 13px; }

.mobile-menu-btn { display: none; }
@media (max-width: 1100px) {
  .header-cta .btn.ghost:not(.icon-only) { display: none; }
}

/* ===== Hero ===== */
.hero {
  padding: clamp(40px, 7vw, 96px) 0 clamp(40px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 10%, rgba(27,156,218,.12), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(132,195,65,.08), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .lede {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--ink-2);
  margin-top: 22px;
  max-width: 56ch;
}
.hero-ctas {
  display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap;
}
.hero-meta {
  margin-top: 36px;
  display: flex; gap: 28px; flex-wrap: wrap;
}
.hero-meta .stat {
  display: flex; flex-direction: column; gap: 4px;
}
.hero-meta .stat b { font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.hero-meta .stat span { font-size: 13px; color: var(--ink-3); font-weight: 500; }

.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(27,156,218,.08) 0%, rgba(132,195,65,.04) 100%),
    var(--bg-card);
  aspect-ratio: 4/5;
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-md);
}
.hero-card .placeholder-shot {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(27,156,218,.06) 0 14px, transparent 14px 28px);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  letter-spacing: .05em;
}
.hero-card .hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(10,13,18,.05) 60%, rgba(10,13,18,.35) 100%);
  pointer-events: none;
}
.hero-card .badge-floating {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 12px;
  font-size: 14px;
  color: var(--ink);
}
.hero-card .badge-floating .dot {
  width: 10px; height: 10px; border-radius: 999px; background: var(--brand-2);
  box-shadow: 0 0 0 4px rgba(132,195,65,.2);
}
.hero-card .badge-floating.top-right { top: 22px; right: 22px; }
.hero-card .badge-floating.bottom-left { left: 22px; bottom: 22px; }
.hero-card .badge-floating b { font-weight: 700; color: var(--ink); }
.hero-card .badge-floating div span { display: block; color: var(--ink-3); font-size: 12px; }

/* Trust strip */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 20px 0;
}
.trust-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 32px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
}
.trust-row .item { display: inline-flex; align-items: center; gap: 8px; }
.trust-row .item svg { color: var(--brand-2); }

/* ===== Sections ===== */
section.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  background: var(--bg-soft);
  margin-bottom: 16px;
}
.section-eyebrow .pip { width: 6px; height: 6px; border-radius: 999px; background: var(--brand); }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
  margin-bottom: 40px; flex-wrap: wrap;
}
.section-head .left { max-width: 720px; }
.section-head .left p { margin-top: 16px; max-width: 60ch; }

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color .15s ease, transform .2s ease, box-shadow .2s ease, background .2s ease;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 220px;
  color: var(--ink);
}
.service-card:hover {
  border-color: var(--line-3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: var(--bg-muted);
}
.service-card .ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(27,156,218,.12);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--brand);
  margin-bottom: 8px;
}
.service-card.feature {
  background: linear-gradient(135deg, rgba(216,59,59,.18) 0%, rgba(216,59,59,.06) 100%);
  border-color: rgba(216,59,59,.3);
}
.service-card.feature .ico { background: rgba(255,90,90,.15); color: #ff8a8a; }
.service-card h3 { font-size: 19px; font-weight: 700; color: var(--ink); }
.service-card p { font-size: 14.5px; color: var(--ink-2); }
.service-card .arrow {
  margin-top: auto;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .15s ease;
}
.service-card:hover .arrow { color: var(--brand); }
.service-card.feature .arrow { color: #ff8a8a; }

/* Emergency banner */
.emergency {
  background:
    linear-gradient(135deg, rgba(216,59,59,.15) 0%, rgba(216,59,59,.02) 60%),
    var(--bg-card);
  color: var(--ink);
  border: 1px solid rgba(216,59,59,.25);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.emergency::before {
  content: '';
  position: absolute; right: -80px; top: -80px;
  width: 320px; height: 320px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(216,59,59,.18), transparent 65%);
}
.emergency h2 { color: var(--ink); }
.emergency p { color: var(--ink-2); margin-top: 12px; max-width: 50ch; }
.emergency .pulse {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(216,59,59,.15);
  border: 1px solid rgba(216,59,59,.4);
  color: #ff8a8a;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}
.emergency .pulse .dot {
  width: 8px; height: 8px; border-radius: 999px; background: #ff5a5a;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% {opacity: 1; transform: scale(1);} 50% {opacity: .4; transform: scale(1.4);} }
.emergency .phone-call {
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  position: relative; z-index: 2;
}
.emergency .phone-num {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.step {
  display: flex; flex-direction: column; gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.step .num {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: .04em;
}
.step h4 { font-size: 17px; font-weight: 700; color: var(--ink); }
.step p { font-size: 14px; color: var(--ink-3); }

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.project {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-card);
  display: flex; flex-direction: column;
  transition: border-color .15s ease, transform .2s ease;
}
.project:hover { border-color: var(--line-3); transform: translateY(-2px); }
.project .thumb {
  aspect-ratio: 4/3;
  background: var(--bg-muted);
  background-image: repeating-linear-gradient(45deg, rgba(27,156,218,.07) 0 10px, transparent 10px 20px);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3);
  font-family: ui-monospace, monospace;
  font-size: 11.5px;
  letter-spacing: .05em;
  text-align: center;
  padding: 16px;
  overflow: hidden;
  position: relative;
}
.project .thumb-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.project:hover .thumb-img { transform: scale(1.05); }
.project .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.project .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.project h4 { font-size: 18px; font-weight: 700; color: var(--ink); }
.project p { font-size: 14px; color: var(--ink-3); }

/* CTA bottom */
.cta-strip {
  background:
    linear-gradient(135deg, rgba(27,156,218,.08) 0%, rgba(132,195,65,.04) 100%),
    var(--bg-card);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 60px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  border: 1px solid var(--line-2);
}
.cta-strip h2 { font-size: clamp(26px, 3vw, 36px); color: var(--ink); }
.cta-strip p { color: var(--ink-2); }
.cta-strip .right { display: flex; flex-direction: column; gap: 10px; }

/* ===== Footer ===== */
.site-footer {
  background: #06080b;
  color: var(--ink-2);
  padding: 64px 0 32px;
  margin-top: 80px;
  border-top: 1px solid var(--line);
}
.site-footer h5 { color: var(--ink); font-size: 14px; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .06em; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
}
.site-footer p, .site-footer a, .site-footer li { font-size: 14px; }
.site-footer p { color: var(--ink-3); }
.site-footer a { color: var(--ink-2); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a:hover { color: var(--brand); }
.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
  font-size: 13px; color: var(--ink-4);
}
.footer-brand-stack { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.footer-brand-stack img { height: 64px; width: auto; }

/* ===== Page heads (inner pages) ===== */
.page-head {
  background:
    radial-gradient(ellipse 60% 80% at 80% 0%, rgba(27,156,218,.10), transparent 60%),
    var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: clamp(40px, 6vw, 72px) 0;
}
.page-head h1 { font-size: clamp(36px, 4.5vw, 56px); }
.page-head .crumbs {
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: 12px;
}
.page-head .crumbs a { color: var(--ink-3); }
.page-head .crumbs a:hover { color: var(--ink); }
.page-head p { max-width: 60ch; margin-top: 12px; }

/* ===== Services page ===== */
.services-detailed {
  display: flex; flex-direction: column; gap: 24px;
}
.service-row {
  display: grid;
  grid-template-columns: 280px 1fr auto;
  gap: 36px;
  align-items: flex-start;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.service-row:first-child { border-top: 0; padding-top: 8px; }
.service-row .num {
  font-size: 13px; font-weight: 700; color: var(--ink-4);
  letter-spacing: .05em;
}
.service-row h3 { font-size: 26px; font-weight: 800; margin-top: 4px; letter-spacing: -.02em; color: var(--ink); }
.service-row .tags {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px;
}
.service-row .tag-pill {
  font-size: 12.5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bg-muted);
  border: 1px solid var(--line-2);
  color: var(--ink-2);
}
.service-row p { color: var(--ink-2); font-size: 16px; line-height: 1.65; }

/* ===== Contact page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-card h3 { color: var(--ink); }
.contact-list { display: flex; flex-direction: column; gap: 22px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item .ico {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(27,156,218,.12);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--brand);
  flex-shrink: 0;
}
.contact-item .label { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.contact-item .value { font-size: 17px; font-weight: 700; color: var(--ink); margin-top: 2px; word-break: break-word; }
.contact-item .value a:hover { color: var(--brand); }
.contact-item .sub { font-size: 13px; color: var(--ink-3); margin-top: 4px; }

.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field {
  display: flex; flex-direction: column; gap: 6px;
}
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea, .field select {
  background: var(--bg-soft);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-4); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--bg-muted);
  box-shadow: 0 0 0 4px rgba(27,156,218,.18);
}
.field textarea { resize: vertical; min-height: 120px; }
.field select option { background: var(--bg-card); color: var(--ink); }
.form-note { font-size: 13px; color: var(--ink-3); }

/* ===== Chat widget ===== */
.chat-fab {
  position: fixed; bottom: 24px; right: 24px;
  width: 64px; height: 64px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 32px -8px rgba(27,156,218,.55), 0 4px 12px rgba(0,0,0,.4);
  z-index: 60;
  transition: transform .18s ease, box-shadow .18s ease;
}
.chat-fab:hover { transform: scale(1.06); box-shadow: 0 16px 40px -8px rgba(27,156,218,.65); }
.chat-fab .badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--ink);
  color: var(--brand-2);
  font-size: 11px; font-weight: 800;
  padding: 4px 7px;
  border-radius: 999px;
  border: 2px solid var(--bg);
}

.chat-panel {
  position: fixed; bottom: 24px; right: 24px;
  width: 400px; max-width: calc(100vw - 32px);
  height: 600px; max-height: calc(100vh - 100px);
  background: var(--bg-card);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  z-index: 70;
  overflow: hidden;
  border: 1px solid var(--line-2);
  animation: chat-pop .22s cubic-bezier(.2,.8,.3,1);
}
@keyframes chat-pop {
  from { opacity: 0; transform: translateY(12px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.chat-header {
  background: linear-gradient(135deg, #0d2a3d 0%, #14385a 100%);
  color: #fff;
  padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--line-2);
}
.chat-avatar {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  position: relative;
}
.chat-avatar .status {
  position: absolute; bottom: -2px; right: -2px;
  width: 12px; height: 12px;
  border-radius: 999px;
  background: var(--brand-2);
  border: 2px solid #0d2a3d;
}
.chat-title { flex: 1; }
.chat-title b { display: block; font-size: 15px; font-weight: 700; color: #fff; }
.chat-title span { font-size: 12px; color: rgba(255,255,255,.65); }
.chat-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.75);
  transition: background .15s ease;
}
.chat-close:hover { background: rgba(255,255,255,.1); color: #fff; }

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: var(--bg-soft);
  display: flex; flex-direction: column; gap: 14px;
  scroll-behavior: smooth;
}
.msg { display: flex; gap: 10px; max-width: 88%; }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }
.msg .bubble {
  padding: 11px 14px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.msg.bot .bubble {
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}
.msg.user .bubble {
  background: var(--brand);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg .meta { font-size: 11px; color: var(--ink-3); margin-top: 4px; }
.msg.user .meta { text-align: right; }

.quick-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.quick-actions button {
  font-size: 12.5px;
  padding: 7px 11px;
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  transition: background .14s ease, border-color .14s ease, color .14s ease;
}
.quick-actions button:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.typing { display: inline-flex; gap: 4px; padding: 14px 16px; background: var(--bg-card); border: 1px solid var(--line-2); border-radius: 16px; border-bottom-left-radius: 4px; }
.typing span { width: 6px; height: 6px; border-radius: 999px; background: var(--ink-3); animation: bounce 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

.chat-suggested {
  padding: 0 20px 8px;
  background: var(--bg-soft);
  display: flex; flex-wrap: wrap; gap: 6px;
}
.chat-suggested button {
  font-size: 12.5px;
  padding: 7px 12px;
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}
.chat-suggested button:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

.chat-input {
  padding: 12px 14px;
  border-top: 1px solid var(--line-2);
  background: var(--bg-card);
  display: flex; gap: 8px; align-items: flex-end;
}
.chat-input textarea {
  flex: 1;
  resize: none;
  background: var(--bg-soft);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14.5px;
  max-height: 120px;
  line-height: 1.45;
  color: var(--ink);
}
.chat-input textarea::placeholder { color: var(--ink-4); }
.chat-input textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(27,156,218,.18); }
.chat-send {
  background: var(--brand); color: #fff;
  width: 40px; height: 40px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .15s ease, opacity .15s ease;
}
.chat-send:hover { background: var(--brand-deep); }
.chat-send:disabled { opacity: .4; cursor: not-allowed; }

.chat-error {
  background: rgba(216,59,59,.12);
  border: 1px solid rgba(216,59,59,.3);
  color: #ff8a8a;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { aspect-ratio: 4/3; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cta-strip { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; gap: 12px; }
  .emergency { grid-template-columns: 1fr; }
  .emergency .phone-call { align-items: flex-start; }
}
@media (max-width: 700px) {
  .nav { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .header-cta .btn:not(.icon-only) { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .nav-mobile-open .nav {
    display: flex; flex-direction: column;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--bg-card);
    padding: 14px;
    border-bottom: 1px solid var(--line);
    gap: 4px;
    box-shadow: var(--shadow-md);
  }
  .nav-mobile-open .nav a { width: 100%; padding: 14px; }
}
