/* ==========================================================================
   RD Electric Services — styles (v2, "trade" look)
   Flat colours, small radii, no glows or gradients, real photos first.
   Dark (brand) sections alternate with light paper sections for readability.
   Previous design: backups/site-v1-design-2026-09-19/
   ========================================================================== */

:root {
  --ink: #101113;
  --ink-2: #1a1b1e;
  --ink-line: rgba(255, 255, 255, 0.14);
  --on-ink: #f1f1f0;
  --on-ink-2: #a8aaaf;

  --paper: #f3f2ee;
  --white: #ffffff;
  --line: #d9d6cf;
  --text: #16171a;
  --text-2: #56585e;

  --red: #d4151b;
  --red-dark: #ae1015;

  --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-cond: 'Barlow Condensed', 'Arial Narrow', sans-serif;

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 3px;
  --header-h: 72px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 8px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ---------- Type ---------- */
.h2 {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}
.lead { margin-top: 14px; font-size: 1.12rem; color: var(--text-2); max-width: 36em; }
.accent { color: var(--red); }

.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  text-decoration: none;
  color: var(--red);
}
.link .icon { transition: transform 0.15s; }
.link:hover .icon { transform: translateX(3px); }
.link--light { color: #fff; }

.ticks { display: grid; gap: 8px; margin-top: 22px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid var(--red);
  border-bottom: 2.5px solid var(--red);
  transform: rotate(-45deg);
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tag--red { background: var(--red); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-cond);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); }
.btn--outline { border-color: var(--text); color: var(--text); background: transparent; }
.btn--outline:hover { background: var(--text); color: #fff; }
.btn--outline-light { border-color: rgba(255, 255, 255, 0.55); color: #fff; background: transparent; }
.btn--outline-light:hover { border-color: #fff; background: #fff; color: var(--ink); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 1rem; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1.2rem; }
.btn--block { width: 100%; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 104px); }
.section--paper { background: var(--paper); color: var(--text); }
.section--white { background: var(--white); color: var(--text); }
.section--dark { background: var(--ink); color: var(--on-ink); }
.section--dark .lead { color: var(--on-ink-2); }

/* ---------- Top bar ---------- */
.topbar { background: #000; color: var(--on-ink-2); font-size: 0.86rem; }
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 38px;
}
.topbar p { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { text-decoration: underline; }
.topbar .icon { width: 14px; height: 14px; }
.topbar__verify { color: #fff; font-weight: 600; }
.topbar__right { justify-content: flex-end; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: var(--on-ink);
  border-bottom: 1px solid var(--ink-line);
}
.header.is-scrolled { box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4); }
.header__inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.header__logo img { height: 50px; width: auto; }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: 24px; }
.nav__list a {
  display: block;
  padding: 6px 0;
  color: var(--on-ink-2);
  font-weight: 600;
  font-size: 0.96rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.nav__list a:hover,
.nav__list a.is-active { color: #fff; border-bottom-color: var(--red); }
.header__actions { display: flex; align-items: center; gap: 18px; }
.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-cond);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #fff;
}
.header__phone .icon { color: var(--red); }
.header__phone:hover { color: var(--red); }
.header__call,
.burger {
  display: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  background: transparent;
  color: #fff;
}
.header__call { background: var(--red); border-color: var(--red); }
.header__call .icon,
.burger .icon { width: 22px; height: 22px; }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 12px var(--gutter) calc(20px + env(safe-area-inset-bottom));
  background: var(--ink);
  color: #fff;
  overflow-y: auto;
}
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.mobile-menu__logo { height: 46px; width: auto; }
.mobile-menu__close {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  background: transparent;
}
.mobile-menu__close .icon { width: 22px; height: 22px; }
.mobile-menu__list { margin: 24px 0; border-top: 1px solid var(--ink-line); }
.mobile-menu__list a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--ink-line);
  font-family: var(--font-cond);
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
}
.mobile-menu__actions { display: grid; gap: 10px; margin-top: auto; }
.mobile-menu__hours { margin-top: 4px; color: var(--on-ink-2); text-align: center; font-size: 0.95rem; }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: var(--on-ink); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  min-height: min(620px, calc(100vh - var(--header-h) - 150px));
}
.hero__text {
  align-self: center;
  justify-self: end;
  width: 100%;
  max-width: calc(var(--container) * 0.46 + var(--gutter));
  padding: 56px 48px 56px var(--gutter);
}
.hero__title {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: clamp(2.8rem, 5.2vw, 4.4rem);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}
.hero__lead { margin-top: 20px; font-size: 1.2rem; color: #d3d4d6; max-width: 30em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__hours { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--on-ink-2); font-size: 0.98rem; }
.hero__hours .icon { color: var(--red); }

.hero__photo { position: relative; min-height: 100%; }
.hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero__price {
  position: absolute;
  left: 0;
  bottom: 44px;
  padding: 12px 20px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
}
.hero__price strong { font-size: 1.6rem; }
.hero__price:hover { background: var(--red-dark); }
.hero__photo figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.6);
  color: #ddd;
  font-size: 0.78rem;
}

