/*
 * index.css
 * Purpose: page/section layout for index.html (トップページ).
 * Mobile-first; tablet breakpoint at 48em (768px), desktop lock-in at 75em (1200px)
 * matching the Figma frame's 1200px content width / 120px side padding.
 */

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: break-word;
  word-break: break-all;
}

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;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--gray-400);
  padding: var(--space-sm) var(--space-sm) var(--space-sm);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 56%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.3) 100%);
}

/* Diagonal decorative shapes over the hero photo.
   Base geometry matches the 390px SP frame (Figma 2426:2763); the 75em
   block swaps in the 1440px PC geometry (Figma 2329:1647). */
.hero__decor {
  position: absolute;
  pointer-events: none;
}

.hero__decor--blue {
  left: -18.1rem;
  top: -1.7rem;
  width: 46.4rem;
  height: 23.4rem;
  background: linear-gradient(to left, rgba(136, 193, 249, 0.7), rgba(185, 233, 249, 0));
  transform: rotate(130deg) scaleY(-1);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.hero__decor--white {
  left: -1.1rem;
  top: 0;
  width: 15.1rem;
  height: 35.2rem;
  background: linear-gradient(to top, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.8));
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  min-height: 32rem;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
  padding-left: 1rem;
}

.hero__title {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: var(--font-size-3xl);
  line-height: 1.4;
  color: var(--marimo-blue);
}

/* PC brand lockup (horizontal); hidden on SP in favor of the stacked mark. */
.hero__logo {
  display: none;
  width: 12rem;
  height: auto;
}

/* SP brand lockup (Figma 2426:2767): circle mark + "(THAILAND)". */
.hero__logo-sp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
}

.hero__logo-sp img {
  width: 4.9rem;
  height: auto;
  /* Figma crops the JP subtext off the bottom of the lockup (115.2% crop) */
  clip-path: inset(0 0 13% 0);
  margin-bottom: -13%;
}

.hero__logo-sp span {
  font-family: var(--font-eng);
  font-weight: 700;
  font-size: 0.46rem;
  letter-spacing: 0.14em;
  line-height: 1.8;
  color: var(--ink);
}

.hero__dots {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: var(--space-xs);
  margin-top: auto;
}

.hero__dot {
  display: block;
  width: 2.5rem;
  height: 0.25rem;
  background-color: var(--gray-500);
}

.hero__dot.is-active {
  background-color: var(--sky-blue);
}

@media (min-width: 48em) {
  .hero__title {
    font-size: 3rem;
  }

  .hero__logo {
    display: block;
    width: 16rem;
  }

  .hero__logo-sp {
    display: none;
  }

  .hero__dots {
    gap: var(--space-md);
  }

  .hero__dot {
    height: 0.375rem;
  }
}

@media (min-width: 75em) {
  .hero {
    height: 48.75rem;
    padding: 2.5rem 7.5rem 4rem;
  }

  .hero__decor--blue {
    left: -20.8rem;
    top: -8.6rem;
    width: 77.5rem;
    height: 48.4rem;
    transform: rotate(125deg) scaleY(-1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }

  .hero__decor--white {
    left: 3.75rem;
    top: -9.4rem;
    width: 29.2rem;
    height: 87.75rem;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.24));
  }

  .hero__inner {
    min-height: 0;
    height: 100%;
    justify-content: space-between;
  }

  .hero__content {
    padding-top: var(--space-xs);
    padding-left: 0;
    gap: var(--space-xl);
  }

  .hero__title {
    font-size: 3.375rem;
  }

  .hero__logo {
    width: 16.625rem;
    margin-left: var(--space-2xs);
  }

  .hero__dot {
    width: 4rem;
  }
}

/* =========================================================
   About Us
   ========================================================= */
.about {
  position: relative;
  overflow: hidden;
  background-color: #2f76e7;
  padding: var(--space-2xl) var(--space-lg);
}

/* SP (Figma 2422:1726): the gradient sheet bleeds off to the left. */
.about__decorative {
  position: absolute;
  left: -70%;
  top: 0;
  width: 243%;
  max-width: none;
  height: 100%;
  pointer-events: none;
}

