/* Image reliability and trust-section card polish. */
.why-trust {
  width: min(var(--max), calc(100% - 48px));
  margin: 34px auto 0;
  padding: 54px 0 34px;
}

.why-trust .section-head {
  margin-bottom: 34px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.trust-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(65, 195, 255, 0.17);
  border-radius: 18px;
  background:
    radial-gradient(circle at 85% 0%, rgba(0, 140, 255, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    rgba(7, 14, 26, 0.76);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.trust-card:hover {
  transform: translateY(-6px);
  border-color: rgba(65, 195, 255, 0.38);
  box-shadow: 0 0 0 1px rgba(65, 195, 255, 0.16), 0 22px 80px rgba(0, 140, 255, 0.16);
}

.trust-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, #0078ff, #28c9ff);
  box-shadow: 0 0 24px rgba(0, 140, 255, 0.24);
}

.trust-card svg {
  width: 22px;
  height: 22px;
}

.trust-card h3 {
  margin: 20px 0 0;
  color: white;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.18;
}

.trust-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}

.service-card-media,
.plan-card-media,
.project-card > img,
.blog-card > img,
.split figure > img {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: cover;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 168, 255, 0.18), transparent 30%),
    linear-gradient(135deg, #02070d, #07111f);
}

.service-card-media,
.plan-card-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
}

.plan-card {
  display: flex !important;
  flex-direction: column;
  padding: 0 !important;
  overflow: hidden;
}

.plan-card-media::after,
.blog-card::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.plan-card-media::after {
  background: linear-gradient(180deg, rgba(2, 5, 11, 0.02), rgba(2, 5, 11, 0.72));
}

.plan-card-body,
.blog-card-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.blog-card::after {
  top: 0;
  bottom: auto;
  height: min(56%, 260px);
  background:
    linear-gradient(180deg, rgba(2, 5, 11, 0.03), rgba(2, 5, 11, 0.72)),
    radial-gradient(circle at 74% 80%, rgba(0, 140, 255, 0.24), transparent 40%);
}

.blog-card > img,
.project-card > img,
.plan-card-media img,
.service-card-media img {
  transition: transform 420ms ease, filter 420ms ease;
}

.blog-card:hover > img,
.project-card:hover > img,
.plan-card:hover .plan-card-media img,
.service-card:hover .service-card-media img {
  transform: scale(1.06);
  filter: saturate(1.1) contrast(1.08);
}

.blog-card b,
.project-card b,
.service-card b,
.plan-card b {
  margin-top: auto;
  padding-top: 18px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.location-card {
  display: flex !important;
  flex-direction: column;
  padding: 0 !important;
  overflow: hidden;
}

.location-list.location-card-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hero.location-hero {
  min-height: 260px !important;
  max-height: 260px !important;
  height: 260px !important;
}

.hero.location-hero .hero-copy {
  padding-top: 82px !important;
  padding-bottom: 22px !important;
}

.hero.location-hero h1 {
  max-width: 780px !important;
  font-size: clamp(30px, 3.4vw, 42px) !important;
}

.hero.location-hero p:not(.eyebrow) {
  max-width: 720px !important;
}

.location-directory {
  padding-top: 28px !important;
}

.location-browser-card {
  width: min(1040px, 100%);
  margin: 0 auto 22px;
  padding: 24px;
  border: 1px solid rgba(65, 195, 255, 0.22);
  border-radius: 20px;
  background:
    radial-gradient(circle at 12% 12%, rgba(0, 168, 255, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025)),
    rgba(6, 14, 26, 0.82);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.28), 0 0 34px rgba(0, 153, 224, 0.08);
  backdrop-filter: blur(18px);
}

.location-head {
  align-items: center;
  gap: 12px;
  margin-bottom: 18px !important;
  text-align: center;
}

.location-head h2 {
  max-width: 840px;
  margin: 0 auto;
  font-size: clamp(28px, 3vw, 38px) !important;
}

.location-head p {
  max-width: 760px;
  margin: 0 auto;
  color: #aebed4;
}

.location-browser-card .location-tools {
  justify-content: center;
  margin: 18px auto 0 !important;
}

.location-list.large .location-card {
  min-width: 0;
}

.location-card figure {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 12px;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 168, 255, 0.18), transparent 30%),
    linear-gradient(135deg, #02070d, #07111f);
}

