/* ==========================================================
   SolidBase – Main stylesheet (light theme, LTR by default)
   Uses CSS logical properties so most layout flips with dir.
   Theme overrides: dark.css  |  Direction overrides: rtl.css
   ========================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --primary: #0b5cab;
  --primary-dark: #083d73;
  --primary-soft: #e6f1fb;
  --navy: #0a1f3c;
  --navy-2: #0e2b52;
  --accent: #ff7a1a;
  --accent-dark: #e5650a;

  --bg: #ffffff;
  --bg-alt: #f3f8fd;
  --surface: #ffffff;
  --text: #1c2b3d;
  --muted: #5b6b7e;
  --border: #dde7f1;
  --header-bg: rgba(255, 255, 255, 0.88);
  --input-bg: #f7fafd;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 8px rgba(10, 31, 60, 0.06);
  --shadow: 0 12px 32px rgba(10, 31, 60, 0.1);
  --shadow-lg: 0 24px 60px rgba(10, 31, 60, 0.18);

  --font-head: "Sora", "DM Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --dir: 1; /* flipped to -1 in RTL (used by animations) */
  --header-h: 78px;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
}

/* ---------- 2. Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
body.nav-lock {
  overflow: hidden;
}
img,
svg {
  max-width: 100%;
}
ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
section[id],
.hero-card {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.container {
  width: min(1200px, 100% - 2.5rem);
  margin-inline: auto;
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -60px;
  z-index: 3000;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 1rem;
}

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

/* ---------- 3. Shared components ---------- */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.55rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  white-space: nowrap;
  border: 2px solid transparent;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    background 0.3s,
    color 0.3s,
    border-color 0.3s;
}
.btn::after {
  /* shine sweep */
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: -80%;
  width: 50%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  transform: skewX(-20deg);
  z-index: -1;
  transition: inset-inline-start 0.6s var(--ease);
}
.btn:hover::after {
  inset-inline-start: 130%;
}
.btn:hover {
  transform: translateY(-3px);
}
.btn:active {
  transform: translateY(-1px);
}
.btn .arrow {
  transition: transform 0.3s var(--ease);
}
.btn:hover .arrow {
  transform: translateX(4px);
}
.btn-lg {
  padding: 1rem 1.9rem;
  font-size: 1rem;
}
.btn-block {
  width: 100%;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(11, 92, 171, 0.3);
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 12px 26px rgba(11, 92, 171, 0.4);
}
.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 122, 26, 0.35);
}
.btn-accent:hover {
  background: var(--accent-dark);
  box-shadow: 0 12px 26px rgba(255, 122, 26, 0.45);
}
.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn-outline-light:hover {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1.1rem;
  transition:
    background 0.25s,
    color 0.25s,
    border-color 0.25s,
    transform 0.25s var(--ease);
}
.icon-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
}
.eyebrow-light {
  color: #9fd0ff;
}

.section {
  padding: 6rem 0;
  position: relative;
}
.section-alt {
  background: var(--bg-alt);
}
.section-head h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  margin-bottom: 0.9rem;
}
.section-head p {
  color: var(--muted);
  max-width: 640px;
  font-size: 1.05rem;
}
.section-head.center {
  text-align: center;
  margin: 0 auto 3.5rem;
  max-width: 760px;
}
.section-head.center p {
  margin-inline: auto;
}
.section-head.center .eyebrow {
  justify-content: center;
}
.center-cta {
  text-align: center;
  margin-top: 3rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: var(--primary);
}
.link-arrow .arrow {
  transition: transform 0.3s var(--ease);
}
.link-arrow:hover .arrow {
  transform: translateX(5px);
}

.stars {
  display: inline-flex;
  gap: 2px;
  color: #fbbf24;
}
.stars .icon {
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1;
  width: 1.05em;
  height: 1.05em;
}

/* ---------- 4. Scroll reveal animations ---------- */
.js [data-animate] {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js [data-animate="left"] {
  transform: translateX(calc(var(--dir) * -48px));
}
.js [data-animate="right"] {
  transform: translateX(calc(var(--dir) * 48px));
}
.js [data-animate].in-view {
  opacity: 1;
  transform: none;
}

/* ---------- 5. Topbar ---------- */
.topbar {
  background: var(--navy);
  color: #cfe0f3;
  font-size: 0.85rem;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 44px;
}
.topbar-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}
.topbar-info li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}
.topbar-info a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}
.topbar-info a:hover {
  color: #fff;
}
.topbar-info .icon {
  color: var(--accent);
}
.topbar-offer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
  max-width: 520px;
}
.offer-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: pulse-badge 2s ease-in-out infinite;
}
.marquee {
  overflow: hidden;
  flex: 1;
  min-width: 0;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-group {
  display: flex;
  flex-shrink: 0;
  gap: 3rem;
  padding-inline-end: 3rem;
}
.marquee-group span {
  white-space: nowrap;
  color: #fff;
  font-weight: 500;
}
.marquee-group span::before {
  content: "\2022";
  color: var(--accent);
  margin-inline-end: 0.75rem;
}

/* ---------- 6. Header & navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  transition:
    box-shadow 0.3s,
    border-color 0.3s;
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   become the containing block of the fixed mobile drawer and break it. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
}
.site-header.scrolled {
  box-shadow: 0 8px 28px rgba(10, 31, 60, 0.12);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: var(--header-h);
  transition: min-height 0.3s var(--ease);
}
.site-header.scrolled .header-inner {
  min-height: 66px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
}
.logo-mark {
  width: 46px;
  height: 46px;
  display: block;
  transition: transform 0.5s var(--ease);
}
.logo:hover .logo-mark {
  transform: rotate(-8deg) scale(1.06);
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-text strong {
  font-family: var(--font-head);
  font-size: 1.35rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.logo-text small {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}
.logo-light .logo-text strong {
  color: #fff;
}
.logo-light .logo-text small {
  color: #9db8d6;
}

.main-nav {
  margin-inline: auto;
}
.nav-head,
.nav-mobile-extra {
  display: none;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.nav-list > li {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-link {
  position: relative;
  padding: 0.6rem 0.75rem;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--text);
  border-radius: 10px;
  transition: color 0.25s;
}
.nav-link::after {
  content: "";
  position: absolute;
  inset-inline: 0.75rem;
  bottom: 0.2rem;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s var(--ease);
}
.nav-link:hover {
  color: var(--primary);
}
.nav-link:hover::after,
.nav-list > li.active > .nav-link::after {
  transform: scaleX(1);
}
.nav-list > li.active > .nav-link {
  color: var(--primary);
}

.dd-toggle {
  display: grid;
  place-items: center;
  width: 24px;
  height: 28px;
  margin-inline-start: -0.55rem;
  color: var(--muted);
  border-radius: 8px;
  transition:
    color 0.25s,
    transform 0.3s var(--ease);
}
.dd-toggle .icon {
  width: 1em;
  height: 1em;
}
.has-dd:hover > .dd-toggle,
.has-dd.open > .dd-toggle,
.has-dd.active > .dd-toggle {
  color: var(--primary);
}
.has-dd.open > .dd-toggle {
  transform: rotate(180deg);
}

.dd {
  position: absolute;
  top: calc(100% + 12px);
  inset-inline-start: 0;
  z-index: 20;
  min-width: 250px;
  padding: 0.55rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition:
    opacity 0.28s var(--ease),
    transform 0.28s var(--ease),
    visibility 0.28s;
}
.dd::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: -14px;
  height: 14px;
} /* hover bridge */
.dd a {
  display: flex;
  align-items: center;
  padding: 0.7rem 0.95rem;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--text);
  transition:
    background 0.2s,
    color 0.2s,
    padding-inline-start 0.25s var(--ease);
}
.dd a:hover {
  background: var(--primary-soft);
  color: var(--primary);
  padding-inline-start: 1.25rem;
}
.dd li.active > a,
.dd a.active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
}
.dd li.active > a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-inline-end: 0.6rem;
}

@media (min-width: 1101px) {
  .has-dd:hover > .dd,
  .has-dd:focus-within > .dd,
  .has-dd.open > .dd {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .has-dd:hover > .dd-toggle {
    transform: rotate(180deg);
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: none;
}
.theme-toggle .icon-sun {
  display: none;
}
[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}
[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}
.theme-toggle:hover .icon {
  animation: spin-in 0.6s var(--ease);
}
.rtl-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 42px;
  padding-inline: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--text);
  transition:
    background 0.25s,
    color 0.25s,
    border-color 0.25s,
    transform 0.25s var(--ease);
}
.rtl-toggle:hover,
.rtl-toggle[aria-pressed="true"] {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.rtl-toggle:hover {
  transform: translateY(-2px);
}
.header-cta {
  padding: 0.75rem 1.3rem;
  font-size: 0.9rem;
}

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background 0.25s;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2.5px;
  border-radius: 3px;
  background: var(--text);
  transition:
    transform 0.35s var(--ease),
    opacity 0.25s,
    background 0.25s;
}
.hamburger.is-open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.is-open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(5, 15, 30, 0.6);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s,
    visibility 0.35s;
}
.nav-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  padding: 5rem 0 11rem;
  background:
    radial-gradient(
      900px 500px at 85% 10%,
      rgba(27, 139, 224, 0.45),
      transparent 60%
    ),
    radial-gradient(
      700px 400px at 0% 100%,
      rgba(255, 122, 26, 0.16),
      transparent 60%
    ),
    linear-gradient(135deg, #07162b 0%, #0a2a52 55%, #0b5cab 130%);
     

}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(circle at 30% 40%, #000, transparent 75%);
  mask-image: radial-gradient(circle at 30% 40%, #000, transparent 75%);
}
.hero-bubbles span {
  position: absolute;
  bottom: -60px;
  inset-inline-start: var(--x);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.55),
    rgba(255, 255, 255, 0.08)
  );
  border: 1px solid rgba(255, 255, 255, 0.25);
  animation: rise var(--t) linear var(--d) infinite;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  line-height: 1.07;
  margin-bottom: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hero h1 .hl {
  background: linear-gradient(90deg, #7cc4ff, #ffb36b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hero-lead {
  font-size: 1.15rem;
  color: #cfe0f3;
  max-width: 560px;
  margin-bottom: 2rem;
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.8rem;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin-bottom: 1.8rem;
}
.hero-badges li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.hero-badges .icon {
  width: 1.4em;
  height: 1.4em;
  padding: 4px;
  border-radius: 50%;
  background: rgba(255, 122, 26, 0.95);
  color: #fff;
  stroke-width: 3;
}
.hero-rating {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #cfe0f3;
  font-size: 0.95rem;
}
.hero-rating strong {
  color: #fff;
}

.hero-card {
  background: var(--surface);
  color: var(--text);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--accent);
}
.hero-card-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.card-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1.5rem;
}
.hero-card h2 {
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
}
.hero-card-head p {
  color: var(--muted);
  font-size: 0.9rem;
}
.field {
  margin-bottom: 1rem;
}
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.field input,
.field select {
  width: 100%;
  height: 50px;
  padding-inline: 1rem;
  border-radius: 12px;
  background: var(--input-bg);
  border: 1.5px solid var(--border);
  transition:
    border-color 0.25s,
    box-shadow 0.25s,
    background 0.25s;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-inline-end: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235b6b7e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(11, 92, 171, 0.15);
  background: var(--surface);
}
.field.invalid input {
  border-color: #e5484d;
  box-shadow: 0 0 0 4px rgba(229, 72, 77, 0.12);
}
.form-status {
  min-height: 1.4rem;
  margin-top: 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  color: #16a34a;
}
.form-status.error {
  color: #e5484d;
}

.hero-wave {
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 110px;
  z-index: 1;
  overflow: hidden;
}
.wave {
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 200%;
  height: 100%;
}
.wave path {
  fill: var(--bg);
}
.wave-1 {
  animation: wave 14s linear infinite;
}
.wave-2 {
  opacity: 0.45;
  animation: wave 22s linear infinite reverse;
}

/* ---------- 8. Trust stats ---------- */
.stats {
  position: relative;
  z-index: 5;
  margin-top: -5.5rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.6rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.js .stat.in-view {
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    opacity 0.8s var(--ease);
}
.stat:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--shadow-lg);
}
.stat-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--primary), #1b8be0);
  color: #fff;
}
.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2.1rem;
  line-height: 1.1;
  color: var(--navy);
}
.stat span:not(.stat-icon) {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

/* ---------- 9. About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 4.5rem;
  align-items: center;
}
.about-visual {
  position: relative;
}
.cross-section {
  background:
    linear-gradient(180deg, #dcecfa 0 34%, transparent 34%), var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.cross-section svg {
  width: 100%;
  height: auto;
  display: block;
}
.cross-section .lbl {
  fill: var(--text);
  color: var(--text);
  font-family: var(--font-body);
}
.water-fill {
  animation: sway 5s ease-in-out infinite alternate;
}
.drop {
  animation: drip 2.4s ease-in infinite;
  animation-delay: var(--dl);
  transform-box: fill-box;
}
.exp-badge {
  position: absolute;
  inset-inline-end: -1rem;
  top: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--accent);
  color: #fff;
  padding: 1.1rem 1.4rem;
  border-radius: 20px;
  box-shadow: 0 16px 36px rgba(255, 122, 26, 0.4);
  animation: float 4s ease-in-out infinite;
}
.exp-badge strong {
  font-family: var(--font-head);
  font-size: 2.2rem;
  line-height: 1;
}
.exp-badge span {
  font-size: 0.8rem;
  font-weight: 600;
  max-width: 110px;
}
.about-copy h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  margin-bottom: 1.1rem;
}
.about-copy > p {
  color: var(--muted);
  margin-bottom: 1.8rem;
  font-size: 1.05rem;
}
.mini-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
  margin-bottom: 2.2rem;
}
.mini-features li {
  display: flex;
  gap: 0.9rem;
}
.mf-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1.25rem;
  transition:
    background 0.3s,
    color 0.3s,
    transform 0.4s var(--ease);
}
.mini-features li:hover .mf-icon {
  background: var(--primary);
  color: #fff;
  transform: rotate(-8deg) scale(1.08);
}
.mini-features h3 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}
.mini-features p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- 10. Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.service-card {
  position: relative;
  overflow: hidden;
  padding: 2.1rem 1.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
}
.js .service-card.in-view {
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    border-color 0.3s,
    opacity 0.8s var(--ease);
}
.service-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.service-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before {
  transform: scaleX(1);
}
.service-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 20px;
  margin-bottom: 1.4rem;
  font-size: 1.85rem;
  background: var(--primary-soft);
  color: var(--primary);
  transition:
    background 0.35s,
    color 0.35s,
    transform 0.5s var(--ease);
}
.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--primary), #1b8be0);
  color: #fff;
  transform: rotate(-8deg) scale(1.08);
}
.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.7rem;
}
.service-card p {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

/* ---------- 11. Why choose us ---------- */
.why {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  overflow: hidden;
}
.why-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  inset-inline-end: -140px;
  top: -160px;
  background: radial-gradient(
    circle,
    rgba(27, 139, 224, 0.35),
    transparent 65%
  );
  animation: float 8s ease-in-out infinite;
}
.why-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: center;
}
.why-copy h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  margin-bottom: 1.1rem;
}
.why-copy > p {
  color: #b8cce2;
  margin-bottom: 1.8rem;
  font-size: 1.05rem;
}
.guarantee {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
}
.g-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  font-size: 1.5rem;
}
.guarantee strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.05rem;
}
.guarantee span:not(.g-icon) {
  font-size: 0.9rem;
  color: #b8cce2;
}
.why-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.why-item {
  padding: 1.7rem 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  backdrop-filter: blur(6px);
}
.js .why-item.in-view {
  transition:
    transform 0.4s var(--ease),
    background 0.3s,
    border-color 0.3s,
    opacity 0.8s var(--ease);
}
.why-item:hover {
  transform: translateY(-6px) !important;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 122, 26, 0.6);
}
.wi-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  background: rgba(255, 122, 26, 0.16);
  color: #ffb36b;
}
.why-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}
.why-item p {
  font-size: 0.92rem;
  color: #b8cce2;
  line-height: 1.55;
}

/* ---------- 12. Process ---------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  counter-reset: s;
}
.steps::before {
  content: "";
  position: absolute;
  top: 40px;
  inset-inline: 10%;
  height: 0;
  border-top: 3px dashed var(--border);
}
.step {
  position: relative;
  text-align: center;
}
.step-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 1.3rem;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--primary);
  color: var(--primary);
  font-size: 1.9rem;
  box-shadow: 0 0 0 8px var(--bg);
  transition:
    background 0.35s,
    color 0.35s,
    transform 0.5s var(--ease),
    box-shadow 0.35s;
}
.step:hover .step-icon {
  background: var(--primary);
  color: #fff;
  transform: translateY(-6px) scale(1.06);
  box-shadow:
    0 0 0 8px var(--bg),
    0 14px 28px rgba(11, 92, 171, 0.35);
}
.step-icon em {
  position: absolute;
  top: -6px;
  inset-inline-end: -6px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 800;
  font-family: var(--font-head);
}
.step h3 {
  font-size: 1.08rem;
  margin-bottom: 0.4rem;
}
.step p {
  font-size: 0.92rem;
  color: var(--muted);
}

/* ---------- 13. Before / After ---------- */
.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.ba-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.ba-slider {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
}
.ba-layer {
  position: absolute;
  inset: 0;
}
.ba-layer img,
.ba-layer svg {
  width: 100%;
  height: 100%;
  display: block;
}
.ba-layer img {
  object-fit: cover;
}
.ba-before {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 4px;
  margin-left: -2px;
  background: #fff;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.4);
  outline-offset: 6px;
}
.ba-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s var(--ease);
}
.ba-slider:hover .ba-knob,
.ba-slider.dragging .ba-knob {
  transform: scale(1.12);
}
.ba-tag {
  position: absolute;
  top: 1rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(10, 31, 60, 0.75);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.ba-tag-before {
  left: 1rem;
}
.ba-tag-after {
  right: 1rem;
  background: rgba(22, 163, 74, 0.9);
}
.ba-body {
  padding: 1.5rem 1.75rem 1.75rem;
}
.ba-body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}
.ba-body p {
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tags li {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
}

/* ---------- 14. Common problems ---------- */
.problems-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
.problem {
  display: flex;
  gap: 1.3rem;
  padding: 1.7rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-inline-start: 5px solid var(--accent);
  border-radius: var(--radius);
}
.js .problem.in-view {
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    opacity 0.8s var(--ease);
}
.problem:hover {
  transform: translateY(-5px) !important;
  box-shadow: var(--shadow);
}
.p-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: rgba(255, 122, 26, 0.12);
  color: var(--accent);
  font-size: 1.65rem;
  transition:
    background 0.3s,
    color 0.3s,
    transform 0.4s var(--ease);
}
.problem:hover .p-icon {
  background: var(--accent);
  color: #fff;
  transform: rotate(-8deg);
}
.problem h3 {
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}
.problem p {
  color: var(--muted);
  font-size: 0.96rem;
  margin-bottom: 0.8rem;
}
.p-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
}

/* ---------- 15. Testimonials ---------- */
.t-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.t-head .section-head h2 {
  margin-bottom: 0;
}
.t-controls {
  display: flex;
  gap: 0.6rem;
}
.t-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}
.arrow.flip {
  transform: scaleX(-1);
}
.t-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0.5rem 0.25rem 1.5rem;
  margin-inline: -0.25rem;
}
.t-track::-webkit-scrollbar {
  display: none;
}
.t-card {
  position: relative;
  flex: 0 0 calc((100% - 3rem) / 3);
  scroll-snap-align: start;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}
.t-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.t-quote {
  position: absolute;
  top: 1.5rem;
  inset-inline-end: 1.5rem;
  width: 2.4rem;
  height: 2.4rem;
  color: var(--primary);
  opacity: 0.15;
}
.t-card .stars {
  margin-bottom: 1rem;
}
.t-card blockquote {
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 1.6rem;
}
.t-card figcaption {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.t-card figcaption strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1rem;
}
.t-card figcaption span:not(.avatar) {
  font-size: 0.85rem;
  color: var(--muted);
}
.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 800;
  font-family: var(--font-head);
  font-size: 0.95rem;
}

/* ---------- 16. FAQ ---------- */
.faq-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  align-items: start;
}
.faq-intro {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.faq-intro h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
}
.faq-intro > p {
  color: var(--muted);
  margin-bottom: 1.8rem;
}
.faq-contact {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  background: var(--primary-soft);
  border-radius: 18px;
}
.fc-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.3rem;
  animation: ring 3s ease-in-out infinite;
}
.faq-contact span:not(.fc-icon) {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}
.faq-contact a {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary);
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 0.9rem;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}
.faq-item.open {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.faq-item h3 {
  font-size: 1rem;
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.2rem 1.4rem;
  text-align: start;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
}
.faq-q .icon {
  flex: none;
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  transition:
    transform 0.4s var(--ease),
    background 0.3s,
    color 0.3s;
}
.faq-item.open .faq-q .icon {
  transform: rotate(135deg);
  background: var(--primary);
  color: #fff;
}
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}
.faq-item.open .faq-a {
  grid-template-rows: 1fr;
}
.faq-a > div {
  overflow: hidden;
}
.faq-a p {
  padding: 0 1.4rem 1.4rem;
  color: var(--muted);
}