.about__grid {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* SP order: title, photo, body (Figma 2422:1725). */
.about__intro {
  order: 1;
}

.about__media {
  order: 2;
}

.about__body {
  order: 3;
}

.about__media img {
  width: 100%;
  aspect-ratio: 324 / 220;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.about__intro {
  color: var(--pure-white);
}

/* The global break-all would split Thai words mid-syllable in the large
   heading; the design breaks it with an explicit <br> instead. */
.about__intro .section-heading {
  word-break: normal;
}

.about__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  font-weight: 500; /* SP is Medium; PC bumps to Bold (Figma 2422:1720) */
  color: var(--pure-white);
}

@media (min-width: 48em) {
  .about {
    background-color: var(--dark-blue);
    padding: var(--space-2xl) var(--space-md);
  }

  .about__decorative {
    top: -8rem;
    left: 0;
    width: 100%;
    height: auto;
  }

  .about__grid {
    display: grid;
    grid-template-columns: minmax(0, 20rem) 1fr;
    column-gap: var(--space-2xl);
    row-gap: var(--space-md);
  }

  .about__media {
    grid-row: 1 / span 2;
  }
}

@media (min-width: 75em) {
  .about {
    padding: 10rem 0;
  }

  /* Figma 2246:893: 1573x1584 sheet anchored at top -373px; the SVG has
     preserveAspectRatio="none" so stretching it wider on large screens is safe. */
  .about__decorative {
    top: -23.3rem;
    width: 100%;
    min-width: 98.3rem;
    height: 99rem;
  }

  .about__grid {
    grid-template-columns: 30rem 1fr;
    column-gap: 7.5rem;
    max-width: var(--page-max-width);
    margin: 0 auto;
    padding: 0 var(--space-3xl);
  }

  .about__media img {
    height: 33.7rem;
  }

  .about__body {
    gap: var(--space-xs);
    font-weight: 700;
  }
}

/* =========================================================
   Our Services
   ========================================================= */
/* SP (Figma 2418:667): the whole section sits on a navy panel with
   white text; PC switches to the split dark-blue/white background. */
.services {
  position: relative;
  overflow: hidden;
  padding: var(--space-2xl) var(--space-lg);
  background-color: var(--navy);
}

.services__intro {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.services__heading-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  color: var(--pure-white);
}

.services__heading-block .section-eyebrow,
.services__heading-block .section-heading {
  color: var(--pure-white);
}

.services__lead {
  color: var(--pure-white);
}

.service-cards {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.service-card__media {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: var(--space-2xs);
  padding: 1.75rem 0 1.25rem 1.5rem;
  min-height: 11.8rem;
  border-radius: var(--radius-xs) var(--radius-xs) 0 0;
  overflow: hidden;
  background-color: var(--gray-400);
}

.service-card__media .badge {
  font-size: var(--font-size-2xs);
  padding: 0.3rem 0.6rem;
}

.service-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Match the Figma crops of the 750x1000 source photos. */
.service-card__photo--iruv {
  object-position: 50% 38%;
}

.service-card__photo--uvshield {
  object-position: 50% 10%;
}

.service-card__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(25, 84, 143, 0) 54%, rgba(25, 84, 143, 0.5) 100%);
}

.badge,
.service-card__title {
  position: relative;
}

.service-card__title {
  font-family: var(--font-eng);
  font-weight: 700;
  font-size: var(--font-size-3xl);
  color: var(--pure-white);
}

/* Horizontal padding lives on the text so the arrow CTA can sit flush
   in the bottom-right corner (Figma: cta-btn outside the px-40 wrapper). */
.service-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-md);
  padding-top: var(--space-sm);
  background-color: var(--gray-100);
  border-radius: 0 0 var(--radius-xs) var(--radius-xs);
}

.service-card__body p {
  align-self: stretch;
  padding: 0 var(--space-sm);
  color: var(--ink);
}

@media (min-width: 48em) {
  .services {
    padding: var(--space-2xl) var(--space-md);
  }

  .services__intro {
    flex-direction: row;
    align-items: stretch;
    gap: var(--space-2xl);
  }

  .services__heading-block {
    flex: 0 0 auto;
    justify-content: center;
    white-space: nowrap;
  }

  .services__lead {
    display: flex;
    align-items: center;
  }

  .service-cards {
    flex-direction: row;
  }

  /* Stretch both cards to the row height so the shorter card's arrow CTA
     still sits on the bottom edge (Figma: col-1 is self-stretch). */
  .service-card {
    flex: 1 0 0;
    display: flex;
    flex-direction: column;
  }

  .service-card__body {
    flex: 1 0 auto;
    justify-content: space-between;
  }

  .service-card__title {
    font-size: var(--font-size-4xl);
  }
}

