/* ==========================================================================
   Evans Services — base + components
   Mobile-first. WCAG 2.1 AA floor. Breakpoints: 640 / 768 / 1024 / 1280
   ========================================================================== */

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
body {
  font-family: var(--font-body);
  font-size: var(--fs-300);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,
svg,
picture {
  display: block;
  max-width: 100%;
  height: auto;
}
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
ul,
ol {
  list-style: none;
  padding: 0;
}
a {
  color: var(--accent-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--accent-hover);
}

/* ---------- a11y ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: var(--s-3);
  top: -100px;
  z-index: 999;
  padding: 0.75rem 1.25rem;
  background: var(--blue-600);
  color: #fff;
  font-weight: 600;
  border-radius: var(--r-md);
  transition: top var(--t-fast) var(--ease);
}
.skip-link:focus {
  top: var(--s-3);
  color: #fff;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
@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;
  }
}

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow {
  max-width: var(--container-narrow);
}
.section {
  padding-block: var(--section-y);
}
.section--alt {
  background: var(--bg-alt);
}
.section--tight {
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
  color: var(--text);
  text-wrap: balance;
}
h1 {
  font-size: var(--fs-hero);
  line-height: var(--lh-tight);
  font-weight: 900;
}
h2 {
  font-size: var(--fs-800);
}
h3 {
  font-size: var(--fs-600);
}
h4 {
  font-size: var(--fs-500);
}
p {
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: var(--fs-100);
  font-weight: 700;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: var(--s-3);
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 3px;
  border-radius: var(--r-pill);
  background: var(--grad-cool);
}
.eyebrow--heat {
  color: var(--heat-text);
}
.eyebrow--heat::before {
  background: var(--grad-heat);
}
.eyebrow--light {
  color: var(--blue-200);
}

.lede {
  font-size: var(--fs-400);
  color: var(--text-muted);
  max-width: 62ch;
}
.section-head {
  max-width: 60ch;
  margin-bottom: var(--s-7);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head--center .lede {
  margin-inline: auto;
}

/* <picture> is a wrapper, not a box — let the inner <img> lay out exactly as
   it would unwrapped, so the picture elements added for webp don't shift
   anything. */
picture {
  display: contents;
}

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: #fff;
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: var(--tap);
  padding: 0.85rem 1.6rem;
  font-family: var(--font-display);
  font-size: var(--fs-200);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 2px solid var(--btn-border);
  border-radius: var(--r-pill);
  transition: transform var(--t-fast) var(--ease),
    box-shadow var(--t-base) var(--ease), background var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease);
  will-change: transform;
}
.btn:hover {
  color: var(--btn-fg);
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--sh-3);
}
.btn:active {
  transform: translateY(0);
  box-shadow: var(--sh-1);
}
.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}
.btn svg {
  flex: none;
}

.btn--primary {
  box-shadow: var(--sh-2);
}
.btn--heat {
  --btn-bg: var(--heat);
  --btn-bg-hover: var(--heat-hover);
}
.btn--heat:hover {
  background: var(--heat-hover);
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-border: var(--border-strong);
}
.btn--ghost:hover {
  background: var(--bg-sunken);
  color: var(--text);
  border-color: var(--accent);
}
.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--blue-800);
}
.btn--light:hover {
  background: var(--blue-50);
  color: var(--blue-900);
}
.btn--outline-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-border: rgba(255, 255, 255, 0.55);
}
.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: #fff;
}
.btn--lg {
  padding: 1.05rem 2rem;
  font-size: var(--fs-300);
}
.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}
.btn-row--center {
  justify-content: center;
}

