/* ABOUT — HERO VIDEO */
.about-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 50%;
  z-index: 0;
  pointer-events: none;

  /* unflip on mobile/browser quirks */
  -webkit-transform: none !important;
  transform: none !important;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

@media (max-width: 640px), (orientation: portrait) {
  .about-hero-video {
    object-position: 78% 50%;
    -webkit-transform: none !important;
    transform: none !important;
  }
}

@media (max-aspect-ratio: 10/16) {
  .about-hero-video {
    object-position: 78% 50%;
  }
}

/* ===== 
   MAIN 
   ===== */

/* blocks stay as before */
.about-block {
  display: grid;
  grid-template-columns: 1fr min(40%, 520px);
  gap: clamp(20px, 3vw, 40px);
  align-items: stretch;
  width: min(96vw, 1280px);
  margin: clamp(24px, 4vw, 48px) auto;
  padding: 0 clamp(12px, 4vw, 24px);
}
.about-block:nth-of-type(even) {
  grid-template-columns: min(40%, 520px) 1fr;
}

/* TEXT: stack p one above the other, fill the whole text column */
.about-text {
  display: flex;
  flex-direction: column; /* ← was row; now vertical */
  justify-content: center; /* center in the column height */
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
  padding: clamp(14px, 2.5vw, 28px);
  color: #383a38;
  text-align: left;
  height: 100%; /* match image height */
}

.about-text p {
  margin: 0; /* remove side-by-side spacing */
  width: 100%; /* occupy full text-column width */
  max-width: none; /* no artificial narrowing */
  line-height: 1.7;
  font-size: clamp(1rem, 0.22vw + 0.98rem, 1.12rem);
}

/* IMAGE column unchanged (smaller, rounded) */
.about-media {
  position: relative;
  width: 100%;
  aspect-ratio: 640 / 427;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}
.about-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Large desktops: keep image smaller */
@media (min-width: 1400px) {
  .about-block {
    grid-template-columns: 1fr min(36%, 500px);
  }
  .about-block:nth-of-type(even) {
    grid-template-columns: min(36%, 500px) 1fr;
  }
}

/* Tablets */
@media (max-width: 900px) {
  .about-block {
    grid-template-columns: 1fr min(46%, 480px);
    gap: clamp(16px, 2.5vw, 24px);
  }
  .about-block:nth-of-type(even) {
    grid-template-columns: min(46%, 480px) 1fr;
  }
  .about-media {
    border-radius: 16px;
  }
}

/* Phones: keep previous “good” image behavior; just stack cleanly */
@media (max-width: 640px) {
  .about-block {
    grid-template-columns: 1fr;
    padding: 0 clamp(10px, 4vw, 16px);
    gap: 12px;
  }
  .about-media {
    width: 92%;
    max-width: 440px;
    aspect-ratio: 5 / 4;
    margin-left: auto;
    margin-right: auto;
    border-radius: 16px;
  }
  .about-text {
    padding: 0;
  }
}
/* ===== Desktop-only: narrow the zigzag grid for a tighter look ===== */
@media (min-width: 1024px) {
  .about-block {
    /* narrower overall container */
    width: min(88vw, 1120px);
    /* tighter columns: text | smaller image */
    grid-template-columns: minmax(520px, 0.95fr) min(34%, 480px);
    gap: clamp(20px, 2.6vw, 32px);
  }
  .about-block:nth-of-type(even) {
    /* flip columns for zigzag with the same narrower proportions */
    grid-template-columns: min(34%, 480px) minmax(520px, 0.95fr);
  }

  /* keep paragraphs readable inside the narrower text column */
  .about-text p {
    max-width: 62ch;
  }

  /* slightly smaller/rounder media on wide desktops */
  .about-media {
    border-radius: 12px;
  }
}

/* Extra-wide desktops: squeeze a bit more */
@media (min-width: 1400px) {
  .about-block {
    width: min(80vw, 1040px);
    grid-template-columns: minmax(520px, 0.95fr) min(32%, 460px);
  }
  .about-block:nth-of-type(even) {
    grid-template-columns: min(32%, 460px) minmax(520px, 0.95fr);
  }
}

/* =======================
   ABOUT — OUR NETWORK MAP 
   =======================*/

.map-card {
  position: relative;
  max-width: 680px;
  margin: 0;
}
.map-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.map-card .attrib {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 0.35rem;
}

.pin {
  position: absolute;
  transform: translate(-16%, -78%);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  pointer-events: none;
}