/* facts row under the hero */
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink-line);
}
.facts li { padding: 22px 24px 24px; border-left: 1px solid var(--ink-line); }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts strong {
  display: block;
  font-family: var(--font-cond);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #fff;
}
.facts span { color: var(--on-ink-2); font-size: 0.98rem; }
.facts a { color: #fff; font-weight: 600; }

/* ---------- Services ---------- */
.services__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.services__photo { margin-top: 32px; }
.services__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
figcaption { margin-top: 8px; color: var(--text-2); font-size: 0.88rem; }
.service-list { border-top: 2px solid var(--text); }
.service { padding: 26px 0 24px; border-bottom: 1px solid var(--line); }
.service__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.service h3 {
  font-family: var(--font-cond);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}
.service__price {
  padding: 2px 10px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}
.service p { margin: 8px 0 12px; color: var(--text-2); max-width: 38em; }

/* ---------- Potlights ---------- */
.potlights__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.potlights .ticks { margin-bottom: 30px; color: #e3e3e3; }
.fineprint { margin-top: 16px; color: var(--on-ink-2); font-size: 0.88rem; }
.compare { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); }
.compare__item { position: relative; }
.compare__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.compare__item figcaption { position: absolute; left: 12px; top: 12px; margin: 0; }
.compare__item--after { grid-column: 2 / 7; grid-row: 1; }
.compare__item--before { grid-column: 1 / 4; grid-row: 1; align-self: end; margin-bottom: -18%; border: 5px solid var(--ink); }
.compare__note { grid-column: 1 / 7; margin-top: calc(18% + 14px); color: var(--on-ink-2); font-size: 0.9rem; }

/* ---------- Residential & commercial ---------- */
.sectors__head { max-width: 760px; }
.sectors__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); margin-top: 44px; }
.sector { padding-top: 22px; border-top: 4px solid var(--red); }
.sector:last-child { border-top-color: var(--text); }
.sector h3 { font-family: var(--font-cond); font-size: 2rem; font-weight: 700; text-transform: uppercase; line-height: 1; }
.sector__sub { margin-top: 6px; color: var(--text-2); }
.sector .ticks { margin-bottom: 22px; }

