/* About page — sections after shared nav/footer from landing.css */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ——— Shared inner padding (keeps content readable on any screen) ——— */
:root {
  --about-px: clamp(24px, 4vw, 56px);
}

/* ——— Hero (873px) ——— */

.about-page-hero {
  position: relative;
  width: 100%;
  min-height: 873px;
  background: var(--color-white);
  padding-bottom: 48px;
  overflow: hidden;
}

.about-page-hero__content {
  position: relative;
  width: min(1072px, calc(100% - 48px));
  margin: 0 auto;
  padding: 120px 24px 48px;
  transform: translateY(36px);
  /* Hover pop on hero card */
  transition: transform 0.3s ease;
}

.about-page-hero__content:hover {
  transform: translateY(30px) scale(1.015);
}

.about-page-hero__content img {
  display: block;
  width: 100%;
  height: auto;
}

.nav-bar__link--current {
  font-weight: 700;
  text-decoration: none;
}

/* ——— Photos banner (white) — edge-to-edge background ——— */

.about-photos-white {
  width: 100%;
  background: var(--color-white);
  padding: 48px 0 72px;
}

.about-photos-white__bar {
  max-width: 1187px;
  margin: 0 auto;
  padding: 0 var(--about-px);
  overflow: hidden;
  border-radius: 20px;
}

.about-photos-white__bar img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.about-photos-white__bar:hover img {
  transform: scale(1.04);
}

.about-photos-white__labels {
  /* Use same proportions as actual photo widths in the SVG: 273 | 556 | 278 px, gap 40px */
  display: grid;
  grid-template-columns: 273fr 556fr 278fr;
  gap: 16px 40px;
  max-width: 1187px;
  margin: 24px auto 0;
  padding: 0 var(--about-px);
  font-weight: 600;
  font-size: 20px;
  line-height: 24px;
  color: var(--color-black);
}

.about-photos-white__labels span {
  text-align: center;
}

/* ——— Stamp banner — true full-width ——— */

.about-stamp {
  width: 100%;
  background: var(--color-black);
  color: var(--color-white);
  padding: 72px 0 88px;
}

.about-stamp__inner {
  max-width: 1344px;
  margin: 0 auto;
  padding: 0 var(--about-px);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px 56px;
}

.about-stamp__copy {
  flex: 1 1 320px;
  max-width: 860px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-stamp__para {
  margin: 0;
  font-weight: 400;
  font-size: 24px;
  line-height: 29px;
}

.about-stamp__aside {
  margin: 0;
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  line-height: 29px;
  color: #f9fe94;
}

.about-stamp__stamps {
  flex: 0 0 auto;
  width: min(400px, 100%);
  overflow: hidden;
  border-radius: 8px;
}

.about-stamp__stamps img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.about-stamp__stamps:hover img {
  transform: scale(1.08) rotate(-2deg);
}

/* ——— Photos banner (red) — true full-width + aligned labels ——— */

.about-photos-red {
  width: 100%;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 72px 0 96px;
}

.about-photos-red__heading {
  margin: 0 auto 40px;
  max-width: 1274px;
  padding: 0 var(--about-px);
  font-weight: 600;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.2;
}

/* Shared horizontal constraint for bar + labels + icons */
.about-photos-red__bar,
.about-photos-red__labels,
.about-photos-red__icons {
  max-width: 1274px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--about-px);
  padding-right: var(--about-px);
}

.about-photos-red__bar {
  overflow: hidden;
  border-radius: 20px;
}

.about-photos-red__bar img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.about-photos-red__bar:hover img {
  transform: scale(1.04);
}

.about-photos-red__labels {
  /*
    Photo widths in the SVG: puppy=220 | journal=476 | beach=241 | travel=244
    gap between photos in SVG: 31px
    Using percentage-based columns + gap so labels track the image at any size.
  */
  display: grid;
  grid-template-columns:
    calc(220 / 1274 * 100%)
    calc(476 / 1274 * 100%)
    calc(241 / 1274 * 100%)
    calc(244 / 1274 * 100%);
  gap: 10px calc(31 / 1274 * 100%);
  margin-top: 20px;
  font-weight: 600;
  font-size: clamp(14px, 2vw, 20px);
  line-height: 1.3;
  text-align: center;
}

.about-photos-red__icons {
  display: grid;
  grid-template-columns:
    calc(220 / 1274 * 100%)
    calc(476 / 1274 * 100%)
    calc(241 / 1274 * 100%)
    calc(244 / 1274 * 100%);
  gap: calc(31 / 1274 * 100%);
  margin-top: 10px;
  font-size: 28px;
  line-height: 1;
  text-align: center;
  opacity: 0.95;
}

/* ——— Quote — true full-width ——— */

.about-quote {
  width: 100%;
  background: var(--color-black);
  color: var(--color-white);
  padding: 72px 0 88px;
}

.about-quote blockquote {
  margin: 0 auto;
  max-width: 1154px;
  padding: 0 var(--about-px);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 3.5vw, 32px);
  line-height: 1.22;
  text-align: center;
}

/* ——— Responsive ——— */

@media (max-width: 900px) {
  .about-page-hero {
    min-height: auto;
  }

  .about-page-hero__content {
    padding: 140px 0 32px;
    transform: none;
  }

  .about-page-hero__content:hover {
    transform: scale(1.015);
  }

  .about-photos-white__labels {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-photos-red__labels,
  .about-photos-red__icons {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .about-photos-red__labels,
  .about-photos-red__icons {
    grid-template-columns: 1fr 1fr;
    font-size: 13px;
  }
}

/* ============================================================
   MOBILE — ≤ 480px
   ============================================================ */
@media (max-width: 480px) {

  /* About page hero */
  .about-page-hero__content {
    padding: 100px 0 24px;
  }
  .about-page-hero__content:hover {
    transform: none;
  }

  /* White photos banner */
  .about-photos-white { padding: 32px 0 48px; }
  .about-photos-white__labels {
    grid-template-columns: 1fr;
    font-size: 15px;
    gap: 10px;
    text-align: center;
  }

  /* Stamp banner */
  .about-stamp { padding: 48px 0 56px; }
  .about-stamp__inner { gap: 24px 32px; }
  .about-stamp__para,
  .about-stamp__aside { font-size: 18px; line-height: 1.4; }
  .about-stamp__stamps { width: min(280px, 100%); }

  /* Red photos banner */
  .about-photos-red { padding: 48px 0 64px; }
  .about-photos-red__heading { font-size: clamp(22px, 6vw, 32px); }
  .about-photos-red__labels,
  .about-photos-red__icons {
    grid-template-columns: 1fr 1fr;
    font-size: 12px;
    gap: 8px 4%;
  }
  .about-photos-red__icons { font-size: 20px; }

  /* Quote */
  .about-quote { padding: 48px 0 56px; }
  .about-quote blockquote { font-size: clamp(18px, 5vw, 26px); }
}