@media (min-width: 75em) {
  /* Figma 2246:870: the section background splits into a full-height
     dark-blue band on the left (450px at 1440 = content-left + 330px
     heading column) and white on the right. */
  .services {
    padding: var(--space-3xl) 0;
    background: linear-gradient(
      90deg,
      var(--dark-blue) calc(50% - 16.875rem),
      var(--pure-white) calc(50% - 16.875rem)
    );
  }

  .services__intro,
  .service-cards {
    max-width: var(--page-max-width);
    margin: 0 auto;
  }

  .services__intro {
    padding: 0 var(--space-3xl);
    gap: 7.5rem;
    margin-bottom: 3.5rem;
  }

  .services__heading-block {
    background: none;
    padding: 0;
    border-radius: 0;
    min-width: 20.625rem;
    gap: var(--space-xs);
  }

  .service-cards {
    padding: 0 var(--space-3xl);
    gap: 0 var(--space-3xl);
  }

  .services__lead {
    color: var(--ink);
  }

  .service-card__media {
    min-height: 20.25rem;
    padding: 3rem var(--space-md) var(--space-md);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  }

  .service-card__media .badge {
    font-size: var(--font-size-sm);
    padding: var(--space-2xs) var(--space-xs);
  }

  .service-card__title {
    font-size: var(--font-size-5xl);
  }

  .service-card__body {
    padding-top: var(--space-lg);
    border-radius: 0 0 0 var(--radius-sm);
  }

  .service-card__body p {
    padding: 0 var(--space-lg);
  }

  .arrow-btn {
    align-self: flex-end;
  }
}

/* =========================================================
   Japan Quality
   ========================================================= */
.quality {
  position: relative;
  overflow: hidden;
}

.quality__banner {
  position: relative;
  overflow: hidden;
  min-height: 25.7rem;
  display: flex;
  align-items: flex-end;
  padding: 3rem var(--space-lg);
}

/* SP flips the photo horizontally (Figma 2424:957). */
.quality__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.quality__tint {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 104, 168, 0.1);
  mix-blend-mode: multiply;
}

/* Diagonal sky-blue band across the banner.
   Base geometry matches the 390px SP frame (Figma 2424:958); the 75em
   block swaps in the 1440px PC geometry (Figma 2222:773). */
.quality__band {
  position: absolute;
  left: 9.8rem;
  top: 0.25rem;
  width: 15.9rem;
  height: 37.9rem;
  background-color: rgba(0, 141, 227, 0.6);
  transform: rotate(45deg);
  pointer-events: none;
}

.quality__banner-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-sm);
  width: 100%;
  color: var(--pure-white);
}

.quality__flag {
  width: 4.125rem;
  height: auto;
}

.quality__banner-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-sm);
  text-align: right;
}

.quality__kicker {
  font-size: var(--font-size-sm);
  font-weight: 700;
  padding-bottom: var(--space-2xs);
  border-bottom: 1px solid var(--pure-white);
}