/* ---------- 17. Final CTA ---------- */
.cta {
  padding: 0 0 6rem;
}
.cta-box {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding: 3.5rem;
  border-radius: 32px;
  color: #fff;
  background: linear-gradient(
    120deg,
    var(--navy) 0%,
    var(--primary-dark) 45%,
    var(--primary) 100%
  );
  box-shadow: var(--shadow-lg);
}
.cta-circle {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}
.cta-circle.c1 {
  width: 340px;
  height: 340px;
  inset-inline-end: -90px;
  top: -120px;
  animation: float 7s ease-in-out infinite;
}
.cta-circle.c2 {
  width: 200px;
  height: 200px;
  inset-inline-start: 38%;
  bottom: -110px;
  background: rgba(255, 255, 255, 0.05);
  animation: float 9s ease-in-out infinite reverse;
}
.cta-copy {
  position: relative;
  flex: 1 1 420px;
  max-width: 640px;
}
.cta-copy h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  margin-bottom: 0.9rem;
}
.cta-copy p {
  color: #cfe0f3;
  font-size: 1.05rem;
}
.cta-actions {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.9rem;
  flex: 0 0 auto;
}

/* ---------- 18. Footer ---------- */
.site-footer {
  background: #07162b;
  color: #9db8d6;
  padding-top: 5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1fr 1.3fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
}
.f-brand p {
  margin: 1.3rem 0 1.5rem;
  max-width: 330px;
}
.f-col h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1.4rem;
  position: relative;
  padding-bottom: 0.8rem;
}
.f-col h4::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 36px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
}
.f-col li {
  margin-bottom: 0.7rem;
}
.f-col li a {
  transition:
    color 0.25s,
    padding-inline-start 0.25s var(--ease);
}
.f-col li a:hover {
  color: #fff;
  padding-inline-start: 6px;
}
.socials {
  display: flex;
  gap: 0.6rem;
}
.socials li {
  margin: 0 !important;
}
.socials a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition:
    background 0.3s,
    transform 0.3s var(--ease);
}
.socials a:hover {
  background: var(--accent);
  transform: translateY(-4px);
  padding: 0 !important;
}
.f-contact li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}
.f-contact .icon {
  margin-top: 0.25rem;
  color: var(--accent);
}
.f-contact a:hover {
  color: #fff;
}
.newsletter {
  display: flex;
  margin-top: 1.4rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.newsletter input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  padding-inline: 1rem;
  color: #fff;
}
.newsletter input::placeholder {
  color: #7f9bbb;
}
.newsletter input:focus {
  outline: none;
}
.newsletter:focus-within {
  border-color: var(--accent);
}
.newsletter button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  transition:
    transform 0.3s var(--ease),
    background 0.3s;
}
.newsletter button:hover {
  background: var(--accent-dark);
  transform: scale(1.08);
}
.f-contact .newsletter .icon {
  margin: 0;
  color: #fff;
}
.nl-status {
  min-height: 1.3rem;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: #6ee7a0;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.4rem 0;
  font-size: 0.9rem;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom ul {
  display: flex;
  gap: 1.5rem;
}
.footer-bottom a:hover {
  color: #fff;
}

/* ---------- 19. Back to top ---------- */
.to-top {
  position: fixed;
  inset-inline-end: 1.4rem;
  bottom: 1.4rem;
  z-index: 900;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.3rem;
  box-shadow: 0 10px 24px rgba(255, 122, 26, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition:
    opacity 0.3s,
    transform 0.3s var(--ease),
    visibility 0.3s,
    background 0.3s;
}
.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.to-top:hover {
  background: var(--accent-dark);
  transform: translateY(-4px);
}

/* theme-switch smoothing (class added briefly by JS) */
.theme-anim,
.theme-anim *,
.theme-anim *::before,
.theme-anim *::after {
  transition:
    background-color 0.45s ease,
    color 0.45s ease,
    border-color 0.45s ease,
    fill 0.45s ease !important;
}

/* ---------- 20. Keyframes ---------- */
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
@keyframes wave {
  to {
    transform: translateX(-50%);
  }
}
@keyframes rise {
  0% {
    transform: translateY(0) scale(0.8);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    transform: translateY(-120vh) scale(1.2);
    opacity: 0;
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}
@keyframes sway {
  to {
    transform: translateY(-8px);
  }
}
@keyframes drip {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    transform: translateY(90px);
    opacity: 0;
  }
}
@keyframes pulse-badge {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 122, 26, 0.6);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(255, 122, 26, 0);
  }
}
@keyframes spin-in {
  from {
    transform: rotate(-90deg) scale(0.6);
  }
  to {
    transform: none;
  }
}
@keyframes ring {
  0%,
  86%,
  100% {
    transform: rotate(0);
  }
  90% {
    transform: rotate(-14deg);
  }
  94% {
    transform: rotate(14deg);
  }
  98% {
    transform: rotate(-8deg);
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* --- Tablet & below: hamburger / off-canvas menu --- */
@media (max-width: 1100px) {
  .hamburger {
    display: flex;
  }
  .header-actions {
    margin-inline-start: auto;
  }
  .main-nav {
    position: fixed;
    top: 0;
    bottom: 0;
    inset-inline-end: 0;
    z-index: 1100;
    margin: 0;
    width: min(380px, 88vw);
    padding: 1.25rem 1.25rem 2rem;
    overflow-y: auto;
    background: var(--surface);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.25);
    transform: translateX(105%);
    visibility: hidden;
    transition:
      transform 0.4s var(--ease),
      visibility 0s 0.4s;
  }
  .main-nav.open {
    transform: none;
    visibility: visible;
    transition:
      transform 0.4s var(--ease),
      visibility 0s;
  }
  .nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-head-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.15rem;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
  }
  .nav-list > li {
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
  }
  .nav-link {
    flex: 1;
    padding: 1rem 0.5rem;
    font-size: 1.02rem;
  }
  .nav-link::after {
    inset-inline-start: 0.5rem;
    inset-inline-end: auto;
    bottom: 0.55rem;
    width: 28px;
  }
  .nav-link:hover::after,
  .nav-list > li.active > .nav-link::after {
    transform: scaleX(1);
  }
  .dd-toggle {
    width: 44px;
    height: 44px;
    margin: 0;
    font-size: 1.1rem;
    border-radius: 12px;
    background: var(--bg-alt);
  }
  .dd {
    position: static;
    flex-basis: 100%;
    min-width: 0;
    padding: 0 0 0 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
  }
  .dd::before {
    display: none;
  }
  .has-dd.open > .dd {
    max-height: 320px;
    padding-bottom: 0.6rem;
  }
  .dd a {
    padding: 0.75rem 1rem;
    margin-inline-start: 0.5rem;
    border-inline-start: 2px solid var(--border);
    border-radius: 0 10px 10px 0;
  }
  .nav-mobile-extra {
    display: block;
    margin-top: 1.75rem;
  }
  .nav-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1rem;
    font-weight: 700;
    color: var(--primary);
  }

  .hero {
    padding: 4rem 0 10rem;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }
  .hero-card {
    max-width: 560px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid,
  .why-grid,
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .about-visual {
    max-width: 560px;
    margin-inline: auto;
    width: 100%;
  }
  .faq-intro {
    position: static;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .t-card {
    flex-basis: calc((100% - 1.5rem) / 2);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .section {
    padding: 5rem 0;
  }
}

/* --- Small tablet --- */
@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .steps::before {
    top: 0;
    bottom: 0;
    inset-inline: 40px auto;
    width: 0;
    height: auto;
    border-top: 0;
    border-inline-start: 3px dashed var(--border);
  }
  .step {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    text-align: start;
  }
  .step-icon {
    margin: 0;
    flex: none;
  }
  .ba-grid,
  .problems-grid {
    grid-template-columns: 1fr;
  }
  .topbar-info .tb-hours {
    display: none;
  }
  .cta-box {
    padding: 2.75rem 2rem;
  }
}

/* --- Mobile --- */
@media (max-width: 768px) {
  :root {
    --header-h: 68px;
  }
  .topbar-inner {
    justify-content: center;
    gap: 1rem;
  }
  .topbar-info .tb-email {
    display: none;
  }
  .topbar-offer {
    max-width: none;
  }
  .header-cta {
    display: none;
  }
  .rtl-toggle span {
    display: none;
  }
  .rtl-toggle {
    width: 42px;
    padding: 0;
    justify-content: center;
  }
  .logo-mark {
    width: 40px;
    height: 40px;
  }
  .logo-text strong {
    font-size: 1.2rem;
  }
  .logo-text small {
    display: none;
  }
  .section {
    padding: 4rem 0;
  }
  .section-head.center {
    margin-bottom: 2.5rem;
  }
  .hero {
    padding: 3rem 0 9rem;
  }
  .hero-lead {
    font-size: 1.05rem;
  }
  .hero-card {
    padding: 1.5rem;
  }
  .stats {
    margin-top: -4.5rem;
  }
  .mini-features {
    grid-template-columns: 1fr;
  }
  .why-features {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .t-card {
    flex-basis: 100%;
  }
  .t-head {
    align-items: center;
  }
  .t-head .section-head h2 {
    font-size: 1.6rem;
  }
  .problem {
    padding: 1.35rem;
    gap: 1rem;
  }
  .exp-badge {
    inset-inline-end: 0.5rem;
    top: 1rem;
    padding: 0.8rem 1rem;
  }
  .exp-badge strong {
    font-size: 1.8rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
  .footer-bottom-inner {
    justify-content: center;
    text-align: center;
  }
  .cta {
    padding-bottom: 4rem;
  }
  .cta-box {
    padding: 2.25rem 1.5rem;
    border-radius: 24px;
  }
  .cta-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(1200px, 100% - 2rem);
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat {
    padding: 1.25rem;
  }
  .hero-btns .btn {
    width: 100%;
  }
  .hero-badges {
    flex-direction: column;
    gap: 0.6rem;
  }
  .offer-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.55rem;
  }
  .ba-body {
    padding: 1.25rem;
  }
  .faq-q {
    padding: 1rem 1.1rem;
    font-size: 0.96rem;
  }
  .faq-a p {
    padding: 0 1.1rem 1.2rem;
  }
  .t-card {
    padding: 1.5rem;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-animate] {
    opacity: 1;
    transform: none;
  }
  .marquee-track {
    animation: none;
  }
}

/* =========================================================
   21. CONTACT PAGE (contact-us.html)
   Reuses the shared tokens, buttons, hero, why-us, FAQ and CTA
   components above; only page-specific pieces live here.
   ========================================================= */

/* ---------- Contact hero ---------- */
.hero-page {
  padding: 4.5rem 0 10.5rem;
}
.hero-page .hero-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}
.hero-page h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
}
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.breadcrumb a {
  color: #cfe0f3;
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: #fff;
}
.breadcrumb .icon {
  width: 0.95em;
  height: 0.95em;
  color: var(--accent);
}
.breadcrumb [aria-current] {
  color: #fff;
}

.hero-aside {
  position: relative;
  padding: 2rem;
  border-radius: 24px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top: 5px solid var(--accent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}
.ha-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 122, 26, 0.18);
  color: #ffb36b;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ha-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse-dot 1.8s ease-in-out infinite;
}
.hero-aside h2 {
  font-size: 1.45rem;
  margin-bottom: 1rem;
}
.ha-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  letter-spacing: -0.02em;
  transition: color 0.25s;
}
.ha-phone:hover {
  color: #ffb36b;
}
.ha-phone .icon {
  width: 1.9em;
  height: 1.9em;
  padding: 0.45em;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
}
.hero-aside > p {
  color: #cfe0f3;
  margin-bottom: 1.3rem;
}
.ha-list {
  display: grid;
  gap: 0.65rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.ha-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.ha-list .icon {
  color: #ffb36b;
}

/* ---------- Contact information cards ---------- */
.contact-info {
  position: relative;
  z-index: 5;
  margin-top: -5.5rem;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.info-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.9rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.js .info-card.in-view {
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    opacity 0.8s var(--ease);
}
.info-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.info-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--shadow-lg);
}
.info-card:hover::before {
  transform: scaleX(1);
}
.ic-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 1.2rem;
  border-radius: 16px;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--primary), #1b8be0);
  color: #fff;
  transition: transform 0.5s var(--ease);
}
.info-card:hover .ic-icon {
  transform: rotate(-8deg) scale(1.08);
}
.info-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.info-card p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
  margin-bottom: 1.1rem;
}
.ic-link {
  margin-top: auto;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--primary);
  overflow-wrap: anywhere;
  transition: color 0.2s;
}
.ic-link:hover {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}
.status-pill[hidden] {
  display: none;
}
.status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.status-pill.is-open::before {
  animation: pulse-dot 1.8s ease-in-out infinite;
}
.status-pill.is-closed {
  background: rgba(255, 122, 26, 0.14);
  color: var(--accent-dark);
}

/* ---------- Inspection request form ---------- */
.contact-form-section {
  padding-top: 5.5rem;
}
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 2.25rem;
  align-items: start;
}
.form-card {
  padding: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 5px solid var(--accent);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.form-card .hero-card-head h3 {
  font-size: 1.35rem;
  margin-bottom: 0.2rem;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.25rem;
}
.form-grid .field.full {
  grid-column: 1 / -1;
}
.field .req {
  color: var(--accent);
}
.field input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
  min-height: 50px;
}
.field textarea {
  display: block;
  width: 100%;
  min-height: 130px;
  padding: 0.85rem 1rem;
  resize: vertical;
  line-height: 1.55;
  border-radius: 12px;
  background: var(--input-bg);
  border: 1.5px solid var(--border);
  font: inherit;
  color: inherit;
  transition:
    border-color 0.25s,
    box-shadow 0.25s,
    background 0.25s;
}
.field textarea::placeholder,
.field input::placeholder {
  color: var(--muted);
  opacity: 0.75;
}
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(11, 92, 171, 0.15);
  background: var(--surface);
}
.field.invalid select,
.field.invalid textarea {
  border-color: #e5484d;
  box-shadow: 0 0 0 4px rgba(229, 72, 77, 0.12);
}
.field-error {
  display: none;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #e5484d;
}
.field.invalid .field-error {
  display: block;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0.5rem 0 1.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
}
.check input {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-content: center;
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0.1rem 0 0;
  border-radius: 7px;
  border: 1.5px solid var(--border);
  background: var(--input-bg);
  cursor: pointer;
  transition:
    background 0.25s,
    border-color 0.25s,
    box-shadow 0.25s;
}
.check input::after {
  content: "";
  width: 11px;
  height: 6px;
  margin-top: -2px;
  border-inline-start: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg) scale(0);
  transition: transform 0.25s var(--ease);
}
.check input:checked {
  background: var(--primary);
  border-color: var(--primary);
}
.check input:checked::after {
  transform: rotate(-45deg) scale(1);
}
.check input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.check.invalid input {
  border-color: #e5484d;
  box-shadow: 0 0 0 4px rgba(229, 72, 77, 0.12);
}
.check.invalid > span {
  color: #e5484d;
}

.contact-side {
  display: grid;
  gap: 1.5rem;
}
.side-card {
  padding: 1.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}
.side-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
}
.next-steps {
  display: grid;
  gap: 1.2rem;
  counter-reset: ns;
}
.next-steps li {
  position: relative;
  display: flex;
  gap: 1rem;
  counter-increment: ns;
}
.next-steps li::before {
  content: counter(ns);
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.95rem;
}
.next-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-inline-start: 17px;
  top: 42px;
  bottom: -1.2rem;
  border-inline-start: 2px dashed var(--border);
}
.next-steps strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1rem;
  margin-bottom: 0.15rem;
}
.next-steps span {
  display: block;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}
.side-emergency {
  position: relative;
  overflow: hidden;
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--primary-dark) 100%);
  box-shadow: var(--shadow);
}
.side-emergency::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  inset-inline-end: -70px;
  top: -80px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}
.se-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: rgba(255, 122, 26, 0.2);
  color: #ffb36b;
  font-size: 1.4rem;
}
.side-emergency h3 {
  margin-bottom: 0.5rem;
}
.side-emergency p {
  color: #cfe0f3;
  font-size: 0.95rem;
  margin-bottom: 1.3rem;
}
.side-emergency .btn {
  white-space: normal;
  text-align: center;
}

/* ---------- Service areas ---------- */
.areas-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 4rem;
  align-items: start;
}
.areas-intro {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.areas-intro h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  margin-bottom: 1rem;
}
.areas-intro > p {
  color: var(--muted);
  font-size: 1.05rem;
}
.area-check {
  margin: 1.8rem 0;
  padding: 1.3rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
}
.area-check label {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.88rem;
  font-weight: 700;
}
.area-input {
  position: relative;
}
.area-input .icon {
  position: absolute;
  inset-inline-start: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.area-input input {
  width: 100%;
  height: 52px;
  padding-inline: 2.8rem 1rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}
.area-input input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(11, 92, 171, 0.15);
}
.area-status {
  min-height: 1.5rem;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}
.area-status.ok {
  color: #16a34a;
}
.area-status.none {
  color: var(--accent-dark);
}
.area-status a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.area-points {
  display: grid;
  gap: 0.7rem;
}
.area-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-weight: 500;
}
.area-points .icon {
  width: 1.5em;
  height: 1.5em;
  margin-top: 0.05rem;
  padding: 4px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  stroke-width: 3;
}

.areas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.area-card {
  padding: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: 22px;
  transition:
    box-shadow 0.35s var(--ease),
    border-color 0.3s;
}
.area-card:hover {
  box-shadow: var(--shadow);
}
.area-card.wide {
  grid-column: 1 / -1;
  border-top-color: var(--accent);
}
.area-card.is-empty {
  display: none;
}
.area-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.area-card h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.15rem;
}
.area-card h3 .icon {
  color: var(--accent);
}
.area-tag {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 122, 26, 0.12);
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 700;
}
.area-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.area-chips li {
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  transition:
    background 0.25s,
    color 0.25s;
}
.area-chips li.is-match {
  background: var(--accent);
  color: #fff;
}
.area-chips li.is-hidden {
  display: none;
}

/* ---------- Google map ---------- */
.map-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.map-card iframe {
  display: block;
  width: 100%;
  height: 480px;
  border: 0;
}
.map-info {
  position: absolute;
  top: 1.5rem;
  inset-inline-start: 1.5rem;
  width: min(340px, calc(100% - 3rem));
  padding: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}
.map-info h3 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}
.map-info ul {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1.3rem;
  font-size: 0.94rem;
}
.map-info li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.map-info .icon {
  margin-top: 0.25rem;
  color: var(--accent);
}
.map-info a:not(.btn):hover {
  color: var(--primary);
}

/* ---------- Contact page keyframes ---------- */
@keyframes pulse-dot {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(74, 222, 128, 0);
  }
}

/* ---------- Contact page responsive ---------- */
@media (min-width: 1101px) and (min-height: 780px) {
  .contact-side {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}

/* Tablet & below */
@media (max-width: 1100px) {
  .hero-page {
    padding: 4rem 0 10rem;
  }
  .hero-page .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.75rem;
  }
  .hero-aside {
    max-width: 560px;
  }
  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .contact-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
  .areas-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }
  .areas-intro {
    position: static;
  }
}

/* Small tablet */
@media (max-width: 900px) {
  .map-card iframe {
    height: 360px;
  }
  .map-info {
    position: static;
    width: auto;
    border: 0;
    border-top: 1px solid var(--border);
    border-radius: 0;
    box-shadow: none;
  }
  .map-info ul {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .hero-page {
    padding: 3rem 0 9rem;
  }
  .hero-aside {
    padding: 1.5rem;
  }
  .contact-info {
    margin-top: -4.5rem;
  }
  .contact-form-section {
    padding-top: 4rem;
  }
  .form-card {
    padding: 1.5rem;
    border-radius: 22px;
  }
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .contact-side {
    grid-template-columns: minmax(0, 1fr);
  }
  .areas-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .map-card {
    border-radius: 22px;
  }
  .map-info ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .info-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .info-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .map-card iframe {
    height: 300px;
  }
  .side-card {
    padding: 1.5rem;
  }
}

/* grid children may shrink below their content width */
.hero-page .hero-grid > *,
.contact-layout > *,
.areas-layout > *,
.form-grid > *,
.info-grid > * {
  min-width: 0;
}

/* =========================================================
   22. 404 PAGE (404.html)
   Reuses the hero, glass panel, service cards, search input
   and CTA components; only page-specific pieces live here.
   ========================================================= */

.hero-404 {
  padding: 4.5rem 0 9rem;
}
.hero-404 .hero-grid > * {
  min-width: 0;
}
.hero-404 h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
}

.err-path {
  display: none;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 100%;
  margin: -0.75rem 0 1.6rem;
  padding: 0.45rem 0.9rem;
  border-radius: 12px;
  font-size: 0.88rem;
  color: #cfe0f3;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.err-path.show {
  display: inline-flex;
}
.err-path .icon {
  color: var(--accent);
}
.err-path code {
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  color: #fff;
  overflow-wrap: anywhere;
}

