:root {
  color-scheme: light;
  --ink: #172026;
  --muted: #5b6770;
  --line: #d8e0e5;
  --paper: #f7f9fa;
  --white: #ffffff;
  --green: #15835a;
  --teal: #087b83;
  --amber: #b87912;
  --red: #bb4a3c;
  --shadow: 0 18px 50px rgba(23, 32, 38, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 6vw;
  border-bottom: 1px solid rgba(216, 224, 229, 0.8);
  background: rgba(247, 249, 250, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: var(--white);
  background: var(--green);
}

nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 0.96rem;
}

nav a:hover {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: center;
  min-height: 0;
  padding: 34px 6vw 30px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.48)),
    url("assets/pcb-hero.svg") center / cover no-repeat;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(2.15rem, 4vw, 4.1rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.lede {
  max-width: 720px;
  color: #34424b;
  font-size: 1rem;
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-weight: 750;
}

.button.primary {
  color: var(--white);
  border-color: var(--green);
  background: var(--green);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.72);
}

.status-panel {
  padding: 20px;
  border: 1px solid rgba(216, 224, 229, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.metric {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.metric-label,
.metric-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 3.35rem;
  line-height: 0.9;
}

.metric-subline {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.metric-subline strong {
  display: inline;
  margin-top: 0;
  color: var(--green);
  font-size: 1.05rem;
  line-height: 1;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-top: 16px;
}

.metric-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 1.25rem;
}

.sync-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: 88px 6vw;
}

.map-section {
  padding-top: 34px;
}

.section-heading {
  margin-bottom: 24px;
}

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

.service-card,
.review-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.service-card {
  min-height: 230px;
  padding: 24px;
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.service-card p,
.review-card p,
.contact-card p {
  color: var(--muted);
  line-height: 1.58;
}

.reviews-band {
  background: var(--white);
}

.reviews {
  overflow: hidden;
  padding: 4px 0 12px;
}

.reviews:hover .reviews-track {
  animation-play-state: paused;
}

.reviews-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: review-scroll 48s linear infinite;
}

@keyframes review-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.review-card {
  width: min(440px, 82vw);
  padding: 24px;
}

.review-stars {
  margin-bottom: 14px;
  color: #b87912;
  font-size: 1rem;
  font-weight: 850;
}

.review-stars span {
  color: var(--muted);
  font-size: 0.88rem;
}

.review-card blockquote {
  margin: 0;
  color: #29363e;
  line-height: 1.64;
}

.review-card cite {
  display: block;
  margin-top: 20px;
  color: var(--muted);
  font-style: normal;
  font-weight: 750;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: stretch;
}

.map-section {
  background: #eef4f6;
}

.map-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.map-stats div {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.map-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.map-stats strong {
  display: block;
  margin-top: 8px;
  font-size: 2.2rem;
}

.world-map {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #dfecef;
}

.world-map svg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 540px;
}

.country-shape {
  stroke: #ffffff;
  stroke-width: 0.45;
  transition:
    fill 160ms ease,
    opacity 160ms ease;
}

.country-shape.is-served {
  cursor: pointer;
}

.country-shape.is-served:hover {
  opacity: 0.78;
}

.map-tooltip {
  position: absolute;
  z-index: 2;
  display: none;
  max-width: 220px;
  transform: translate(14px, 14px);
  padding: 9px 11px;
  border-radius: 8px;
  color: var(--white);
  background: rgba(23, 32, 38, 0.93);
  font-size: 0.82rem;
  pointer-events: none;
}

.map-fallback {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(223, 236, 239, 0.72), rgba(223, 236, 239, 0.72)),
    url("assets/world-outline.svg") center / 94% auto no-repeat;
}

.country-list {
  max-height: 540px;
  overflow-y: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.country-list::-webkit-scrollbar {
  width: 9px;
}

.country-list::-webkit-scrollbar-thumb {
  background: rgba(23, 32, 38, 0.22);
  border-radius: 999px;
}

.country-list h3 {
  margin-bottom: 18px;
}

.map-legend {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.legend-row {
  display: grid;
  grid-template-columns: 18px 58px 1fr;
  gap: 9px;
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.legend-row strong {
  color: var(--ink);
}

.legend-swatch {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 5px;
  box-shadow: 0 0 0 1px rgba(23, 32, 38, 0.12);
}

.legend-swatch.high {
  background: var(--red);
}

.legend-swatch.medium {
  background: var(--amber);
}

.legend-swatch.low {
  background: var(--teal);
}

.legend-swatch.light {
  background: var(--green);
}

.country-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.country-row:last-child {
  border-bottom: 0;
}

.country-row span {
  color: var(--muted);
}

.country-row strong {
  color: var(--ink);
}

.country-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.country-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #34424b;
  background: var(--white);
  font-size: 0.9rem;
}

.country-badge strong {
  color: var(--green);
}

.contact-section {
  background: #edf4f0;
}

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

.contact-card {
  min-height: 146px;
  padding: 22px;
}

.contact-card a,
.contact-card strong {
  display: inline-block;
  margin-top: 10px;
  color: var(--teal);
  font-weight: 800;
  overflow-wrap: anywhere;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 6vw;
  color: var(--muted);
  background: var(--ink);
}

footer a {
  color: var(--white);
}

@media (max-width: 1050px) {
  .hero,
  .map-layout {
    grid-template-columns: 1fr;
  }

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

  .map-stats {
    grid-template-columns: 1fr;
  }

  .reviews-track {
    animation-duration: 64s;
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 16px 5vw;
  }

  nav {
    width: 100%;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .section {
    padding-right: 5vw;
    padding-left: 5vw;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
    padding-bottom: 28px;
  }

  h1 {
    font-size: 2.35rem;
  }

  .service-grid,
  .contact-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .world-map {
    min-height: 360px;
  }

  .world-map svg {
    min-height: 360px;
  }

  footer {
    flex-direction: column;
  }
}