.quality__title {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.trust-sections {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.trust-section {
  position: relative;
  overflow: hidden;
  min-height: 36.25rem;
  padding: 5.5rem var(--space-lg) var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  border-top: 2px solid var(--pure-white);
  background-color: var(--dark-beige);
}

.trust-section:first-child {
  border-top: 0;
}

/* Staggered top-down "paint" reveal (Figma dev annotation on 2422:1646,
   ref: nine-co.jp MESSAGE). .is-hidden is added by JS so the sections
   stay visible without it; delays are set inline per column. */
.trust-section.is-hidden {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.trust-section.is-hidden.is-visible {
  clip-path: inset(0 0 0 0);
}

/* Line-art illustration sits in the lower two-thirds of the beige panel. */
.trust-section__bg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  width: 100%;
  height: 66%;
  object-fit: cover;
  object-position: center bottom;
}

/* SP: oversized number sits centered behind the text (Figma 2424:1003). */
.trust-section__number {
  position: absolute;
  top: 0.375rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 6.5rem;
  line-height: 1.8;
  opacity: 0.75;
  color: var(--pure-white);
  margin: 0;
}

.trust-section__body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  width: 100%;
  text-align: left;
}

.trust-section__heading {
  font-family: var(--font-thai-sarabun);
  font-weight: 700;
  font-size: var(--font-size-3xl);
  line-height: 1.8;
  margin: 0;
  word-break: normal; /* break at Thai word boundaries, not mid-syllable */
}

.trust-section__body p {
  font-size: var(--font-size-md);
}

@media (min-width: 48em) {
  .quality__banner {
    min-height: 32rem;
    padding: var(--space-xl);
  }

  .quality__banner-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .quality__title {
    font-size: 2.5rem;
  }

  .trust-sections {
    flex-direction: row;
  }

  .trust-section {
    flex: 1 0 0;
    border-top: 0;
    border-right: 4px solid var(--pure-white);
  }

  .trust-section:last-child {
    border-right: 0;
  }
}

@media (min-width: 75em) {
  .quality__banner {
    height: 48.75rem;
    min-height: 0;
    padding: var(--space-3xl);
  }

  .quality__band {
    left: 25.1rem;
    top: -15.3rem;
    width: 34rem;
    height: 158.7rem;
    background-color: rgba(0, 141, 227, 0.7);
  }

  .quality__bg {
    transform: none;
  }

  .quality__banner-inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
    gap: var(--space-2xl);
  }

  .quality__flag {
    width: 13.5rem;
  }

  .quality__kicker {
    font-size: var(--font-size-3xl);
    padding-bottom: 1.25rem;
    border-bottom-width: 3px;
  }

  .quality__title {
    font-size: var(--font-size-6xl);
  }

  .trust-section {
    min-height: 48.75rem;
    padding: 11.25rem 5rem var(--space-xl);
    gap: var(--space-lg);
  }

  .trust-section__number {
    top: 0;
    left: 4.875rem;
    transform: none;
    font-size: var(--font-size-7xl);
    opacity: 1;
  }

  .trust-section__body p {
    font-size: var(--font-size-sm);
  }

  .trust-section__heading {
    font-size: var(--font-size-4xl);
    line-height: 1.5;
  }
}

/* =========================================================
   Gallery
   ========================================================= */