.err-visual {
  padding: 1.75rem;
}
.err-svg {
  display: block;
  width: 100%;
  height: auto;
  margin: 1rem 0 0.5rem;
  overflow: visible;
}
.err-svg .digit {
  fill: none;
  stroke: #fff;
  stroke-width: 30;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.err-svg .crack {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.err-zero {
  animation: float 4s ease-in-out infinite;
}
.err-caption {
  color: #cfe0f3;
  font-size: 0.95rem;
  text-align: center;
}

.help-search {
  max-width: 560px;
  margin: -1.25rem auto 3rem;
}
.help-search .area-input input {
  height: 54px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.help-search .area-status {
  text-align: center;
}
.service-card.is-hidden {
  display: none;
}

/* ---------- 404 responsive ---------- */
@media (max-width: 1100px) {
  .hero-404 {
    padding: 4rem 0 8.5rem;
  }
  .err-visual {
    max-width: 560px;
  }
}
@media (max-width: 768px) {
  .hero-404 {
    padding: 3rem 0 7.5rem;
  }
  .err-visual {
    padding: 1.25rem;
  }
  .help-search {
    margin-bottom: 2.25rem;
  }
}
@media (max-width: 480px) {
  .err-path {
    margin-top: 0;
  }
}

/* =========================================================
   23. ABOUT US PAGE (about-us.html)
   Reuses the hero, stats, why-us, process, testimonials and CTA
   components above; only page-specific pieces live here.
   ========================================================= */

.story-grid > *,
.expertise-grid > *,
.cert-layout > *,
.mv-grid > *,
.values-grid > *,
.team-grid > *,
.exp-stats > * {
  min-width: 0;
}

/* ---------- Company story ---------- */
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 4.5rem;
  align-items: start;
}
.story-copy h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  margin-bottom: 1.2rem;
}
.story-copy > p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
}
.founder-note {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  margin-top: 2rem;
  padding: 1.4rem 1.5rem;
  background: var(--primary-soft);
  border-inline-start: 5px solid var(--accent);
  border-radius: var(--radius);
}
.founder-note blockquote {
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 0.7rem;
}
.founder-note figcaption strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.98rem;
}
.founder-note figcaption span {
  display: block;
  font-size: 0.85rem;
  line-height: 1.3;
  color: var(--muted);
}

.timeline-card {
  padding: 2.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.tl-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
  margin-bottom: 1.7rem;
}
.tl-title .icon {
  color: var(--accent);
}
.timeline {
  position: relative;
  display: grid;
  gap: 1.8rem;
}
.timeline::before {
  content: "";
  position: absolute;
  inset-block: 10px;
  inset-inline-start: 8px;
  border-inline-start: 3px dashed var(--border);
}
.tl-item {
  position: relative;
  padding-inline-start: 2.7rem;
}
.tl-item::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.3rem;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--surface);
  border: 4px solid var(--primary);
  box-shadow: 0 0 0 5px var(--surface);
  transition:
    background 0.35s,
    border-color 0.35s,
    transform 0.35s var(--ease);
}
.tl-item:last-child::before {
  border-color: var(--accent);
}
.tl-item:hover::before {
  background: var(--primary);
  transform: scale(1.18);
}
.tl-item:last-child:hover::before {
  background: var(--accent);
}
.tl-year {
  display: inline-block;
  margin-bottom: 0.45rem;
  padding: 0.15rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 122, 26, 0.12);
  color: var(--accent-dark);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.8rem;
}
.tl-item h3 {
  font-size: 1.08rem;
  margin-bottom: 0.25rem;
}
.tl-item p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

/* ---------- Mission & vision ---------- */
.mv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
  margin-bottom: 1.75rem;
}
.mv-card {
  position: relative;
  overflow: hidden;
  padding: 2.5rem;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.js .mv-card.in-view {
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    opacity 0.8s var(--ease);
}
.mv-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--shadow-lg);
}
.mv-card.is-dark {
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--primary-dark) 100%);
  box-shadow: var(--shadow);
}
.mv-card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  inset-inline-end: -80px;
  top: -90px;
  border-radius: 50%;
  border: 2px solid rgba(11, 92, 171, 0.12);
  pointer-events: none;
}
.mv-card.is-dark::after {
  border-color: rgba(255, 255, 255, 0.12);
}
.mv-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 1.4rem;
  border-radius: 18px;
  font-size: 1.7rem;
  background: linear-gradient(135deg, var(--primary), #1b8be0);
  color: #fff;
  transition: transform 0.5s var(--ease);
}
.mv-card.is-dark .mv-icon {
  background: var(--accent);
}
.mv-card:hover .mv-icon {
  transform: rotate(-8deg) scale(1.08);
}
.mv-card h3 {
  font-size: 1.55rem;
  margin-bottom: 0.8rem;
}
.mv-card > p {
  color: var(--muted);
  font-size: 1.02rem;
}
.mv-card.is-dark > p {
  color: #cfe0f3;
}
.mv-points {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
}
.mv-card.is-dark .mv-points {
  border-top-color: rgba(255, 255, 255, 0.16);
}
.mv-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-weight: 600;
  font-size: 0.96rem;
}
.mv-points .icon {
  flex: none;
  width: 1.5em;
  height: 1.5em;
  margin-top: 0.05rem;
  padding: 4px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  stroke-width: 3;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
.value-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.js .value-card.in-view {
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    border-color 0.3s,
    opacity 0.8s var(--ease);
}
.value-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: var(--shadow);
  border-color: var(--primary);
}
.value-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 1.3rem;
  background: var(--primary-soft);
  color: var(--primary);
  transition:
    background 0.3s,
    color 0.3s,
    transform 0.4s var(--ease);
}
.value-card:hover .value-icon {
  background: var(--primary);
  color: #fff;
  transform: rotate(-8deg);
}
.value-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}
.value-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ---------- Expertise & experience ---------- */
.expertise-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 4.5rem;
  align-items: center;
}
.expertise-copy h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  margin-bottom: 1.1rem;
}
.expertise-copy > p {
  color: var(--muted);
  font-size: 1.05rem;
}
.meters {
  display: grid;
  gap: 1.35rem;
  margin-top: 2rem;
}
.meter-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  font-size: 0.96rem;
}
.meter-head span:last-child {
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: var(--primary);
  white-space: nowrap;
}
.meter-bar {
  height: 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  overflow: hidden;
}
.meter-fill {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.js .meter-fill {
  width: 0;
  transition: width 1.4s var(--ease) 0.25s;
}
.js .meter.in-view .meter-fill {
  width: var(--w);
}

.exp-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.exp-stats .stat {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}
.exp-tools {
  grid-column: 1 / -1;
  padding: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.exp-tools h3 {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.6rem;
}
.team-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}
.js .team-card.in-view {
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    opacity 0.8s var(--ease);
}
.team-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: var(--shadow-lg);
}
.team-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  background: linear-gradient(135deg, var(--navy), var(--primary));
}
.team-photo.tone-2 {
  background: linear-gradient(135deg, var(--primary-dark), #1b8be0);
}
.team-photo.tone-3 {
  background: linear-gradient(135deg, var(--navy-2), var(--accent));
}
.team-photo.tone-4 {
  background: linear-gradient(135deg, var(--navy), var(--primary-dark));
}
.team-photo::before,
.team-photo::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
}
.team-photo::before {
  width: 180px;
  height: 180px;
  inset-inline-end: -60px;
  top: -70px;
}
.team-photo::after {
  width: 110px;
  height: 110px;
  inset-inline-start: -35px;
  bottom: -40px;
  background: rgba(255, 255, 255, 0.06);
}
.team-photo svg,
.team-photo img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.6s var(--ease);
}
.team-photo img {
  object-fit: cover;
}
.team-card:hover .team-photo svg,
.team-card:hover .team-photo img {
  transform: scale(1.06);
}
.team-exp {
  position: absolute;
  z-index: 2;
  top: 0.9rem;
  inset-inline-start: 0.9rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.team-body {
  padding: 1.5rem 1.4rem 1.6rem;
  text-align: center;
}
.team-body h3 {
  font-size: 1.15rem;
}
.team-role {
  display: block;
  margin: 0.25rem 0 0.8rem;
  color: var(--accent-dark);
  font-size: 0.85rem;
  font-weight: 700;
}
.team-body p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
.team-social {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
}
.team-social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  transition:
    background 0.25s,
    color 0.25s,
    transform 0.25s var(--ease);
}
.team-social a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

/* ---------- Certifications & warranty ---------- */
.cert-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 3rem;
  align-items: stretch;
}
.warranty-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.8rem;
  border-radius: 30px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy) 0%, var(--primary-dark) 100%);
  box-shadow: var(--shadow-lg);
}
.warranty-card::before,
.warranty-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
}
.warranty-card::before {
  width: 300px;
  height: 300px;
  inset-inline-end: -110px;
  top: -120px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  animation: float 7s ease-in-out infinite;
}
.warranty-card::after {
  width: 180px;
  height: 180px;
  inset-inline-start: -70px;
  bottom: -80px;
  background: rgba(255, 255, 255, 0.05);
  animation: float 9s ease-in-out infinite reverse;
}
.warranty-card > * {
  position: relative;
  z-index: 1;
}
.wc-seal {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin-bottom: 1.6rem;
  border-radius: 50%;
  font-size: 2.2rem;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(255, 122, 26, 0.22);
  animation: float 4s ease-in-out infinite;
}
.warranty-card h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.9rem;
}
.warranty-card > p {
  color: #cfe0f3;
  margin-bottom: 1.5rem;
}
.wc-list {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 2rem;
}
.wc-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 0.97rem;
}
.wc-list .icon {
  flex: none;
  width: 1.5em;
  height: 1.5em;
  margin-top: 0.05rem;
  padding: 4px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  stroke-width: 3;
}
.warranty-card .btn {
  align-self: flex-start;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.cert-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
}
.js .cert-card.in-view {
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    border-color 0.3s,
    opacity 0.8s var(--ease);
}
.cert-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--shadow);
  border-color: var(--primary);
}
.cert-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 1rem;
  border-radius: 16px;
  font-size: 1.5rem;
  background: var(--primary-soft);
  color: var(--primary);
  transition:
    background 0.35s,
    color 0.35s,
    transform 0.5s var(--ease);
}
.cert-card:hover .cert-icon {
  background: linear-gradient(135deg, var(--primary), #1b8be0);
  color: #fff;
  transform: rotate(-8deg) scale(1.06);
}
.cert-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.35rem;
}
.cert-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ---------- About page responsive ---------- */
@media (max-width: 1100px) {
  .story-grid,
  .expertise-grid,
  .cert-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 3.5rem;
  }
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .warranty-card {
    padding: 2.4rem;
  }
}
@media (max-width: 900px) {
  .mv-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 768px) {
  .timeline-card {
    padding: 1.6rem;
    border-radius: 22px;
  }
  .mv-card {
    padding: 1.8rem;
    border-radius: 22px;
  }
  .mv-card h3 {
    font-size: 1.35rem;
  }
  .founder-note {
    padding: 1.2rem;
  }
  .warranty-card {
    padding: 2rem 1.6rem;
    border-radius: 24px;
  }
  .exp-tools {
    padding: 1.3rem;
  }
}
@media (max-width: 560px) {
  .values-grid,
  .cert-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .team-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 420px;
    margin-inline: auto;
  }
  .team-photo {
    aspect-ratio: 16 / 10;
  }
  .warranty-card .btn {
    align-self: stretch;
    white-space: normal;
  }
}
@media (max-width: 480px) {
  .exp-stats {
    grid-template-columns: minmax(0, 1fr);
  }
  .founder-note {
    flex-direction: column;
  }
  .tl-item {
    padding-inline-start: 2.3rem;
  }
}

/* =========================================================
   24. COMING SOON PAGE (coming-soon.html)
   Full-screen hero built on the shared .hero background,
   glass panels, buttons, badge and social icons.
   ========================================================= */

.page-soon {
  background: #07162b;
}
.hero-soon {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 0;
}
.hero-soon > :not(.hero-bubbles) {
  position: relative;
  z-index: 2;
}

.soon-bar {
  padding-block: 1.4rem;
}
.soon-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.soon-bar .icon-btn,
.soon-bar .rtl-toggle {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.soon-bar .icon-btn:hover,
.soon-bar .rtl-toggle:hover,
.soon-bar .rtl-toggle[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.soon-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 2rem 3.5rem;
}
.soon-content {
  width: min(780px, 100%);
  margin-inline: auto;
  text-align: center;
}
.soon-content .ha-badge {
  margin-bottom: 1.4rem;
}
.hero-soon h1 {
  text-wrap: balance;
  font-size: clamp(2.1rem, 6.4vw, 4.6rem);
  line-height: 1.05;
  margin-bottom: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.soon-content .hero-lead {
  margin-inline: auto;
  max-width: 620px;
  margin-bottom: 0;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  max-width: 620px;
  margin: 2.4rem auto;
  transition: opacity 0.4s;
}
.countdown.is-live {
  opacity: 0.5;
}
.cd-box {
  padding: 1.3rem 0.5rem 1.1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top: 4px solid var(--accent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.cd-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.9rem, 6vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.cd-num.pop {
  animation: cd-pop 0.45s var(--ease);
}
.cd-label {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9fd0ff;
}
.cd-done {
  margin: -1rem auto 2rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: #6ee7a0;
}
.cd-done[hidden] {
  display: none;
}

.notify {
  max-width: 560px;
  margin: 0 auto;
}
.notify-label {
  margin-bottom: 0.9rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
}
.notify-form {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}
.notify-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.18);
}
.notify-form.invalid {
  border-color: #ff8b8b;
  box-shadow: 0 0 0 4px rgba(229, 72, 77, 0.2);
}
.notify-form input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding-inline: 1.2rem;
  background: transparent;
  border: 0;
  color: #fff;
}
.notify-form input::placeholder {
  color: #9db8d6;
}
.notify-form input:focus {
  outline: none;
}
.notify-form .btn {
  flex: none;
  padding: 0.85rem 1.5rem;
}
.notify-status {
  min-height: 1.5rem;
  margin-top: 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #6ee7a0;
}
.notify-status.error {
  color: #ff8b8b;
}

.soon-social {
  margin-top: 1.6rem;
}
.soon-social > span {
  display: block;
  margin-bottom: 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9fd0ff;
}
.soon-social .socials {
  justify-content: center;
}

.soon-contact {
  padding-block: 1.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(3, 10, 21, 0.38);
}
.soon-contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
.sc-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}
.sc-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 122, 26, 0.16);
  color: #ffb36b;
  font-size: 1.25rem;
}
.sc-item small {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9fd0ff;
}
.sc-item a,
.sc-val {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #fff;
  overflow-wrap: anywhere;
}
.sc-item a {
  transition: color 0.2s;
}
.sc-item a:hover {
  color: #ffb36b;
}
.soon-copy {
  padding-block: 1.1rem;
  text-align: center;
  font-size: 0.85rem;
  color: #7f9bbb;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes cd-pop {
  0% {
    transform: translateY(-6px) scale(0.92);
    opacity: 0.4;
  }
  100% {
    transform: none;
    opacity: 1;
  }
}

/* ---------- Coming soon responsive ---------- */
@media (max-width: 1100px) {
  .soon-contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem 1.5rem;
  }
}
@media (max-width: 768px) {
  .soon-bar {
    padding-block: 1rem;
  }
  .soon-main {
    padding-block: 1.5rem 3rem;
  }
  .countdown {
    gap: 0.7rem;
    margin-block: 2rem;
  }
  .cd-box {
    padding: 1.05rem 0.4rem 0.9rem;
    border-radius: 16px;
  }
  .cd-label {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
  }
}
@media (max-width: 560px) {
  .soon-contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 480px) {
  .countdown {
    gap: 0.5rem;
  }
  .notify-form {
    flex-direction: column;
    align-items: stretch;
    border-radius: 22px;
    padding: 8px;
  }
  .notify-form input {
    height: 50px;
    text-align: center;
  }
  .notify-form .btn {
    width: 100%;
  }
}
/* =========================================================
   25. HOME 2 PAGE (index-2.html)
   Reuses the topbar, header, hero wave, section heads, why-us,
   before/after slider, testimonials, CTA and footer components;
   only page-specific pieces live here.
   ========================================================= */

.hv-wrap > *,
.sol-layout > *,
.show-layout > *,
.why2-grid > *,
.bp-grid > *,
.ptl-item > * {
  min-width: 0;
}

/* ---------- 1. Full-screen video hero ---------- */
.hero-video {
  min-height: 100vh;
  min-height: calc(100svh - var(--header-h) - 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4.5rem 0 10rem;
}
.hv-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hv-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      900px 500px at 85% 10%,
      rgba(27, 139, 224, 0.3),
      transparent 60%
    ),
    linear-gradient(
      180deg,
      rgba(5, 13, 27, 0.55) 0%,
      rgba(7, 22, 43, 0.72) 55%,
      rgba(7, 22, 43, 0.92) 100%
    );
}
.hero-video .hero-bubbles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hv-controls {
  position: absolute;
  z-index: 3;
  top: 1.25rem;
  inset-inline-end: 1.25rem;
  display: flex;
  gap: 0.5rem;
}
.hv-btn {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.hv-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.hv-btn .i-play,
.hv-btn .i-vol {
  display: none;
}
.hv-btn.is-paused .i-pause {
  display: none;
}
.hv-btn.is-paused .i-play {
  display: block;
}
.hv-sound:not(.is-muted) .i-mute {
  display: none;
}
.hv-sound:not(.is-muted) .i-vol {
  display: block;
}
.hero-video.no-video .hv-controls {
  display: none;
}

.hv-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 3.5rem;
}
.hv-content {
  max-width: 780px;
}
.hero-video h1 {
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  line-height: 1.05;
  margin-bottom: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hv-content .hero-lead {
  max-width: 620px;
}
.hv-content .hero-badges {
  margin-bottom: 0;
}

.hv-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}
.hv-stat {
  padding: 1.25rem 1.4rem;
  border-radius: 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top: 4px solid var(--accent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hv-stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.1;
}
.hv-stat span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.88rem;
  color: #cfe0f3;
}

/* ---------- 2. Common basement problems ---------- */
.bp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}
.bp-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2rem 1.75rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
}
.js .bp-card.in-view {
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    border-color 0.3s,
    opacity 0.8s var(--ease);
}
.bp-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.bp-num {
  position: absolute;
  top: 1rem;
  inset-inline-end: 1.4rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--primary);
  opacity: 0.1;
  pointer-events: none;
}
.bp-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 1.1rem;
  border-radius: 18px;
  font-size: 1.8rem;
  background: var(--primary-soft);
  color: var(--primary);
  transition:
    background 0.35s,
    color 0.35s,
    transform 0.5s var(--ease);
}
.bp-card:hover .bp-icon {
  background: linear-gradient(135deg, var(--primary), #1b8be0);
  color: #fff;
  transform: rotate(-8deg) scale(1.08);
}
.bp-sev {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.22rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.bp-sev.is-high {
  background: rgba(229, 72, 77, 0.12);
  color: #d03238;
}
.bp-sev.is-mid {
  background: rgba(255, 122, 26, 0.14);
  color: var(--accent-dark);
}
.bp-sev.is-low {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}
.bp-card h3 {
  font-size: 1.22rem;
  margin-bottom: 0.6rem;
}
.bp-card p {
  color: var(--muted);
  font-size: 0.96rem;
  margin-bottom: 1.3rem;
}
.bp-fix {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  width: 100%;
  margin-top: auto;
  padding: 0.85rem 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.45;
}
.bp-fix .icon {
  flex: none;
  width: 1.4em;
  height: 1.4em;
  margin-top: 0.05rem;
  padding: 3px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  stroke-width: 3;
}
.bp-fix strong {
  font-family: var(--font-head);
}

/* ---------- 3. Expertise & solutions (tabs) ---------- */
.sol-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
  gap: 2.5rem;
  align-items: start;
}
.sol-tabs {
  position: relative;
  display: grid;
  gap: 0.75rem;
}
.sol-tab {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1rem 1.15rem;
  text-align: start;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  transition:
    background 0.3s,
    color 0.3s,
    border-color 0.3s,
    box-shadow 0.3s,
    transform 0.3s var(--ease);
}
.sol-tab:hover {
  border-color: var(--primary);
  transform: translateX(calc(var(--dir) * 4px));
}
.sol-tab-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 1.3rem;
  background: var(--primary-soft);
  color: var(--primary);
  transition:
    background 0.3s,
    color 0.3s;
}
.sol-tab-text {
  display: block;
  min-width: 0;
}
.sol-tab-text strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.98rem;
  line-height: 1.25;
}
.sol-tab-text small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: var(--muted);
  transition: color 0.3s;
}
.sol-tab .arrow {
  margin-inline-start: auto;
  opacity: 0;
  transition: opacity 0.3s;
}
.sol-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 12px 28px rgba(11, 92, 171, 0.3);
}
.sol-tab.active .sol-tab-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.sol-tab.active .sol-tab-text small {
  color: rgba(255, 255, 255, 0.8);
}
.sol-tab.active .arrow {
  opacity: 1;
}

.sol-panels {
  padding: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 5px solid var(--accent);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.sol-panel[hidden] {
  display: none;
}
.sol-panel:not([hidden]) {
  animation: sol-in 0.5s var(--ease);
}
.sol-panel h3 {
  font-size: 1.6rem;
  margin-bottom: 0.7rem;
}
.sol-panel > p {
  color: var(--muted);
  font-size: 1.04rem;
  margin-bottom: 1.5rem;
}
.sol-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 1.25rem;
}
.sol-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-weight: 600;
  font-size: 0.96rem;
}
.sol-points .icon {
  flex: none;
  width: 1.5em;
  height: 1.5em;
  margin-top: 0.05rem;
  padding: 4px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  stroke-width: 3;
}
.sol-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.8rem 0;
}
.sol-meta > div {
  padding: 0.95rem 1.05rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.sol-meta small,
.show-meta small {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.sol-meta strong,
.show-meta strong {
  font-family: var(--font-head);
  font-size: 0.96rem;
  line-height: 1.3;
}
.sol-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.6rem;
}

/* ---------- 4. Interactive before / after showcase ---------- */
.show-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 0.85fr);
  gap: 2rem;
  align-items: start;
}
.show-main .ba-slider {
  aspect-ratio: 16 / 10;
}
.show-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  padding: 1rem 1.75rem;
  border-bottom: 1px solid var(--border);
}
.seg {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}
.seg button {
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--muted);
  transition:
    background 0.25s,
    color 0.25s;
}
.seg button:hover {
  color: var(--primary);
}
.seg button.is-on {
  background: var(--primary);
  color: #fff;
}
.show-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.show-hint .icon {
  color: var(--accent);
}
.show-main .ba-body {
  padding-top: 1.5rem;
}
.show-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.show-side {
  display: grid;
  gap: 1rem;
}
.show-thumb {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 0.75rem;
  text-align: start;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  transition:
    border-color 0.3s,
    box-shadow 0.3s,
    transform 0.3s var(--ease);
}
.show-thumb:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}
.show-thumb.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.show-thumb-img {
  flex: none;
  width: 96px;
  height: 72px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg-alt);
}
.show-thumb-img svg,
.show-thumb-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.show-thumb strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.98rem;
  line-height: 1.25;
}
.show-thumb small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.show-note {
  padding: 1.6rem;
  border-radius: 22px;
  color: #fff;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--navy) 0%, var(--primary-dark) 100%);
}
.show-note strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.15rem;
}
.show-note p {
  margin: 0.4rem 0 1.1rem;
  color: #cfe0f3;
  font-size: 0.94rem;
}