/* ---------- header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t-base) var(--ease),
    background var(--t-base) var(--ease);
}
.header.is-stuck {
  box-shadow: var(--sh-2);
}
[data-theme="dark"] .header {
  background: rgba(22, 28, 39, 0.86);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex: none;
}
.brand__mark {
  width: 40px;
  height: 40px;
  flex: none;
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--blue-700);
  text-transform: uppercase;
}
[data-theme="dark"] .brand__name {
  color: #fff;
}
.brand__tag {
  font-family: var(--font-display);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--text-subtle);
}

.nav {
  display: none;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 0.85rem;
  font-family: var(--font-display);
  font-size: var(--fs-200);
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--r-md);
  transition: color var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease);
}
.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--accent-text);
  background: var(--accent-soft);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.header__phone {
  display: none;
}

/* theme toggle */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: var(--tap);
  height: var(--tap);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-muted);
  transition: color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease);
}
.theme-toggle:hover {
  color: var(--accent-text);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
}
.theme-toggle .icon-sun {
  display: none;
}
[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}
[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

/* burger */
.burger {
  display: inline-grid;
  place-items: center;
  width: var(--tap);
  height: var(--tap);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--t-base) var(--ease),
    opacity var(--t-fast) var(--ease);
}
.burger span + span {
  margin-top: 5px;
}
.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* mobile drawer */
.drawer {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 99;
  background: var(--bg);
  padding: var(--s-5) var(--gutter) var(--s-8);
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--t-base) var(--ease-out),
    visibility var(--t-base);
}
.drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}
.drawer__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.drawer__list a {
  display: flex;
  align-items: center;
  min-height: 56px;
  font-family: var(--font-display);
  font-size: var(--fs-500);
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.drawer__list a:hover {
  color: var(--accent-text);
}
.drawer__cta {
  margin-top: var(--s-6);
  display: grid;
  gap: var(--s-3);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--blue-900);
  color: #fff;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--grad-brand);
  opacity: 0.96;
}
.hero__bg::after {
  /* The warm accent has to sit on a DARK base. Laid over saturated blue it
     interpolated to purple, which is off-brand. Stack order matters: the
     first gradient paints on top. */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      85% 65% at 90% 4%,
      rgba(251, 106, 68, 0.55) 0%,
      rgba(240, 60, 30, 0.18) 38%,
      transparent 62%
    ),
    radial-gradient(
      105% 85% at 97% -2%,
      rgba(8, 22, 45, 0.94) 0%,
      rgba(8, 22, 45, 0.5) 45%,
      transparent 72%
    ),
    radial-gradient(90% 80% at 2% 98%, rgba(15, 82, 172, 0.7) 0%, transparent 58%);
}
.hero__texture {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.09) 1px,
    transparent 1px
  );
  background-size: 22px 22px;
}
.hero__inner {
  position: relative;
  display: grid;
  gap: var(--s-7);
  padding-block: clamp(3rem, 1.5rem + 7vw, 6rem);
  align-items: center;
}
.hero__copy {
  max-width: 42rem;
}
.hero h1 {
  color: #fff;
  margin-bottom: var(--s-4);
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--heat-300), #ffd9a8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lede {
  font-size: var(--fs-500);
  color: rgba(255, 255, 255, 0.9);
  max-width: 34rem;
  margin-bottom: var(--s-6);
}
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  margin-top: var(--s-6);
  list-style: none;
  padding: 0;
}
.hero__badges li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--fs-200);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}
.hero__badges svg {
  flex: none;
  color: var(--heat-300);
}

.hero__card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--r-xl);
  padding: var(--s-5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--sh-4);
}
.hero__card-label {
  font-family: var(--font-display);
  font-size: var(--fs-100);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--s-3);
}
.hero__card-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  color: #fff;
  margin-bottom: var(--s-4);
}
.hero__card-price b {
  font-family: var(--font-display);
  font-size: var(--fs-800);
  font-weight: 900;
  letter-spacing: var(--ls-tight);
}
.hero__card-price span {
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--fs-200);
}
.hero__card ul {
  display: grid;
  gap: 0.6rem;
  margin-bottom: var(--s-5);
}
.hero__card li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: var(--fs-200);
  color: rgba(255, 255, 255, 0.9);
}
.hero__card li svg {
  flex: none;
  margin-top: 3px;
  color: var(--heat-300);
}

