/*
 * about.css
 * Purpose: page/section layout for about/index.html (About Us).
 * Mobile-first; tablet breakpoint at 48em (768px), desktop lock-in at 75em (1200px).
 * nav and cta-footer are intentionally not styled here - they are shared partials
 * assembled around this page's markup separately.
 */

body {
  font-family: var(--font-thai-noto);
  font-variation-settings: "wdth" 100;
  color: var(--ink);
  background-color: var(--pure-white);
  overflow-x: hidden;
  overflow-wrap: anywhere;
}

body.no-scroll {
  overflow: hidden;
}

main p {
  line-height: 1.8;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 1000;
  background-color: var(--marimo-blue);
  color: var(--pure-white);
  padding: var(--space-xs) var(--space-sm);
  border-radius: 0 0 var(--radius-xs) 0;
}

.skip-link:focus {
  left: 0;
}

/* =========================================================
   About Company Profile
   ========================================================= */
.about-company-profile {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  padding: var(--space-lg) var(--space-lg) 7.5rem;
}

/* Figma 2172:1055 background stack: #bed9f9 base, photo at 20%, a white
   fade from the top, plus a diagonal blue band and a logo watermark. */
.about-company-profile__decorative {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: #bed9f9;
}

.about-company-profile__decorative > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.about-company-profile__decorative::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--pure-white), rgba(255, 255, 255, 0));
}

/* Diagonal gradient band. Base geometry matches the 390px SP frame
   (Figma 2426:3249); the 75em block swaps in the PC geometry (2261:755). */
.about-company-profile__band {
  position: absolute;
  left: -2.5rem;
  top: 26rem;
  width: 30.7rem;
  height: 54.5rem;
  background: linear-gradient(25deg, rgba(0, 141, 227, 0.75) 10.6%, rgba(0, 141, 227, 0.15) 89.4%);
  transform: rotate(125.68deg);
}

/* Faint white marimoLife logo watermark (Figma 2278:785), desktop only. */
.about-company-profile__watermark {
  display: none;
  position: absolute;
  left: 7.875rem;
  top: 48.8rem;
  width: 13.4rem;
  height: 10.9rem;
}

.about-company-profile__watermark img {
  position: absolute;
}

.about-company-profile__watermark-mark {
  left: 1.55rem;
  top: 0;
  width: 10.2rem;
}

.about-company-profile__watermark-logotype {
  left: 0;
  top: 7.36rem;
  width: 13.36rem;
}

.about-company-profile__watermark-sub {
  left: 3.48rem;
  top: 9.69rem;
  width: 6.25rem;
}

.about-company-profile__intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

/* SP eyebrow drops to 14px (Figma 2426:3256); --lg (18px) returns on PC. */
.about-company-profile__intro .section-eyebrow {
  font-size: var(--font-size-sm);
}

.profile-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xs);
}

.info-card__field + .info-card__field {
  margin-top: var(--space-sm);
}

.sdgs-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.sdgs-card__photo img {
  display: block;
  width: 100%;
  height: 13.75rem;
  object-fit: cover;
}

.sdgs-card__body {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  background-color: var(--ice-blue);
  padding: var(--space-lg) var(--space-lg) 3rem;
}

.sdgs-card__intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.sdgs-card__heading {
  font-family: var(--font-thai-sarabun);
  font-weight: 700;
  font-size: var(--font-size-3xl);
  line-height: 1.8;
  margin: 0;
}

.sdgs-card__goals {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.sdgs-card__title-graphic {
  display: block;
  width: 100%;
  height: auto;
}

.sdgs-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.3125rem;
}

.sdgs-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
}

@media (min-width: 48em) {
  .about-company-profile {
    padding: var(--space-2xl) var(--space-md) var(--space-3xl);
    gap: var(--space-2xl);
  }

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

  .sdgs-card {
    flex-direction: row;
  }

  .sdgs-card__photo {
    flex: 0 0 40%;
  }

  .sdgs-card__photo img {
    height: 100%;
  }

  .sdgs-card__body {
    flex: 1 0 0;
    padding: var(--space-xl);
  }
}

@media (min-width: 75em) {
  .about-company-profile {
    padding: 15rem var(--space-3xl) 10rem;
    gap: 10rem;
  }

  .about-company-profile__band {
    left: 31.9rem;
    top: 8.5rem;
    height: 139.4rem;
    background: linear-gradient(50deg, rgba(0, 141, 227, 0.75) 10.6%, rgba(0, 141, 227, 0) 89.4%);
  }

  .about-company-profile__watermark {
    display: block;
  }

  .about-company-profile__row {
    display: flex;
    gap: 13.75rem;
    align-items: flex-start;
  }

  .about-company-profile__intro {
    flex: 0 0 auto;
  }

  .about-company-profile__intro .section-eyebrow {
    font-size: var(--font-size-lg);
  }

  .profile-cards {
    gap: 1.75rem;
    max-width: 51.25rem;
  }

  .info-card {
    padding: 3rem;
    gap: var(--space-md);
  }

  .info-card__icon {
    background: none;
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 0;
  }

  .info-card__icon img {
    width: 100%;
    height: 100%;
  }

  .sdgs-card {
    max-width: var(--content-max-width);
    margin: 0 auto;
  }

  .sdgs-card__photo {
    flex: 0 0 33.625rem;
  }

  .sdgs-card__photo img {
    min-height: 33.625rem;
  }

  .sdgs-card__body {
    padding: var(--space-2xl);
    gap: var(--space-xl);
  }

  .sdgs-card__heading {
    font-size: var(--font-size-4xl);
  }

  .sdgs-grid {
    max-width: 31.25rem;
  }
}