/* ---------- 5. Why choose our company ---------- */
.why2 .section-head.center h2,
.why2 .section-head.center p {
  color: #fff;
}
.why2 .section-head.center p {
  color: #b8cce2;
}
.why2-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2.5rem;
  align-items: center;
}
.cmp {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
}
.cmp-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px 96px;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.96rem;
  font-weight: 500;
}
.cmp-row:last-child {
  border-bottom: 0;
}
.cmp-row > span:not(:first-child) {
  display: flex;
  justify-content: center;
}
.cmp-head {
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b8cce2;
}
.cmp-head > span:nth-child(2) {
  color: #ffb36b;
}
.cmp-yes .icon {
  width: 1.7em;
  height: 1.7em;
  padding: 5px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  stroke-width: 3;
}
.cmp-no .icon {
  width: 1.4em;
  height: 1.4em;
  color: #7f9bbb;
  opacity: 0.8;
}
.why2 .why-features {
  align-self: stretch;
}
.why-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}
.why-stat {
  padding: 1.4rem 1.2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
}
.why-stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  line-height: 1.1;
  color: #fff;
}
.why-stat span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: #b8cce2;
}

/* ---------- 6. Step-by-step repair process (timeline) ---------- */
.ptl {
  position: relative;
  display: grid;
  gap: 2.25rem;
  max-width: 1000px;
  margin-inline: auto;
}
.ptl::before,
.ptl::after {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: 50%;
  width: 4px;
  margin-inline-start: -2px;
  border-radius: 4px;
}
.ptl::before {
  bottom: 0;
  background: var(--border);
}
.ptl::after {
  height: var(--p, 0%);
  background: linear-gradient(180deg, var(--primary), var(--accent));
  transition: height 0.2s linear;
}
.ptl-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1fr);
  align-items: center;
  column-gap: 1.5rem;
}
.ptl-marker {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--primary);
  color: var(--primary);
  font-size: 1.8rem;
  box-shadow: 0 0 0 8px var(--bg);
  transition:
    background 0.4s,
    color 0.4s,
    transform 0.5s var(--ease);
}
.ptl-item.is-done .ptl-marker {
  background: var(--primary);
  color: #fff;
  transform: scale(1.06);
}
.ptl-marker em {
  position: absolute;
  top: -8px;
  inset-inline-end: -8px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 800;
  font-family: var(--font-head);
}
.ptl-card {
  grid-row: 1;
  grid-column: 1;
  padding: 1.6rem 1.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}
.ptl-item:nth-child(even) .ptl-card {
  grid-column: 3;
}
.ptl-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
}
.ptl-card p {
  color: var(--muted);
  font-size: 0.96rem;
}
.ptl-time {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
}

/* ---------- 7. Testimonials: rating summary ---------- */
.rs {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 2.5rem;
  margin-bottom: 2rem;
  padding: 1.6rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}
.rs-score {
  text-align: center;
}
.rs-score strong {
  display: block;
  font-family: var(--font-head);
  font-size: 3.2rem;
  line-height: 1;
  color: var(--navy);
}
.rs-score .stars {
  margin: 0.5rem 0 0.3rem;
}
.rs-score small {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}
.rs-bars {
  display: grid;
  gap: 0.55rem;
}
.rs-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
.rs-track {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: var(--primary-soft);
  overflow: hidden;
}
.rs-fill {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.js .rs-fill {
  width: 0;
  transition: width 1.2s var(--ease) 0.3s;
}
.js .rs.in-view .rs-fill {
  width: var(--w);
}
.rs-badges {
  display: grid;
  gap: 0.7rem;
}
.rs-badges li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}
.rs-badges .icon {
  color: var(--accent);
}

/* ---------- 8. Free inspection CTA ---------- */
.cta2-section {
  padding-top: 6rem;
}
.cta2 {
  align-items: center;
}
.cta2 .cta-copy {
  flex: 1 1 400px;
}
.cta2-list {
  display: grid;
  gap: 0.65rem;
  margin: 1.4rem 0 1.8rem;
}
.cta2-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  font-size: 0.98rem;
}
.cta2-list .icon {
  flex: none;
  width: 1.5em;
  height: 1.5em;
  padding: 4px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  stroke-width: 3;
}
.cta2-phone {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  transition: color 0.25s;
}
.cta2-phone:hover {
  color: #ffb36b;
}
.cta2-phone small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0;
  color: #9fd0ff;
}
.cta2-phone-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--accent);
  font-size: 1.4rem;
}
.cta2-card {
  position: relative;
  z-index: 1;
  flex: 0 1 440px;
  width: 100%;
  max-width: 440px;
}
.cta2-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
}

@keyframes sol-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Home 2 responsive ---------- */

/* Tablet & below */
@media (max-width: 1100px) {
  .hero-video {
    padding: 4rem 0 9.5rem;
  }
  .hv-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sol-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
  .sol-tabs {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .sol-tabs::-webkit-scrollbar {
    display: none;
  }
  .sol-tab {
    flex: 0 0 auto;
    width: auto;
    scroll-snap-align: start;
    padding: 0.8rem 1.1rem 0.8rem 0.85rem;
  }
  .sol-tab:hover {
    transform: none;
  }
  .sol-tab .arrow,
  .sol-tab-text small {
    display: none;
  }
  .sol-tab-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  .show-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .show-side {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .show-thumb {
    flex-direction: column;
    align-items: stretch;
  }
  .show-thumb-img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
  }
  .show-note {
    grid-column: 1 / -1;
  }
  .why2-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
  .why-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rs {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
  .rs-score {
    text-align: start;
  }
  .rs-badges {
    grid-auto-flow: column;
    justify-content: start;
    gap: 1.5rem;
  }
  .cta2-section {
    padding-top: 5rem;
  }
}

/* Small tablet */
@media (max-width: 900px) {
  .hero-video {
    min-height: 0;
  }
  .bp-grid {
    gap: 1.25rem;
  }
  .sol-panels {
    padding: 2rem;
  }
  .cta2 .cta-copy,
  .cta2-card {
    flex: 1 1 100%;
    max-width: none;
  }
  .rs-badges {
    grid-auto-flow: row;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .hero-video {
    padding: 3rem 0 8.5rem;
  }
  .hv-wrap {
    gap: 2.5rem;
  }
  .hv-controls {
    top: 0.9rem;
    inset-inline-end: 0.9rem;
  }
  .hv-stat {
    padding: 1rem 1.1rem;
  }
  .bp-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .bp-card {
    padding: 1.6rem 1.4rem;
  }
  .sol-panels {
    padding: 1.5rem;
    border-radius: 22px;
  }
  .sol-panel h3 {
    font-size: 1.35rem;
  }
  .sol-points {
    grid-template-columns: minmax(0, 1fr);
  }
  .sol-meta {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.7rem;
  }
  .sol-actions .btn {
    width: 100%;
  }
  .show-bar {
    padding: 0.9rem 1.25rem;
  }
  .show-main .ba-slider {
    aspect-ratio: 3 / 2;
  }
  .show-side {
    grid-template-columns: minmax(0, 1fr);
  }
  .show-thumb {
    flex-direction: row;
    align-items: center;
  }
  .show-thumb-img {
    width: 96px;
    height: 72px;
    aspect-ratio: auto;
  }
  .show-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cmp-row {
    grid-template-columns: minmax(0, 1fr) 60px 60px;
    padding: 0.9rem 1rem;
    font-size: 0.9rem;
  }
  .why-stat strong {
    font-size: 1.6rem;
  }
  .ptl {
    gap: 1.5rem;
  }
  .ptl::before,
  .ptl::after {
    inset-inline-start: 32px;
  }
  .ptl-item {
    grid-template-columns: 64px minmax(0, 1fr);
    column-gap: 1.1rem;
    align-items: start;
  }
  .ptl-marker {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
  }
  .ptl-card,
  .ptl-item:nth-child(even) .ptl-card {
    grid-column: 2;
    padding: 1.3rem 1.3rem;
  }
  .rs {
    padding: 1.3rem;
  }
  .cta2-section {
    padding-top: 4rem;
  }
  .cta2-phone {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .hv-stats {
    gap: 0.7rem;
  }
  .hv-stat strong {
    font-size: 1.5rem;
  }
  .hv-stat span {
    font-size: 0.8rem;
  }
  .why-stats {
    gap: 0.8rem;
  }
  .why-stat {
    padding: 1.1rem 0.8rem;
  }
  .show-thumb-img {
    width: 80px;
    height: 60px;
  }
  .show-meta {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.8rem;
  }
  .cmp-row {
    grid-template-columns: minmax(0, 1fr) 52px 52px;
  }
}
/* =========================================================
   25. SERVICES PAGE (services.html)
   Reuses the hero, breadcrumb, hero-aside, steps, FAQ and CTA
   components above; only page-specific pieces live here.
   ========================================================= */

.intro-grid > *,
.svc-card > *,
.benefit-grid > *,
.svc-meta > *,
.svc-list > * {
  min-width: 0;
}
#inspection {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

/* ---------- Shared bits ---------- */
.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.45;
}
.check-list .icon {
  width: 1.45em;
  height: 1.45em;
  padding: 4px;
  margin-top: 0.05rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  stroke-width: 3.2;
}

/* ---------- 1. Services hero ---------- */
.hero-services {
  padding: 4.5rem 0 9rem;
}
.hero-services .hero-lead {
  max-width: 600px;
}
.hero-jump {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}
.hero-jump > span {
  color: #9fd0ff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-inline-end: 0.2rem;
}
.hero-jump a {
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  transition:
    background 0.25s,
    color 0.25s,
    border-color 0.25s,
    transform 0.25s var(--ease);
}
.hero-jump a:hover {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
  transform: translateY(-2px);
}
.hero-services .hero-aside .btn {
  margin-top: 1.4rem;
}

/* ---------- 2. Introduction ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 4.5rem;
  align-items: center;
}
.intro-copy h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  margin-bottom: 1.2rem;
}
.intro-copy > p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
}
.intro-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.4rem;
  margin: 1.6rem 0 2.2rem;
}

.match-card {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 5px solid var(--accent);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.match-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}
.match-title .icon {
  color: var(--accent);
}
.match-card > p {
  color: var(--muted);
  font-size: 0.93rem;
  margin-bottom: 1.4rem;
}
.match-list {
  display: grid;
  gap: 0.9rem;
}
.match-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition:
    transform 0.35s var(--ease),
    border-color 0.3s,
    box-shadow 0.3s,
    background 0.3s;
}
.match-row:hover {
  transform: translateX(calc(6px * var(--dir)));
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.match-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 1.3rem;
  background: var(--primary-soft);
  color: var(--primary);
  transition:
    background 0.3s,
    color 0.3s;
}
.match-row:hover .match-icon {
  background: var(--primary);
  color: #fff;
}
.match-text {
  flex: 1;
  min-width: 0;
}
.match-text small {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}
.match-text strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.02rem;
  margin-top: 0.15rem;
}
.match-row > .arrow {
  color: var(--primary);
  transition: transform 0.3s var(--ease);
}
.match-row:hover > .arrow {
  transform: translateX(4px);
}

/* ---------- 3-5. Service cards ---------- */
.svc-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 32px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.svc-visual {
  --sv-bg1: #e6f1fb;
  --sv-bg2: #cfe3f6;
  --sv-grid: rgba(11, 92, 171, 0.09);
  --sv-soil: #b08a62;
  --sv-water: #3b82c4;
  --sv-wall: #dde6ef;
  --sv-edge: #8d97a5;
  --sv-foot: #6b7685;
  --sv-light: #e9eef4;
  --sv-steel: #2b3a4f;
  --sv-metal: #8aa2bd;
  --sv-drain: #ffffff;
  --sv-rock: #8d97a5;
  --sv-ink: #1c2b3d;
  position: relative;
  display: grid;
  place-items: center;
  padding: 4.2rem 2rem 2rem;
  overflow: hidden;
  background: linear-gradient(160deg, var(--sv-bg1), var(--sv-bg2));
}
.svc-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--sv-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--sv-grid) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 80%);
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 80%);
}
.svc-visual > svg {
  position: relative;
  width: 100%;
  max-width: 470px;
  height: auto;
}
.svc-num {
  position: absolute;
  top: 1.1rem;
  inset-inline-start: 1.6rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 3.4rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--primary);
  opacity: 0.2;
}
.svc-badge {
  position: absolute;
  top: 1.4rem;
  inset-inline-end: 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(255, 122, 26, 0.35);
}
.svc-badge .icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  stroke-width: 1;
}

/* illustration parts */
.sv-soil {
  fill: var(--sv-soil);
  opacity: 0.5;
}
.sv-rock {
  fill: var(--sv-rock);
  opacity: 0.45;
}
.sv-water {
  fill: var(--sv-water);
  opacity: 0.35;
}
.sv-drop {
  fill: var(--sv-water);
}
.sv-wall {
  fill: var(--sv-wall);
}
.sv-wallbox {
  fill: var(--sv-wall);
  stroke: var(--sv-edge);
  stroke-width: 3;
}
.sv-edge {
  fill: var(--sv-edge);
}
.sv-foot {
  fill: var(--sv-foot);
}
.sv-light {
  fill: var(--sv-light);
  stroke: var(--sv-edge);
  stroke-width: 3;
}
.sv-steel {
  fill: var(--sv-steel);
}
.sv-metal {
  fill: var(--sv-metal);
}
.sv-acc {
  fill: var(--accent);
}
.sv-drain {
  fill: var(--sv-drain);
  stroke: var(--primary);
  stroke-width: 3;
}
.sv-helix {
  fill: none;
  stroke: var(--sv-steel);
  stroke-width: 4;
}
.sv-roof {
  fill: none;
  stroke: var(--primary);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sv-line {
  fill: none;
  stroke: var(--sv-edge);
  stroke-width: 2;
  opacity: 0.55;
}
.sv-membrane {
  fill: none;
  stroke: var(--accent);
  stroke-width: 7;
  stroke-linecap: round;
}
.sv-arrow {
  fill: none;
  stroke: var(--accent);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sv-crack {
  fill: none;
  stroke: var(--sv-ink);
  stroke-width: 5;
  stroke-linejoin: round;
}
.sv-crack-glow {
  fill: none;
  stroke: var(--sv-water);
  stroke-width: 12;
  stroke-linejoin: round;
  opacity: 0.25;
}
.sv-seal {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linejoin: round;
}
.sv-port {
  fill: var(--accent);
  stroke: var(--sv-light);
  stroke-width: 3;
}
.sv-lead {
  fill: none;
  stroke: var(--sv-ink);
  stroke-width: 1.5;
  stroke-dasharray: 4 3;
  opacity: 0.55;
}
.sv-text {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  fill: var(--sv-ink);
}
.sv-text.acc {
  fill: var(--accent);
}
.sv-text.blue {
  fill: var(--primary);
}

.svc-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 3rem;
}
.svc-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.svc-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  font-size: 1.7rem;
  background: var(--primary-soft);
  color: var(--primary);
  transition:
    background 0.35s,
    color 0.35s,
    transform 0.5s var(--ease);
}
.svc-card:hover .svc-icon {
  background: linear-gradient(135deg, var(--primary), #1b8be0);
  color: #fff;
  transform: rotate(-8deg) scale(1.06);
}
.svc-head .eyebrow {
  margin: 0;
}
.svc-title {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  margin-bottom: 0.8rem;
}
.svc-lead {
  color: var(--muted);
  font-size: 1.02rem;
  margin-bottom: 1.4rem;
}
.svc-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.2rem;
  margin-bottom: 1.6rem;
}
.svc-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1.3rem;
}
.svc-meta > div {
  padding: 0.9rem 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.svc-meta .icon {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--accent);
}
.svc-meta small {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.svc-meta strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.96rem;
  line-height: 1.3;
}
.svc-tags {
  align-items: center;
  margin-bottom: 1.8rem;
}
.svc-tags .lbl {
  padding: 0;
  background: none;
  color: var(--muted);
  font-size: 0.85rem;
  margin-inline-end: 0.2rem;
}
.svc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}
.svc-card.is-flash {
  animation: svc-flash 1.3s ease-out;
}

/* ---------- 6. Process & benefits ---------- */
.benefit-panel {
  position: relative;
  overflow: hidden;
  margin-top: 5rem;
  padding: 3rem;
  border-radius: 32px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  box-shadow: var(--shadow-lg);
}
.benefit-panel::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  inset-inline-end: -140px;
  top: -180px;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(27, 139, 224, 0.35),
    transparent 65%
  );
  animation: float 8s ease-in-out infinite;
}
.benefit-head {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  margin-bottom: 2.2rem;
}
.benefit-head > div {
  flex: 1 1 380px;
  max-width: 640px;
}
.benefit-head h3 {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  margin-bottom: 0.7rem;
}
.benefit-head p {
  color: #b8cce2;
}
.benefit-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}
.benefit {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.4rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    transform 0.4s var(--ease),
    background 0.3s,
    border-color 0.3s;
}
.benefit:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 122, 26, 0.6);
}
.benefit .wi-icon {
  flex: none;
  margin: 0;
}
.benefit h4 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}
.benefit p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #b8cce2;
}

/* ---------- 7. FAQ + free inspection CTA ---------- */
.faq-cta {
  margin-top: 5.5rem;
}
.cta-form-box {
  align-items: center;
}
.cta-form-box .cta-copy {
  flex: 1 1 360px;
}
.cta-form-box .hero-badges {
  margin: 1.5rem 0 0;
}
.cta-formcard {
  position: relative;
  flex: 0 1 430px;
  width: 100%;
  padding: 1.9rem;
  color: var(--text);
  background: var(--surface);
  border-top: 5px solid var(--accent);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}
.cta-formcard h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}
.cta-formcard > p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.3rem;
}
.cta-call {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

@keyframes svc-flash {
  0% {
    box-shadow:
      0 0 0 0 rgba(255, 122, 26, 0.55),
      var(--shadow);
  }
  100% {
    box-shadow:
      0 0 0 24px rgba(255, 122, 26, 0),
      var(--shadow);
  }
}

/* ---------- Services page responsive ---------- */
@media (min-width: 1101px) {
  .svc-card.is-reverse {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
  .svc-card.is-reverse .svc-visual {
    order: 2;
  }
}
@media (max-width: 1100px) {
  .intro-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }
  .match-card {
    max-width: 640px;
  }
  .svc-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .svc-visual {
    padding: 4rem 2rem 2rem;
  }
  .svc-visual > svg {
    max-width: 440px;
  }
  .svc-body {
    padding: 2.5rem;
  }
  .hero-services .hero-aside {
    max-width: 560px;
  }
  .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .benefit-panel {
    margin-top: 4rem;
  }
  .faq-cta {
    margin-top: 4.5rem;
  }
}
@media (max-width: 900px) {
  .cta-formcard {
    flex-basis: 100%;
  }
}
@media (max-width: 768px) {
  .hero-services {
    padding: 3rem 0 8rem;
  }
  .intro-points {
    grid-template-columns: minmax(0, 1fr);
  }
  .match-card {
    padding: 1.5rem;
    border-radius: 22px;
  }
  .svc-card {
    border-radius: 24px;
  }
  .svc-visual {
    padding: 3.6rem 1.25rem 1.5rem;
  }
  .svc-num {
    font-size: 2.6rem;
    top: 1rem;
    inset-inline-start: 1.25rem;
  }
  .svc-badge {
    top: 1.1rem;
    inset-inline-end: 1.1rem;
  }
  .svc-body {
    padding: 1.75rem 1.4rem;
  }
  .svc-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .svc-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .svc-meta > div:last-child {
    grid-column: 1 / -1;
  }
  .svc-actions .btn {
    flex: 1 1 100%;
  }
  .benefit-panel {
    padding: 2rem 1.4rem;
    border-radius: 24px;
    margin-top: 3.5rem;
  }
  .benefit-head .btn {
    width: 100%;
  }
  .benefit-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .faq-cta {
    margin-top: 3.5rem;
  }
  .cta-formcard {
    padding: 1.5rem;
  }
  .cta-call .btn {
    flex: 1 1 100%;
  }
}
@media (max-width: 480px) {
  .hero-jump > span {
    flex-basis: 100%;
  }
  .svc-meta {
    gap: 0.65rem;
  }
  .svc-meta > div {
    padding: 0.8rem 0.85rem;
  }
  .match-row {
    padding: 0.85rem 0.9rem;
    gap: 0.8rem;
  }
  .match-icon {
    width: 42px;
    height: 42px;
  }
  .benefit {
    padding: 1.15rem;
  }
  .cta-form-box {
    padding: 1.75rem 1rem;
    gap: 2rem;
  }
  .cta-formcard {
    padding: 1.25rem;
  }
  .cta-formcard .btn {
    white-space: normal;
    padding-inline: 1rem;
    font-size: 0.9rem;
  }
}

/* Side slide-ins would widen the page when the layout is stacked: rise from below instead */
@media (max-width: 1100px) {
  .js .hero-services [data-animate="right"]:not(.in-view),
  .js .intro [data-animate="right"]:not(.in-view),
  .js #faq [data-animate="left"]:not(.in-view),
  .js #faq [data-animate="right"]:not(.in-view) {
    transform: translateY(32px);
  }
}