/* ---------- trust strip ---------- */
.trust {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border-inline: 1px solid var(--border);
}
.trust__item {
  background: var(--bg);
  padding: var(--s-5) var(--s-4);
  text-align: center;
}
.trust__item b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-600);
  font-weight: 900;
  color: var(--blue-700);
  letter-spacing: var(--ls-tight);
}
[data-theme="dark"] .trust__item b {
  color: var(--blue-300);
}
.trust__item span {
  font-size: var(--fs-100);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  font-weight: 600;
}

/* ---------- services ---------- */
.services__grid {
  display: grid;
  gap: var(--s-4);
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--sh-1);
  transition: transform var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-3);
  border-color: var(--border-strong);
}
.card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: var(--s-4);
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent-text);
}
.card__icon svg {
  width: 26px;
  height: 26px;
}
.card__icon--heat {
  background: var(--heat-soft);
  color: var(--heat-text);
}
.card h3 {
  font-size: var(--fs-500);
  margin-bottom: 0.5rem;
}
.card p {
  color: var(--text-muted);
  font-size: var(--fs-200);
}
.card__list {
  display: grid;
  gap: 0.45rem;
  margin-top: var(--s-4);
  font-size: var(--fs-200);
  color: var(--text-muted);
}
.card__list li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}
.card__list svg {
  flex: none;
  margin-top: 4px;
  color: var(--accent);
}

/* ---------- mission / split ---------- */
.split {
  display: grid;
  gap: var(--s-6);
  align-items: center;
}
.mission__points {
  display: grid;
  gap: var(--s-4);
  margin-top: var(--s-6);
}
.mission__points li {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
}
.mission__points .tick {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent-text);
}
.mission__points .tick--heat {
  background: var(--heat-soft);
  color: var(--heat-text);
}
.mission__points b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-300);
  margin-bottom: 2px;
}
.mission__points p {
  font-size: var(--fs-200);
  color: var(--text-muted);
}
.figure {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-3);
  background: var(--bg-sunken);
}
.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.figure figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--s-6) var(--s-5) var(--s-4);
  background: linear-gradient(transparent, rgba(11, 30, 61, 0.88));
  color: #fff;
  font-size: var(--fs-100);
  letter-spacing: 0.02em;
}

/* ---------- plans ---------- */
.plans {
  background: var(--bg-alt);
}
.plans__grid {
  display: grid;
  gap: var(--s-5);
  align-items: start;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-6) var(--s-5);
  box-shadow: var(--sh-1);
}
.plan--featured {
  border-color: var(--blue-500);
  box-shadow: var(--sh-3);
}
.plan__badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0.35rem 0.9rem;
  background: var(--grad-cool);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--fs-100);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.plan__name {
  font-size: var(--fs-600);
  margin-bottom: var(--s-2);
}
.plan__desc {
  font-size: var(--fs-200);
  color: var(--text-muted);
  margin-bottom: var(--s-5);
}
.plan__price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-family: var(--font-display);
  margin-bottom: var(--s-5);
}
.plan__price b {
  font-size: var(--fs-800);
  font-weight: 900;
  letter-spacing: var(--ls-tight);
  color: var(--blue-700);
}
[data-theme="dark"] .plan__price b {
  color: var(--blue-300);
}
.plan__price span {
  color: var(--text-subtle);
  font-family: var(--font-body);
  font-size: var(--fs-200);
  font-weight: 500;
}
.plan__feats {
  display: grid;
  gap: 0.7rem;
  margin-bottom: var(--s-6);
  flex: 1;
}
.plan__feats li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: var(--fs-200);
  color: var(--text-muted);
}
.plan__feats svg {
  flex: none;
  margin-top: 4px;
  color: var(--accent);
}
.plan__feats .em {
  color: var(--text);
  font-weight: 600;
}
.plan__note {
  margin-top: var(--s-3);
  font-size: var(--fs-100);
  color: var(--text-subtle);
  text-align: center;
}

