/* ==========================================================================
   locations.css – Locations page (Figma frame "locations" 1:6105, 1920 × 5002)
   1 Figma px = var(--u). Shared .cut-frame lives in pages.css, .carousel-arrow in style.css.
   ========================================================================== */

/* ---------- Hero (1920 × 832 photo + #185697 → #033160 fade) ---------- */
.location-hero {
  position: relative; z-index: 1;
  height: calc(832 * var(--u));
  overflow: hidden;
  background: #033160;
  color: #fff;
}
.location-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.location-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(24, 86, 151, 0) 0%, rgba(24, 86, 151, 0.6) 38%, #033160 94%);
}
.location-hero__content {
  position: absolute; z-index: 2;
  left: 50%; top: calc(472 * var(--u));
  width: calc(1600 * var(--u));
  transform: translateX(-50%);
}
.breadcrumb { font-size: calc(20 * var(--u)); line-height: calc(32 * var(--u)); }
.breadcrumb a { transition: color 0.3s; }
.breadcrumb a:hover, .breadcrumb a:focus-visible { color: #55c5ff; }
.location-hero__title {
  margin-top: calc(16 * var(--u));
  font-weight: 800;
  font-size: calc(80 * var(--u));
  line-height: calc(104 * var(--u));
}
.location-hero__text {
  width: calc(1150 * var(--u));
  margin-top: calc(16 * var(--u));
  font-size: calc(32 * var(--u));
  line-height: calc(48 * var(--u));
}

/* ---------- Overview (y928) ---------- */
.location-overview {
  display: grid;
  grid-template-columns: calc(648 * var(--u)) 1fr;
  column-gap: calc(80 * var(--u));
  align-items: center;
  margin-top: calc(96 * var(--u));
}
/* bottom-right 82 × 82 cut (Figma corner motif 1:6122). Clipped on the photo, not the
   wrapper: the wrapper's reveal animation sets its own clip-path and would remove the cut. */
.location-overview__media { --cut: calc(82 * var(--u)); height: calc(520 * var(--u)); }
.location-overview__media img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}
.location-overview__title {
  color: var(--c-navy);
  font-weight: 600;
  font-size: calc(56 * var(--u));
  line-height: calc(72 * var(--u));
  text-transform: uppercase;
}
.location-overview__text {
  margin-top: calc(24 * var(--u));
  color: var(--c-text);
  font-size: calc(24 * var(--u));
  line-height: calc(36 * var(--u));
}
.location-overview__text p + p { margin-top: calc(24 * var(--u)); }