.location-card figure::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(2, 5, 11, 0.05), rgba(2, 5, 11, 0.68)),
    radial-gradient(circle at 70% 80%, rgba(0, 140, 255, 0.24), transparent 42%);
}

.location-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease, filter 420ms ease;
}

.location-card:hover img {
  transform: scale(1.06);
  filter: saturate(1.1) contrast(1.08);
}

.location-card strong,
.location-card span {
  margin-right: 14px;
  margin-left: 14px;
}

.location-card strong {
  color: #fff;
  font-size: 15px;
  letter-spacing: 0;
  line-height: 1.2;
}

.location-card span {
  color: #9db3cf;
  font-size: 12px;
  line-height: 1.35;
}

.location-card .location-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid rgba(65, 195, 255, 0.34);
  border-radius: 999px;
  background: rgba(2, 8, 18, 0.76);
  color: #e9f7ff;
  box-shadow: 0 0 18px rgba(0, 153, 224, 0.2);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.location-card span:last-child {
  margin-bottom: 14px;
}

.stat-strip {
  display: none !important;
}

.service-use-cases,
.before-after,
.authority-panel,
.resource-intro,
.seo-link-rail,
.local-seo-proof {
  position: relative;
}

.use-case-grid,
.before-after-grid,
.authority-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.use-case-grid article,
.authority-panel,
.seo-link-rail a,
.local-seo-proof,
.before-after figure {
  border: 1px solid rgba(65, 195, 255, 0.18);
  border-radius: 20px;
  background:
    radial-gradient(circle at 18% 0%, rgba(0, 168, 255, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    rgba(6, 14, 26, 0.74);
  box-shadow: 0 22px 72px rgba(0, 0, 0, 0.26);
}

.use-case-grid article {
  padding: 24px;
}

.use-case-grid span,
.authority-grid span svg {
  color: #34c8ff;
}

.use-case-grid svg {
  width: 24px;
  height: 24px;
}

.use-case-grid h3 {
  margin: 18px 0 8px;
  color: white;
  font-size: clamp(18px, 1.4vw, 22px);
}

.use-case-grid p,
.before-after figcaption,
.authority-panel p {
  color: #aebed4;
  line-height: 1.65;
}

.before-after-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.before-after figure {
  margin: 0;
  overflow: hidden;
}

.before-after img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.before-after figcaption {
  padding: 16px 18px 18px;
  font-size: 14px;
}

.authority-panel,
.local-seo-proof {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: center;
  gap: 24px;
}

.authority-panel {
  padding: 28px;
}

.authority-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.authority-grid span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px;
  border: 1px solid rgba(65, 195, 255, 0.16);
  border-radius: 14px;
  color: #eaf7ff;
  background: rgba(255, 255, 255, 0.035);
}

.authority-grid svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.seo-link-rail > div:last-child {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.seo-link-rail a {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  color: white;
  font-weight: 800;
  text-decoration: none;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.seo-link-rail a:hover {
  transform: translateY(-4px);
  border-color: rgba(65, 195, 255, 0.38);
  box-shadow: 0 0 28px rgba(0, 140, 255, 0.14);
}

.seo-link-rail span {
  color: #34c8ff;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.local-seo-proof {
  width: min(var(--max), calc(100% - 48px));
  margin: 48px auto;
  padding: 28px;
}

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

  .use-case-grid,
  .seo-link-rail > div:last-child {
    grid-template-columns: 1fr;
  }

  .authority-panel,
  .local-seo-proof {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .why-trust {
    width: min(var(--max), calc(100% - 34px));
    padding: 38px 0 22px;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .location-list.location-card-preview {
    grid-template-columns: 1fr;
  }

  .hero.location-hero,
  .hero.hero-location.location-hero {
    min-height: 230px !important;
    max-height: 230px !important;
    height: 230px !important;
  }

  .location-browser-card {
    padding: 18px;
    border-radius: 16px;
  }

  .location-head h2 {
    font-size: 26px !important;
  }

  .trust-card {
    padding: 20px;
  }

  .before-after-grid,
  .authority-grid {
    grid-template-columns: 1fr;
  }

  .local-seo-proof {
    width: min(var(--max), calc(100% - 34px));
    padding: 20px;
  }

}