/* =========================================================
   26. BASEMENT WATERPROOFING PAGE (basement-waterproofing.html)
   Reuses the hero, breadcrumb, hero-aside, service cards, svc-card,
   FAQ and CTA form components above; only page-specific pieces live here.
   ========================================================= */

.bw-signs-grid > *,
.bw-result > *,
.bw-steps > *,
.bw-step > *,
.bw-meta > * {
  min-width: 0;
}

/* ---------- 1. Hero ---------- */
.hero-bw .hero-lead {
  max-width: 600px;
}

/* ---------- 2. Signs of water problems ---------- */
.bw-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.bw-signs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
.bw-sign {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.6rem 1.4rem 1.5rem;
  cursor: pointer;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.25s,
    background 0.3s;
}
.js .bw-sign.in-view {
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.25s,
    background 0.3s,
    opacity 0.8s var(--ease);
}
.bw-sign:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--shadow);
}
.bw-sign.is-on {
  border-color: var(--accent);
  background:
    linear-gradient(rgba(255, 122, 26, 0.07), rgba(255, 122, 26, 0.07)),
    var(--surface);
}
.bw-sign-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.bw-sign-ring {
  position: absolute;
  inset: -5px;
  border: 3px solid var(--accent);
  border-radius: calc(var(--radius) + 5px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.bw-sign-input:focus-visible ~ .bw-sign-ring {
  opacity: 1;
}
.bw-sign-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  font-size: 1.5rem;
  background: var(--primary-soft);
  color: var(--primary);
  transition:
    background 0.3s,
    color 0.3s,
    transform 0.4s var(--ease);
}
.bw-sign.is-on .bw-sign-icon {
  background: var(--accent);
  color: #fff;
  transform: rotate(-8deg);
}
.bw-sign-text {
  display: block;
  min-width: 0;
}
.bw-sign-text strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-head);
  font-size: 1.05rem;
  line-height: 1.3;
}
.bw-sign-text small {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}
.bw-sign-tick {
  position: absolute;
  top: 1rem;
  inset-inline-end: 1rem;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--input-bg);
  color: transparent;
  transition:
    background 0.25s,
    border-color 0.25s,
    color 0.25s;
}
.bw-sign-tick .icon {
  width: 14px;
  height: 14px;
  stroke-width: 3.4;
}
.bw-sign.is-on .bw-sign-tick {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.bw-result {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  margin-top: 2.5rem;
  padding: 2.25rem 2.5rem;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  box-shadow: var(--shadow-lg);
}
.bw-result-main {
  flex: 1 1 420px;
  max-width: 680px;
}
.bw-result-count {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
  font-size: 0.95rem;
  color: #b8cce2;
}
.bw-result-count strong {
  font-family: var(--font-head);
  font-size: 2rem;
  line-height: 1;
  color: #fff;
}
.bw-meter {
  display: flex;
  height: 10px;
  margin-bottom: 1.3rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}
.bw-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: #7cc4ff;
  transition:
    width 0.5s var(--ease),
    background 0.3s;
}
.bw-result[data-level="1"] .bw-meter span {
  background: #fbbf24;
}
.bw-result[data-level="2"] .bw-meter span {
  background: var(--accent);
}
.bw-result[data-level="3"] .bw-meter span {
  background: #ff6b70;
}
.bw-result h3 {
  margin-bottom: 0.45rem;
  font-size: 1.4rem;
}
.bw-result-text p {
  color: #cfe0f3;
}
.bw-result-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.8rem;
  flex: 0 0 auto;
  min-width: 250px;
}
.bw-disclaimer {
  margin-top: 1.1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- 3. Solutions ---------- */
.bw-sol {
  display: flex;
  flex-direction: column;
}
.bw-sol p {
  margin-bottom: 1.4rem;
}
.bw-meta {
  display: grid;
  gap: 0.6rem;
  margin: auto 0 0;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--border);
}
.bw-meta div {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  font-size: 0.9rem;
  line-height: 1.45;
}
.bw-meta dt {
  flex: none;
  min-width: 6rem;
  font-weight: 700;
  color: var(--text);
}
.bw-meta dd {
  margin: 0;
  color: var(--muted);
}
.bw-note {
  margin-bottom: 1.1rem;
  color: var(--muted);
  font-size: 1.02rem;
}

/* ---------- 4. Drainage & sump pump ---------- */
.bw-flow {
  fill: none;
  stroke: var(--sv-water);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 10 9;
  animation: bw-flow 1.2s linear infinite;
}
@keyframes bw-flow {
  to {
    stroke-dashoffset: -19;
  }
}
.bw-sub {
  margin: 0 0 0.85rem;
  padding-inline-start: 0.7rem;
  border-inline-start: 4px solid var(--accent);
  font-size: 1.02rem;
  line-height: 1.3;
}
.bw-drainage .svc-list {
  margin-bottom: 1.5rem;
}
.bw-tip {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  max-width: 820px;
  margin: 1.75rem auto 0;
  padding: 1rem 1.3rem;
  background: var(--primary-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.55;
}
.bw-tip .icon {
  width: 1.4em;
  height: 1.4em;
  margin-top: 0.1rem;
  color: var(--accent);
}

/* ---------- 5. Process ---------- */
.bw-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.bw-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2rem 1.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    border-color 0.3s;
}
.js .bw-step.in-view {
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    border-color 0.3s,
    opacity 0.8s var(--ease);
}
.bw-step:hover {
  transform: translateY(-6px) !important;
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.bw-step .step-icon {
  flex: none;
  width: 72px;
  height: 72px;
  margin: 0 0 1.4rem;
  font-size: 1.7rem;
  box-shadow: none;
}
.bw-step:hover .step-icon {
  background: var(--primary);
  color: #fff;
  transform: scale(1.06);
  box-shadow: 0 12px 24px rgba(11, 92, 171, 0.3);
}
.bw-step .step-icon em {
  top: -9px;
  inset-inline-end: -9px;
  width: 28px;
  height: 28px;
  font-size: 0.68rem;
  box-shadow: 0 0 0 3px var(--surface);
}
.bw-step-body {
  min-width: 0;
}
.bw-step-time {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
}
.bw-step-time .icon {
  width: 1em;
  height: 1em;
}
.bw-step h3 {
  margin-bottom: 0.45rem;
  font-size: 1.15rem;
}
.bw-step p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- 6. FAQ + inspection CTA ---------- */
.bw-faq .faq-cta {
  margin-top: 5.5rem;
}
.bw-form-note {
  margin: -0.2rem 0 1rem;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.45;
}
.bw-form-note[hidden] {
  display: none;
}
.bw-call {
  margin-top: 1.1rem;
  text-align: center;
  font-size: 0.92rem;
  color: var(--muted);
}
.bw-call a {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--primary);
}
.bw-call a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Basement waterproofing page responsive ---------- */
@media (max-width: 1100px) {
  .hero-bw .hero-aside {
    max-width: 560px;
  }
  .bw-signs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bw-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bw-faq .faq-cta {
    margin-top: 4.5rem;
  }
}
@media (max-width: 768px) {
  .bw-signs-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }
  .bw-sign {
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    padding-block: 1.25rem;
    padding-inline: 1.25rem 3.4rem;
  }
  .bw-sign-icon {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
    border-radius: 14px;
  }
  .bw-sign-text strong {
    font-size: 1rem;
  }
  .bw-sign-tick {
    top: 1.1rem;
  }
  .bw-result {
    margin-top: 2rem;
    padding: 1.75rem 1.4rem;
    border-radius: 24px;
  }
  .bw-result-main {
    flex-basis: 100%;
  }
  .bw-result-actions {
    flex: 1 1 100%;
    min-width: 0;
  }
  .bw-result h3 {
    font-size: 1.25rem;
  }
  .bw-meta dt {
    min-width: 5.2rem;
  }
  .bw-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }
  .bw-step {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.1rem;
    padding: 1.4rem 1.25rem;
  }
  .bw-step .step-icon {
    width: 62px;
    height: 62px;
    margin: 0;
    font-size: 1.45rem;
  }
  .bw-tip {
    margin-top: 1.25rem;
    padding: 0.9rem 1rem;
  }
  .bw-faq .faq-cta {
    margin-top: 3.5rem;
  }
}
@media (max-width: 480px) {
  .bw-sign {
    padding-block: 1.1rem;
    padding-inline: 1rem 3.1rem;
    gap: 0.85rem;
  }
  .bw-step {
    gap: 0.9rem;
    padding: 1.25rem 1rem;
  }
  .bw-step .step-icon {
    width: 58px;
    height: 58px;
  }
  .bw-step .step-icon em {
    width: 26px;
    height: 26px;
    top: -10px;
    inset-inline-end: -10px;
    font-size: 0.62rem;
  }
  .bw-meta div {
    flex-direction: column;
    gap: 0.1rem;
  }
  .bw-result-count strong {
    font-size: 1.7rem;
  }
}

/* ---------- Page-specific hero photography ---------- */
.hero-home,
.hero-video,
.hero-about,
.hero-contact {
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-home {
  background-image:
    linear-gradient(
      90deg,
      rgba(5, 15, 30, 0.82) 0%,
      rgba(5, 15, 30, 0.66) 48%,
      rgba(5, 15, 30, 0.48) 100%
    ),
    url("../images/hero ban.jpg");
  background-position: center, 50% 48%;
}

.hero-video {
  background-image: url("../images/home2 ban.jpg");
  background-position: center 58%;
}

.hero-video.no-video .hv-video {
  display: none;
}

.hero-about {
  background-image:
    linear-gradient(
      90deg,
      rgba(5, 15, 30, 0.82) 0%,
      rgba(5, 15, 30, 0.68) 52%,
      rgba(5, 15, 30, 0.55) 100%
    ),
    url("../images/hero-about.jpg");
  background-position: center, 55% 50%;
}

.hero-contact {
  background-image:
    linear-gradient(
      90deg,
      rgba(5, 15, 30, 0.82) 0%,
      rgba(5, 15, 30, 0.7) 52%,
      rgba(5, 15, 30, 0.58) 100%
    ),
    url("../images/cont.jpg");
  background-position: center, 55% 50%;
}

.hero-home::before,
.hero-video::before,
.hero-about::before,
.hero-contact::before {
  opacity: 0.2;
}

@media (max-width: 768px) {
  .hero-home {
    background-position: center, 57% 50%;
  }

  .hero-video {
    background-position: 57% 50%;
  }

  .hero-about {
    background-position: center, 58% 50%;
  }

  .hero-contact {
    background-position: center, 58% 50%;
  }
}


/* =========================================================
   27. BLOG DETAILS PAGE (blog-details.html)
   Reuses the topbar, header, hero, breadcrumb, hero-aside,
   before/after slider, tags, side-emergency, CTA form card
   and footer; only page-specific pieces live here.
   ========================================================= */

.blog-hero .hero-grid > *,
.blog-layout > *,
.post-grid > *,
.author-box > *,
.post-nav > * {
  min-width: 0;
}
.ba-layer img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Reading progress ---------- */
.read-progress {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 1200;
  height: 4px;
  pointer-events: none;
}
.read-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(var(--read, 0));
  transform-origin: left center;
}

/* ---------- 1. Article hero ---------- */
.blog-hero {
  padding: 4.5rem 0 12.5rem;
}
.blog-hero .wave {
  max-width: none; /* global svg max-width would cap the 200% wave */
}
.blog-hero .hero-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: end;
}
.blog-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  line-height: 1.12;
  margin-bottom: 1.3rem;
}
.post-cat {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 122, 26, 0.18);
  color: #ffb36b;
  font-size: 0.8rem;
  font-weight: 700;
}
.blog-hero .hero-lead {
  margin-bottom: 1.8rem;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.6rem;
  color: #cfe0f3;
  font-size: 0.92rem;
  font-weight: 600;
}
.post-meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.post-meta .icon {
  color: #ffb36b;
}
.post-meta .avatar {
  width: 40px;
  height: 40px;
  font-size: 0.8rem;
}
.post-meta .pm-author strong {
  display: block;
  color: #fff;
  line-height: 1.2;
}
.post-meta .pm-author small {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: #9fd0ff;
}
.blog-hero .hero-aside .ha-list {
  margin-bottom: 1.4rem;
}
.blog-hero .hero-aside .ha-list li {
  align-items: flex-start;
  line-height: 1.45;
}
.blog-hero .hero-aside .ha-list .icon {
  margin-top: 0.15rem;
}
.blog-hero .hero-aside .link-arrow {
  color: #fff;
}
.blog-hero .hero-aside .link-arrow:hover {
  color: #ffb36b;
}

/* ---------- 2 + 3. Article and sidebar layout ---------- */
.blog-body {
  padding: 0 0 6rem;
}
.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 3rem;
  align-items: start;
}

/* Article */
.article-cover {
  position: relative;
  margin: -8rem 0 2.2rem;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
  z-index: 3;
}
.article-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article {
  font-size: 1.06rem;
  line-height: 1.8;
}
.article > * + * {
  margin-top: 1.25rem;
}
.article .lead {
  font-size: 1.22rem;
  line-height: 1.7;
  color: var(--text);
  font-weight: 500;
}
.article h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  margin-top: 2.8rem;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.article h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
}
.article p {
  color: var(--muted);
}
.article p strong,
.article li strong {
  color: var(--text);
}
.article p a:not(.btn),
.article .article-list a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-list {
  display: grid;
  gap: 0.85rem;
}
.article-list li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  color: var(--muted);
}
.article-list li > .icon {
  width: 1.5em;
  height: 1.5em;
  padding: 4px;
  margin-top: 0.2rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  stroke-width: 3.2;
}

/* Table of contents */
.toc {
  padding: 1.4rem 1.6rem;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-inline-start: 5px solid var(--primary);
}
.toc-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-align: start;
  cursor: default;
}
.toc-toggle .icon {
  display: none;
  transition: transform 0.3s var(--ease);
}
.toc-list {
  display: grid;
  gap: 0.15rem;
  margin-top: 0.8rem;
}
.toc-list a {
  display: block;
  padding: 0.4rem 0.75rem;
  margin-inline-start: -0.75rem;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.96rem;
  line-height: 1.4;
  transition:
    background 0.25s,
    color 0.25s;
}
.toc-list a:hover,
.toc-list a.active {
  background: var(--primary-soft);
  color: var(--primary);
}

/* Figures */
.article figure {
  margin-top: 2rem;
}
.article figure + * {
  margin-top: 2rem;
}
.fig-frame {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  aspect-ratio: 3 / 2;
}
.fig-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article figcaption {
  margin-top: 0.7rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}
.fig-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.fig-pair figure {
  margin-top: 0;
}
.fig-pair .fig-frame {
  aspect-ratio: 4 / 3;
}
.article .ba-slider {
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
.diag-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.5;
}
.diag-table th,
.diag-table td {
  padding: 0.95rem 1.15rem;
  text-align: start;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
.diag-table thead th {
  background: var(--primary-soft);
  color: var(--primary);
  font-family: var(--font-head);
  font-size: 0.85rem;
  white-space: nowrap;
}
.diag-table tbody tr:last-child td {
  border-bottom: 0;
}
.diag-table td {
  color: var(--muted);
}
.diag-table td:first-child {
  font-weight: 700;
  color: var(--text);
}

/* Callouts + quote */
.callout {
  display: flex;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius);
  background: var(--primary-soft);
  border-inline-start: 5px solid var(--primary);
}
.callout.is-warn {
  background: rgba(255, 122, 26, 0.1);
  border-inline-start-color: var(--accent);
}
.callout-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  font-size: 1.25rem;
}
.callout.is-warn .callout-icon {
  background: var(--accent);
}
.callout h3 {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
}
.article .callout p {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.65;
}
.callout .btn {
  margin-top: 1rem;
}
.pullquote {
  position: relative;
  padding: 2rem 2rem 1.8rem;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--primary-dark) 100%);
  color: #fff;
  overflow: hidden;
}
.pullquote > .icon {
  position: absolute;
  inset-inline-end: 1.4rem;
  top: 1.2rem;
  width: 3rem;
  height: 3rem;
  opacity: 0.18;
}
.article .pullquote p {
  position: relative;
  margin: 0;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  line-height: 1.5;
  padding-inline-end: 2.5rem;
}
.pullquote cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 600;
  color: #9fd0ff;
}

/* Article footer: tags, share, author, prev/next */
.article-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 2.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
}
.share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}
.share > span {
  font-weight: 700;
  font-size: 0.9rem;
}
.share-status {
  min-height: 1.3rem;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: end;
  color: #16a34a;
}
.author-box {
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
  margin-top: 2rem;
  padding: 1.7rem;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.author-box .avatar {
  width: 72px;
  height: 72px;
  font-size: 1.2rem;
}
.author-box h3 {
  font-size: 1.15rem;
  margin: 0 0 0.15rem;
}
.author-box .ab-role {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}
.author-box p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}
.post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.post-nav a {
  display: block;
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition:
    border-color 0.25s,
    box-shadow 0.25s,
    transform 0.3s var(--ease);
}
.post-nav a:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.post-nav small {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--primary);
}
.post-nav strong {
  font-family: var(--font-head);
  font-size: 1rem;
  line-height: 1.35;
}
.post-nav .pn-next {
  text-align: end;
}
.post-nav .pn-next small {
  justify-content: flex-end;
}

/* Sidebar */
.blog-side {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  align-self: stretch;
  padding-top: 2rem;
}
.widget {
  padding: 1.6rem;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.widget > h2,
.widget > h3 {
  position: relative;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  font-size: 1.12rem;
}
.widget > h2::after,
.widget > h3::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 44px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
}
.side-search {
  position: relative;
}
.side-search input {
  width: 100%;
  height: 50px;
  padding-inline: 1rem 3.4rem;
  border-radius: 12px;
  background: var(--input-bg);
  border: 1.5px solid var(--border);
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}
.side-search input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(11, 92, 171, 0.15);
}
.side-search button {
  position: absolute;
  inset-inline-end: 5px;
  top: 5px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  transition: background 0.25s;
}
.side-search button:hover {
  background: var(--accent);
}
.cat-list li + li {
  border-top: 1px dashed var(--border);
}
.cat-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  font-weight: 600;
  transition:
    color 0.25s,
    padding 0.3s var(--ease);
}
.cat-list a:hover {
  color: var(--primary);
  padding-inline-start: 0.4rem;
}
.cat-list a span {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 26px;
  padding-inline: 0.5rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
}
.rel-list {
  display: grid;
  gap: 1.1rem;
}
.rel-item {
  display: flex;
  gap: 0.95rem;
  align-items: center;
}
.rel-thumb {
  flex: none;
  width: 84px;
  height: 84px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--bg-alt);
}
.rel-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.rel-item:hover .rel-thumb img {
  transform: scale(1.1);
}
.rel-item small {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}
.rel-item h3 {
  font-size: 0.96rem;
  line-height: 1.35;
  transition: color 0.25s;
}
.rel-item:hover h3 {
  color: var(--primary);
}
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tag-cloud a {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  font-size: 0.85rem;
  font-weight: 600;
  transition:
    background 0.25s,
    color 0.25s,
    border-color 0.25s;
}
.tag-cloud a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.widget.side-emergency {
  border: 0;
  padding: 1.8rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--primary-dark) 100%);
  box-shadow: var(--shadow);
}
.widget.side-emergency > h3 {
  padding-bottom: 0;
  color: #fff;
}
.widget.side-emergency > h3::after {
  display: none;
}
/* ---------- 4. Related posts + CTA ---------- */
.related {
  padding: 6rem 0;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}
.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.js .post-card.in-view {
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    opacity 0.8s var(--ease);
}
.post-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: var(--shadow-lg);
}
.post-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-alt);
}
.post-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.post-card:hover .post-thumb img {
  transform: scale(1.06);
}
.post-thumb .post-cat {
  position: absolute;
  inset-inline-start: 1rem;
  top: 1rem;
  margin: 0;
  background: var(--accent);
  color: #fff;
}
.post-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.5rem 1.6rem 1.7rem;
}
.post-info {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  margin-bottom: 0.8rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.post-info li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.post-info .icon {
  color: var(--accent);
}
.post-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}
.post-card h3 a:hover {
  color: var(--primary);
}
.post-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}
.post-card .link-arrow {
  margin-top: auto;
}
.blog-cta {
  padding-top: 5.5rem;
}

