/* ==========================================================================
   pages.css – shared pieces for the inner pages (About, Contact, News …)
   Same rules as style.css: 1 Figma px = var(--u), desktop first (≥ 1200px).
   Tablet / mobile overrides are at the bottom of this file.
   ========================================================================== */

/* in-page anchors (About › Our Story …) land below the fixed header */
html { scroll-padding-top: var(--hh-scrolled); }

/* ---------- Inner page hero (About 1:811 – 1920 × 588, #004b98) ---------- */
.page-hero {
  position: relative; z-index: 1;
  height: calc(588 * var(--u));
  overflow: hidden;
  background: var(--c-navy);
  color: #fff;
}
/* GOODWIN mark, white 14% soft-light (Figma 1:813 – 686 × 686 at 1333, -3) */
.page-hero__mark {
  position: absolute;
  left: calc(1333 * var(--u)); top: calc(-3 * var(--u));
  width: calc(686 * var(--u)); height: calc(686 * var(--u));
  max-width: none;
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.page-hero__content {
  position: absolute;
  left: 50%; top: calc(300 * var(--u));
  width: calc(1600 * var(--u));
  transform: translateX(-50%);
}
/* Host Grotesk ExtraBold 80/104, uppercase */
.page-hero__title {
  font-weight: 800;
  font-size: calc(80 * var(--u));
  line-height: calc(104 * var(--u));
  text-transform: uppercase;
}
/* Mona Sans Regular 32/48, 920 wide, 8px under the title */
.page-hero__text {
  width: calc(920 * var(--u));
  margin-top: calc(8 * var(--u));
  font-size: calc(32 * var(--u));
  line-height: calc(48 * var(--u));
}

/* ---------- Pagination dots (Figma 1:961 – 8px dots, active 48px) ---------- */
.dots { display: flex; align-items: flex-end; justify-content: center; gap: calc(8 * var(--u)); }
.dots span {
  width: calc(8 * var(--u)); height: calc(8 * var(--u));
  border-radius: 50px; background: #fff; opacity: 0.4;
}
.dots span.is-active { width: calc(48 * var(--u)); opacity: 1; }
.dots--navy span { background: var(--c-navy); }

/* ---------- Photos with cut corners (Figma: 82 × 82 cuts top-left + bottom-right) ----------
   The photo itself is clipped, so there is nothing laid on top of it and no hairline
   can show along the diagonal edges at any screen width. */
.cut-frame {
  --cut: calc(82 * var(--u));
  width: 100%; height: 100%;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.cut-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Triangle bullet list (Figma 18 × 18 navy marker, Mona Sans 20/28, #141414) ---------- */
.tick-list { display: grid; row-gap: calc(24 * var(--u)); }
.tick-list li {
  position: relative;
  padding-left: calc(34 * var(--u));
  color: #141414;
  font-size: calc(20 * var(--u));
  line-height: calc(28 * var(--u));
}
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: calc(9 * var(--u));
  width: calc(18 * var(--u)); height: calc(18 * var(--u));
  background: url("../assets/svg/bullet-triangle.svg") center / contain no-repeat;
}


/* ---------- Pill tabs (Figma component 1:182 – 74 high, radius 40, #b9dbfe border; active = Variant2 navy) ---------- */
.pill-tabs { position: relative; display: flex; justify-content: center; flex-wrap: wrap; gap: calc(24 * var(--u)); }
.pill-tab {
  min-width: calc(240 * var(--u));
  padding: calc(16 * var(--u)) calc(32 * var(--u));
  border: 1px solid #b9dbfe;
  border-radius: calc(40 * var(--u));
  background: transparent;
  color: #000;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: calc(32 * var(--u));
  line-height: calc(40 * var(--u));
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.pill-tab.is-active, .pill-tab:hover, .pill-tab:focus-visible { background: var(--c-navy); color: #fff; }

/* ---------- CTA banner (Manufacturing 1:4355, product pages 1:4840 – 1600 × 476) ---------- */
.cta-banner {
  position: relative; overflow: hidden;
  height: calc(476 * var(--u));
  margin-top: calc(160 * var(--u));
  background: var(--c-navy);
  color: #fff;
}
.cta-banner__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; }
/* triangle pattern – Figma 1:4357 at (1270, 229), clipped by the banner */
.cta-banner__pattern {
  position: absolute; left: calc(1270 * var(--u)); top: calc(229 * var(--u));
  width: calc(330 * var(--u)); height: calc(247 * var(--u));
  max-width: none; pointer-events: none;
}
.cta-banner__copy {
  position: absolute; left: calc(680 * var(--u)); top: calc(56 * var(--u));
  width: calc(856 * var(--u));
}
.cta-banner__title {
  font-weight: 700;
  font-size: calc(56 * var(--u));
  line-height: calc(72 * var(--u));
  text-transform: uppercase;
}
.cta-banner__text {
  margin-top: calc(16 * var(--u));
  font-size: calc(24 * var(--u));
  line-height: calc(36 * var(--u));
}
.cta-banner__btn { margin-top: calc(40 * var(--u)); height: calc(56 * var(--u)); padding-block: 0; }


/* ---------- Product card (Figma component 1:7429 – 376 × 480, 51px cuts, #185697 → #033160 fade) ---------- */
.portfolio-card {
  position: relative; display: block; overflow: hidden;
  height: calc(480 * var(--u));
  color: #fff;
  clip-path: polygon(calc(51 * var(--u)) 0, 100% 0, 100% calc(100% - 51 * var(--u)), calc(100% - 51 * var(--u)) 100%, 0 100%, 0 calc(51 * var(--u)));
}
.portfolio-card img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
/* default fade (bottom third, #185697 → #033160); hover = Figma card 1 (deeper fade + description) */
.portfolio-card::before, .portfolio-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; transition: opacity 0.5s var(--ease-out); }
.portfolio-card::before { background: linear-gradient(to bottom, rgba(24, 86, 151, 0) 66%, #033160 97%); }
.portfolio-card::after { background: linear-gradient(to bottom, rgba(24, 86, 151, 0) 0%, rgba(24, 86, 151, 0.6) 39%, #033160 94%); opacity: 0; }
.portfolio-card__body { position: absolute; z-index: 1; left: calc(24 * var(--u)); right: calc(24 * var(--u)); bottom: calc(24 * var(--u)); }
.portfolio-card__title {
  display: block;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: calc(32 * var(--u));
  line-height: calc(40 * var(--u));
}
.portfolio-card__text {
  display: block;
  max-height: 0; opacity: 0; overflow: hidden;
  font-size: calc(20 * var(--u));
  line-height: calc(32 * var(--u));
  transition: max-height 0.5s var(--ease-out), opacity 0.4s, margin-top 0.5s var(--ease-out);
}
.portfolio-card:hover::after, .portfolio-card:focus-visible::after { opacity: 1; }
.portfolio-card:hover img, .portfolio-card:focus-visible img { transform: scale(1.05); }
.portfolio-card:hover .portfolio-card__text, .portfolio-card:focus-visible .portfolio-card__text { max-height: calc(160 * var(--u)); opacity: 1; margin-top: calc(8 * var(--u)); }
@media (hover: none) {
  .portfolio-card::after { opacity: 1; }
  .portfolio-card__text { max-height: none; opacity: 1; margin-top: 8px; }
}

/* ==========================================================================
   TABLET + MOBILE (< 1200px)
   ========================================================================== */
@media (max-width: 1199.98px) {
  html { scroll-padding-top: var(--hh-scrolled); }
  .page-hero { height: auto; padding: 152px 0 72px; }
  .page-hero__mark { left: auto; right: -120px; top: 0; width: 420px; height: 420px; }
  .page-hero__content { position: relative; left: auto; top: auto; transform: none; width: calc(100% - var(--gutter) * 2); margin-inline: auto; }
  .page-hero__title { font-size: clamp(36px, 6.4vw, 56px); line-height: 1.25; }
  .page-hero__text { width: auto; max-width: 640px; margin-top: 12px; font-size: clamp(17px, 2.4vw, 22px); line-height: 1.5; }
  .dots { gap: 6px; }
  .dots span { width: 8px; height: 8px; }
  .dots span.is-active { width: 40px; }
  .cut-frame { --cut: 48px; }
  .tick-list { row-gap: 12px; }
  .tick-list li { padding-left: 28px; font-size: 16px; line-height: 24px; }
  .tick-list li::before { top: 5px; width: 14px; height: 14px; }
  .pill-tabs { gap: 12px; padding-inline: var(--gutter); }
  .cta-banner { height: auto; margin-top: 72px; }
  .cta-banner__bg { object-position: 20% center; }
  .cta-banner__pattern { left: auto; right: 0; top: auto; bottom: 0; width: 200px; height: 150px; }
  .cta-banner__copy { position: relative; left: auto; top: auto; width: 54%; margin-left: auto; padding: 48px 32px 48px 0; }
  .cta-banner__title { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.25; }
  .cta-banner__text { margin-top: 12px; font-size: 17px; line-height: 1.6; }
  .cta-banner__btn { margin-top: 28px; height: auto; padding-block: 10px; }
  .portfolio-card { height: auto; aspect-ratio: 376 / 480; clip-path: polygon(32px 0, 100% 0, 100% calc(100% - 32px), calc(100% - 32px) 100%, 0 100%, 0 32px); }
  .portfolio-card__body { left: 16px; right: 16px; bottom: 16px; }
  .portfolio-card__title { font-size: 19px; line-height: 26px; }
  .portfolio-card__text { font-size: 14px; line-height: 21px; }
  .pill-tab { min-width: 150px; padding: 10px 24px; border-radius: 40px; font-size: 20px; line-height: 28px; }
}

@media (max-width: 767.98px) {
  :root { --gutter: 20px; }
  .page-hero { padding: 120px 0 56px; }
  .page-hero__mark { width: 300px; height: 300px; right: -110px; }
  .cta-banner { display: flex; flex-direction: column; }
  .cta-banner__bg { position: relative; height: 220px; object-position: 0 center; }
  .cta-banner__copy { width: auto; margin: 0; padding: 32px 20px 40px; background: var(--c-navy); }
  .cta-banner__pattern { width: 160px; height: 120px; }
}