.gallery {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 0;
  background: linear-gradient(180deg, #ecf4f8 0%, rgba(236, 244, 248, 0) 64%);
}

/* Fading diagonal band in the top-left corner.
   Base geometry matches the 390px SP frame (Figma 2425:1077); the 75em
   block swaps in the 1440px PC geometry (Figma 2248:937). */
.gallery__decor {
  position: absolute;
  left: -2.76rem;
  top: -3.93rem;
  width: 6.66rem;
  height: 9.1rem;
  background: linear-gradient(180deg, rgba(0, 141, 227, 0.5), rgba(0, 141, 227, 0));
  transform: rotate(45deg);
  pointer-events: none;
}

/* SP: plain centered heading over the gradient; the white card look
   returns from 48em up. */
.gallery__intro {
  position: relative;
  padding: 0 var(--space-lg);
  margin-bottom: 3.5rem;
  text-align: center;
}

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

.gallery__lead {
  text-align: left;
}

/* SP grid (Figma 2425:1095): full-bleed, 8px gutters, fixed row heights,
   with only the inward corners rounded. */
.gallery__grid {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 9.25rem 9.25rem 6.875rem 9.25rem 9.25rem;
  gap: 0.5rem;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  background-color: var(--gray-400);
}

.gallery__item--tall-left,
.gallery__item--mid-right,
.gallery__item--bottom-right {
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
}

.gallery__item--top-mid,
.gallery__item--top-right,
.gallery__item--tall-mid {
  border-radius: var(--radius-xs) 0 0 var(--radius-xs);
}

.gallery__trigger {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: none;
  cursor: zoom-in;
  position: relative;
}

.gallery__trigger img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery__zoom {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  width: 1.5rem;
  height: 1.5rem;
  filter: drop-shadow(0 0 0.25rem rgba(0, 0, 0, 0.3));
}

.gallery__item--tall-left {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.gallery__item--top-mid {
  grid-column: 2;
  grid-row: 1;
}

.gallery__item--top-right {
  grid-column: 2;
  grid-row: 2;
}

/* Wide strip across both columns (Figma 2425:1116). */
.gallery__item--bottom-left {
  grid-column: 1 / -1;
  grid-row: 3;
  border-radius: 0;
}

.gallery__item--mid-right {
  grid-column: 1;
  grid-row: 4;
}

.gallery__item--tall-mid {
  grid-column: 2;
  grid-row: 4 / span 2;
}

.gallery__item--bottom-right {
  grid-column: 1;
  grid-row: 5;
}

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

  .gallery__intro {
    background-color: var(--pure-white);
    border-radius: var(--radius-sm);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    text-align: left;
  }

  .gallery__item {
    border-radius: var(--radius-xs);
  }

  .gallery__zoom {
    width: 2rem;
    height: 2rem;
    right: var(--space-xs);
    bottom: var(--space-xs);
  }

  .gallery__intro-row {
    flex-direction: row;
    align-items: center;
    gap: var(--space-2xl);
  }

  .gallery__lead {
    flex: 1 0 0;
  }

  .gallery__grid {
    grid-template-columns: repeat(9, minmax(0, 1fr));
    grid-template-rows: repeat(9, minmax(0, 1fr));
    gap: var(--space-sm);
  }

  .gallery__item--bottom-left {
    border-radius: var(--radius-xs);
  }

  .gallery__item {
    grid-row: auto;
  }

  .gallery__item--tall-left {
    grid-column: 1 / span 3;
    grid-row: 1 / span 6;
  }

  .gallery__item--top-mid {
    grid-column: 4 / span 3;
    grid-row: 1 / span 3;
  }

  .gallery__item--top-right {
    grid-column: 7 / span 3;
    grid-row: 1 / span 3;
  }

  .gallery__item--tall-mid {
    grid-column: 4 / span 3;
    grid-row: 4 / span 6;
  }

  .gallery__item--mid-right {
    grid-column: 7 / span 3;
    grid-row: 4 / span 3;
  }

  .gallery__item--bottom-left {
    grid-column: 1 / span 3;
    grid-row: 7 / span 3;
  }

  .gallery__item--bottom-right {
    grid-column: 7 / span 3;
    grid-row: 7 / span 3;
  }

}

@media (min-width: 75em) {
  .gallery {
    padding: 11.25rem 0 var(--space-3xl);
  }

  .gallery__decor {
    left: -12.6rem;
    top: -19.1rem;
    width: 34rem;
    height: 46.5rem;
  }

  .gallery__intro,
  .gallery__grid {
    max-width: var(--content-max-width);
    margin-left: auto;
    margin-right: auto;
  }

  .gallery__intro {
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
  }

  .gallery__grid {
    height: 48.75rem;
  }
}

/* =========================================================
   Company Profile
   ========================================================= */
.company {
  padding: 7.5rem var(--space-lg) 0;
}

.company__grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.company__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.company__media > img {
  width: 100%;
  height: 15rem;
  object-fit: cover;
  border-radius: var(--radius-xs);
}

.company__badge {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-round);
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-card);
}

.company__badge img {
  width: 60%;
  height: auto;
}

.company__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-lg);
}

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

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

  .company__media > img {
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-sm);
  }

  .company__grid {
    flex-direction: row;
    align-items: center;
    gap: var(--space-2xl);
  }

  .company__media {
    flex: 0 0 auto;
    width: 40%;
  }

  .company__content {
    flex: 1 0 0;
  }
}

@media (min-width: 75em) {
  .company {
    padding: 15rem 0 0;
  }

  .company__grid {
    max-width: var(--page-max-width);
    margin: 0 auto;
    padding: 0 var(--space-3xl);
    gap: 7.5rem;
  }

  .company__media {
    width: 35.5rem;
  }

  .company__content {
    padding: var(--space-2xl) 0;
  }
}

/* =========================================================
   Contact CTA banner / Footer
   Shared styles live in components.css. Only the page-specific
   spacing above the contact banner stays here (Figma: cta-footer
   pt-120 on SP, pt-160 on the PC top page).
   ========================================================= */
.contact {
  margin-top: 7.5rem;
}

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