/* ---------- Blog details responsive ---------- */
@media (min-width: 1101px) and (min-height: 760px) {
  .side-sticky {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}
@media (max-width: 1100px) {
  .blog-hero {
    padding: 4rem 0 12rem;
  }
  .blog-hero .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }
  .blog-hero .hero-aside {
    max-width: 560px;
  }
  .article-cover {
    margin-top: -8rem;
  }
  .blog-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }
  .blog-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    align-self: auto;
    padding-top: 0;
  }
  .blog-side .widget-search,
  .blog-side .widget-tags,
  .blog-side .side-sticky {
    grid-column: 1 / -1;
  }
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .post-grid .post-card:nth-child(3) {
    grid-column: 1 / -1;
    flex-direction: row;
  }
  .post-grid .post-card:nth-child(3) .post-thumb {
    flex: 0 0 42%;
    aspect-ratio: auto;
    min-height: 100%;
  }
}
@media (max-width: 768px) {
  .blog-hero {
    padding: 3rem 0 10rem;
  }
  .blog-body {
    padding-bottom: 4.5rem;
  }
  .article-cover {
    margin-top: -6.5rem;
    border-radius: 20px;
    aspect-ratio: 4 / 3;
  }
  .article {
    font-size: 1rem;
    line-height: 1.75;
  }
  .article .lead {
    font-size: 1.1rem;
  }
  .toc {
    padding: 1.1rem 1.2rem;
  }
  .toc-toggle {
    cursor: pointer;
  }
  .toc-toggle .icon {
    display: block;
  }
  .toc:not(.open) .toc-list {
    display: none;
  }
  .toc.open .toc-toggle .icon {
    transform: rotate(180deg);
  }
  .fig-pair {
    grid-template-columns: minmax(0, 1fr);
  }
  .callout {
    flex-direction: column;
    padding: 1.2rem;
  }
  .pullquote {
    padding: 1.5rem 1.3rem;
  }
  .article-foot {
    flex-direction: column;
    align-items: flex-start;
  }
  .share-status {
    text-align: start;
  }
  .author-box {
    flex-direction: column;
    padding: 1.4rem;
  }
  .post-nav {
    grid-template-columns: minmax(0, 1fr);
  }
  .post-nav .pn-next {
    text-align: start;
  }
  .post-nav .pn-next small {
    justify-content: flex-start;
  }
  .blog-side {
    grid-template-columns: minmax(0, 1fr);
  }
  .widget {
    padding: 1.35rem;
  }
  .related {
    padding: 4.5rem 0;
  }
  .post-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .post-grid .post-card:nth-child(3) {
    flex-direction: column;
  }
  .post-grid .post-card:nth-child(3) .post-thumb {
    flex: none;
    aspect-ratio: 16 / 10;
    min-height: 0;
  }
  .blog-cta {
    padding-top: 4rem;
  }
  /* Stack the diagnosis table into labelled cards */
  .diag-table,
  .diag-table tbody,
  .diag-table tr,
  .diag-table td {
    display: block;
    width: 100%;
  }
  .diag-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .diag-table tr {
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--border);
  }
  .diag-table tbody tr:last-child {
    border-bottom: 0;
  }
  .diag-table td {
    padding: 0.2rem 0;
    border: 0;
  }
  .diag-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--primary);
  }
  .diag-table td:first-child {
    margin-bottom: 0.4rem;
    font-size: 1.02rem;
  }
}
@media (max-width: 480px) {
  .post-meta {
    gap: 0.7rem 1.1rem;
  }
  .rel-thumb {
    width: 72px;
    height: 72px;
  }
}

/* Side slide-ins would widen the page when stacked: rise from below */
@media (max-width: 1100px) {
  .js .blog-hero [data-animate="right"]:not(.in-view) {
    transform: translateY(32px);
  }
}

/* =========================================================
   28. FOUNDATION REPAIR PAGE (foundation-repair.html)
   Reuses the hero, breadcrumb, hero-aside, stats, warning-sign
   cards (bp-*), method tabs (sol-*), repair timeline (ptl-*),
   before/after showcase (show-*), FAQ and CTA form components
   above; only page-specific pieces live here.
   ========================================================= */

.hero-fr .hero-grid > *,
.fr-help > * {
  min-width: 0;
}
.hero-fr .hero-lead {
  max-width: 600px;
}

/* ---------- 1. Hero: animated stair-step crack ---------- */
.fr-crack {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: none;
  opacity: 0.6;
  pointer-events: none;
}
.fr-crack path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: fr-draw 3.2s var(--ease) 0.4s forwards;
}
.fr-crack path.glow {
  stroke: rgba(255, 122, 26, 0.4);
  stroke-width: 10;
  filter: blur(3px);
}
@keyframes fr-draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* ---------- 2. Warning signs ---------- */
.fr-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.6rem;
  margin: -1.75rem 0 2.5rem;
}
.fr-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}
.fr-legend .bp-sev {
  margin: 0;
}
.fr-signs .bp-fix a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.fr-signs .bp-fix a:hover {
  color: var(--accent-dark);
}
.fr-signs .bw-tip {
  margin-top: 2.25rem;
}

/* ---------- Help strip (used under signs + methods) ---------- */
.fr-help {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  margin-top: 2.5rem;
  padding: 1.75rem 2rem;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy) 0%, var(--primary-dark) 100%);
  box-shadow: var(--shadow);
}
.fr-help::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  inset-inline-end: -70px;
  top: -100px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}
.fr-help-main {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex: 1 1 380px;
}
.fr-help-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(255, 122, 26, 0.2);
  color: #ffb36b;
  font-size: 1.5rem;
}
.fr-help h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}
.fr-help p {
  color: #cfe0f3;
  font-size: 0.95rem;
}
.fr-help-actions {
  position: relative;
  flex: 0 0 auto;
}

/* ---------- 3-6. Section spacing helpers ---------- */
.fr-methods .sol-layout {
  margin-bottom: 0;
}
.fr-projects .show-main .ba-body p {
  min-height: 3em;
}
.fr-faq .faq-cta {
  margin-top: 5.5rem;
}

/* ---------- Foundation repair page responsive ---------- */
@media (max-width: 1100px) {
  .fr-help {
    padding: 1.6rem 1.75rem;
  }
  .fr-faq .faq-cta {
    margin-top: 4.5rem;
  }
  .fr-crack {
    opacity: 0.4;
  }
}
@media (max-width: 900px) {
  .fr-help-actions {
    flex: 1 1 100%;
  }
  .fr-help-actions .btn {
    width: 100%;
  }
}
@media (max-width: 768px) {
  .fr-legend {
    gap: 0.5rem 1.1rem;
    margin: -1rem 0 2rem;
  }
  .fr-legend li {
    font-size: 0.85rem;
  }
  .fr-help {
    margin-top: 2rem;
    padding: 1.4rem 1.25rem;
    border-radius: 20px;
  }
  .fr-help-main {
    flex-basis: 100%;
  }
  .fr-help-icon {
    width: 46px;
    height: 46px;
    font-size: 1.3rem;
  }
  .fr-help h3 {
    font-size: 1.1rem;
  }
  .fr-signs .bw-tip {
    margin-top: 1.5rem;
  }
  .fr-faq .faq-cta {
    margin-top: 3.5rem;
  }
  .fr-crack {
    opacity: 0.28;
  }
}
@media (max-width: 480px) {
  .fr-help-main {
    align-items: flex-start;
  }
}


/* =========================================================
   29. FOUNDATION CRACK REPAIR PAGE (foundation-crack-repair.html)
   Reuses the hero, breadcrumb, hero-aside, section heads, tags,
   fr-help strip, before/after cards, FAQ and CTA form components
   above; only page-specific pieces (fcr-*) live here.
   ========================================================= */

.hero-fcr .hero-grid > *,
.fcr-causes-layout > *,
.fcr-type-grid > *,
.fcr-method-grid > *,
.fcr-ba-grid > * {
  min-width: 0;
}
.hero.hero-fcr {
  padding-bottom: 8rem;
}
.hero-fcr h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
}
.hero-fcr .hero-lead {
  max-width: 600px;
}
.hero-fcr .breadcrumb {
  margin-bottom: 1.25rem;
}
.hero-fcr .eyebrow {
  display: flex;
}

/* ---------- 1. Hero: crack-width gauge ---------- */
.fcr-gauge {
  --lvl: #7cc4ff;
}
.fcr-gauge[data-level="0"] { --lvl: #4ade80; }
.fcr-gauge[data-level="1"] { --lvl: #7cc4ff; }
.fcr-gauge[data-level="2"] { --lvl: #ffb36b; }
.fcr-gauge[data-level="3"] { --lvl: #ff7b7f; }
.fcr-gauge h2 {
  margin-bottom: 0.4rem;
}
.fcr-gauge .fcr-gauge-hint {
  margin-bottom: 1.1rem;
  color: #cfe0f3;
  font-size: 0.93rem;
}
.fcr-gauge-view {
  overflow: hidden;
  height: 96px;
  margin-bottom: 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #8f98a3;
}
.fcr-gauge-view svg {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
}
.fcr-gauge-crack {
  fill: none;
  stroke: #14181d;
  stroke-width: var(--cw, 4px);
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  transition: stroke-width 0.2s var(--ease);
}
.fcr-gauge-range {
  position: relative;
  padding-bottom: 1.6rem;
}
.fcr-gauge-range input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 10px;
  margin: 0;
  padding: 0;
  border-radius: 999px;
  cursor: pointer;
  background: linear-gradient(
    90deg,
    #4ade80 0 13%,
    #7cc4ff 13% 39%,
    #ffb36b 39% 83%,
    #ff7b7f 83% 100%
  );
}
.fcr-gauge-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--lvl);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s var(--ease), border-color 0.2s;
}
.fcr-gauge-range input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--lvl);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.fcr-gauge-range input[type="range"]:hover::-webkit-slider-thumb,
.fcr-gauge-range input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.12);
}
.fcr-gauge-range input[type="range"]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 8px;
}
.fcr-gauge-scale {
  position: absolute;
  inset-inline: 14px;
  bottom: 0;
  height: 1.2rem;
}
.fcr-gauge-scale span {
  position: absolute;
  left: var(--at);
  transform: translateX(-50%);
  color: #b8cce2;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.fcr-gauge-scale span:first-child {
  transform: translateX(-14px);
}
.fcr-gauge-scale span:last-child {
  transform: translateX(-100%);
}
.fcr-gauge-out {
  margin-top: 0.4rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  border-inline-start: 4px solid var(--lvl);
  transition: border-color 0.25s;
}
.fcr-gauge-val {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.2rem 0.7rem;
  margin-bottom: 0.35rem;
  color: #b8cce2;
  font-size: 0.9rem;
}
.fcr-gauge-val strong {
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.7rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.fcr-gauge-out h3 {
  margin-bottom: 0.25rem;
  color: var(--lvl);
  font-size: 1.1rem;
  transition: color 0.25s;
}
.fcr-gauge-out > p:last-child {
  color: #cfe0f3;
  font-size: 0.93rem;
}
.fcr-gauge .fcr-gauge-note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 1rem 0 0;
  color: #b8cce2;
  font-size: 0.85rem;
}
.fcr-gauge-note .icon {
  margin-top: 0.15em;
  color: #ffb36b;
}

/* ---------- 2. Types of cracks ---------- */
.fcr-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: -1.25rem 0 2.5rem;
}
.fcr-chip {
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 0.25s, color 0.25s, border-color 0.25s,
    transform 0.25s var(--ease);
}
.fcr-chip:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}
.fcr-chip[aria-pressed="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.fcr-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.fcr-type {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.fcr-type[hidden] {
  display: none;
}
.js .fcr-type.in-view {
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.3s,
    opacity 0.8s var(--ease);
  transition-delay: 0ms, 0ms, 0ms, var(--d, 0ms);
}
.fcr-type:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--shadow);
  border-color: var(--primary);
}
.fcr-type-art {
  position: relative;
  aspect-ratio: 15 / 8;
  background: #a9b2bd;
  overflow: hidden;
}
.fcr-type-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fcr-type-art svg {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
}
.fcr-type-art .crk {
  fill: none;
  stroke: #14181d;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fcr-type-art .crk.thin {
  stroke-width: 1.6;
}
.fcr-type-art .crk-fill {
  fill: #14181d;
}
.fcr-sev {
  position: absolute;
  top: 0.85rem;
  inset-inline-start: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.fcr-sev::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.fcr-sev.is-cosmetic { background: #dcfce7; color: #15803d; }
.fcr-sev.is-monitor { background: #ffefdc; color: #b45309; }
.fcr-sev.is-structural { background: #fde4e4; color: #c0262d; }
.fcr-type-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.4rem 1.5rem 1.6rem;
}
.fcr-type-body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}
.fcr-type-body > p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
}
.fcr-type-meta {
  display: grid;
  gap: 0.7rem;
  margin: auto 0 0;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--border);
}
.fcr-type-meta dt {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
}
.fcr-type-meta dd {
  margin: 0;
  font-size: 0.93rem;
  font-weight: 600;
}

/* ---------- 3. Causes & warning signs ---------- */
.fcr-causes-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 3.5rem;
  align-items: start;
}
.fcr-causes-main .section-head {
  margin-bottom: 2rem;
}
.fcr-cause-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.fcr-cause {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.js .fcr-cause.in-view {
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.3s,
    opacity 0.8s var(--ease);
  transition-delay: 0ms, 0ms, 0ms, var(--d, 0ms);
}
.fcr-cause:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--shadow);
  border-color: var(--primary);
}
.fcr-cause-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1.25rem;
}
.fcr-cause h3 {
  font-size: 1.02rem;
  margin-bottom: 0.25rem;
}
.fcr-cause p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.fcr-checker {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  padding: 1.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 5px solid var(--accent);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.fcr-checker h3 {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}
.fcr-checker-lead {
  color: var(--muted);
  font-size: 0.93rem;
}
.fcr-signs {
  display: grid;
  gap: 0.55rem;
  margin: 1.25rem 0;
}
.fcr-sign {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.9rem;
  background: var(--input-bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 0.93rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
}
.fcr-sign:hover {
  border-color: var(--primary);
}
.fcr-sign-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.fcr-sign-box {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.fcr-sign-box .icon {
  width: 14px;
  height: 14px;
  stroke-width: 3.5;
}
.fcr-sign-input:focus-visible ~ .fcr-sign-box {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.fcr-sign.is-on {
  background: rgba(255, 122, 26, 0.08);
  border-color: var(--accent);
}
.fcr-sign.is-on .fcr-sign-box {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.fcr-verdict {
  --lvl: #7cc4ff;
  padding: 1.15rem 1.25rem;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy) 0%, var(--primary-dark) 100%);
}
.fcr-checker[data-level="0"] .fcr-verdict { --lvl: #9fd0ff; }
.fcr-checker[data-level="1"] .fcr-verdict { --lvl: #4ade80; }
.fcr-checker[data-level="2"] .fcr-verdict { --lvl: #ffb36b; }
.fcr-checker[data-level="3"] .fcr-verdict { --lvl: #ff7b7f; }
.fcr-verdict-count {
  margin-bottom: 0.55rem;
  color: #cfe0f3;
  font-size: 0.88rem;
}
.fcr-verdict-count strong {
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.15rem;
}
.fcr-meter {
  height: 8px;
  margin-bottom: 0.9rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}
.fcr-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--lvl);
  transition: width 0.4s var(--ease), background 0.3s;
}
.fcr-verdict h4 {
  margin-bottom: 0.25rem;
  color: var(--lvl);
  font-size: 1.05rem;
  transition: color 0.3s;
}
.fcr-verdict > p:last-child {
  color: #cfe0f3;
  font-size: 0.92rem;
}
.fcr-checker-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.4rem;
  margin-top: 1.25rem;
}
.fcr-reset {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.fcr-reset:hover {
  color: var(--accent-dark);
}

/* ---------- 4. Repair solutions ---------- */
.fcr-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
}
.fcr-method {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}
.fcr-method::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s var(--ease);
}
.fcr-method:hover::before {
  transform: scaleX(1);
}
.js .fcr-method.in-view {
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    opacity 0.8s var(--ease);
  transition-delay: 0ms, 0ms, var(--d, 0ms);
}
.fcr-method:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--shadow);
}
.fcr-method-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.fcr-method-head h3 {
  font-size: 1.3rem;
}
.fcr-method-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1.5rem;
  transition: background 0.3s, color 0.3s, transform 0.4s var(--ease);
}
.fcr-method:hover .fcr-method-icon {
  background: var(--primary);
  color: #fff;
  transform: rotate(-8deg) scale(1.08);
}
.fcr-method > p {
  color: var(--muted);
}
.fcr-spec {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}
.fcr-spec div {
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  background: var(--bg-alt);
}
.fcr-spec dt {
  margin-bottom: 0.15rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}
.fcr-spec dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
}
.fcr-method .tags {
  margin-top: auto;
}

.fcr-flow-wrap {
  margin-top: 4rem;
}
.fcr-flow-wrap > h3 {
  margin-bottom: 1.75rem;
  font-size: 1.4rem;
  text-align: center;
}
.fcr-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  counter-reset: none;
}
.fcr-flow li {
  position: relative;
}
.fcr-flow-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  box-shadow: 0 0 0 6px var(--bg);
}
.fcr-flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 21px;
  inset-inline-start: calc(44px + 0.6rem);
  inset-inline-end: -0.9rem;
  border-top: 2px dashed var(--border);
}
.fcr-flow h4 {
  margin-bottom: 0.3rem;
  font-size: 1.05rem;
}
.fcr-flow p {
  color: var(--muted);
  font-size: 0.92rem;
}
.fcr-solutions .fr-help {
  margin-top: 4rem;
}

/* ---------- 5. Before & after ---------- */
.fcr-ba-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}
.fcr-ba-facts {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.25fr) minmax(0, 0.95fr);
  gap: 0.5rem 0.75rem;
  margin: 0 0 1rem;
  padding: 0.8rem 0;
  border-block: 1px dashed var(--border);
}
.fcr-ba-facts dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}
.fcr-ba-facts dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
}
.fcr-results .ba-body p {
  min-height: 4.6em;
}
.fcr-results .center-cta {
  margin-top: 3rem;
}

/* ---------- 6. FAQ + CTA ---------- */
.fcr-form-note {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}
.fcr-form-note a {
  color: var(--primary);
  font-weight: 700;
}
.fcr-form-note a:hover {
  color: var(--accent-dark);
}
.cta-formcard[id] {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

/* ---------- Foundation crack repair page responsive ---------- */
@media (max-width: 1100px) {
  .hero-fcr .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-fcr .hero-aside {
    max-width: 560px;
  }
  .fcr-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fcr-causes-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }
  .fcr-checker {
    position: static;
    max-width: 640px;
  }
  .fcr-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.5rem;
  }
  .fcr-flow li:not(:last-child)::after {
    display: none;
  }
  .fcr-ba-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fcr-ba-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc(50% - 0.875rem);
    justify-self: center;
  }
}
@media (max-width: 900px) {
  .fcr-method-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .fcr-cause-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 768px) {
  .hero.hero-fcr {
    padding-bottom: 7.5rem;
  }
  .fcr-filter {
    margin: -0.75rem 0 2rem;
    gap: 0.5rem;
  }
  .fcr-chip {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  .fcr-type-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }
  .fcr-type-art {
    aspect-ratio: 2 / 1;
  }
  .fcr-checker {
    max-width: none;
    padding: 1.5rem 1.25rem;
    border-radius: 20px;
  }
  .fcr-method {
    padding: 1.6rem 1.35rem;
    border-radius: 20px;
  }
  .fcr-method-head h3 {
    font-size: 1.15rem;
  }
  .fcr-flow-wrap {
    margin-top: 3rem;
  }
  .fcr-flow {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
  .fcr-flow li {
    padding-inline-start: 4rem;
  }
  .fcr-flow-num {
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    margin-bottom: 0;
  }
  .fcr-flow li:not(:last-child)::after {
    display: block;
    top: 50px;
    bottom: -1.3rem;
    inset-inline-start: 21px;
    inset-inline-end: auto;
    border-top: 0;
    border-inline-start: 2px dashed var(--border);
  }
  .fcr-solutions .fr-help {
    margin-top: 3rem;
  }
  .fcr-ba-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
  .fcr-ba-grid > :last-child:nth-child(odd) {
    width: auto;
  }
  .fcr-results .ba-body p {
    min-height: 0;
  }
  .fcr-results .center-cta {
    margin-top: 2.25rem;
  }
}
@media (max-width: 480px) {
  .fcr-gauge {
    padding: 1.5rem 1.25rem;
  }
  .fcr-gauge-val strong {
    font-size: 1.45rem;
  }
  .fcr-gauge-scale span {
    font-size: 0.7rem;
  }
  .fcr-spec {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
  }
  .fcr-spec div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
  }
  .fcr-spec dt {
    margin: 0;
  }
  .fcr-checker-actions .btn {
    width: 100%;
  }
  .fcr-checker-actions {
    justify-content: center;
  }
}

/* =========================================================
   30. PROJECTS PAGE (projects.html)
   Reuses the hero, breadcrumb, hero-aside, section heads, tags,
   before/after cards, link-arrow, CTA form box and footer above;
   only page-specific pieces (pj-*) live here.
   ========================================================= */

.hero-projects .hero-grid > *,
.pj-grid > *,
.pj-compare-grid > *,
.pj-facts > *,
.pj-stats > * {
  min-width: 0;
}
.hero.hero-projects {
  padding: 4.5rem 0 11.5rem;
  background-image:
    linear-gradient(90deg, rgba(5, 15, 30, 0.84) 0%, rgba(5, 15, 30, 0.72) 55%, rgba(5, 15, 30, 0.58) 100%),
    url("../images/cp ban.jpg");
  background-size: cover;
  background-position: center, 50% 48%;
  background-repeat: no-repeat;
}
.hero-projects::before { opacity: 0.2; }
.hero-projects h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
}
.hero-projects .hero-lead {
  max-width: 600px;
}
.hero-projects .breadcrumb {
  margin-bottom: 1.25rem;
}
.hero-projects .eyebrow {
  display: flex;
}

/* ---------- 1. Hero snapshot ---------- */
.pj-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.4rem;
}
.pj-stat {
  padding: 0.95rem 0.6rem;
  text-align: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.pj-stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}
.pj-stat span {
  display: block;
  margin-top: 0.3rem;
  color: #b8cce2;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
}

/* ---------- 2. Category filters ---------- */
.pj-filters {
  position: relative;
  z-index: 5;
  margin-top: -6.5rem;
}
.pj-filter-card {
  padding: 1.8rem 2rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 5px solid var(--accent);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}