/* toggle */
.billing-toggle {
  display: inline-flex;
  padding: 5px;
  gap: 2px;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  margin: 0 auto var(--s-7);
}
.billing-toggle button {
  min-height: 40px;
  padding: 0 1.15rem;
  font-family: var(--font-display);
  font-size: var(--fs-200);
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  border-radius: var(--r-pill);
  transition: color var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease);
}
.billing-toggle button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--blue-700);
  box-shadow: var(--sh-1);
}
[data-theme="dark"] .billing-toggle button[aria-pressed="true"] {
  color: var(--blue-300);
}
.billing-toggle .save {
  display: inline-block;
  margin-left: 0.4rem;
  font-size: 0.7em;
  color: var(--success);
  font-weight: 700;
}
.billing-toggle-wrap {
  display: flex;
  justify-content: center;
}

/* ---------- work ---------- */
.work__grid {
  display: grid;
  gap: var(--s-4);
}
.work__item {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
}
.work__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}
.work__item:hover img {
  transform: scale(1.05);
}
.work__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--s-6) var(--s-4) var(--s-3);
  background: linear-gradient(transparent, rgba(11, 30, 61, 0.9));
  color: #fff;
  font-size: var(--fs-200);
  font-weight: 600;
}
.work__empty {
  display: grid;
  place-items: center;
  gap: var(--s-2);
  aspect-ratio: 4 / 3;
  border: 2px dashed var(--border-strong);
  border-radius: var(--r-lg);
  color: var(--text-subtle);
  text-align: center;
  padding: var(--s-4);
  font-size: var(--fs-200);
}

/* ---------- reviews ---------- */
.reviews__grid {
  display: grid;
  gap: var(--s-4);
}
.review {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue-500);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--sh-1);
}
.review--heat {
  border-left-color: var(--heat-500);
}
.review__stars {
  display: flex;
  gap: 2px;
  color: #f5a623;
  margin-bottom: var(--s-3);
}
.review p {
  font-size: var(--fs-300);
  color: var(--text);
  margin-bottom: var(--s-4);
}
.review cite {
  font-style: normal;
  font-size: var(--fs-200);
  font-weight: 600;
  color: var(--text-muted);
}
.review__src {
  display: block;
  font-size: var(--fs-100);
  color: var(--text-subtle);
  font-weight: 500;
}
.review__cta {
  margin-top: var(--s-6);
  text-align: center;
}

