:root {
  --blue: #0878be;
  --blue-dark: #06385a;
  --blue-soft: #eaf8ff;
  --green: #22c55e;
  --teal: #0f766e;
  --gold: #f59e0b;
  --ink: #082033;
  --text: #17364a;
  --muted: #62798a;
  --line: #d7e8ef;
  --white: #ffffff;
  --off: #f7fbfd;
  --shadow: 0 22px 55px rgba(7, 40, 68, 0.12);
  --radius: 24px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  touch-action: pan-y;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--blue);
  color: white;
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 999;
}

.skip-link:focus {
  left: 12px;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: 88px 0;
}

.section.compact {
  padding: 34px 0;
}

.section.muted {
  background: #f2f9fc;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(8, 120, 190, 0.12);
  transition: 0.2s ease;
}

.site-header.scrolled {
  box-shadow: 0 14px 34px rgba(7, 40, 68, 0.08);
}

.nav {
  width: min(var(--max), calc(100% - 40px));
  min-height: 76px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand strong {
  display: block;
  color: var(--ink);
  line-height: 1;
  font-size: 1.03rem;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  margin-top: 3px;
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 0.9rem;
  transition: color 0.18s ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--blue);
}

.nav-cta {
  background: var(--blue);
  color: white !important;
  padding: 10px 15px;
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  touch-action: manipulation;
}

/* Hero */

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 85% 15%, rgba(34, 197, 94, 0.16), transparent 28%),
    radial-gradient(circle at 10% 10%, rgba(8, 120, 190, 0.17), transparent 25%),
    linear-gradient(180deg, #ffffff, #eef9ff);
}

.hero-grid,
.split,
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 54px;
  align-items: center;
}

.reverse {
  direction: rtl;
}

.reverse > * {
  direction: ltr;
}

.eyebrow {
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 900;
  font-size: 0.76rem;
  margin: 0 0 12px;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-size: clamp(2.35rem, 5vw, 4.9rem);
  letter-spacing: -0.06em;
  max-width: 850px;
}

h2 {
  font-size: clamp(2rem, 3vw, 3.25rem);
  letter-spacing: -0.045em;
}

h3 {
  font-size: 1.18rem;
}

p {
  margin: 16px 0 0;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 720px;
}

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

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 18px;
  text-decoration: none;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 12px 30px rgba(8, 120, 190, 0.22);
}

.btn.ghost {
  background: white;
  border-color: var(--line);
  color: var(--ink);
}

.btn-solar {
  background: linear-gradient(135deg, var(--gold), #f97316);
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(245, 158, 11, 0.26);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-strip span {
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.84rem;
}

.hero-card,
.card,
.pii-card,
.map-module,
.contact-form {
  isolation: isolate;
}

.hero-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 0;
  border: 1px solid var(--line);
}

.hero-image {
  aspect-ratio: 4 / 3;
  min-height: 360px;
  background:
    linear-gradient(135deg, rgba(8, 120, 190, 0.12), rgba(34, 197, 94, 0.08)),
    url("assets/images/optimized/photos/IMG-20260210-WA0004.webp");
  background-size: cover;
  background-position: center;
  background-color: #eaf8ff;
}

.status-row {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
}

.pulse {
  width: 11px;
  height: 11px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.14);
}

.mini-dashboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.mini-dashboard div {
  padding: 18px;
  border-right: 1px solid var(--line);
}

.mini-dashboard div:last-child {
  border-right: 0;
}

.mini-dashboard strong,
.stats span {
  display: block;
  color: var(--blue);
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.mini-dashboard span,
.stats p {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 7px;
}

/* Stats and cards */

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

.stats article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 12px 32px rgba(7, 40, 68, 0.06);
}

.cards {
  display: grid;
  gap: 18px;
}

.cards.two {
  grid-template-columns: repeat(2, 1fr);
}

.cards.three {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 12px 34px rgba(7, 40, 68, 0.06);
}