/* =========================================================
   Our Group Purpose
   ========================================================= */
.about-our-purpose {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6.5rem var(--space-lg);
  background-color: #2f76e7;
}

/* SP (Figma 2430:1303): the gradient sheet bleeds off to the left. */
.about-our-purpose__decorative {
  position: absolute;
  left: -29%;
  top: -30%;
  width: 163%;
  max-width: none; /* the reset's max-inline-size:100% would clip the bleed */
  height: 262%;
  pointer-events: none;
}

.about-our-purpose__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  text-align: center;
  max-width: 50rem;
}

/* SP eyebrow is 14px (Figma 2430:1310). */
.about-our-purpose__inner .section-eyebrow {
  font-size: var(--font-size-sm);
}

.about-our-purpose__heading {
  font-family: var(--font-thai-sarabun);
  font-weight: 700;
  font-size: var(--font-size-2xl);
  line-height: 1.6;
  color: var(--pure-white);
  margin: 0;
}

@media (min-width: 48em) {
  .about-our-purpose {
    padding: var(--space-3xl) var(--space-2xl);
    min-height: 26rem;
  }

  .about-our-purpose__heading {
    font-size: var(--font-size-4xl);
  }
}

@media (min-width: 75em) {
  .about-our-purpose {
    min-height: 40rem;
  }

  /* PC (Figma 2282:1113): the 1440x640 band of the 1640x1584 sheet fills
     the section exactly (preserveAspectRatio="none" makes % sizing safe). */
  .about-our-purpose__decorative {
    left: -9.65%;
    top: -58.3%;
    width: 113.9%;
    height: 247.5%;
  }

  .about-our-purpose__inner {
    max-width: 56rem;
    gap: var(--space-sm);
  }

  .about-our-purpose__inner .section-eyebrow {
    font-size: var(--font-size-lg);
  }

  .about-our-purpose__heading {
    font-size: var(--font-size-5xl);
    line-height: 1.8;
  }
}

/* =========================================================
   About marimo group
   ========================================================= */
.about-marimo-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding: 7.5rem var(--space-lg) 0;
}

/* SP: centered section title (Figma 2430:1320). */
.about-marimo-group__intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  text-align: center;
}

/* SP: zoom trigger flows below the diagram, right-aligned (Figma 2430:1336). */
.about-marimo-group__media {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.25rem;
}

/* Direct child only: the zoom button inside also contains an <img>
   (its icon), which must keep the 2rem size from components.css. */
.about-marimo-group__media > img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.about-marimo-group__media .zoom-btn {
  position: static;
}

.about-marimo-group__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.about-marimo-group__cta {
  align-self: flex-start;
}

@media (min-width: 48em) {
  .about-marimo-group {
    padding: var(--space-3xl) var(--space-md);
  }
}

@media (min-width: 75em) {
  /* PC (Figma 2172:1114): zoom trigger sits at the top-right, over the
     diagram. */
  .about-marimo-group__media .zoom-btn {
    position: absolute;
    right: 0;
    top: 1rem;
  }

  .about-marimo-group__intro {
    text-align: left;
  }

  .about-marimo-group {
    display: grid;
    grid-template-columns: 28.125rem minmax(0, 38.1875rem);
    grid-template-areas:
      "intro media"
      "body media"
      "cta media";
    justify-content: space-between;
    column-gap: var(--space-2xl);
    row-gap: var(--space-2xl);
    align-items: start;
    max-width: var(--page-max-width);
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-3xl) 0;
  }

  .about-marimo-group__intro {
    grid-area: intro;
  }

  .about-marimo-group__body {
    grid-area: body;
  }

  .about-marimo-group__cta {
    grid-area: cta;
  }

  .about-marimo-group__media {
    grid-area: media;
    grid-row: 1 / span 3;
    height: 31.25rem;
  }

  .about-marimo-group__media > img {
    height: 100%;
    object-fit: cover;
  }
}

/* =========================================================
   cta-footer spacing (Figma: pt-120 on SP, pt-240 on PC)
   ========================================================= */
.contact {
  margin-top: 7.5rem;
}

@media (min-width: 75em) {
  .contact {
    margin-top: 15rem;
  }
}