/* Edit these two values to place the pin */
.pin-rkl {
  left: 56%;
  top: 44%;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #e11d48;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.25);
}

.label {
  background: rgba(17, 24, 39, 0.9);
  color: #fff;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  font-size: 0.9rem;
  line-height: 1.1;
  white-space: nowrap;
}

.label small {
  display: block;
  font-size: 0.78rem;
  opacity: 0.9;
}

/*==== override for commintment page ====*/

/* =========================
   Commitment page ONLY
   ========================= */
main.commitment-page {
  --max: 1880px; /* WIDER CONTENT — bump to 1280/1360 if you want */
  --pad: clamp(16px, 4vw, 48px);
  --cream: #f4efe6;
  --ink: #111;
}

/* Big centered content area */
main.commitment-page .commitment-article {
  max-width: var(--max) !important;
  margin-inline: auto;
  padding-inline: var(--pad);
  display: block !important; /* kill any inherited grids/flex */
}

/* Make sure NOTHING caps the text width */
main.commitment-page :where(p, ul, ol, li, h1, h2) {
  max-width: none !important;
  width: 100% !important;
}

/* Typo scale (matches your blog feel but wider) */
main.commitment-page h1 {
  font-size: clamp(2.25rem, 2.6vw + 1rem, 3.1rem);
  line-height: 1.15;
  margin: 0 0 0.6rem;
}
main.commitment-page .commitment-dek {
  color: #4b5563;
  margin: 0 0 1.2rem;
  font-size: 1.05rem;
}
main.commitment-page h2 {
  font-size: clamp(1.4rem, 1.1vw + 1rem, 1.9rem);
  line-height: 1.25;
  margin: 1.6rem 0 0.6rem;
}
main.commitment-page p {
  font-size: 1.08rem;
  line-height: 1.78;
  margin: 0 0 1rem;
}
main.commitment-page ul {
  margin: 0.4rem 0 1rem 1.25rem;
}
main.commitment-page li {
  margin: 0.35rem 0;
}

/* Cream buttons with black text */
main.commitment-page .commitment-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
main.commitment-page .btn-cream {
  background: var(--cream);
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 0.8rem;
  padding: 0.75rem 1.1rem;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.08s ease, box-shadow 0.18s ease, filter 0.15s ease;
}
main.commitment-page .btn-cream:hover {
  filter: brightness(1.03);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}
main.commitment-page .btn-cream:active {
  transform: translateY(1px);
}

/* Stack buttons on small screens */
@media (max-width: 560px) {
  main.commitment-page .commitment-cta {
    flex-direction: column;
  }
  main.commitment-page .btn-cream {
    width: 100%;
    text-align: center;
  }
}

/* OVERRIDE H2 About page only — force H2 to black */
body.about-page h2,
body.about-page main h2,
body.about-page .about-block h2 {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important; /* beats gradient/fill tricks */
  text-shadow: none !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

/* Normalize H2 size on the commitment page */
main.commitment-page .commitment-article h2,
main.commitment-page .commitment-article p + h2 {
  font-size: clamp(1.1rem, 1.2vw + 0.3rem, 2rem) !important;
  line-height: 1.25;
  font-weight: 600;
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  text-shadow: none !important;
}

/* Commitment page — make EVERY h2 same size + black */
main.commitment-page .commitment-article h2,
main.commitment-page .commitment-article p + h2,            /* kills any p+h2 shrink */
main.commitment-page .commitment-article :where(section) > h2 {
  font-size: clamp(0.5rem, 1vw + 1.2rem, 2.6rem) !important;
  line-height: 1.25 !important;
  font-weight: 550 !important;
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  text-shadow: none !important;
}

/* optional: tidy spacing under headings */
main.commitment-page .commitment-article h2 + p {
  margin-top: 0.4rem !important;
}

/* Keep CTA/footer headings using their original color (usually white) */
body.about-page #cta-placeholder h2,
body.about-page #footer-placeholder h2 {
  color: #fff6ef !important; /* change if your CTA uses another color */
  -webkit-text-fill-color: #fff6ef !important;
}

/* Commitment page — force left-aligned/ragged-right text */
body.about-page main.commitment-page .commitment-article,
body.about-page main.commitment-page .commitment-article h1,
body.about-page main.commitment-page .commitment-article h2,
body.about-page main.commitment-page .commitment-article p {
  text-align: left !important; /* stop centered lines */
  margin-left: 0 !important;
  margin-right: 0 !important;
}
