@font-face {
  font-family: "Rajdhani";
  src: url("../fonts/rajdhani-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Rajdhani";
  src: url("../fonts/rajdhani-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Rajdhani";
  src: url("../fonts/rajdhani-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Work Sans";
  src: url("../fonts/work-sans-400-700.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0b1f3a;
  --navy-2: #102c4f;
  --navy-3: #193c63;
  --ink: #0f1722;
  --gold: #f5b735;
  --gold-deep: #c88d1d;
  --stone-50: #f7f9fc;
  --stone-100: #eef2f7;
  --stone-200: #d5deea;
  --stone-600: #4a5568;
  --white: #ffffff;
  --max-width: 1220px;
  --radius: 12px;
  --radius-lg: 22px;
  --shadow-sm: 0 10px 20px rgba(8, 24, 45, 0.08);
  --shadow-lg: 0 24px 44px rgba(8, 24, 45, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Work Sans", "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: radial-gradient(circle at top right, rgba(245, 183, 53, 0.12), transparent 40%),
    linear-gradient(180deg, #f9fbff 0%, #ffffff 42%);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy-3);
  text-decoration: none;
}

a:hover {
  color: var(--gold-deep);
  text-decoration: underline;
}

.site-header {
  background: rgba(11, 31, 58, 0.9);
  backdrop-filter: blur(8px);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 10px 24px rgba(5, 15, 26, 0.26);
}

.site-header a {
  color: var(--white);
  text-decoration: none;
}

.site-header a:hover {
  color: #ffd16b;
  text-decoration: none;
}

/* In-page anchors: offset for sticky header */
section[id] {
  scroll-margin-top: 6rem;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.8rem;
  position: relative;
  min-height: 96px;
}

.logo-link {
  display: flex;
  align-items: center;
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.logo-link img {
  height: 78px;
  width: auto;
  object-fit: contain;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav-main a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.82rem;
  border-radius: 999px;
  font-size: 0.9rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  font-family: "Rajdhani", sans-serif;
}

.nav-main a:hover:not(.cta-header) {
  background: rgba(255, 255, 255, 0.13);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-bar {
  display: inline-flex;
  align-items: stretch;
  border-radius: 999px;
  overflow: hidden;
}

.nav-main .nav-dropdown-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.35rem 0.5rem 0.82rem;
  border-radius: 0;
  font-size: 0.9rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  font-family: "Rajdhani", sans-serif;
  color: var(--white);
  text-decoration: none;
}

.nav-dropdown:hover .nav-dropdown-bar,
.nav-dropdown:focus-within .nav-dropdown-bar {
  background: rgba(255, 255, 255, 0.13);
}

.nav-main .nav-dropdown-link:hover {
  color: #ffd16b;
  background: transparent;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0.5rem 0.75rem 0.5rem 0.25rem;
  border-radius: 0;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1;
  font-family: "Rajdhani", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: transparent;
  border: none;
  color: var(--white);
  cursor: pointer;
  text-decoration: none;
}

.nav-dropdown-toggle:hover {
  background: transparent;
  color: #ffd16b;
}

.nav-dropdown-arrow {
  font-size: 0.6em;
  opacity: 0.9;
  transition: transform 0.2s;
}

.nav-dropdown.is-open .nav-dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #0f2c4d;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 50;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--white);
  white-space: nowrap;
  border-radius: 0;
  text-transform: none;
  letter-spacing: 0.01em;
  font-family: "Work Sans", sans-serif;
}

.nav-dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffd16b;
}

.cta-header {
  background: linear-gradient(130deg, #ffd16b 0%, #f5b735 42%, #dea029 100%);
  color: #081a30 !important;
  box-shadow: 0 6px 12px rgba(245, 183, 53, 0.18);
  padding: 0.58rem 1.04rem !important;
  border-radius: 999px;
  font-weight: 700;
  -webkit-tap-highlight-color: rgba(245, 183, 53, 0.35);
}

.cta-header:hover {
  background: linear-gradient(130deg, #ffd16b 0%, #f1b232 100%) !important;
  color: #081a30 !important;
}

.cta-header:active {
  background: linear-gradient(130deg, #f1b232 0%, #dea029 100%) !important;
  color: #081a30 !important;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 10;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.25rem;
  min-width: 44px;
  min-height: 44px;
}

@media (max-width: 1200px) {
  /* Grid keeps logo + toggle on row 1; nav opens on row 2 so the logo does not
     re-center when the menu expands (absolute + 50% was centering against full height). */
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: minmax(82px, auto) auto;
    align-items: center;
    column-gap: 0.65rem;
    row-gap: 0;
    min-height: 0;
  }

  .logo-link {
    position: static;
    transform: none;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    align-self: center;
    z-index: 2;
    margin-inline: 0;
  }

  .logo-link img {
    height: clamp(52px, 7.5vw, 68px);
  }

  .nav-toggle {
    display: block;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
  }

  .nav-main {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
    flex-direction: column;
    flex-wrap: nowrap;
    padding: 1rem 1.15rem;
    align-items: stretch;
    gap: 0.2rem;
    margin-top: 0;
    margin-left: -1rem;
    margin-right: -1rem;
    width: calc(100% + 2rem);
    max-width: none;
    background: linear-gradient(180deg, rgba(5, 18, 35, 0.98) 0%, rgba(8, 28, 50, 0.97) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 32px rgba(4, 12, 22, 0.35);
  }

  .nav-main.is-open {
    display: flex;
    /* Scroll when Service Areas (or many links) exceeds viewport; sticky header stays visible. */
    max-height: calc(100vh - 5.5rem);
    max-height: min(72vh, calc(100dvh - 5.5rem));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .nav-main .cta-header {
    display: none;
  }

  .nav-dropdown {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    width: 100%;
    min-width: 0;
  }

  .nav-dropdown-bar {
    display: flex;
    width: 100%;
    align-items: center;
  }

  .nav-main .nav-dropdown-link {
    flex: 1;
    min-width: 0;
    justify-content: flex-start;
    border-radius: 0;
    padding-left: 0.82rem;
  }

  .nav-main .nav-dropdown-toggle {
    width: auto;
    flex-shrink: 0;
    justify-content: center;
    min-width: 2.75rem;
    border-radius: 0;
    padding-right: 0.82rem;
  }

  .nav-dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.08);
    margin-top: 0.25rem;
    margin-left: 0.75rem;
    padding-left: 0.5rem;
    border-left: 2px solid var(--gold);
  }

  /* Touch devices often keep an artificial :hover after tap; that kept the submenu
     visible even after JS removed .is-open. Only .is-open may show the list here. */
  .nav-dropdown:hover .nav-dropdown-menu {
    display: none;
  }

  .nav-dropdown.is-open .nav-dropdown-menu {
    display: block;
  }
}

main {
  flex: 1 0 auto;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.15rem;
}

.section {
  padding: 4rem 0;
}

.section--tight-top {
  padding-top: 2.5rem;
}

.section--tight-bottom {
  padding-bottom: 2rem;
}

.section-alt {
  background: var(--stone-50);
}

/* Rule: gray sections use the brand gold-deep heading color */
.section-dark {
  background: linear-gradient(145deg, #091b33 0%, #143a66 100%);
  color: var(--white);
  margin-bottom: 0;
  padding: 3.8rem 0;
}

main:has(> .section-dark:last-child) + .site-footer {
  margin-top: 0;
}

.section-dark a {
  color: #ffd16b;
}

.section-dark a:hover {
  color: var(--gold);
}

.section-dark .btn-primary {
  background: linear-gradient(130deg, #ffd16b 0%, #f5b735 100%);
  color: #091d35;
}

.section-dark .btn-primary:hover {
  background: #ffd16b;
  color: #091d35;
}

.section-dark .btn-primary:active {
  background: linear-gradient(130deg, #ffd16b 0%, #e8a82a 100%);
  color: #091d35;
}

.section-dark .btn-secondary {
  background: var(--white);
  color: #091d35;
  border: 2px solid var(--white);
}

.section-dark .btn-secondary:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.page-title {
  font-size: clamp(2.2rem, 7vw, 4.2rem);
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  letter-spacing: 0.015em;
  color: var(--navy);
  margin: 0 0 1rem;
  line-height: 1.04;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(1.45rem, 4vw, 2.5rem);
  font-weight: 700;
  font-family: "Rajdhani", sans-serif;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 1.2rem;
}

.section-title--light {
  color: var(--white);
}

.projects-by-location .section-title:not(:first-of-type) {
  margin-top: 2.75rem;
}

.projects-region-intro {
  margin: 0 0 1.5rem;
  max-width: 76ch;
  font-size: 0.98rem;
  line-height: 1.62;
  color: #3d5168;
}

.lead {
  font-size: 1.1rem;
  color: #314358;
  margin: 0 0 1.5rem;
  max-width: 60ch;
}

.hero {
  position: relative;
  overflow: hidden;
  background-color: #0d2847;
  color: var(--white);
  padding: 5.2rem 0 4.4rem;
}

/* Dark scrim above the layered photo — matches former multi-layer background order
   (gradient was painted ON TOP of hero.jpg); without this, .hero__media covers the tint. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: linear-gradient(to bottom, rgba(11, 29, 52, 0.88), rgba(11, 29, 52, 0.78));
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__media picture,
.hero__media img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__media img {
  object-fit: cover;
  object-position: center;
}

.hero::before {
  display: none;
  content: none;
}

.hero.hero-with-bg {
  padding-top: 6rem;
  padding-bottom: 5rem;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.hero.hero-with-bg .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero > .container {
  position: relative;
  z-index: 2;
  padding-left: 1.35rem;
}

.hero > .container::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15rem;
  bottom: 0.15rem;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(185deg, #ffe6a8, var(--gold) 45%, var(--gold-deep));
  box-shadow: 0 0 28px rgba(245, 183, 53, 0.45);
  pointer-events: none;
}

.hero .page-title {
  color: var(--white);
  margin-bottom: 1rem;
  max-width: none;
  text-shadow: 0 10px 30px rgba(4, 10, 17, 0.45);
}

.hero-title-line1 {
  white-space: nowrap;
}

@media (max-width: 380px) {
  .hero-title-line1 {
    white-space: normal;
  }
}

.hero-title-accent {
  color: #ffd16b;
  text-shadow: 0 6px 20px rgba(245, 183, 53, 0.35);
}

.hero .lead {
  color: rgba(255, 255, 255, 0.9);
  max-width: 54ch;
}

.hero .lead a {
  color: #ffd16b;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255, 209, 107, 0.5);
}

.hero .lead a:hover {
  color: #ffe8b0;
  text-decoration-color: rgba(255, 232, 176, 0.75);
}

.hero-actions {
  margin-top: 1.8rem;
  display: flex;
  gap: 0.9rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.hero-image {
  margin-top: 2rem;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero.hero-with-bg .hero-image {
  display: none;
}

.block-image {
  width: 100%;
  height: auto;
}

.reviews-section {
  background: var(--stone-50);
}

.reviews-carousel {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

.reviews-track {
  position: relative;
  min-height: 180px;
}

.review-slide {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  margin: 0;
  padding: 1.5rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.review-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.review-quote {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--navy);
  font-style: italic;
  margin: 0 0 1rem;
}

.review-author {
  font-size: 0.9375rem;
  color: #3f4f64;
  margin: 0;
  font-style: normal;
}

.reviews-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.reviews-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #b6c1d2;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.reviews-dot:hover {
  background: #8495af;
}

.reviews-dot.is-active {
  background: var(--gold);
  transform: scale(1.2);
}

@media (max-width: 640px) {
  .review-quote {
    font-size: 1.0625rem;
  }

  .reviews-track {
    min-height: 200px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.86rem 1.45rem;
  font-weight: 700;
  font-size: 0.96rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  /* Do not transition background: gradient → solid interpolates poorly and flashes muddy/dark tones */
  transition: transform 0.15s, box-shadow 0.2s;
  font-family: "Rajdhani", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(130deg, #ffd16b 0%, #f5b735 100%);
  color: #081a30;
  box-shadow: 0 10px 18px rgba(245, 183, 53, 0.25);
  -webkit-tap-highlight-color: rgba(245, 183, 53, 0.35);
}

.btn-primary:hover {
  background: #ffd16b;
  color: #081a30;
}

.btn-primary:active {
  background: linear-gradient(130deg, #ffd16b 0%, #e8a82a 100%);
  color: #081a30;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(3px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.24);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--gold-deep);
  border: 2px solid var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: #081a30;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.popular-services-actions {
  margin-top: 3.5rem;
  display: flex;
  justify-content: center;
}

/* Rows with few cards: cap track width so cards match ~3-up sizing on wide screens */
.card-grid--uniform {
  grid-template-columns: repeat(auto-fit, minmax(280px, 380px));
  justify-content: start;
}

/* Fixed three-up layout: same proportions as a full row on index popular services */
.card-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 960px) {
  .card-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .card-grid--3 {
    grid-template-columns: 1fr;
  }
}

.section-cta-slim {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 0.55rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(245, 183, 53, 0.42);
  background: linear-gradient(180deg, rgba(255, 251, 238, 0.98) 0%, rgba(255, 245, 222, 0.99) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #314358;
  /* Match two capped service cards (.card-grid--uniform uses 380px max tracks + same gap as .card-grid) */
  width: 100%;
  max-width: min(100%, calc(380px * 2 + 1.5rem));
  box-sizing: border-box;
}

.section-cta-slim-text {
  margin: 0;
  flex: 1 1 12rem;
}

.section-cta-slim-action {
  flex-shrink: 0;
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.82rem;
  color: var(--navy-3);
  text-decoration: none;
  white-space: nowrap;
}

.section-cta-slim-action:hover {
  color: var(--gold-deep);
  text-decoration: none;
}

.section-alt .section-cta-slim {
  background: linear-gradient(180deg, #fff6e4 0%, #ffefd0 100%);
  border-color: rgba(200, 141, 29, 0.38);
}

/* Services page CTA spacing after replacing slim yellow strips */
.services-page .card-grid + .cta-band,
.services-page .card-grid--uniform + .cta-band {
  margin-top: 1.75rem;
}

.card {
  --card-text-lines: 5;
  --card-text-line-height: 1.45;
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #dde5f1;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--stone-100);
  object-fit: cover;
  object-position: center;
  display: block;
  flex-shrink: 0;
}

.card-link-wrap > picture,
.card > picture {
  flex-shrink: 0;
  width: 100%;
  display: block;
}

.card-image-placeholder,
.case-teaser-image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
  border: 1px dashed #b7c7dc;
  border-radius: 14px;
  background:
    linear-gradient(140deg, rgba(13, 38, 68, 0.08), rgba(245, 183, 53, 0.14)),
    repeating-linear-gradient(135deg, rgba(16, 44, 79, 0.06) 0 12px, rgba(255, 255, 255, 0.4) 12px 24px),
    #f4f8ff;
  color: #375474;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.8rem;
}

.placeholder-title {
  text-transform: uppercase;
  font-family: "Rajdhani", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.placeholder-size {
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: #4a617f;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(112, 137, 166, 0.35);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}

.card-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.card-title {
  font-size: 1.28rem;
  font-weight: 700;
  font-family: "Rajdhani", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

/* Reserve two title lines so row alignment stays even with a one-line heading */
.card .card-title {
  flex-shrink: 0;
  min-height: calc(1.2em * 2);
}

.card-text {
  color: #3a495d;
  font-size: 0.9375rem;
}

/* Fixed-height excerpt area; keep -webkit-line-clamp in sync with --card-text-lines */
.card .card-text {
  margin: 0;
  line-height: var(--card-text-line-height);
  flex: 0 0 auto;
  min-height: calc(var(--card-text-line-height) * 1em * var(--card-text-lines));
  max-height: calc(var(--card-text-line-height) * 1em * var(--card-text-lines));
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  overflow: hidden;
}

.card-link-wrap {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.card-link-wrap > .card-image-placeholder,
.card-link-wrap > .card-image,
.card-link-wrap > picture .card-image {
  flex-shrink: 0;
}

.card > .card-image-placeholder,
.card > .card-image,
.card > picture .card-image {
  flex-shrink: 0;
}

.card-link-wrap:hover {
  text-decoration: none;
  color: inherit;
}

.card-link-wrap .card-title {
  color: var(--navy);
}

.card-link-wrap:hover .card-title {
  color: var(--navy);
}

.card-link {
  font-weight: 600;
  color: var(--navy-3);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.card .card-link {
  margin-top: auto;
  flex-shrink: 0;
  padding-top: 0.85rem;
}

.card-link-wrap:hover .card-link {
  color: var(--gold-deep);
}

.card-link:hover {
  color: var(--gold-deep);
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-list li {
  padding: 0.86rem 0;
  border-bottom: 1px dashed #d8e0eb;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.service-list li:last-child {
  border-bottom: none;
}

.service-list .icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #ffd16b 0%, #f5b735 100%);
  border-radius: 8px;
  opacity: 0.9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.service-list .icon::after {
  content: "✓";
  color: #08203b;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.faq-accordion {
  margin-top: 1rem;
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  border: 1px solid #d6dfeb;
  border-radius: 14px;
  background: #fff;
  overflow: clip;
}

.faq-question {
  margin: 0;
}

.faq-toggle {
  width: 100%;
  border: 0;
  margin: 0;
  background: transparent;
  color: var(--navy);
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.faq-toggle:hover {
  background: #f7faff;
}

.faq-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

.faq-icon {
  width: 1rem;
  height: 1rem;
  position: relative;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #5f7391;
  border-radius: 99px;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-toggle[aria-expanded="true"] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-panel {
  padding: 0 1.15rem 1rem;
  color: #33485f;
}

.faq-panel p {
  margin: 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.why-choose-grid {
  align-items: center;
}

.why-choose-media {
  display: grid;
  gap: 1rem;
}

.why-choose-media .card-image {
  border-radius: 14px;
}

.why-choose-copy .section-title {
  margin-top: 0;
}

.why-choose-copy .lead:last-child {
  margin-bottom: 0;
}

/*
 * Inline links in main body copy (not header/nav/footer).
 * Skips page heroes (.hero), primary buttons, full-card links, and slim CTA strips.
 * Hero inline links keep .hero .lead a (light text / gold) where used.
 */
main section:not(.hero) a:not(.btn, .btn-primary, .btn-secondary, .btn-outline, .card-link-wrap, .section-cta-slim-action) {
  color: var(--navy-2);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(200, 141, 29, 0.85);
  text-decoration-thickness: 0.14em;
  text-underline-offset: 0.22em;
  transition:
    color 0.16s ease,
    text-decoration-color 0.16s ease,
    background-color 0.16s ease,
    box-shadow 0.16s ease;
}

main section:not(.hero) a:not(.btn, .btn-primary, .btn-secondary, .btn-outline, .card-link-wrap, .section-cta-slim-action):hover {
  color: var(--navy);
  text-decoration-color: var(--gold);
  background-color: rgba(245, 183, 53, 0.18);
  box-shadow: 0 0 0 1px rgba(245, 183, 53, 0.35);
  border-radius: 3px;
}

main section:not(.hero) a:not(.btn, .btn-primary, .btn-secondary, .btn-outline, .card-link-wrap, .section-cta-slim-action):focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 3px;
}

.two-col--reverse {
  direction: rtl;
}

.two-col--reverse > * {
  direction: ltr;
}

@media (max-width: 1024px) {
  .two-col {
    grid-template-columns: 1fr;
  }

  .two-col--reverse {
    direction: ltr;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  background: linear-gradient(180deg, #091b33 0%, #081427 100%);
  color: var(--white);
  padding: 3rem 1rem 1.5rem;
  margin-top: 3rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.88);
}

.site-footer a:hover {
  color: #ffd16b;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Wider first column so the company name heading stays on one line */
@media (min-width: 960px) {
  .footer-inner {
    grid-template-columns: minmax(380px, 2.35fr) minmax(140px, 1fr) minmax(140px, 1fr) minmax(140px, 1fr);
  }
}

.footer-col h3 {
  font-size: 1.15rem;
  font-weight: 700;
  font-family: "Rajdhani", sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  color: var(--white);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-hours {
  margin: 1.1rem 0 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.76);
}


.case-teaser {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid #e1e7f0;
}

.case-teaser:first-child {
  padding-top: 0;
}

.case-teaser:last-child {
  border-bottom: none;
}

@media (max-width: 640px) {
  .case-teaser {
    grid-template-columns: 1fr;
  }
}

.case-teaser-image {
  aspect-ratio: 16 / 9;
  background: var(--stone-100);
  border-radius: 14px;
  object-fit: cover;
}

.case-teaser-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.case-teaser-meta {
  font-size: 0.875rem;
  color: #58667b;
  margin-bottom: 0.5rem;
}

.case-study-featured {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.case-study-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9375rem;
  color: #58667b;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e1e7f0;
}

.case-study-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.case-study-body h2 {
  font-size: 1.55rem;
  font-weight: 700;
  font-family: "Rajdhani", sans-serif;
  text-transform: uppercase;
  color: var(--navy);
  margin: 1.75rem 0 0.75rem;
}

.case-study-body h2:first-child {
  margin-top: 0;
}

.case-study-body p {
  margin: 0 0 1rem;
}

.case-study-body ul {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.case-study-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  font-family: "Rajdhani", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--navy);
  margin: 1.5rem 0 0.5rem;
}

.case-study-body section > section:first-child h3 {
  margin-top: 1rem;
}

.case-study-body dl {
  margin: 0 0 1rem;
}

.case-study-body dt {
  margin-top: 1rem;
  font-weight: 700;
  color: var(--navy);
}

.case-study-body dt:first-child {
  margin-top: 0;
}

.case-study-body dd {
  margin: 0.35rem 0 0;
  padding-left: 0;
  color: var(--ink);
}

.project-detail-hero-media {
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.project-detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 0;
}

@media (max-width: 640px) {
  .project-detail-gallery {
    grid-template-columns: 1fr;
  }
}

.breadcrumb {
  font-size: 0.875rem;
  color: #5e6f86;
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: #445875;
}

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.kicker {
  display: inline-flex;
  font-family: "Rajdhani", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  color: #eec25d;
  margin-bottom: 0.5rem;
}

.trust-strip {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.trust-strip span {
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-size: 1rem;
}

.hero-trust-band {
  background: var(--stone-50);
  border-top: 1px solid rgba(11, 31, 58, 0.08);
  border-bottom: none;
  padding: 1.35rem 0;
}

.hero-trust-band .trust-strip {
  margin-top: 0;
  justify-content: center;
}

.hero-trust-band .trust-strip span {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #d0d8e4;
  color: var(--navy);
  font-weight: 600;
}

@media (max-width: 1024px) {
  /* Balanced pill grid instead of 3+1 wrap on tablet / narrow widths */
  .hero-trust-band .trust-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    max-width: 640px;
    margin-inline: auto;
    justify-content: stretch;
  }

  .hero-trust-band .trust-strip span {
    justify-self: stretch;
    text-align: center;
    font-size: clamp(0.84rem, 2.8vw, 1rem);
    padding-inline: clamp(0.55rem, 3vw, 0.85rem);
  }
}

@media (max-width: 1200px) {
  /* Let long headlines wrap cleanly on tablet portrait + landscape */
  .hero-title-line1 {
    white-space: normal;
  }

  /* Match horizontal padding so the gold stripe lines up with .container gutters */
  .hero > .container {
    padding-left: clamp(1rem, 3.8vw, 1.35rem);
  }

  .hero.hero-with-bg {
    padding-top: clamp(3.85rem, 11vw, 6rem);
    padding-bottom: clamp(3.25rem, 9vw, 5rem);
    min-height: clamp(440px, 52vh, 560px);
  }

  .hero .lead {
    font-size: clamp(1rem, 2.4vw + 0.85rem, 1.08rem);
  }

  .container {
    padding-inline: clamp(1rem, 3.8vw, 1.35rem);
  }

  .section {
    padding: clamp(2.85rem, 8vw, 4rem) 0;
  }
}

.feature-panel {
  background: #fff;
  border: 1px solid #dde5f1;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  padding: 1.35rem;
}

.contact-page .two-col {
  align-items: stretch;
}

.contact-page .two-col > .feature-panel {
  height: 100%;
}

.contact-form-section {
  padding-top: 0;
}

.contact-form-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(820px 280px at 88% -6%, rgba(255, 209, 107, 0.22) 0%, transparent 58%),
    radial-gradient(520px 220px at 88% 108%, rgba(245, 183, 53, 0.14) 0%, transparent 62%),
    linear-gradient(140deg, #0d2644 0%, #173b64 58%, #102f52 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 22px 44px rgba(7, 19, 36, 0.28);
}

.contact-form-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 42%);
  pointer-events: none;
}

.contact-form-panel > * {
  position: relative;
  z-index: 1;
}

.contact-form-panel .section-title {
  color: #fff;
}

.contact-form-intro {
  margin-top: 0;
  margin-bottom: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
}

.contact-form {
  position: relative;
  display: grid;
  gap: 1rem;
}

.contact-form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: 0;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: 0.4rem;
}

.form-field label {
  font-family: "Rajdhani", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f2f7ff;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: #10263f;
  font: inherit;
  padding: 0.78rem 0.9rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(200, 141, 29, 0.18);
  outline: none;
}

.contact-form .btn {
  justify-self: start;
}

.trusted-by-section {
  padding-top: 3.25rem;
  padding-bottom: 3.25rem;
  margin: 0;
  width: 100%;
  background:
    linear-gradient(180deg, rgba(232, 239, 250, 1) 0%, rgba(240, 246, 255, 0.98) 55%, rgba(255, 255, 255, 0.55) 100%);
}

.trusted-by-inner {
  text-align: center;
}

.trusted-by-heading {
  margin: 0 0 1.85rem;
}

.trusted-by-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  max-width: 840px;
  margin: 0 auto;
}

.trusted-logo-slot {
  min-height: 88px;
  border-radius: 14px;
  border: 1px dashed #9eb4d0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px rgba(11, 31, 58, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.65rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #4a617f;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.trusted-logo-slot--image {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  min-height: 0;
}

.trusted-logo-slot img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 100px;
  height: auto;
  object-fit: contain;
}

.cta-band {
  background: linear-gradient(142deg, #0a1f39 0%, #113157 100%);
  color: #fff;
  border-radius: 24px;
  padding: 2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.6fr 1fr;
  align-items: center;
}

.cta-band h2 {
  margin: 0;
  color: #fff;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.leak-page .section {
  padding: 4.6rem 0;
  position: relative;
}

.leak-hero {
  min-height: 540px;
  isolation: isolate;
}

.leak-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 320px at 82% 12%, rgba(255, 209, 107, 0.18), transparent 70%),
    linear-gradient(160deg, rgba(8, 22, 41, 0.52), rgba(8, 22, 41, 0.2));
  z-index: 0;
}

.leak-hero .container {
  position: relative;
  z-index: 1;
}

.leak-page .hero .page-title {
  max-width: 22ch;
}

.leak-page .hero .lead {
  max-width: 62ch;
}

.leak-intro {
  margin-top: -2rem;
}

.leak-intro-copy {
  padding-top: 0.6rem;
}

.leak-intro-copy p {
  font-size: 1.08rem;
  line-height: 1.75;
  color: #20344d;
}

.leak-page .feature-panel {
  height: 100%;
  border: 1px solid #d6e0ee;
  box-shadow: 0 18px 36px rgba(8, 24, 45, 0.09);
}

.leak-prose p {
  max-width: 68ch;
}

.leak-prose h3 {
  font-family: "Rajdhani", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
  margin: 1.35rem 0 0.4rem;
}

.leak-quickfacts .section-title {
  margin-bottom: 0.8rem;
}

.leak-lead-tight {
  max-width: 72ch;
}

.leak-card-grid {
  margin-top: 1.35rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
}

.leak-cause-list {
  margin-top: 1.4rem;
  display: grid;
  gap: 1rem;
}

.leak-cause-row {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(320px, 1.05fr);
  gap: 1rem;
  align-items: stretch;
  background: linear-gradient(155deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #d2ddec;
  border-radius: 20px;
  padding: 0.9rem;
  box-shadow: 0 14px 26px rgba(8, 24, 45, 0.08);
}

.leak-cause-row--reverse {
  grid-template-columns: minmax(320px, 1.05fr) minmax(260px, 0.95fr);
}

.leak-cause-row--reverse .leak-cause-media {
  order: 2;
}

.leak-cause-row--reverse .leak-cause-copy {
  order: 1;
}

.leak-cause-media {
  margin: 0;
}

.leak-cause-media .leak-image-slot-media {
  height: 100%;
  min-height: 220px;
  aspect-ratio: auto;
}

.leak-cause-media figcaption {
  margin-top: 0.5rem;
  color: #5c718b;
  font-size: 0.82rem;
}

.leak-cause-copy {
  padding: 0.35rem 0.25rem 0.35rem 0.1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.leak-cause-copy .card-title {
  margin-bottom: 0.55rem;
}

.leak-cause-copy .card-text {
  margin: 0;
  max-width: 56ch;
  font-size: 0.99rem;
}

.leak-card {
  border-radius: 20px;
  border: 1px solid #d2ddec;
  box-shadow: 0 14px 26px rgba(8, 24, 45, 0.08);
  background: linear-gradient(165deg, #ffffff 0%, #f9fbff 100%);
  display: flex;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.leak-card::before,
.leak-step-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #f5b735, #ffd97f);
}

.leak-card .card-body,
.leak-step-card .card-body {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.leak-card .card-text,
.leak-step-card .card-text {
  margin-bottom: 0;
  min-height: 0;
  max-height: none;
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
}

.leak-card .card-title {
  margin-bottom: 0.4rem;
}

.leak-card .card-text {
  font-size: 0.98rem;
  color: #33465e;
}

.leak-steps-grid {
  margin-top: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.leak-step-card {
  background: linear-gradient(160deg, #ffffff 0%, #f7faff 100%);
  display: flex;
  height: 100%;
}

.leak-step-number {
  margin: 0 0 0.5rem;
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: #b07b14;
}

.leak-image-band {
  padding-top: 0;
}

.leak-image-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

.leak-image-slot {
  margin: 0;
}

.leak-image-slot-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  border: 1px solid #ccd9ea;
  background:
    linear-gradient(140deg, rgba(13, 38, 68, 0.1), rgba(245, 183, 53, 0.16)),
    repeating-linear-gradient(135deg, rgba(16, 44, 79, 0.08) 0 12px, rgba(255, 255, 255, 0.22) 12px 24px),
    #f4f8ff;
  box-shadow: 0 16px 34px rgba(10, 27, 49, 0.1);
  position: relative;
  overflow: hidden;
}

.leak-image-slot-media::before {
  content: "Add project photo";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #35506e;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(112, 137, 166, 0.4);
  border-radius: 999px;
  padding: 0.42rem 0.8rem;
}

.leak-image-slot figcaption {
  margin-top: 0.55rem;
  color: #5c718b;
  font-size: 0.85rem;
}

.leak-image-slot--wide .leak-image-slot-media {
  aspect-ratio: 21 / 8;
}

.leak-inline-image {
  margin: 1.2rem 0 0;
}

.leak-inline-image .leak-image-slot-media {
  aspect-ratio: 16 / 9;
}

@media (max-width: 1100px) {
  .leak-steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .leak-image-grid {
    grid-template-columns: 1fr;
  }

  .leak-cause-row,
  .leak-cause-row--reverse {
    grid-template-columns: 1fr;
  }

  .leak-cause-row--reverse .leak-cause-media,
  .leak-cause-row--reverse .leak-cause-copy {
    order: initial;
  }

  .leak-cause-media .leak-image-slot-media {
    min-height: 200px;
    aspect-ratio: 16 / 9;
  }
}

@media (hover: hover) and (pointer: fine) {
  .leak-card,
  .leak-step-card,
  .leak-page .feature-panel {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  }

  .leak-card:hover,
  .leak-step-card:hover,
  .leak-page .feature-panel:hover {
    transform: translateY(-5px);
    border-color: #c2d0e3;
    box-shadow: 0 24px 42px rgba(8, 24, 45, 0.13);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .leak-hero .kicker,
  .leak-hero .page-title,
  .leak-hero .lead,
  .leak-hero .hero-actions,
  .leak-hero .trust-strip {
    opacity: 0;
    transform: translateY(12px);
    animation: leakFadeUp 0.6s ease forwards;
  }

  .leak-hero .page-title { animation-delay: 0.08s; }
  .leak-hero .lead { animation-delay: 0.16s; }
  .leak-hero .hero-actions { animation-delay: 0.24s; }
  .leak-hero .trust-strip { animation-delay: 0.32s; }
}

@keyframes leakFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
  .hero-actions {
    justify-content: flex-start;
  }

  .cta-band {
    grid-template-columns: 1fr;
    padding: 1.45rem;
  }

  .cta-band-actions {
    justify-content: flex-start;
  }

  .leak-page .section {
    padding: 3.5rem 0;
  }

  .leak-intro {
    margin-top: 0;
  }

  .leak-hero {
    min-height: 500px;
  }

  .leak-card-grid,
  .leak-steps-grid {
    grid-template-columns: 1fr;
  }

  .leak-image-slot--wide .leak-image-slot-media {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 480px) {
  .trusted-by-section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}

/* Services page — spotlight panels (insurance, commercial, etc.) */
.services-spotlight {
  padding-top: 2.75rem;
  padding-bottom: 2.75rem;
}

.services-spotlight .feature-panel {
  border-left: 4px solid var(--gold);
  box-shadow: 0 14px 28px rgba(8, 24, 45, 0.09);
}

.services-spotlight-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

.services-spotlight-title {
  margin-bottom: 0.65rem;
}

.services-spotlight .lead {
  margin-bottom: 0;
  max-width: 58ch;
}

.services-spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.services-spotlight + .services-spotlight {
  padding-top: 0;
}

@media (max-width: 1024px) {
  .services-spotlight-grid {
    grid-template-columns: 1fr;
  }

  .services-spotlight-actions {
    justify-content: flex-start;
  }
}

/* About page refresh */
.about-page .about-hero {
  padding-top: 5.8rem;
  padding-bottom: 5rem;
}

.about-story {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fd 100%);
}

.about-story-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.15rem;
  align-items: stretch;
}

.about-story-panel {
  margin: 0;
}

.about-license-card {
  background: linear-gradient(145deg, #0b1f3a 0%, #16375e 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  color: var(--white);
}

.about-license-card .section-title {
  color: var(--white);
}

.about-license-card p {
  margin: 0 0 0.8rem;
  color: rgba(255, 255, 255, 0.92);
}

.about-license-card .btn {
  margin-top: 0.45rem;
}

.about-team-wrap {
  background: var(--stone-50);
}

.about-team-title {
  text-align: center;
  color: var(--navy);
  margin-bottom: 0.8rem;
}

.about-team-intro {
  text-align: center;
  max-width: 70ch;
  margin: 0 auto 2rem;
  color: #324559;
}

.about-team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.about-team-card {
  background: #f7f8fb;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(10, 24, 42, 0.1);
  border: 1px solid #d4dce8;
  padding: 1.15rem;
  text-align: center;
}

.about-team-card img {
  width: 122px;
  height: 122px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.9rem;
  border: 3px solid #f1c98a;
}

.about-team-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.28rem;
  color: var(--navy);
  font-family: "Rajdhani", sans-serif;
}

.about-team-role {
  margin: 0 0 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gold-deep);
  font-size: 0.8rem;
}

.about-team-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #405263;
}

@media (max-width: 1024px) {
  .about-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-story-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .about-team-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Project showcase — portfolio detail (e.g. Albuquerque project page)
   Editorial layout: navy hero without duplicating the inline hero photo,
   spec “cards”, challenge callout, staggered entrance (respects reduced motion).
   -------------------------------------------------------------------------- */

@keyframes showcase-reveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.project-showcase {
  background:
    radial-gradient(ellipse 120% 80% at 100% -20%, rgba(245, 183, 53, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(16, 44, 79, 0.06), transparent 45%),
    linear-gradient(168deg, #f5f8fc 0%, #faf7f0 38%, #ffffff 100%);
}

body.project-showcase .project-showcase-hero.hero {
  padding: 4.25rem 0 4.75rem;
  background-color: #0d2847;
}

body.project-showcase .project-showcase-hero .kicker {
  letter-spacing: 0.18em;
  color: #ffd88a;
  margin-bottom: 0.65rem;
}

body.project-showcase .project-showcase-hero .page-title {
  max-width: 20ch;
  line-height: 1.02;
  letter-spacing: 0.045em;
  text-shadow: 0 12px 36px rgba(3, 8, 14, 0.55);
}

body.project-showcase .project-showcase-hero .lead {
  font-size: 1.17rem;
  line-height: 1.65;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.88);
}

body.project-showcase .project-reveal {
  opacity: 0;
  animation: showcase-reveal 0.82s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body.project-showcase .project-reveal-1 {
  animation-delay: 0.06s;
}

body.project-showcase .project-reveal-2 {
  animation-delay: 0.16s;
}

body.project-showcase .project-reveal-3 {
  animation-delay: 0.26s;
}

body.project-showcase .project-reveal-4 {
  animation-delay: 0.36s;
}

body.project-showcase .project-reveal-5 {
  animation-delay: 0.46s;
}

body.project-showcase .project-reveal-6 {
  animation-delay: 0.56s;
}

@media (prefers-reduced-motion: reduce) {
  body.project-showcase .project-reveal {
    opacity: 1;
    animation: none;
    transform: none;
  }
}

body.project-showcase .project-showcase-content.section {
  padding-top: 2.5rem;
}

body.project-showcase .project-showcase-photo-wrap {
  position: relative;
  margin: 0 0 2.5rem;
  padding: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy);
  box-shadow:
    0 4px 0 rgba(245, 183, 53, 0.35),
    0 32px 56px rgba(8, 24, 45, 0.22);
}

body.project-showcase .project-showcase-photo-wrap > picture {
  display: block;
  width: 100%;
}

body.project-showcase .project-showcase-photo-wrap .case-study-featured.project-detail-hero-media,
body.project-showcase .project-showcase-photo-wrap picture .case-study-featured.project-detail-hero-media {
  margin-bottom: 0;
  border-radius: 0;
  box-shadow: none;
}

body.project-showcase .project-showcase-photo-cap {
  margin: 0;
  padding: 0.75rem 1.15rem 0.95rem;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(180deg, rgba(8, 26, 47, 0.55), rgba(8, 26, 47, 0.92));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.project-showcase .project-spec-grid {
  list-style: none;
  margin: 0 0 3rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 960px) {
  body.project-showcase .project-spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  body.project-showcase .project-spec-grid {
    grid-template-columns: 1fr;
  }
}

body.project-showcase .project-spec-grid > li {
  margin: 0;
  padding: 1.05rem 1.15rem 1.1rem;
  background: var(--white);
  border: 1px solid rgba(11, 31, 58, 0.09);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(11, 31, 58, 0.07);
}

body.project-showcase .project-spec-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: "Rajdhani", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--gold-deep);
  margin-bottom: 0.35rem;
}

body.project-showcase .project-spec-value {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.45;
}

/*
  Scope (2nd row) & project type (4th row): hidden until copy is verified.
  Markup stays in HTML—delete this rule to show both again with the existing 4-up grid.
*/
body.project-showcase .project-spec-grid > li:nth-child(2),
body.project-showcase .project-spec-grid > li:nth-child(4) {
  display: none !important;
}

body.project-showcase .case-study-body {
  max-width: 44rem;
  --ps-section-gap: 2.875rem;
  --ps-h2-below: 1.25rem;
  --ps-paragraph-gap: 1.125rem;
}

body.project-showcase .case-study-body > section + section {
  margin-top: var(--ps-section-gap);
}

body.project-showcase .case-study-body > section + .project-showcase-gallery {
  margin-top: var(--ps-section-gap);
}

body.project-showcase .case-study-body > .project-showcase-gallery + section {
  margin-top: var(--ps-section-gap);
}

body.project-showcase .case-study-body p {
  margin: 0 0 var(--ps-paragraph-gap);
  line-height: 1.68;
}

body.project-showcase .case-study-body h2 {
  margin: 0 0 var(--ps-h2-below);
}

body.project-showcase .case-study-body h3 {
  margin: 1.875rem 0 0.6875rem;
  color: var(--navy-3);
}

body.project-showcase .case-study-body h3:first-of-type {
  margin-top: 1.5rem;
}

body.project-showcase .project-challenge-callout {
  margin: 1.375rem 0 0;
  padding: 1.35rem 1.4rem 1.35rem 1.2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  border-left: 4px solid var(--gold);
  background: linear-gradient(105deg, rgba(245, 183, 53, 0.12), rgba(255, 255, 255, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body.project-showcase .project-challenge-list {
  margin: 0;
  padding-left: 1.25rem;
}

body.project-showcase .project-challenge-list li {
  margin-bottom: 0.6875rem;
  line-height: 1.58;
}

body.project-showcase .project-challenge-list li:last-child {
  margin-bottom: 0;
}

body.project-showcase .project-showcase-gallery.project-detail-gallery {
  gap: 1.75rem;
  margin-top: 0;
  margin-bottom: 0;
  row-gap: 2rem;
  column-gap: 2rem;
}

@media (max-width: 640px) {
  body.project-showcase .project-showcase-gallery.project-detail-gallery {
    row-gap: 1.75rem;
    column-gap: 1.75rem;
  }
}

body.project-showcase .project-showcase-gallery .card-image-placeholder {
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: no-preference) {
  body.project-showcase .project-showcase-gallery .card-image-placeholder:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 40px rgba(11, 31, 58, 0.14);
  }
}

/* Project detail carousel */
.project-gallery-section {
  padding-top: 1rem;
  scroll-margin-top: 1rem;
}

.project-gallery-section .project-gallery-title {
  margin-top: 0;
  margin-bottom: 1rem;
  font-family: var(--heading-font-family, inherit);
}

body.project-showcase .case-study-body--compact > section:first-child > h2 {
  margin-top: 0;
}

body.project-showcase .case-study-body--compact > section + section {
  margin-top: 1rem;
}

body.project-showcase .project-carousel-mount {
  margin-top: 0;
}

body.project-showcase .project-carousel {
  display: grid;
  gap: 0.875rem;
  outline: none;
}

body.project-showcase .project-carousel:focus-visible {
  box-shadow: 0 0 0 3px rgba(238, 179, 55, 0.45);
  border-radius: 16px;
}

body.project-showcase .project-carousel-stage {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(11, 31, 58, 0.09);
  box-shadow: 0 10px 28px rgba(11, 31, 58, 0.07);
  min-height: min(56vw, 640px);
}

body.project-showcase .project-carousel-main-img {
  width: 100%;
  height: 100%;
  min-height: min(56vw, 640px);
  max-height: min(78vh, 860px);
  object-fit: contain;
  display: block;
  background: transparent;
}

body.project-showcase .project-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(11, 31, 58, 0.14);
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy);
  font-size: 1.85rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(11, 31, 58, 0.08);
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

body.project-showcase .project-carousel-nav:hover {
  background: #fff;
  border-color: rgba(238, 179, 55, 0.65);
  color: var(--navy);
  box-shadow: 0 8px 22px rgba(11, 31, 58, 0.1);
}

body.project-showcase .project-carousel-nav--prev {
  left: clamp(0.65rem, 3vw, 1.1rem);
}

body.project-showcase .project-carousel-nav--next {
  right: clamp(0.65rem, 3vw, 1.1rem);
}

@media (max-width: 560px) {
  body.project-showcase .project-carousel-stage {
    min-height: min(64vw, 540px);
  }

  body.project-showcase .project-carousel-main-img {
    min-height: min(64vw, 540px);
  }

  body.project-showcase .project-carousel-nav {
    width: 2.35rem;
    height: 2.35rem;
    font-size: 1.55rem;
  }
}

body.project-showcase .project-carousel-counter {
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  color: #5e6f86;
  letter-spacing: 0.02em;
}

body.project-showcase .project-carousel-thumbs {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.35rem 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

body.project-showcase .project-carousel-thumb {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 84px;
  height: 56px;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  background: none;
  cursor: pointer;
  opacity: 0.86;
  transition:
    border-color 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}

body.project-showcase .project-carousel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.project-showcase .project-carousel-thumb:hover {
  opacity: 1;
}

body.project-showcase .project-carousel-thumb.is-active {
  opacity: 1;
  border-color: var(--gold, #eec25d);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  body.project-showcase .project-carousel-thumb.is-active {
    transform: none;
  }
}

/* Realtors landing */
.realtors-page .realtors-landing-lead {
  margin-top: 0;
  max-width: 48rem;
}

.realtors-page .realtors-services-grid {
  margin-top: 1.5rem;
  align-items: stretch;
}

.realtors-page .realtors-card-header {
  margin-bottom: 0.75rem;
}

.realtors-page .realtors-card-header .section-title {
  margin-top: 0;
  margin-bottom: 0.28rem;
  line-height: 1.12;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
}

.realtors-page .realtors-card-subline {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  color: #3d5168;
  letter-spacing: 0.01em;
  text-transform: none;
  font-family: "Work Sans", system-ui, sans-serif;
}

.realtors-page .realtors-services-grid .feature-panel > p {
  margin-top: 0;
}
