/* =============================================
   about.css — the About page (2.7.2, Ben, 2 November 2026; canvas board "About Us — copy")
   =============================================
   views/about.php. Loaded on the About page only. Colours from the site's tokens: the posts blue
   (--journal-*), the reviews green (--reviews-mid), the text gold (--mwd-gold-dark) and the page
   background (--page-bg). Headings are the site's Quicksand (main.css).

   THE ROUTES (about.js): each year card's map draws its route through a mask (components/map_view.php
   'route'). With JavaScript the mask's line starts hidden (dashoffset 1 of pathLength 1) and draws in
   when the card scrolls into view (.is-drawn); with no JavaScript, or reduced motion, it is all there. */

.about {
  max-width: 1040px;
  margin: 0 auto;
  padding: 32px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 64px;
  color: #20242b;
}

.about-heading {
  margin: 0 0 14px;
  color: var(--journal-deep, #054a99);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
}

.about-prose p { margin: 0 0 14px; font-size: 17px; line-height: 1.7; }
.about-prose p:last-child { margin-bottom: 0; }

/* ---------- the photo band: taller on this page only (2.7.2.1, Ben) ----------
   Posts keep header_footer_v2.css's clamp(200px, 21vw, 360px); three classes here beat its two. */
.about-page .mwd-hero.mwd-hero--photos { height: clamp(115px, 30vw, 480px); }   /* ~117px on a 390px phone (Ben) */

/* ---------- the intro: on the page background, the stats in white cards (2.7.2.1, Ben) ---------- */
.about-intro { padding: 16px 0 0; }
.about-intro__eyebrow {
  margin: 0 0 10px;
  color: var(--mwd-gold-dark, #8a5a18);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.about-intro__title {
  margin: 0 0 16px;
  color: var(--journal-deep, #054a99);
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
}
.about-intro__lead p { margin: 0; max-width: 43.2em; font-size: 20px; line-height: 1.6; }

.about-stats {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.about-stats__item {
  background: #fff;
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 2px 10px rgba(5, 74, 153, .06);
  display: flex;
  flex-direction: column;
}
.about-stats__value {
  color: var(--journal-deep, #054a99);
  font-family: "Montserrat", Helvetica, Arial, sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
}
.about-stats__item--reviews .about-stats__value { color: var(--reviews-mid, #14731c); }
.about-stats__label { color: #4a5468; font-size: 15px; }

/* ---------- text beside a photo ---------- */
.about-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: start;
}
.about-photo { margin: 0; }
.about-photo img { display: block; width: 100%; height: auto; border-radius: 14px; }
.about-photo__standin {
  aspect-ratio: 4 / 3;
  background: #dfe6f0;
  border-radius: 14px;
}

/* ---------- a section with a heading and an intro line ---------- */
.about-block__intro { margin: 0 0 22px; max-width: 43.2em; font-size: 17px; line-height: 1.7; }
.about-block__intro p { margin: 0; }

/* ---------- the plan's four cards ---------- */
.about-plan {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.about-plan__card {
  background: #fff;
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: 0 2px 10px rgba(5, 74, 153, .06);
}
.about-plan__eyebrow {
  margin: 0 0 6px;
  color: var(--mwd-gold-dark, #8a5a18);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.about-plan__title { margin: 0 0 6px; color: #20242b; font-size: 20px; font-weight: 700; line-height: 1.3; }
.about-plan__text { margin: 0; color: #4a5468; font-size: 16px; line-height: 1.6; }

/* ---------- the five years ---------- */
.about-years {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.about-year__link {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--card-shadow, 0 6px 22px rgba(22, 40, 80, .07));
  transition: box-shadow .25s ease, transform .25s ease;
}
a.about-year__link:hover { box-shadow: 0 12px 30px rgba(22, 40, 80, .12); transform: translateY(-2px); }
a.about-year__link:focus-visible { outline: 3px solid var(--journal-mid, #0861c4); outline-offset: 3px; }
.about-year__media { aspect-ratio: 16 / 10; background: #e9eef6; }
.about-year__map { display: block; width: 100%; height: 100%; }
.about-year__route { stroke: var(--mwd-gold-dark, #8a5a18); }
.about-year__stop { fill: var(--journal-mid, #0861c4); opacity: .55; }
.about-year__end { fill: var(--mwd-gold, #d7a93b); stroke: #fff; stroke-width: .6; }
.about-year__body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.about-year__eyebrow {
  margin: 0;
  color: var(--journal-mid, #0861c4);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.about-year__line { margin: 0; color: #20242b; font-size: 19px; font-weight: 700; line-height: 1.35; }
.about-year__countries { margin: 0; color: #4a5468; font-size: 14px; }
.about-year__more { margin-top: auto; padding-top: 6px; }
.about-year__soon { margin-top: auto; padding-top: 6px; color: #566275; font-size: 14px; font-style: italic; }

.js .about-year__reveal { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s ease-in-out; }
.js .about-year.is-drawn .about-year__reveal { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) {
  .js .about-year__reveal { stroke-dashoffset: 0; transition: none; }
}

/* ---------- the people ---------- */
.about-panel { background: #fff; border-radius: 14px; padding: 44px 56px; }
.about-panel p { max-width: 43.2em; }

/* ---------- Asha and Blu: four photos into the lightbox ---------- */
.about-pets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.about-pets__item { margin: 0; }
.about-pets__link { display: block; border-radius: 12px; overflow: hidden; cursor: zoom-in; }
.about-pets__link:focus-visible { outline: 3px solid var(--journal-mid, #0861c4); outline-offset: 3px; }
/* height: auto — the img's height attribute would otherwise win over the aspect-ratio (2.7.2.1) */
.about-pets__item img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.about-pets .about-photo__standin { aspect-ratio: 1 / 1; border-radius: 12px; }

/* ---------- what's next ---------- */
.about-next {
  background: var(--journal-deep, #054a99);
  color: #fff;
  border-radius: 14px;
  padding: 44px 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  align-items: center;
  justify-content: space-between;
}
.about-next__text { flex: 1 1 420px; }
.about-next__heading { margin: 0 0 10px; color: #fff; font-size: 30px; font-weight: 700; line-height: 1.2; }
.about-next__text p { margin: 0; color: rgba(255, 255, 255, .92); font-size: 17px; line-height: 1.7; }
.about-next__buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- tablets and phones ---------- */
@media only screen and (max-width: 1024px) {
  .about-years { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media only screen and (max-width: 900px) {
  .about { gap: 48px; }
  .about-panel, .about-next { padding: 32px 28px; }
  .about-intro__title { font-size: 34px; }
  .about-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-split { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .about-split--photos-first .about-pets { order: 2; }
}
@media only screen and (max-width: 600px) {
  .about { padding: 20px 16px 56px; gap: 40px; }
  .about-panel, .about-next { padding: 26px 20px; }
  .about-intro__title { font-size: 28px; }
  .about-intro__lead p { font-size: 18px; }
  .about-heading, .about-next__heading { font-size: 25px; }
  .about-plan, .about-years { grid-template-columns: minmax(0, 1fr); }
}