/* ---------- Contact band (y1608, #e1f0ff) ---------- */
.location-contact { margin-top: calc(160 * var(--u)); background: #e1f0ff; }
.location-contact__inner {
  display: grid;
  grid-template-columns: calc(784 * var(--u)) 1fr;
  column-gap: calc(80 * var(--u));
  padding-block: calc(96 * var(--u));
}
.location-contact__title, .location-section-title {
  color: #141414;
  font-weight: 600;
  font-size: calc(56 * var(--u));
  line-height: calc(72 * var(--u));
}
.location-section-title--center { text-align: center; }
.location-contact__text {
  margin-top: calc(24 * var(--u));
  color: var(--c-text);
  font-size: calc(24 * var(--u));
  line-height: calc(36 * var(--u));
}
.location-contact__btn { margin-top: calc(24 * var(--u)); }
.location-contact__list { display: grid; align-content: start; row-gap: calc(56 * var(--u)); }
.location-contact__item { display: flex; align-items: flex-start; gap: calc(16 * var(--u)); }
.location-contact__item img { flex: none; width: calc(32 * var(--u)); height: calc(32 * var(--u)); margin-top: calc(4 * var(--u)); }
.location-contact__label {
  color: var(--c-text);
  font-family: var(--f-head);
  font-weight: 600;
  font-size: calc(28 * var(--u));
  line-height: calc(40 * var(--u));
}
.location-contact__value { margin-top: calc(8 * var(--u)); color: #000; font-size: calc(32 * var(--u)); line-height: calc(48 * var(--u)); }
.location-contact__value a { transition: color 0.3s; }
.location-contact__value a:hover, .location-contact__value a:focus-visible { color: var(--c-blue); }

/* ---------- Manufacturing capabilities (y2246, cards 512 × 545 with 65px cuts) ---------- */
.location-caps { margin-top: calc(160 * var(--u)); }
.location-caps__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(32 * var(--u)); margin-top: calc(32 * var(--u)); }
.cap-card { display: block; color: #000; }
.cap-card__media { display: block; --cut: calc(65 * var(--u)); height: calc(545 * var(--u)); overflow: hidden; }
.cap-card__media img { transition: transform 0.8s var(--ease-out); }
.cap-card__title {
  display: block;
  margin-top: calc(25 * var(--u));
  font-family: var(--f-head);
  font-weight: 600;
  font-size: calc(32 * var(--u));
  line-height: calc(48 * var(--u));
  transition: color 0.3s;
}
.cap-card:hover .cap-card__media img, .cap-card:focus-visible .cap-card__media img { transform: scale(1.05); }
.cap-card:hover .cap-card__title, .cap-card:focus-visible .cap-card__title { color: var(--c-blue); }

/* "Our Product Portfolio": same section as the homepage (.products, style.css) */

/* ==========================================================================
   TABLET + MOBILE (< 1200px)
   ========================================================================== */
@media (max-width: 1199.98px) {
  .location-hero { height: auto; min-height: 520px; display: flex; align-items: flex-end; }
  .location-hero__content { position: relative; left: auto; top: auto; transform: none; width: calc(100% - var(--gutter) * 2); margin: 0 auto; padding: 160px 0 48px; }
  .breadcrumb { font-size: 15px; line-height: 24px; }
  .location-hero__title { margin-top: 8px; font-size: clamp(40px, 7vw, 56px); line-height: 1.2; }
  .location-hero__text { width: auto; max-width: 640px; margin-top: 12px; font-size: clamp(17px, 2.4vw, 22px); line-height: 1.5; }

  .location-overview { grid-template-columns: 1fr 1.2fr; column-gap: 32px; margin-top: 64px; }
  .location-overview__media { --cut: 48px; height: auto; aspect-ratio: 648 / 520; }
  .location-overview__title, .location-contact__title, .location-section-title { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.25; }
  .location-overview__text, .location-contact__text { margin-top: 12px; font-size: 17px; line-height: 1.6; }
  .location-overview__text p + p { margin-top: 12px; }

  .location-contact { margin-top: 80px; }
  .location-contact__inner { grid-template-columns: 1.3fr 1fr; column-gap: 32px; padding-block: 56px; }
  .location-contact__btn { margin-top: 20px; }
  .location-contact__list { row-gap: 24px; }
  .location-contact__item { gap: 12px; }
  .location-contact__item img { width: 24px; height: 24px; margin-top: 2px; }
  .location-contact__label { font-size: 18px; line-height: 26px; }
  .location-contact__value { margin-top: 4px; font-size: 18px; line-height: 28px; overflow-wrap: anywhere; }

  .location-caps { margin-top: 80px; }
  .location-caps__grid { gap: 16px; margin-top: 24px; }
  .cap-card__media { --cut: 32px; height: auto; aspect-ratio: 512 / 545; }
  .cap-card__title { margin-top: 12px; font-size: 18px; line-height: 26px; }

}

@media (max-width: 767.98px) {
  .location-hero { min-height: 460px; }
  .location-hero__content { padding: 120px 0 36px; }
  .location-overview { grid-template-columns: 1fr; row-gap: 24px; }
  .location-contact__inner { grid-template-columns: 1fr; row-gap: 32px; padding-block: 48px; }
  .location-caps__grid { grid-template-columns: 1fr; gap: 24px; }
  .location-caps__grid .cap-card__media { aspect-ratio: 512 / 420; }
}