/* ---------- contact ---------- */
.contact {
  background: var(--blue-900);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 120%;
  background: radial-gradient(
    circle,
    rgba(248, 63, 32, 0.28) 0%,
    transparent 65%
  );
  pointer-events: none;
}
.contact__grid {
  position: relative;
  display: grid;
  gap: var(--s-7);
}
.contact h2 {
  color: #fff;
}
.contact .lede {
  color: rgba(255, 255, 255, 0.82);
}
.contact__info {
  display: grid;
  gap: var(--s-4);
  align-content: start;
}
.info-row {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  padding: var(--s-4);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-md);
}
.info-row__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.12);
  color: var(--heat-300);
}
.info-row__icon svg {
  width: 20px;
  height: 20px;
}
.info-row b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-100);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2px;
}
.info-row a,
.info-row span {
  font-family: var(--font-display);
  font-size: var(--fs-400);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.info-row a:hover {
  color: var(--heat-300);
  text-decoration: underline;
}
.hours {
  display: grid;
  gap: 2px;
  font-size: var(--fs-200);
  color: rgba(255, 255, 255, 0.85);
}
.hours div {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  padding: 5px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}
.hours dt {
  font-weight: 600;
}
.hours .closed {
  color: rgba(255, 255, 255, 0.55);
}

/* form */
.form {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-xl);
  padding: var(--s-5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.form__row {
  display: grid;
  gap: var(--s-4);
  margin-bottom: var(--s-4);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.field label {
  font-size: var(--fs-200);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}
.field .req {
  color: var(--heat-300);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: var(--tap);
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--n-900);
  border: 2px solid transparent;
  border-radius: var(--r-md);
  font-size: 1rem; /* 16px prevents iOS zoom-on-focus */
  transition: border-color var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease);
}
.field textarea {
  min-height: 110px;
  resize: vertical;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--blue-400);
  box-shadow: var(--sh-focus);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--n-400);
}
.field .err {
  display: none;
  font-size: var(--fs-100);
  font-weight: 600;
  color: #ffb4a2;
}
.field.is-invalid input,
.field.is-invalid textarea {
  border-color: var(--heat-400);
}
.field.is-invalid .err {
  display: block;
}
.form__status {
  display: none;
  margin-bottom: var(--s-4);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  font-size: var(--fs-200);
  font-weight: 600;
}
.form__status.is-visible {
  display: block;
}
.form__status--ok {
  background: var(--success-soft);
  color: #bff0d8;
  border: 1px solid rgba(15, 122, 77, 0.5);
}
.form__status--err {
  background: rgba(248, 63, 32, 0.16);
  color: #ffc4b6;
  border: 1px solid rgba(248, 63, 32, 0.5);
}
.form__fine {
  margin-top: var(--s-4);
  font-size: var(--fs-100);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

/* ---------- footer ---------- */
.footer {
  background: var(--n-900);
  color: var(--n-300);
  padding-block: var(--s-8) var(--s-6);
}
.footer__grid {
  display: grid;
  gap: var(--s-6);
}
.footer__brand img {
  height: 44px;
  width: auto;
  margin-bottom: var(--s-4);
}
.footer h4 {
  color: #fff;
  font-size: var(--fs-200);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  margin-bottom: var(--s-3);
}
.footer ul {
  display: grid;
  gap: 0.5rem;
}
.footer a {
  color: var(--n-300);
  text-decoration: none;
  font-size: var(--fs-200);
}
.footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer__bottom {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  justify-content: space-between;
  font-size: var(--fs-100);
  color: var(--n-400);
}

/* ---------- AI assistant ---------- */
.ai-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 56px;
  padding: 0 1.25rem 0 1rem;
  background: var(--grad-cool);
  color: #fff;
  border: 0;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-200);
  box-shadow: var(--sh-4);
  transition: transform var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease);
}
.ai-fab:hover {
  transform: translateY(-3px) scale(1.02);
}
.ai-fab svg {
  width: 22px;
  height: 22px;
  flex: none;
}
.ai-fab__pulse {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--heat-500);
  border: 2px solid #fff;
}
.ai-fab.is-hidden {
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

.ai-panel {
  position: fixed;
  z-index: 91;
  right: 0;
  bottom: 0;
  left: 0;
  height: min(86dvh, 720px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-top-left-radius: var(--r-xl);
  border-top-right-radius: var(--r-xl);
  box-shadow: var(--sh-4);
  transform: translateY(100%);
  visibility: hidden;
  transition: transform var(--t-base) var(--ease-out),
    visibility var(--t-base);
  overflow: hidden;
}
.ai-panel.is-open {
  transform: translateY(0);
  visibility: visible;
}
.ai-panel__head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4);
  background: var(--blue-900);
  color: #fff;
}
.ai-panel__avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--grad-cool);
}
.ai-panel__avatar svg {
  width: 20px;
  height: 20px;
}
.ai-panel__title {
  flex: 1;
  min-width: 0;
}
.ai-panel__title b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-200);
}
.ai-panel__title span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--fs-100);
  color: rgba(255, 255, 255, 0.8);
}
.ai-panel__online {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #35d07f;
}
.ai-panel__close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  border-radius: var(--r-sm);
  color: #fff;
}
.ai-panel__close:hover {
  background: rgba(255, 255, 255, 0.24);
}
.ai-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  background: var(--bg-alt);
}
.msg {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: var(--r-lg);
  font-size: var(--fs-200);
  line-height: 1.55;
  animation: msg-in var(--t-base) var(--ease-out) both;
}
@keyframes msg-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.msg--bot {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom-left-radius: var(--r-sm);
  color: var(--text);
}
.msg--user {
  align-self: flex-end;
  background: var(--blue-600);
  color: #fff;
  border-bottom-right-radius: var(--r-sm);
}
.msg--user a {
  color: #fff;
}
.msg a {
  font-weight: 600;
}
.typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 4px 0;
}
.typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--n-400);
  animation: blink 1.2s infinite;
}
.typing i:nth-child(2) {
  animation-delay: 0.2s;
}
.typing i:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes blink {
  0%,
  60%,
  100% {
    opacity: 0.25;
  }
  30% {
    opacity: 1;
  }
}
.ai-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-4) 0;
  background: var(--bg-alt);
}
.ai-chips button {
  padding: 0.5rem 0.85rem;
  min-height: 38px;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--r-pill);
  color: var(--accent-text);
  font-size: var(--fs-100);
  font-weight: 600;
  transition: background var(--t-fast) var(--ease);
}
.ai-chips button:hover {
  background: var(--accent-soft);
}
.ai-panel__form {
  display: flex;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-4) var(--s-4);
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.ai-panel__form input {
  flex: 1;
  min-width: 0;
  min-height: var(--tap);
  padding: 0 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 1rem;
}
.ai-panel__form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--sh-focus);
}
.ai-panel__send {
  display: grid;
  place-items: center;
  width: var(--tap);
  height: var(--tap);
  flex: none;
  background: var(--blue-600);
  color: #fff;
  border: 0;
  border-radius: 50%;
}
.ai-panel__send:hover {
  background: var(--blue-700);
}
.ai-panel__send svg {
  width: 20px;
  height: 20px;
}