.pj-filter-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  margin-bottom: 1.3rem;
}
.pj-filter-head h2 {
  margin-bottom: 0.25rem;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
}
.pj-filter-head p {
  color: var(--muted);
  font-size: 0.95rem;
}
.pj-filter-head .pj-count {
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
}
.pj-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.pj-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.8rem 0.6rem 1.1rem;
  padding-inline: 1.1rem 0.8rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  transition:
    background 0.25s,
    color 0.25s,
    border-color 0.25s,
    transform 0.25s var(--ease);
}
.pj-chip .icon {
  color: var(--primary);
  transition: color 0.25s;
}
.pj-chip-n {
  min-width: 1.8em;
  padding: 0.08rem 0.5rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.75rem;
  text-align: center;
  transition:
    background 0.25s,
    color 0.25s;
}
.pj-chip:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}
.pj-chip[aria-pressed="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.pj-chip[aria-pressed="true"] .icon {
  color: #fff;
}
.pj-chip[aria-pressed="true"] .pj-chip-n {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* ---------- 3. Completed projects gallery ---------- */
.pj-gallery {
  padding-top: 5rem;
}
.pj-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}
.pj-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.pj-card[hidden] {
  display: none;
}
.js .pj-card.in-view {
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.3s,
    opacity 0.8s var(--ease);
  transition-delay: 0ms;
}
.js .pj-card.in-view:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}
.pj-thumb {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--bg-alt);
}
.pj-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.pj-thumb img.is-flip {
  transform: scaleX(-1);
}
.pj-card:hover .pj-thumb img {
  transform: scale(1.06);
}
.pj-card:hover .pj-thumb img.is-flip {
  transform: scaleX(-1) scale(1.06);
}
.pj-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(7, 22, 43, 0.7));
  opacity: 0;
  transition: opacity 0.35s;
}
.pj-card:hover .pj-thumb::after,
.pj-thumb:focus-visible::after {
  opacity: 1;
}
.pj-badge {
  position: absolute;
  z-index: 2;
  top: 1rem;
  inset-inline-start: 1rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(10, 31, 60, 0.78);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.pj-view {
  position: absolute;
  z-index: 2;
  inset-inline: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.35s,
    transform 0.35s var(--ease);
}
.pj-card:hover .pj-view,
.pj-thumb:focus-visible .pj-view {
  opacity: 1;
  transform: none;
}
@media (hover: none) {
  .pj-thumb::after {
    opacity: 1;
  }
  .pj-view {
    opacity: 1;
    transform: none;
  }
}
.pj-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.4rem 1.5rem 1.55rem;
}
.pj-loc {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
}
.pj-body h3 {
  margin-bottom: 0.45rem;
  font-size: 1.15rem;
}
.pj-desc {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.93rem;
}
.pj-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  margin-bottom: 1.1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
  font-size: 0.82rem;
  font-weight: 600;
}
.pj-meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.pj-meta .icon {
  color: var(--accent);
}
.pj-body .link-arrow {
  margin-top: auto;
  font-size: 0.93rem;
}
.pj-gallery .center-cta {
  margin-top: 3rem;
}
.pj-note {
  margin-bottom: 1.1rem;
  color: var(--muted);
  font-weight: 600;
}

/* ---------- 4. Before / after comparison ---------- */
.pj-compare-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.65fr);
  gap: 2rem;
  align-items: start;
}
.pj-picker {
  display: grid;
  gap: 0.8rem;
}
.pj-pick {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  padding: 1rem 1.1rem;
  text-align: start;
  border-radius: 16px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition:
    background 0.25s,
    color 0.25s,
    border-color 0.25s,
    box-shadow 0.25s,
    transform 0.25s var(--ease);
}
.pj-pick-ico {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  transition:
    background 0.25s,
    color 0.25s;
}
.pj-pick strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.98rem;
  line-height: 1.3;
}
.pj-pick small {
  display: block;
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.82rem;
  transition: color 0.25s;
}
.pj-pick:hover {
  border-color: var(--primary);
  transform: translateX(calc(var(--dir) * 4px));
}
.pj-pick[aria-pressed="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
}
.pj-pick[aria-pressed="true"] small {
  color: #d6e8fa;
}
.pj-pick[aria-pressed="true"] .pj-pick-ico {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.pj-stage .ba-slider {
  aspect-ratio: 3 / 2;
}
.pj-stage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem 0.9rem;
  padding: 0.9rem 1.4rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.pj-toggle {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 0.85rem;
  font-weight: 700;
  transition:
    border-color 0.25s,
    color 0.25s,
    transform 0.25s var(--ease);
}
.pj-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}
.pj-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}
.pj-stage .ba-body {
  padding: 1.5rem 1.75rem 1.75rem;
}
.pj-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0 0 1.1rem;
}
.pj-facts div {
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}
.pj-facts dt {
  margin-bottom: 0.15rem;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pj-facts dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
}

/* ---------- 5. Free inspection CTA ---------- */
.pj-cta {
  padding-top: 0;
}
.pj-compare + .pj-cta {
  padding-top: 6rem;
}
.pj-cta .cta-form-box .hero-badges {
  margin-bottom: 0;
}

/* ---------- Projects page responsive ---------- */
@media (max-width: 1100px) {
  .hero-projects .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-projects .hero-aside {
    max-width: 560px;
  }
  .pj-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
  .pj-compare-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
  .pj-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pj-pick:hover {
    transform: translateY(-2px);
  }
}
@media (max-width: 768px) {
  .hero.hero-projects {
    padding-bottom: 9.5rem;
  }
  .pj-filters {
    margin-top: -5.5rem;
  }
  .pj-filter-card {
    padding: 1.5rem 1.25rem 1.6rem;
    border-radius: 20px;
  }
  .pj-chips {
    flex-wrap: nowrap;
    margin-inline: -0.25rem;
    padding: 0.25rem 0.25rem 0.6rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  .pj-chip {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding-block: 0.5rem;
    font-size: 0.86rem;
  }
  .pj-gallery {
    padding-top: 4rem;
  }
  .pj-picker {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.65rem;
  }
  .pj-pick {
    padding: 0.85rem 1rem;
  }
  .pj-stage-bar {
    padding: 0.8rem 1.1rem;
  }
  .pj-stage .ba-body {
    padding: 1.25rem 1.25rem 1.5rem;
  }
  .pj-compare + .pj-cta {
    padding-top: 4.5rem;
  }
}
@media (max-width: 620px) {
  .pj-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.35rem;
  }
}
@media (max-width: 480px) {
  .pj-stats {
    gap: 0.5rem;
  }
  .pj-stat {
    padding: 0.8rem 0.4rem;
  }
  .pj-stat strong {
    font-size: 1.25rem;
  }
  .pj-stat span {
    font-size: 0.68rem;
  }
  .pj-facts {
    grid-template-columns: minmax(0, 1fr);
  }
  .pj-stage-bar {
    justify-content: center;
  }
  .pj-hint {
    order: 3;
    width: 100%;
    justify-content: center;
  }
  .pj-body {
    padding: 1.25rem 1.2rem 1.4rem;
  }
  .pj-stage .ba-knob {
    width: 42px;
    height: 42px;
    margin: -21px 0 0 -21px;
  }
  .pj-cta .cta-call .btn {
    width: 100%;
  }
}
/* ==========================================================================
   31. COMPLETED PROJECTS PAGE
   ========================================================================== */
.cp-feature>*,.cp-grid>*,.cp-details-grid>*,.hero-cp .hero-grid>*{min-width:0}