.card .icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  border-radius: 15px;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.card p,
.section-head p {
  color: var(--muted);
}

.section-head {
  max-width: 820px;
  margin-bottom: 34px;
}

/* System section */

.pii-section {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(8, 120, 190, 0.14), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(245, 158, 11, 0.16), transparent 24%),
    linear-gradient(135deg, #f7fcff 0%, #ffffff 42%, #eef9ff 100%);
}

.pii-section::before {
  content: "";
  position: absolute;
  inset: auto -10% -42% -10%;
  height: 420px;
  background: linear-gradient(135deg, rgba(8, 120, 190, 0.08), rgba(34, 197, 94, 0.08));
  transform: rotate(-3deg);
  pointer-events: none;
}

.pii-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 42px;
  align-items: center;
}

.pii-copy {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(215, 232, 239, 0.92);
  border-radius: 30px;
  padding: 34px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.pii-logo-block {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
}

.pii-logo-block img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.pii-logo-block strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.05;
}

.pii-logo-block span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  margin-top: 4px;
}

.pii-copy p {
  color: var(--muted);
  font-size: 1.02rem;
}

.pii-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 26px 0;
}

.pii-features div {
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(7, 40, 68, 0.05);
}

.pii-features strong {
  display: block;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.25;
}

.pii-features span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 4px;
}

.pii-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cluster-diagram {
  position: relative;
  background:
    radial-gradient(circle at 78% 14%, rgba(34, 197, 94, 0.14), transparent 24%),
    linear-gradient(180deg, #eaf8ff 0%, #ffffff 52%, #f3fbff 100%);
  padding: 18px;
}

.cluster-info {
  position: absolute;
  left: 30px;
  top: 30px;
  z-index: 4;
  max-width: 390px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(215, 232, 239, 0.92);
  box-shadow: 0 20px 42px rgba(7, 40, 68, 0.13);
  backdrop-filter: blur(12px);
}

.cluster-info strong {
  display: block;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.12;
}

.cluster-info span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-top: 8px;
}

.cluster-info.is-active {
  border-color: rgba(8, 120, 190, 0.35);
  box-shadow: 0 22px 48px rgba(8, 120, 190, 0.16);
}

.cluster-svg {
  width: 100%;
  height: auto;
  min-height: 620px;
  display: block;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(236, 251, 255, 0.92), rgba(255, 255, 255, 0.94)),
    radial-gradient(circle at 70% 40%, rgba(8, 120, 190, 0.16), transparent 30%);
}