/* ---------- mobile sticky call bar ---------- */
.callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 88;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  transform: translateY(100%);
  transition: transform var(--t-base) var(--ease-out);
}
.callbar.is-visible {
  transform: translateY(0);
}
.callbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 58px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-200);
  text-decoration: none;
}
.callbar__call {
  background: var(--blue-700);
  color: #fff;
}
.callbar__quote {
  background: var(--heat-600);
  color: #fff;
}
.callbar a:active {
  filter: brightness(0.92);
}

/* ==========================================================================
   Breakpoints
   ========================================================================== */
@media (min-width: 640px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .work__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .form__row--2 {
    grid-template-columns: 1fr 1fr;
  }
  .ai-panel {
    left: auto;
    right: 1rem;
    bottom: 1rem;
    width: 400px;
    height: min(640px, 80dvh);
    border-radius: var(--r-xl);
    border: 1px solid var(--border);
    transform: translateY(calc(100% + 2rem)) scale(0.96);
    transform-origin: bottom right;
  }
  .ai-panel.is-open {
    transform: translateY(0) scale(1);
  }
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .trust__grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .reviews__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .plans__grid {
    grid-template-columns: 1fr 1fr;
  }
  .plan--featured {
    margin-top: -1.25rem;
  }
  .figure {
    aspect-ratio: 4 / 3;
  }
}

@media (min-width: 1024px) {
  :root {
    --header-h: 78px;
  }
  .nav {
    display: block;
  }
  .burger {
    display: none;
  }
  .drawer {
    display: none;
  }
  .header__phone {
    display: inline-flex;
  }
  .callbar {
    display: none;
  }
  .hero__inner {
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--s-8);
  }
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .work__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .split {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-9);
  }
  .split--reverse > *:first-child {
    order: 2;
  }
  .contact__grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: var(--s-9);
    align-items: start;
  }
  .contact__info {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
  .form {
    padding: var(--s-6);
  }
}

@media (min-width: 1280px) {
  .nav__link {
    padding: 0 1rem;
  }
}

/* print */
@media print {
  .header,
  .ai-fab,
  .ai-panel,
  .callbar,
  .drawer,
  .hero__texture {
    display: none !important;
  }
  .hero,
  .contact {
    background: #fff !important;
    color: #000 !important;
  }
  .hero h1,
  .contact h2 {
    color: #000 !important;
  }
}