/* ---------- Gallery ---------- */
.work__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: 32px; }
.filters { display: flex; gap: 22px; border-bottom: 1px solid var(--ink-line); }
.filter {
  padding: 8px 0;
  margin-bottom: -1px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--on-ink-2);
  font-family: var(--font-cond);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.filter:hover { color: #fff; }
.filter.is-active { color: #fff; border-bottom-color: var(--red); }

.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: 8px; }
.gallery__item { min-width: 0; min-height: 0; }
/* the big tile is 2×2 cells and stays square too, so it has its own height even on a
   2-column phone grid where no other tile shares its rows */
.gallery__item.is-featured { grid-column: span 2; grid-row: span 2; }
.gallery__btn {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: var(--ink-2);
  overflow: hidden;
  aspect-ratio: 1;
}
/* absolutely positioned so photo sizes never stretch the grid tracks */
.gallery__btn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s, opacity 0.2s; }
.gallery__btn:hover img { transform: scale(1.03); opacity: 0.9; }
.work__more { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 28px; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.95);
  color: #fff;
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.8); }
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; }
.lightbox__figure { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-width: 0; height: 100%; padding: 60px 8px 24px; }
.lightbox__img { max-width: 100%; max-height: calc(100dvh - 140px); width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lightbox__caption { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 0; color: #ccc; font-size: 0.95rem; text-align: center; }
.lightbox__count { color: #888; }
.lightbox__close,
.lightbox__nav {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.5);
}
.lightbox__close:hover,
.lightbox__nav:hover { background: var(--red); border-color: var(--red); }
.lightbox__close { position: absolute; top: 12px; right: 12px; z-index: 2; }
.lightbox__nav { margin: 0 14px; }
.lightbox .icon { width: 22px; height: 22px; }

/* ---------- Process ---------- */
.process__grid { display: grid; grid-template-columns: 0.8fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.process__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.steps { margin-top: 28px; counter-reset: step; border-top: 2px solid var(--text); }
.steps li {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  font-family: var(--font-cond);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--red);
}
.steps h3 { font-size: 1.15rem; font-weight: 700; }
.steps p { margin-top: 4px; color: var(--text-2); }

/* ---------- Areas + call box ---------- */
.areas__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.areas__list { columns: 3; column-gap: 24px; margin-top: 22px; }
.areas__list li { padding: 7px 0; border-bottom: 1px solid var(--line); font-weight: 600; break-inside: avoid; }
.areas__note { margin-top: 20px; color: var(--text-2); }
.call-box { display: grid; gap: 10px; padding: 32px; background: var(--ink); color: #fff; border-top: 4px solid var(--red); }
.call-box__title { font-family: var(--font-cond); font-size: 1.5rem; font-weight: 700; text-transform: uppercase; }
.call-box__phone { font-family: var(--font-cond); font-size: clamp(2.2rem, 4vw, 2.8rem); font-weight: 700; line-height: 1; text-decoration: none; }
.call-box__phone:hover { color: var(--red); }
.call-box__hours { margin-bottom: 10px; color: var(--on-ink-2); }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.faq__list { border-top: 2px solid var(--text); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 1.12rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--red); }
.faq__item summary .icon { width: 22px; height: 22px; color: var(--red); transition: transform 0.2s; }
.faq__item[open] summary .icon { transform: rotate(45deg); }
.faq__answer { padding: 0 40px 20px 0; color: var(--text-2); }
.faq__answer a { color: var(--red); font-weight: 600; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-list { display: grid; gap: 16px; margin: 32px 0; }
.contact-list li { display: flex; align-items: flex-start; gap: 14px; }
.contact-list .icon { width: 22px; height: 22px; margin-top: 4px; color: var(--red); }
.contact-list small { display: block; color: var(--on-ink-2); font-size: 0.85rem; }
.contact-list a,
.contact-list span { font-size: 1.15rem; font-weight: 600; text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--red); }
.licence-note { padding-top: 18px; border-top: 1px solid var(--ink-line); color: var(--on-ink-2); font-size: 0.92rem; }
.licence-note a { color: #fff; font-weight: 600; }

.form-card { padding: clamp(22px, 4vw, 36px); background: var(--white); color: var(--text); border-top: 4px solid var(--red); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field--full { grid-column: 1 / -1; }
.field label,
.field legend { padding: 0; font-weight: 700; font-size: 0.95rem; }
.field legend { margin-bottom: 6px; }
.req { color: var(--red); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #b9b6ae;
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.field input::placeholder,
.field textarea::placeholder { color: #8d8f94; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.field [aria-invalid='true'] { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.field__error { color: var(--red); font-size: 0.9rem; font-weight: 600; }
.field__error:empty { display: none; }

.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select select:invalid { color: #8d8f94; }
.select option { background: #fff; color: var(--text); } /* readable even when the OS is in dark mode */
.select .icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; flex: 1 1 0; min-width: 0; }
.pill input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pill span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid #b9b6ae;
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
}
.pill input:hover + span { border-color: var(--text); }
.pill input:checked + span { border-color: var(--text); background: var(--text); color: #fff; }
.pill input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
fieldset[aria-invalid='true'] .pill span { border-color: var(--red); }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.quote-form__submit { margin-top: 24px; }
.spinner { display: none; width: 20px; height: 20px; border: 2.5px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.is-loading .spinner { display: inline-block; }
.is-loading { pointer-events: none; opacity: 0.85; }
.form-note { margin-top: 12px; color: var(--text-2); font-size: 0.88rem; text-align: center; }
.form-status { margin-top: 14px; padding: 12px 14px; border-left: 4px solid var(--red); background: #fbeaea; font-size: 0.98rem; }
.form-status a { color: var(--red); font-weight: 700; }

.form-success { padding: 24px 4px; text-align: center; outline: none; }
.form-success__icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--red); color: #fff; }
.form-success__icon .icon { width: 32px; height: 32px; stroke-width: 3; }
.form-success h3 { font-family: var(--font-cond); font-size: 2rem; font-weight: 700; text-transform: uppercase; line-height: 1.05; }
.form-success p { margin: 12px auto 0; max-width: 26em; color: var(--text-2); }
.form-success a { color: var(--text); font-weight: 700; }
.form-success .btn { margin-top: 22px; }
.form-success__demo { padding: 8px 12px; border: 1px dashed #b9b6ae; font-size: 0.9rem; }

/* ---------- Footer ---------- */
.footer { background: #000; color: var(--on-ink-2); padding-top: 56px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; }
.footer__brand img { height: 64px; width: auto; margin-bottom: 14px; }
.footer__slogan { margin-bottom: 8px; color: #fff; font-family: var(--font-cond); font-size: 1.25rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.footer__brand p:last-child { max-width: 24em; font-size: 0.95rem; }
.footer__col h3 { margin-bottom: 12px; color: #fff; font-family: var(--font-cond); font-size: 1.15rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.footer__col ul { display: grid; gap: 8px; }
.footer__col a { text-decoration: none; }
.footer__col a:hover { color: #fff; text-decoration: underline; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 44px;
  padding-block: 20px;
  border-top: 1px solid var(--ink-line);
  font-size: 0.88rem;
}
.footer__bottom a { color: #fff; }

/* ---------- Mobile call bar ---------- */
.mobile-cta { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .nav__list { gap: 16px; }
  .nav__list a { font-size: 0.9rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1060px) {
  .header__phone { display: none; }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .topbar .topbar__right { display: none; }
  .topbar p { font-size: 0.8rem; }
  .nav,
  .header__cta { display: none; }
  .header__actions { margin-left: auto; gap: 8px; }
  .header__call,
  .burger { display: grid; }
  .header__logo img { height: 44px; }

  /* hero stacks: photo first, then text */
  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__photo { order: -1; min-height: 0; aspect-ratio: 16 / 10; }
  .hero__price { bottom: 16px; font-size: 1.05rem; padding: 9px 14px; }
  .hero__price strong { font-size: 1.3rem; }
  .hero__photo figcaption { display: none; }
  .hero__text { justify-self: stretch; max-width: none; padding: 28px var(--gutter) 32px; }
  .facts { grid-template-columns: 1fr; }
  .facts li,
  .facts li:first-child { padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--ink-line); }
  .facts li:last-child { border-bottom: 0; }

  .services__grid,
  .potlights__grid,
  .process__grid,
  .areas__grid,
  .contact__grid,
  .faq__grid { grid-template-columns: 1fr; }
  .services__photo { display: none; }
  .process__photo { max-width: 460px; }
  .process__photo img { aspect-ratio: 4 / 3; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }

  .mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: var(--ink);
    border-top: 1px solid var(--ink-line);
    transform: translateY(110%);
    transition: transform 0.25s;
  }
  .mobile-cta.is-visible { transform: none; }
  .mobile-cta__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius);
    color: #fff;
    font-family: var(--font-cond);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
  }
  .mobile-cta__btn--red { border-color: var(--red); background: var(--red); }
  .footer { padding-bottom: 76px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar__inner { min-height: 34px; justify-content: center; text-align: center; }
  .hero__cta .btn { width: 100%; }
  .sectors__grid,
  .form-grid { grid-template-columns: 1fr; }
  .areas__list { columns: 2; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare__item--before { border-width: 3px; }
  .service h3 { font-size: 1.55rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .lightbox[open] { grid-template-columns: 1fr; }
  .lightbox__nav { position: absolute; bottom: 20px; margin: 0; z-index: 2; }
  .lightbox__nav--prev { left: 20px; }
  .lightbox__nav--next { right: 20px; }
  .lightbox__figure { padding: 64px 0 90px; }
  .lightbox__img { max-height: calc(100dvh - 190px); }
}