/* ---- Hero ---- */
.hero-cp{
  background-image:linear-gradient(90deg,rgba(5,15,30,.82) 0%,rgba(5,15,30,.68) 52%,rgba(5,15,30,.55) 100%),url("../images/cp ban.jpg");
  background-position:center,50% 48%;background-size:cover;background-repeat:no-repeat;
}
.hero-cp::before{opacity:.2}
.hero-cp .hero-lead{max-width:600px}
.cp-snap{display:grid;grid-template-columns:repeat(3,1fr);gap:.8rem;margin-top:1.6rem;max-width:520px}
.cp-snap div{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);border-radius:14px;padding:.9rem 1rem;display:flex;flex-direction:column;gap:.15rem}
.cp-snap strong{font-family:var(--font-head);font-size:1.35rem;color:#fff;line-height:1.1}
.cp-snap span{font-size:.8rem;color:#b8cce2}

/* ---- Featured ---- */
.cp-feature{display:grid;grid-template-columns:1.1fr .9fr;gap:3.5rem;align-items:center}
.cp-feature-media .ba-slider{aspect-ratio:3/2}
.cp-strip{display:grid;grid-template-columns:repeat(3,1fr);margin-top:1rem;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}
.cp-strip>div{padding:.9rem 1.1rem;display:flex;flex-direction:column;gap:.2rem}
.cp-strip>div+div{border-inline-start:1px dashed var(--border)}
.cp-strip small{font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
.cp-strip strong{font-family:var(--font-head);font-size:.98rem;color:var(--navy)}
.cp-flag{display:inline-flex;align-items:center;gap:.45rem;padding:.4rem .9rem;border-radius:999px;background:rgba(255,122,26,.12);color:var(--accent);font-weight:700;font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;margin-bottom:1rem}
.cp-flag .icon{width:15px;height:15px}
.cp-ps{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin:1.4rem 0}
.cp-ps>div{background:var(--surface);border:1px solid var(--border);border-inline-start:4px solid var(--primary);border-radius:var(--radius);padding:1rem 1.1rem}
.cp-ps>div.is-fix{border-inline-start-color:var(--accent)}
.cp-ps small{display:block;font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;color:var(--primary);font-weight:700;margin-bottom:.3rem}
.cp-ps .is-fix small{color:var(--accent)}
.cp-ps p{margin:0;font-size:.95rem;color:var(--muted)}
.cp-feature-copy .check-list{margin:1.2rem 0}
.cp-feature-copy .tags{margin-bottom:1.6rem}
.cp-actions{display:flex;flex-wrap:wrap;gap:.8rem}

/* ---- Gallery ---- */
.cp-toolbar{display:flex;align-items:center;justify-content:space-between;gap:1rem 1.5rem;flex-wrap:wrap;margin-bottom:2.2rem}
.cp-chips{display:flex;flex-wrap:wrap;gap:.6rem}
.cp-chip{display:inline-flex;align-items:center;gap:.5rem;padding:.6rem 1.1rem;border-radius:999px;border:1px solid var(--border);background:var(--surface);color:var(--navy);font:600 .92rem var(--font-body);cursor:pointer;transition:all .25s var(--ease)}
.cp-chip:hover{border-color:var(--primary);color:var(--primary)}
.cp-chip:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.cp-chip[aria-pressed="true"]{background:var(--primary);border-color:var(--primary);color:#fff;box-shadow:var(--shadow-sm)}
.cp-chip-n{display:inline-grid;place-items:center;min-width:1.5rem;height:1.5rem;padding:0 .4rem;border-radius:999px;background:var(--bg-alt);color:var(--muted);font-size:.75rem;font-weight:700}
.cp-chip[aria-pressed="true"] .cp-chip-n{background:rgba(255,255,255,.22);color:#fff}
.cp-count{margin:0;padding:.45rem 1rem;border-radius:999px;background:var(--surface);border:1px solid var(--border);color:var(--muted);font-size:.88rem}
.cp-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.75rem}
.cp-card{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-sm);transition:border-color .3s var(--ease),box-shadow .3s var(--ease)}
.cp-card[hidden]{display:none}
.js .cp-card.in-view{transition:opacity .7s var(--ease),transform .7s var(--ease),box-shadow .3s var(--ease),border-color .3s var(--ease)}
.cp-card:hover{box-shadow:var(--shadow-lg,var(--shadow));border-color:var(--primary);transform:translateY(-6px) !important}
.cp-card.is-pop{animation:cp-pop .5s var(--ease)}
@keyframes cp-pop{from{opacity:0;transform:scale(.94)}to{opacity:1;transform:scale(1)}}
.cp-thumb{position:relative;display:block;width:100%;aspect-ratio:3/2;padding:0;border:0;background:var(--bg-alt);cursor:zoom-in;overflow:hidden}
.cp-thumb img,.cp-thumb svg{display:block;width:100%;height:100%;max-width:none;transition:transform .6s var(--ease)}
.cp-thumb img{object-fit:cover}
.cp-thumb:hover img,.cp-thumb:focus-visible img,.cp-thumb:hover svg,.cp-thumb:focus-visible svg{transform:scale(1.06)}
.cp-thumb:focus-visible{outline:3px solid var(--accent);outline-offset:-3px}
.cp-thumb::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 40%,rgba(5,15,30,.65));opacity:0;transition:opacity .3s var(--ease)}
.cp-thumb:hover::after,.cp-thumb:focus-visible::after{opacity:1}
.cp-badge{position:absolute;top:.8rem;inset-inline-start:.8rem;z-index:2;padding:.3rem .75rem;border-radius:999px;background:var(--primary);color:#fff;font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;box-shadow:var(--shadow-sm)}
.cp-view{position:absolute;inset-inline:0;bottom:.9rem;z-index:2;display:flex;justify-content:center;align-items:center;gap:.4rem;color:#fff;font-weight:600;font-size:.88rem;opacity:0;transform:translateY(8px);transition:all .3s var(--ease)}
.cp-view .icon{width:16px;height:16px}
.cp-thumb:hover .cp-view,.cp-thumb:focus-visible .cp-view{opacity:1;transform:none}
@media (hover:none){.cp-view{opacity:1;transform:none}.cp-thumb::after{opacity:1}}
.cp-body{display:flex;flex-direction:column;gap:.55rem;padding:1.3rem 1.4rem 1.4rem;flex:1}
.cp-loc{display:inline-flex;align-items:center;gap:.4rem;margin:0;color:var(--primary);font-size:.82rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em}
.cp-loc .icon{width:15px;height:15px;color:var(--accent)}
.cp-body h3{margin:0;font-size:1.15rem}
.cp-desc{margin:0;color:var(--muted);font-size:.95rem}
.cp-meta{list-style:none;margin:auto 0 0;padding:.9rem 0 0;border-top:1px dashed var(--border);display:flex;flex-wrap:wrap;gap:.5rem 1.1rem;font-size:.84rem;color:var(--muted)}
.cp-meta li{display:inline-flex;align-items:center;gap:.35rem}
.cp-meta .icon{width:14px;height:14px;color:var(--accent)}

/* ---- Lightbox ---- */
.cp-lightbox{position:fixed;inset:0;z-index:2000;display:grid;place-items:center;padding:1.5rem}
.cp-lightbox[hidden]{display:none}
.cp-lb-backdrop{position:absolute;inset:0;background:rgba(5,15,30,.8);opacity:0;transition:opacity .3s var(--ease)}
.cp-lightbox.is-open .cp-lb-backdrop{opacity:1}
.cp-lb-dialog{position:relative;width:min(960px,100%);max-height:100%;overflow:auto;background:var(--surface);border-radius:24px;box-shadow:0 30px 80px rgba(0,0,0,.45);opacity:0;transform:translateY(20px) scale(.97);transition:all .35s var(--ease)}
.cp-lightbox.is-open .cp-lb-dialog{opacity:1;transform:none}
.cp-lb-media{position:relative}
.cp-lb-stage{aspect-ratio:3/2;background:var(--bg-alt);overflow:hidden}
.cp-lb-stage img{display:block;width:100%;height:100%;object-fit:contain}
.cp-lb-close,.cp-lb-nav{position:absolute;display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;background:rgba(255,255,255,.92);color:var(--navy);cursor:pointer;box-shadow:var(--shadow-sm);transition:all .25s var(--ease)}
.cp-lb-close:hover,.cp-lb-nav:hover{background:var(--accent);color:#fff}
.cp-lb-close:focus-visible,.cp-lb-nav:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.cp-lb-close{top:1rem;inset-inline-end:1rem;z-index:3;font-size:1.6rem;line-height:1}
.cp-lb-nav{top:50%;transform:translateY(-50%);z-index:2}
.cp-lb-nav .icon{width:20px;height:20px}
.cp-lb-prev{inset-inline-start:1rem}
.cp-lb-next{inset-inline-end:1rem}
.cp-lb-info{padding:1.5rem 1.8rem 1.8rem}
.cp-lb-count{display:block;font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin-bottom:.4rem}
.cp-lb-info h3{margin:0 0 .5rem}
.cp-lb-info p{margin:0 0 1rem;color:var(--muted)}

/* ---- Results & repair details ---- */
.cp-details-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.6rem}
.cp-detail{position:relative;display:flex;flex-direction:column;gap:1rem;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.7rem;overflow:hidden;transition:transform .3s var(--ease),box-shadow .3s var(--ease),border-color .3s var(--ease)}
.cp-detail::before{content:"";position:absolute;top:0;inset-inline:0;height:4px;background:linear-gradient(90deg,var(--primary),var(--accent));transform:scaleX(0);transform-origin:left center;transition:transform .4s var(--ease)}
.cp-detail:hover::before{transform:scaleX(1)}
.js .cp-detail.in-view{transition:opacity .7s var(--ease),transform .7s var(--ease),box-shadow .3s var(--ease),border-color .3s var(--ease)}
.cp-detail:hover{box-shadow:var(--shadow);transform:translateY(-5px) !important}
.cp-detail-head{display:flex;align-items:center;gap:1rem}
.cp-detail-head h3{margin:0;font-size:1.1rem}
.cp-detail-icon{flex:none;display:grid;place-items:center;width:54px;height:54px;border-radius:16px;background:var(--primary-soft,rgba(11,92,171,.1));color:var(--primary);transition:all .4s var(--ease)}
.cp-detail-icon .icon{width:26px;height:26px}
.cp-detail:hover .cp-detail-icon{background:linear-gradient(135deg,var(--primary),var(--accent));color:#fff;transform:rotate(-6deg) scale(1.05)}
.cp-spec{display:grid;gap:.5rem;margin:0}
.cp-spec>div{display:grid;grid-template-columns:110px 1fr;gap:.8rem;align-items:baseline;background:var(--bg-alt);border-radius:10px;padding:.6rem .8rem}
.cp-spec dt{font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--primary)}
.cp-spec dd{margin:0;font-weight:600;color:var(--navy);font-size:.92rem}
.cp-result{margin:auto 0 0;padding-top:1rem;border-top:1px dashed var(--border);display:flex;gap:.7rem;align-items:flex-start;color:var(--muted);font-size:.93rem}
.cp-result .icon{flex:none;width:22px;height:22px;padding:4px;border-radius:50%;background:rgba(255,122,26,.14);color:var(--accent);margin-top:2px}
.cp-outcomes{position:relative;margin-top:4rem;display:grid;grid-template-columns:1.2fr .8fr;gap:3rem;padding:3rem;border-radius:28px;background:linear-gradient(135deg,var(--navy),var(--navy-2,#0a2a4d));color:#fff;overflow:hidden}
.cp-outcomes::before{content:"";position:absolute;width:420px;height:420px;top:-160px;inset-inline-end:-120px;border-radius:50%;background:radial-gradient(circle,rgba(255,122,26,.28),transparent 70%);pointer-events:none}
.cp-outcomes>*{position:relative;min-width:0}
.cp-outcomes h3,.cp-outcomes h4{color:#fff}
.cp-outcomes-main>p{color:#c7d6ea}
.cp-bar{margin-top:1.3rem}
.cp-bar-head{display:flex;justify-content:space-between;gap:1rem;margin-bottom:.5rem;font-weight:600;font-size:.95rem}
.cp-bar-head span:last-child{color:#ffb36b;font-family:var(--font-head)}
.cp-bar-track{height:10px;border-radius:999px;background:rgba(255,255,255,.14);overflow:hidden}
.cp-bar-fill{display:block;height:100%;width:var(--w);border-radius:inherit;background:linear-gradient(90deg,var(--accent),#ffb36b)}
.js .cp-bar-fill{width:0;transition:width 1.4s var(--ease) .25s}
.js .cp-bar.in-view .cp-bar-fill{width:var(--w)}
.cp-outcomes-side{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.14);border-radius:20px;padding:1.8rem}
.cp-outcomes-side h4{margin:0 0 1rem;font-size:1.1rem}
.cp-outcomes-side .check-list li{color:#dbe6f5}

/* ---- CTA ---- */
.cp-cta{margin-top:4.5rem}

/* ---- Responsive ---- */
@media (max-width:1100px){
  .cp-feature{grid-template-columns:1fr;gap:2.5rem}
  .cp-grid,.cp-details-grid{grid-template-columns:repeat(2,1fr)}
  .cp-outcomes{grid-template-columns:1fr;gap:2rem}
}
@media (max-width:768px){
  .cp-toolbar{flex-direction:column;align-items:stretch;gap:.9rem;margin-bottom:1.6rem}
  .cp-chips{flex-wrap:nowrap;overflow-x:auto;padding-bottom:.4rem;margin-inline:-1rem;padding-inline:1rem;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
  .cp-chip{flex:none}
  .cp-count{align-self:flex-start}
  .cp-outcomes{padding:2rem 1.4rem;margin-top:2.5rem;border-radius:22px}
  .cp-cta{margin-top:3rem}
  .cp-lightbox{padding:.75rem}
  .cp-lb-info{padding:1.2rem 1.3rem 1.4rem}
  .cp-snap{max-width:none}
}
@media (max-width:620px){
  .cp-grid{grid-template-columns:1fr}
}
@media (max-width:560px){
  .cp-ps{grid-template-columns:1fr}
  .cp-strip{grid-template-columns:1fr}
  .cp-strip>div+div{border-inline-start:0;border-top:1px dashed var(--border)}
}
@media (max-width:480px){
  .cp-details-grid{grid-template-columns:1fr}
  .cp-actions .btn{width:100%;justify-content:center}
  .cp-spec>div{grid-template-columns:1fr;gap:.15rem}
  .cp-snap{grid-template-columns:1fr 1fr 1fr;gap:.5rem}
  .cp-snap div{padding:.7rem .7rem}
  .cp-snap strong{font-size:1.1rem}
  .cp-lb-nav,.cp-lb-close{width:38px;height:38px}
}
/* =========================================================
   32. PROJECT DETAILS PAGE (project-details.html)
   Reuses the hero, breadcrumb, hero-aside, section heads,
   before/after slider, link-arrow, CTA box and footer above;
   only page-specific pieces (pd-*) live here.
   ========================================================= */
.hero-pd .hero-grid > *,
.pd-trio > *,
.pd-inspect-grid > *,
.pd-compare-grid > *,
.pd-results > *,
.pd-rel-grid > * { min-width: 0; }

/* ---------- 1. Hero ---------- */
.hero.hero-pd {
  background-image:
    linear-gradient(90deg, rgba(5, 15, 30, 0.86) 0%, rgba(5, 15, 30, 0.7) 55%, rgba(5, 15, 30, 0.55) 100%),
    url("../images/pd ban.jpg");
  background-size: cover;
  background-position: center 48%;
  background-repeat: no-repeat;
}
.hero-pd::before { opacity: 0.2; }
.hero-pd .hero-lead { max-width: 580px; margin-bottom: 1.5rem; }
.pd-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 122, 26, 0.18);
  color: #ffb36b;
  font-size: 0.85rem;
  font-weight: 700;
}
.pd-flag .icon { width: 15px; height: 15px; }
.pd-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin-bottom: 1.8rem;
  color: #cfe0f3;
  font-size: 0.95rem;
  font-weight: 600;
}
.pd-meta li { display: inline-flex; align-items: center; gap: 0.45rem; }
.pd-meta .icon { width: 17px; height: 17px; color: var(--accent); }
.pd-glance-list { margin: 0; display: grid; gap: 0.85rem; }
.pd-glance-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}
.pd-glance-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.pd-glance-list dt { color: #b8cce2; font-size: 0.9rem; }
.pd-glance-list dd {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  text-align: end;
}
.pd-glance-list .icon { width: 16px; height: 16px; color: var(--accent); }

/* ---------- 2. Overview ---------- */
.pd-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.pd-info {
  padding: 2rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.pd-info:nth-child(2) { border-top-color: var(--accent); }
.pd-info-icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 1.1rem;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
}
.pd-info-icon .icon { width: 26px; height: 26px; }
.pd-info h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.pd-info p { color: var(--muted); }
.pd-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 2rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.pd-specs > div { display: flex; flex-direction: column; gap: 0.2rem; padding: 1.1rem 1.4rem; }
.pd-specs > div + div { border-inline-start: 1px dashed var(--border); }
.pd-specs small { color: var(--muted); font-size: 0.82rem; }
.pd-specs strong { font-family: var(--font-head); color: var(--navy); font-size: 1.02rem; }

/* ---------- 3. Inspection ---------- */
.pd-inspect-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; align-items: center; }
.pd-photo {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.pd-photo { direction: ltr; }
.pd-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pd-pin {
  position: absolute;
  left: var(--px);
  top: var(--py);
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  border: 3px solid #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s var(--ease), background 0.25s;
}
.pd-pin:hover { transform: scale(1.12); }
.pd-pin.is-active { background: var(--primary-dark); transform: scale(1.15); }
.pd-pin.is-active::after {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: pd-ping 1.8s ease-out infinite;
}
@keyframes pd-ping { from { opacity: 0.9; transform: scale(0.7); } to { opacity: 0; transform: scale(1.3); } }
.pd-finding {
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-inline-start: 4px solid var(--accent);
  border-radius: var(--radius-sm);
}
.pd-finding strong { font-family: var(--font-head); color: var(--navy); }
.pd-finding p { margin-top: 0.2rem; color: var(--muted); font-size: 0.95rem; }
.pd-hint { margin-top: 0.6rem; font-size: 0.85rem; color: var(--muted); }
.pd-inspect-copy h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); margin-bottom: 0.9rem; }
.pd-lead { color: var(--muted); font-size: 1.05rem; margin-bottom: 1.6rem; }
.pd-meters { display: grid; gap: 1rem; margin-bottom: 1.6rem; }
.pd-meter-head { display: flex; justify-content: space-between; margin-bottom: 0.35rem; font-weight: 600; font-size: 0.95rem; }
.pd-meter-head b { font-family: var(--font-head); color: var(--accent); }
.pd-bar { height: 10px; border-radius: 999px; background: var(--border); overflow: hidden; }
.pd-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 1.4s var(--ease) 0.3s;
}
.pd-inspect-copy.in-view .pd-bar i,
html:not(.js) .pd-bar i { width: var(--w); }
.pd-list { display: grid; gap: 0.7rem; }
.pd-list li { display: flex; gap: 0.7rem; align-items: flex-start; }
.pd-list .icon { flex: 0 0 22px; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); }

/* ---------- 4. Before & After ---------- */
.pd-compare-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 2.5rem; align-items: center; }
.pd-compare-media .ba-slider {
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.pd-compare-media .ba-layer img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pd-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.pd-table li {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 0.5rem;
  padding: 0.95rem 1.2rem;
  align-items: center;
  font-size: 0.95rem;
}
.pd-table li + li { border-top: 1px dashed var(--border); }
.pd-table-head { background: var(--bg-alt); font-weight: 700; color: var(--muted); font-size: 0.8rem !important; }
.pd-table li span:first-child { font-weight: 600; }
.pd-table .is-bad { color: #d64545; font-weight: 700; }
.pd-table .is-good { color: #16a34a; font-weight: 700; }

/* ---------- 5. Process & results ---------- */
.pd-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  counter-reset: pd;
}
.pd-steps::before {
  content: "";
  position: absolute;
  top: 27px;
  inset-inline: 10%;
  border-top: 2px dashed var(--primary);
  opacity: 0.4;
}
.pd-step { position: relative; text-align: center; padding: 0 0.4rem; }
.pd-step-n {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  border: 4px solid var(--bg-alt);
  box-shadow: 0 8px 20px rgba(11, 92, 171, 0.3);
}
.pd-step:last-child .pd-step-n { background: var(--accent); box-shadow: 0 8px 20px rgba(255, 122, 26, 0.35); }
.pd-step h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.pd-step p { color: var(--muted); font-size: 0.92rem; }
.pd-step small { display: block; margin-top: 0.5rem; color: var(--primary); font-weight: 700; font-size: 0.8rem; }
.pd-results {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  margin-top: 3.5rem;
  padding: 2.5rem;
  color: #fff;
  border-radius: 28px;
  background: linear-gradient(120deg, var(--navy) 0%, var(--primary-dark) 55%, var(--primary) 130%);
  box-shadow: var(--shadow-lg);
}
.pd-results-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.pd-results-stats > div {
  padding: 1.1rem 0.8rem;
  text-align: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.pd-results-stats strong { display: block; font-family: var(--font-head); font-size: 1.8rem; line-height: 1.1; }
.pd-results-stats span { display: block; margin-top: 0.4rem; color: #b8cce2; font-size: 0.8rem; font-weight: 600; }
.pd-quote { position: relative; padding-inline-start: 3rem; }
.pd-quote > .icon { position: absolute; inset-inline-start: 0; top: 0; width: 30px; height: 30px; color: var(--accent); }
.pd-quote blockquote { font-size: 1.1rem; line-height: 1.6; color: #e8f0fb; }
.pd-quote figcaption { margin-top: 0.8rem; font-weight: 700; color: #9fd0ff; font-size: 0.92rem; }

/* ---------- 6. Related projects ---------- */
.pd-rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.pd-rel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.js .pd-rel.in-view { transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease); }
.pd-rel:hover { box-shadow: var(--shadow); border-color: var(--primary); transform: translateY(-6px) !important; }
.pd-rel-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-alt); }
.pd-rel-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.pd-rel:hover .pd-rel-img img { transform: scale(1.06); }
.pd-rel-body { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.3rem 1.4rem 1.5rem; flex: 1; }
.pd-rel-body .link-arrow { margin-top: auto; padding-top: 0.4rem; }
.pd-rel-loc { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--primary); font-size: 0.85rem; font-weight: 700; }
.pd-rel-loc .icon { width: 15px; height: 15px; color: var(--accent); }
.pd-rel-body h3 { font-size: 1.15rem; }
.pd-rel-body p { color: var(--muted); font-size: 0.95rem; }
.pd-related { padding-bottom: 3rem; }
.cta#pd-cta { padding-bottom: 6rem; }

/* ---------- Project details: responsive ---------- */
@media (max-width: 1100px) {
  .pd-inspect-grid { gap: 2.25rem; }
  .pd-compare-grid { grid-template-columns: 1fr; }
  .pd-steps { grid-template-columns: repeat(3, 1fr); row-gap: 2rem; }
  .pd-steps::before { display: none; }
  .pd-results { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero.hero-pd { padding: 3.5rem 0 8rem; }
  .pd-trio { grid-template-columns: 1fr; }
  .pd-specs { grid-template-columns: repeat(2, 1fr); }
  .pd-specs > div:nth-child(3) { border-inline-start: 0; }
  .pd-specs > div:nth-child(n + 3) { border-top: 1px dashed var(--border); }
  .pd-inspect-grid { grid-template-columns: 1fr; }
  .pd-rel-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .pd-steps { grid-template-columns: 1fr; gap: 0; }
  .pd-step { display: grid; grid-template-columns: 56px 1fr; column-gap: 1rem; text-align: start; padding: 0 0 1.6rem; }
  .pd-step-n { grid-row: 1 / span 3; margin: 0; }
  .pd-step::before {
    content: "";
    position: absolute;
    top: 56px;
    bottom: 0;
    inset-inline-start: 27px;
    border-inline-start: 2px dashed var(--primary);
    opacity: 0.4;
  }
  .pd-step:last-child::before { display: none; }
  .pd-step small { margin-top: 0.3rem; }
  .pd-results { padding: 1.75rem 1.25rem; }
}
@media (max-width: 640px) {
  .pd-rel-grid { grid-template-columns: 1fr; }
  .pd-results-stats { grid-template-columns: 1fr; }
  .pd-results-stats > div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; text-align: start; }
  .pd-results-stats span { margin: 0; }
  .pd-table li { grid-template-columns: 1.2fr 1fr 1fr; padding: 0.8rem 0.9rem; font-size: 0.88rem; }
  .pd-info { padding: 1.5rem 1.25rem; }
}
@media (max-width: 480px) {
  .hero-pd .hero-btns .btn { width: 100%; justify-content: center; }
  .pd-specs { grid-template-columns: 1fr; }
  .pd-specs > div + div { border-inline-start: 0; border-top: 1px dashed var(--border); }
  .pd-pin { width: 34px; height: 34px; margin: -17px 0 0 -17px; font-size: 0.85rem; }
  .pd-quote { padding-inline-start: 2.4rem; }
}
/* =========================================================
   33. BLOG PAGE (blog.html)
   Reuses the hero, breadcrumb, hero-aside, section heads, link-arrow,
   buttons, CTA box and footer above; only page-specific pieces (bl-*)
   live here.
   ========================================================= */
.hero-bl .hero-grid > *,
.bl-feature > *,
.bl-grid > *,
.bl-explore-grid > *,
.bl-news > * { min-width: 0; }

/* ---------- 1. Hero ---------- */
.hero.hero-bl { padding: 4.5rem 0 10.5rem; }
.hero-bl h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
.hero-bl .hero-lead { max-width: 580px; margin-bottom: 1.8rem; }
.bl-hero-facts { display: flex; flex-wrap: wrap; gap: 0.8rem 2rem; }
.bl-hero-facts li { display: flex; flex-direction: column; padding-inline-start: 0.9rem; border-inline-start: 3px solid var(--accent); }
.bl-hero-facts strong { font-family: var(--font-head); font-size: 1.4rem; line-height: 1.2; }
.bl-hero-facts span { color: #b8cce2; font-size: 0.85rem; }
.bl-aside .ha-badge { margin-bottom: 1.1rem; }
.bl-aside-label { margin: 1.3rem 0 0.7rem; font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.bl-aside .bl-aside-label { color: #b8cce2; }
.bl-search {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.35rem 0.35rem 1rem;
  padding-inline: 1rem 0.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.bl-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(11, 92, 171, 0.15); }
.bl-search > .icon { flex: 0 0 20px; width: 20px; height: 20px; color: var(--muted); }
.bl-search input {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 0.2rem;
  border: 0;
  background: transparent;
  outline: 0;
}
.bl-search .btn { padding: 0.7rem 1.4rem; flex: 0 0 auto; }
.bl-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.bl-tag {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.bl-tag:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.bl-aside .bl-tag { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.22); color: #fff; }
.bl-aside .bl-tag:hover { background: var(--accent); border-color: var(--accent); }

/* ---------- shared bits ---------- */
.bl-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; color: var(--muted); font-size: 0.84rem; font-weight: 600; }
.bl-meta li { display: inline-flex; align-items: center; gap: 0.4rem; }
.bl-meta .icon { width: 15px; height: 15px; color: var(--accent); }

/* ---------- 2. Featured article ---------- */
.bl-featured { padding-bottom: 3rem; }
.bl-feature {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}
.bl-feature-img { position: relative; display: block; min-height: 340px; overflow: hidden; background: var(--bg-alt); }
.bl-feature-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.bl-feature:hover .bl-feature-img img { transform: scale(1.05); }
.bl-flag {
  position: absolute;
  top: 1.1rem;
  inset-inline-start: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(255, 122, 26, 0.4);
}
.bl-flag .icon { width: 15px; height: 15px; }
.bl-feature-body { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; padding: 2.75rem 2.5rem; }
.bl-feature-body .eyebrow { margin: 0; }
.bl-feature-body h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.bl-feature-body h2 a:hover { color: var(--primary); }
.bl-feature-body p { color: var(--muted); }
.bl-author { display: flex; align-items: center; gap: 0.8rem; }
.bl-avatar {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
}
.bl-author strong { display: block; line-height: 1.25; }
.bl-author small { color: var(--muted); font-size: 0.82rem; }

/* ---------- 3. Latest articles ---------- */
.bl-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; margin-bottom: 2.5rem; }
.bl-count { margin: 0; padding: 0.45rem 1rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: 0.88rem; }
.bl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.bl-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.bl-card[hidden] { display: none; }
.js .bl-card.in-view { transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease); }
.bl-card:hover { box-shadow: var(--shadow); border-color: var(--primary); transform: translateY(-6px) !important; }
.bl-card.is-pop { animation: bl-pop 0.45s var(--ease); }
@keyframes bl-pop { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.bl-card-img { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-alt); }
.bl-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.bl-card:hover .bl-card-img img { transform: scale(1.06); }
.bl-badge {
  position: absolute;
  top: 0.8rem;
  inset-inline-start: 0.8rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
}
.bl-card-body { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.3rem 1.4rem 1.5rem; flex: 1; }
.bl-card-body h3 { font-size: 1.15rem; line-height: 1.3; }
.bl-card-body h3 a:hover { color: var(--primary); }
.bl-card-body p { color: var(--muted); font-size: 0.95rem; }
.bl-card-body .link-arrow { margin-top: auto; padding-top: 0.4rem; }
.bl-empty { max-width: 460px; margin: 0 auto; padding: 3rem 1rem; text-align: center; }
.bl-empty[hidden] { display: none; }
.bl-empty > .icon { width: 44px; height: 44px; margin-bottom: 1rem; color: var(--accent); }
.bl-empty h3 { margin-bottom: 0.4rem; }
.bl-empty p { margin-bottom: 1.4rem; color: var(--muted); }

/* ---------- 4. Categories & search ---------- */
.bl-explore-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.bl-explore-copy h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 0.8rem; }
.bl-explore-copy > p:not(.bl-aside-label) { margin-bottom: 1.5rem; color: var(--muted); }
.bl-cats { display: flex; flex-wrap: wrap; gap: 0.7rem; padding: 1.8rem; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 24px; }
.bl-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.bl-chip .icon { width: 16px; height: 16px; color: var(--accent); }
.bl-chip:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.bl-chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.bl-chip[aria-pressed="true"] .icon { color: #fff; }
.bl-chip-n { display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding: 0 0.4rem; border-radius: 999px; background: var(--bg-alt); color: var(--muted); font-size: 0.78rem; font-weight: 700; }
.bl-chip[aria-pressed="true"] .bl-chip-n { background: rgba(255, 255, 255, 0.22); color: #fff; }
.bl-reset { width: 100%; margin-top: 0.4rem; color: var(--primary); font-weight: 700; font-size: 0.9rem; text-align: start; }
.bl-reset:hover { text-decoration: underline; }

/* ---------- 5. Newsletter CTA ---------- */
.cta.bl-news-wrap { padding-top: 0; padding-bottom: 6rem; }
.bl-news-side { position: relative; flex: 0 1 440px; width: 100%; }
.bl-news-form {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem;
  padding-inline-start: 1rem;
  background: #fff;
  border-radius: 999px;
  color: #1c2b3d;
  box-shadow: var(--shadow);
}
.bl-news-form:focus-within { box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.4); }
.bl-news-form > .icon { flex: 0 0 20px; width: 20px; height: 20px; color: #5b6b7e; }
.bl-news-form input { flex: 1; min-width: 0; padding: 0.7rem 0.2rem; border: 0; background: transparent; color: #1c2b3d; outline: 0; }
.bl-news-form input::placeholder { color: #6f7f92; }
.bl-news-form .btn { padding: 0.75rem 1.5rem; flex: 0 0 auto; }
.bl-news-status { min-height: 1.4rem; margin-top: 0.7rem; color: #9fd0ff; font-size: 0.9rem; font-weight: 600; }
.bl-news-status.error { color: #ffb1b1; }
.bl-perks { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin-top: 0.3rem; color: #cfe0f3; font-size: 0.88rem; }
.bl-perks li { display: inline-flex; align-items: center; gap: 0.4rem; }
.bl-perks .icon { width: 16px; height: 16px; color: var(--accent); }

/* ---------- Blog: responsive ---------- */
@media (max-width: 1100px) {
  .bl-grid { grid-template-columns: repeat(2, 1fr); }
  .bl-explore-grid { gap: 2.25rem; }
  .bl-news-side { flex-basis: 100%; }
}
@media (max-width: 900px) {
  .hero.hero-bl { padding: 3.5rem 0 8rem; }
  .bl-feature { grid-template-columns: 1fr; }
  .bl-feature-img { min-height: 0; aspect-ratio: 16 / 9; }
  .bl-feature-body { padding: 2rem 1.75rem; }
  .bl-explore-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bl-grid { grid-template-columns: 1fr; }
  .bl-head { margin-bottom: 1.8rem; }
  .bl-cats { padding: 1.2rem; }
  .bl-hero-facts { gap: 0.8rem 1.4rem; }
}
@media (max-width: 480px) {
  .bl-feature-body { padding: 1.5rem 1.25rem; }
  .bl-feature-body .btn { width: 100%; justify-content: center; }
  .bl-search .btn, .bl-news-form .btn { padding: 0.65rem 1rem; }
  .bl-chip { padding: 0.55rem 0.9rem; font-size: 0.88rem; }
}

/* ---------- Service and blog page hero photography ---------- */
.hero-services,
.hero-bw,
.hero-fcr,
.hero-fr,
.hero-bl,
.blog-hero {
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-services {
  background-image:
    linear-gradient(90deg, rgba(5, 15, 30, 0.84) 0%, rgba(5, 15, 30, 0.72) 55%, rgba(5, 15, 30, 0.58) 100%),
    url("../images/service01.jpg");
  background-position: center, 50% 48%;
}

.hero-bw {
  background-image:
    linear-gradient(90deg, rgba(5, 15, 30, 0.84) 0%, rgba(5, 15, 30, 0.72) 55%, rgba(5, 15, 30, 0.58) 100%),
    url("../images/bd.jpg");
  background-position: center, 50% 48%;
}

.hero-fcr {
  background-image:
    linear-gradient(90deg, rgba(5, 15, 30, 0.84) 0%, rgba(5, 15, 30, 0.72) 55%, rgba(5, 15, 30, 0.58) 100%),
    url("../images/Poured-Wall Crack Injection.jpg");
  background-position: center, 50% 48%;
}

.hero-fr {
  background-image:
    linear-gradient(90deg, rgba(5, 15, 30, 0.84) 0%, rgba(5, 15, 30, 0.72) 55%, rgba(5, 15, 30, 0.58) 100%),
    url("../images/Foundation Underpinned with Piers.jpg");
  background-position: center, 50% 48%;
}

.hero-bl {
  background-image:
    linear-gradient(90deg, rgba(5, 15, 30, 0.84) 0%, rgba(5, 15, 30, 0.72) 55%, rgba(5, 15, 30, 0.58) 100%),
    url("../images/bd03.jpg");
  background-position: center, 50% 48%;
}

.blog-hero {
  background-image:
    linear-gradient(90deg, rgba(5, 15, 30, 0.84) 0%, rgba(5, 15, 30, 0.72) 55%, rgba(5, 15, 30, 0.58) 100%),
    url("../images/bd ban.jpg");
  background-position: center, 50% 48%;
}

.hero-services::before,
.hero-bw::before,
.hero-fcr::before,
.hero-fr::before,
.hero-bl::before,
.blog-hero::before {
  opacity: 0.2;
}