.system-pipe {
  fill: none;
  stroke: url(#pipeGradient);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 20 16;
  animation: piiWaterFlow 1.45s linear infinite;
  filter: drop-shadow(0 4px 8px rgba(8, 120, 190, 0.18));
}

.down-pipe {
  stroke-width: 10;
  opacity: 0.75;
}

.main-pipe {
  stroke-width: 17;
}

.kiosk-pipe {
  stroke-width: 10;
  opacity: 0.9;
}

@keyframes piiWaterFlow {
  to {
    stroke-dashoffset: -72;
  }
}

.system-node {
  cursor: pointer;
  outline: none;
  transition: opacity 0.22s ease, filter 0.22s ease;
}

.system-node:hover,
.system-node:focus,
.system-node.is-active {
  filter: drop-shadow(0 16px 22px rgba(8, 120, 190, 0.2));
}

.cluster-svg.has-active .system-node {
  opacity: 0.42;
}

.cluster-svg.has-active .system-node.is-active {
  opacity: 1;
}

.borehole-bg {
  fill: #dff6ff;
  stroke: #073b5c;
  stroke-width: 7;
  filter: url(#softShadow);
}

.control-house {
  fill: #ffffff;
  stroke: #0f766e;
  stroke-width: 7;
  filter: url(#softShadow);
}

.node-label {
  fill: var(--ink);
  font-size: 25px;
  font-weight: 900;
  text-anchor: middle;
  dominant-baseline: middle;
}

.tower-leg {
  stroke: #073b5c;
  stroke-width: 10;
  stroke-linecap: round;
}

.tower-cross {
  stroke: #0b4f93;
  stroke-width: 7;
  stroke-linecap: round;
  opacity: 0.82;
}

.tank-text {
  fill: #073b5c;
  font-size: 24px;
  font-weight: 1000;
  text-anchor: middle;
  dominant-baseline: middle;
}

.distribution-label {
  fill: #ffffff;
  font-size: 20px;
  font-weight: 900;
  text-anchor: middle;
  dominant-baseline: middle;
}

.real-kiosk-body {
  fill: #ffffff;
  stroke: #0b4f93;
  stroke-width: 7;
  filter: url(#softShadow);
}

.real-kiosk-sign {
  fill: url(#kioskBlue);
  filter: drop-shadow(0 8px 12px rgba(7, 40, 68, 0.15));
}

.kiosk-sign-text {
  fill: #ffffff;
  font-size: 16px;
  font-weight: 1000;
  text-anchor: middle;
  dominant-baseline: middle;
  letter-spacing: 0.05em;
}

.mini-treatment {
  fill: #22c55e;
  stroke: #ffffff;
  stroke-width: 2;
}

.mini-text {
  fill: #ffffff;
  font-size: 11px;
  font-weight: 1000;
  text-anchor: middle;
  dominant-baseline: middle;
}

.tap-line {
  fill: none;
  stroke: #073b5c;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.small-label {
  fill: #62798a;
  font-size: 13px;
  font-weight: 800;
  text-anchor: middle;
}

.pii-card-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.pii-card-footer div {
  padding: 20px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.pii-card-footer div:last-child {
  border-right: 0;
}

.pii-card-footer strong {
  display: block;
  color: var(--blue);
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.pii-card-footer span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  margin-top: 6px;
}

.pii-card-wide {
  width: 100%;
}



.logo-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 34px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
}

.logo-panel img,
.pii-logo-block img,
.footer-brand img {
  width: auto;
  height: auto;
  max-height: 110px;
  object-fit: contain;
  margin: auto;
}

.plus {
  color: var(--blue);
  font-size: 2rem;
  font-weight: 900;
}

/* Map */

.map-module {
  background: white;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.map-module-head {
  padding: 20px;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #f7fcff, #eef9ff);
  border-bottom: 1px solid var(--line);
}

.map-module-head h3 {
  font-size: 1.3rem;
}

.map-module-head p {
  margin-top: 6px;
  color: var(--muted);
}

.map-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.map-btn {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 10px 13px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}

.map-btn.active {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.map-link {
  text-decoration: none;
  background: var(--ink);
  color: white;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 900;
}

.map-frame-wrap {
  height: 620px;
  background: #06111e;
}

.map-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-disclaimer {
  padding: 16px 20px;
  background: #f9fcfe;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.map-disclaimer strong {
  color: var(--ink);
}

/* Gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.gallery button {
  border: 0;
  min-height: 230px;
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  background-size: cover;
  background-position: center;
  background-color: #dff6ff;
  cursor: pointer;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.gallery button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8, 120, 190, 0.08), rgba(34, 197, 94, 0.08));
  pointer-events: none;
}

.gallery button::after {
  content: "View photo";
  position: absolute;
  inset: auto 14px 14px 14px;
  background: rgba(6, 40, 63, 0.82);
  color: white;
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 900;
}

.gallery-fallback {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--off);
  padding: 24px;
}

.gallery-fallback strong {
  font-size: 1.6rem;
  color: var(--blue);
  letter-spacing: -0.04em;
  line-height: 1;
}

.gallery-fallback span {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
}

/* Contact */

.contact-section {
  background: linear-gradient(135deg, #06283f, #084a72);
  color: white;
}

.contact-section h2,
.contact-section .eyebrow {
  color: white;
}

.contact-section p {
  color: #d5edf9;
}

.contact-lines {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.contact-lines p {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  color: #7dd3fc;
  margin-top: 2px;
}

.contact-icon svg {
  width: 18px;
  height: 18px;
}

.contact-lines strong {
  color: #ffffff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-lines a {
  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
}

.contact-lines a:hover {
  text-decoration: underline;
}

.contact-form {
  background: white;
  color: var(--ink);
  border-radius: 26px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: block;
  font-weight: 900;
  margin-bottom: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 13px;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.form-status {
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 0;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.84);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-height: 86vh;
  max-width: 94vw;
  border-radius: 18px;
}

.lightbox button {
  position: fixed;
  right: 20px;
  top: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  font-size: 2rem;
  cursor: pointer;
}

/* Footer */

.footer {
  background: #031522;
  color: #c8e5f5;
  padding: 24px 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: transparent;
  border-radius: 14px;
}

.footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #c8e5f5;
  text-decoration: none;
  font-weight: 800;
}

.footer-links a:hover {
  color: #ffffff;
}

/* Reveal */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */

@media (max-width: 1100px) {
  .pii-grid {
    grid-template-columns: 1fr;
  }

  .pii-copy {
    max-width: 850px;
  }

  .cluster-info {
    position: relative;
    top: auto;
    left: auto;
    max-width: none;
    margin: 0 0 16px;
  }

  .cluster-svg {
    min-height: auto;
  }
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid var(--line);
    background: white;
    border-radius: 14px;
    padding: 10px;
    cursor: pointer;
  }

  .nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--ink);
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 76px;
    left: 20px;
    right: 20px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100vh - 106px);
    overflow-y: auto;
  }

  .nav-menu a {
    padding: 12px 0;
  }

  .nav-menu.open {
    display: flex;
  }

  .hero-grid,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .stats,
  .cards.three {
    grid-template-columns: repeat(2, 1fr);
  }

  .map-module-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .map-frame-wrap {
    height: 560px;
  }
}

@media (max-width: 760px) {
  .pii-section {
    padding: 68px 0;
  }

  .pii-copy {
    padding: 24px;
    border-radius: 24px;
  }

  .cluster-diagram {
    padding: 12px;
  }

  .cluster-svg {
    min-width: 760px;
  }

  .pii-card {
    overflow-x: auto;
  }

  .pii-card-footer {
    min-width: 620px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 62px 0;
  }

  .container,
  .nav {
    width: min(var(--max), calc(100% - 28px));
  }

  .cards.two,
  .cards.three,
  .stats,
  .mini-dashboard {
    grid-template-columns: 1fr;
  }

  .mini-dashboard div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .logo-panel {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .map-frame-wrap {
    height: 520px;
  }

  .footer-grid,
  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* WAC / Technical Partner Logo Fixes
   Keeps real WAC branding visible, clickable, and clean on the Pii-Maleng website. */

.logo-panel .partner-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  text-decoration: none;
  border-radius: 18px;
  background: #ffffff;
  padding: 8px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.logo-panel .partner-logo-link:hover,
.logo-panel .partner-logo-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(7, 40, 68, 0.12);
  outline: none;
}

.logo-panel .partner-logo-link img {
  max-width: 190px;
  max-height: 110px;
  object-fit: contain;
  background: transparent;
  mix-blend-mode: multiply;
}

.contact-logo-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #ffffff;
  display: grid;
  place-items: center;
  padding: 5px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.contact-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  mix-blend-mode: multiply;
}

.technical-partner-line a {
  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
}

.technical-partner-line a:hover,
.technical-partner-line a:focus-visible {
  text-decoration: underline;
}

.footer-links a[target="_blank"]::after {
  content: " ↗";
  font-size: 0.8em;
}

@media (max-width: 640px) {
  .logo-panel {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .logo-panel .plus {
    line-height: 1;
  }

  .logo-panel .partner-logo-link img {
    max-width: 170px;
  }
}
