/*
 * Content pages — About, Process and Quality
 *
 * This is the page-level experience layer for the shared content templates.
 * Structure and copy stay in the PHP views; all visual treatment lives here
 * so the pages remain easy to reuse without inline styles.
 */

/* Hero image assignments -------------------------------------------------- */
.page-hero--about.page-hero {
  --hero-image: url('../media/Story/Story%20Hero%20%E2%80%94%20From%20Seed%20to%20Global%20Vision.png');
}

.page-hero--history.page-hero {
  --hero-image: url('../media/process/field.png');
}

.page-hero--process.page-hero,
.page-hero--qc.page-hero,
.page-hero--supply-chain.page-hero {
  --hero-image: url('../media/process/process-factory.png');
}

.page-hero--quality.page-hero {
  --hero-image: url('../media/quality-lab.png');
}

.page-hero--certificates.page-hero {
  --hero-image: url('../media/Certificates/allcert.png');
}

.contact-hero {
  --hero-image: url('../media/process/field.png');
}

/* Certificates follows the Products hero composition: the document image
 * remains certificate-specific, while the footprint and focal point stay
 * consistent with the catalog entry point. */
.certificates-page.page-hero {
  background-position: 50% 50%;
}

/* Shared content rhythm --------------------------------------------------- */
.content-shell.about-page,
.content-shell.process-page {
  overflow: clip;
  padding-block: clamp(78px, 9vw, 128px);
}

.content-shell .content-intro {
  align-items: start;
  grid-template-columns: minmax(132px, .46fr) minmax(0, 1.8fr);
  gap: clamp(30px, 6.5vw, 96px);
  padding-bottom: clamp(48px, 6vw, 78px);
}

.content-intro-marker {
  display: grid;
  align-content: start;
  gap: 18px;
  min-width: 0;
  padding-top: 8px;
}

.content-intro-marker .intro-index {
  display: block;
  font-size: 10px;
  letter-spacing: .22em;
  white-space: nowrap;
}

.content-intro-rule {
  display: block;
  width: min(100%, 105px);
  height: 1px;
  background: linear-gradient(90deg, var(--copper), transparent);
}

[dir='rtl'] .content-intro-rule {
  background: linear-gradient(270deg, var(--copper), transparent);
}

.content-intro-count {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.content-intro-copy {
  min-width: 0;
}

.content-intro-copy .eyebrow {
  margin-bottom: 17px;
}

.content-intro-copy h2 {
  max-width: 820px;
  font-size: clamp(2.45rem, 4.25vw, 5rem);
  line-height: .98;
  text-wrap: balance;
}

/* The Certificates intro has no index column, so the heading can use the full shell. */
.certificates-page.content-shell .content-intro {
  grid-template-columns: minmax(0, 1fr);
}

.content-shell .editorial-section {
  min-width: 0;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(34px, 7vw, 104px);
  padding-block: clamp(58px, 7vw, 96px);
  scroll-margin-top: 92px;
}

.content-shell .editorial-copy,
.content-shell .editorial-image {
  min-width: 0;
}

.content-shell .editorial-copy {
  max-width: 560px;
}

.content-shell .editorial-copy .eyebrow {
  margin-bottom: 15px;
}

.content-shell .editorial-copy h2 {
  max-width: 620px;
  margin-bottom: 20px;
  font-size: clamp(2.3rem, 3.8vw, 4.35rem);
  line-height: .98;
  text-wrap: balance;
}

.content-shell .editorial-copy > p:last-of-type {
  max-width: 510px;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.72;
}

.content-shell .editorial-image {
  position: relative;
  aspect-ratio: 1.42;
  min-height: 350px;
  border-color: color-mix(in srgb, var(--copper) 34%, var(--line));
  background: var(--paper-2);
  isolation: isolate;
}

.content-shell .editorial-image::after {
  content: '';
  position: absolute;
  z-index: 1;
  pointer-events: none;
  inset: 12px;
  border: 1px solid color-mix(in srgb, var(--copper) 48%, transparent);
  opacity: .65;
}

.content-shell .editorial-image img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.84) contrast(1.02);
  transition: transform .55s cubic-bezier(.22, .8, .24, 1), filter .35s ease;
}

.content-shell .editorial-section:hover .editorial-image img,
.content-shell .editorial-section:focus-within .editorial-image img {
  filter: saturate(1) contrast(1.02);
  transform: scale(1.025);
}

/* Section jump rails ------------------------------------------------------ */
.page-journey {
  position: relative;
  z-index: 1;
  margin-bottom: clamp(8px, 2vw, 24px);
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper-2) 58%, transparent);
}

.page-journey-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-block: 15px;
}

.page-journey-head .eyebrow {
  margin-bottom: 0;
}

.page-journey-head > span:last-child {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.page-journey ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: 0;
  border-top: 1px solid var(--line);
}

.page-journey li {
  min-width: 0;
  border-inline-end: 1px solid var(--line);
}

.page-journey li:last-child {
  border-inline-end: 0;
}

.page-journey a {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 88px;
  padding: 16px 18px 18px;
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}

.page-journey a:hover,
.page-journey a:focus-visible {
  background: var(--paper);
  color: var(--copper);
  transform: translateY(-2px);
}

.page-journey a:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: -3px;
}

.page-journey a span {
  color: var(--copper);
  font: 400 1.45rem/.8 var(--serif);
  letter-spacing: -.04em;
}

.page-journey a strong {
  overflow: hidden;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.35;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

/* About ------------------------------------------------------------------- */
.about-page.content-shell {
  background:
    radial-gradient(circle at 90% 6%, color-mix(in srgb, var(--olive) 8%, transparent), transparent 25%),
    var(--paper);
}

.about-page.content-shell .content-intro {
  grid-template-columns: minmax(132px, .42fr) minmax(0, 1.95fr);
}

.about-page .editorial-section {
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
}

.about-page .editorial-section.reverse {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
}

.about-page .editorial-section:nth-of-type(odd) .editorial-copy {
  padding-inline-start: clamp(0px, 1.5vw, 22px);
}

.about-page .editorial-section.reverse .editorial-copy {
  padding-inline-end: clamp(0px, 1.5vw, 22px);
}

.about-page .editorial-image {
  aspect-ratio: 1.34;
}

/* Process ----------------------------------------------------------------- */
.process-page.content-shell {
  background:
    linear-gradient(90deg, transparent 0, transparent calc(50% - 1px), color-mix(in srgb, var(--line) 42%, transparent) 50%, transparent calc(50% + 1px)),
    var(--paper);
}

.process-page .process-stage {
  position: relative;
}

.process-page .process-stage:not(.process-overview-stage)::before {
  content: '';
  position: absolute;
  top: -1px;
  inset-inline-start: 0;
  width: clamp(54px, 8vw, 116px);
  height: 1px;
  background: var(--copper);
  opacity: .7;
}

.process-page .process-overview-stage {
  margin-bottom: clamp(8px, 2vw, 20px);
  padding-block: clamp(42px, 5vw, 70px);
  background: color-mix(in srgb, var(--paper-2) 70%, transparent);
}

.process-page .process-overview-stage .editorial-copy {
  padding-inline-start: clamp(0px, 1.5vw, 22px);
}

.process-page .process-stage-heading {
  text-wrap: balance;
}

.process-page .process-stage-number {
  color: var(--copper);
}

.process-page .process-stage:nth-of-type(odd) .process-stage-number {
  color: var(--amber);
}

.process-page .editorial-image-tag {
  position: absolute;
  z-index: 2;
  inset-inline-start: 20px;
  bottom: 18px;
  max-width: calc(100% - 40px);
  padding: 7px 10px;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  color: var(--copper);
  font-size: 9px;
  letter-spacing: .14em;
  line-height: 1.2;
  text-transform: uppercase;
}

/* Quality ----------------------------------------------------------------- */
.quality-page-hero {
  --hero-image: url('../media/quality-lab.png');
  min-height: 610px;
}

.quality-page-hero .shell {
  width: min(1180px, 100% - 64px);
}

.quality-page-hero h1 {
  max-width: 780px;
  font-size: clamp(3.5rem, 6vw, 6.55rem);
  line-height: .93;
  text-wrap: balance;
}

.quality-page-hero .page-hero-copy {
  max-width: 500px;
  line-height: 1.6;
}

.quality-anchor-nav {
  border-block: 1px solid var(--line);
  background: var(--paper-2);
}

.quality-anchor-nav .shell {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.quality-anchor-nav a {
  align-items: center;
  display: flex;
  gap: 14px;
  min-width: 0;
  min-height: 70px;
  padding: 13px 20px;
  border-inline-end: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .12em;
  transition: color .2s ease, background-color .2s ease;
}

.quality-anchor-nav a:last-child {
  border-inline-end: 0;
}

.quality-anchor-nav a:hover,
.quality-anchor-nav a:focus-visible {
  background: var(--paper);
  color: var(--copper);
}

.quality-anchor-nav a:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: -3px;
}

.quality-anchor-nav a span {
  color: var(--copper);
  font: 400 1.55rem/.8 var(--serif);
  letter-spacing: -.05em;
}

.quality-approach-section {
  background: var(--paper);
}

.quality-approach-copy {
  min-width: 0;
}

.quality-approach-copy > h2 {
  max-width: 690px;
  line-height: .98;
  text-wrap: balance;
}

.quality-approach-copy > .lead {
  max-width: 620px;
  line-height: 1.7;
}

.quality-approach-section .quality-list {
  margin-top: clamp(34px, 4vw, 52px);
}

.quality-approach-section .quality-approach-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  min-width: 0;
  border-radius: 18px;
}

.quality-feature {
  position: relative;
  min-width: 0;
  border-color: color-mix(in srgb, var(--copper) 35%, var(--line));
  background: var(--paper-2);
  box-shadow: 0 20px 50px color-mix(in srgb, var(--ink) 8%, transparent);
}

.quality-feature img {
  height: clamp(330px, 36vw, 500px);
  filter: saturate(.8) contrast(1.04);
}

.quality-feature-body {
  padding: clamp(22px, 3vw, 34px) !important;
}

.quality-feature-body h3 {
  font-size: clamp(1.65rem, 2.4vw, 2.65rem);
  line-height: 1;
}

.quality-certificates-section {
  background: var(--paper-2);
}

.quality-certificates-section .certificate-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
}

.quality-certificates-section .quality-certificate-preview {
  min-width: 0;
  border-radius: 18px;
}

.quality-process-section {
  background: var(--paper);
}

.quality-process-section .section-heading {
  margin-bottom: clamp(28px, 4vw, 46px);
}

.quality-process-section .section-heading h2 {
  max-width: 760px;
  line-height: .98;
  text-wrap: balance;
}

.quality-process-section .mini-process {
  border-color: var(--line);
}

.quality-process-section .mini-process > div {
  min-width: 0;
  min-height: 190px;
  padding: clamp(21px, 2.5vw, 32px) clamp(17px, 2vw, 25px);
  transition: background-color .25s ease, transform .25s ease;
}

.quality-process-section .mini-process > div:hover {
  background: var(--paper-2);
  transform: translateY(-3px);
}

/* Responsive layouts ------------------------------------------------------ */
@media (max-width: 900px) {
  .content-shell.about-page,
  .content-shell.process-page {
    padding-block: 72px 94px;
  }

  .content-shell .content-intro {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-bottom: 54px;
  }

  .content-intro-marker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 18px;
    padding-top: 0;
  }

  .content-intro-rule {
    width: 42px;
    background: var(--copper);
  }

  [dir='rtl'] .content-intro-rule {
    background: var(--copper);
  }

  .content-shell .editorial-section,
  .about-page .editorial-section,
  .about-page .editorial-section.reverse {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 60px;
  }

  .content-shell .editorial-section.reverse .editorial-copy,
  .content-shell .editorial-section.reverse .editorial-image,
  .about-page .editorial-section:nth-of-type(odd) .editorial-copy,
  .about-page .editorial-section.reverse .editorial-copy {
    order: initial;
    padding-inline: 0;
  }

  .content-shell .editorial-copy,
  .content-shell .editorial-image {
    max-width: 720px;
  }

  .content-shell .editorial-image {
    min-height: 360px;
  }

  .page-journey ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-journey li:nth-child(2n) {
    border-inline-end: 0;
  }

  .page-journey li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .process-page.content-shell {
    background: var(--paper);
  }

  .quality-page-hero {
    min-height: 540px;
  }

  .quality-page-hero .shell {
    width: min(100% - 38px, 720px);
  }

  .quality-anchor-nav .shell {
    width: min(100% - 38px, 720px);
  }

  .quality-anchor-nav a {
    padding-inline: 14px;
    font-size: 9px;
  }

  .quality-layout {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .quality-feature {
    max-width: 720px;
  }

  .quality-certificates-section .certificate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quality-process-section .mini-process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quality-process-section .mini-process > div:nth-child(2n) {
    border-inline-end: 0;
  }

  .quality-process-section .mini-process > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .content-shell.about-page,
  .content-shell.process-page {
    padding-block: 61px 80px;
  }

  .content-shell .content-intro {
    padding-bottom: 43px;
  }

  .content-intro-count {
    font-size: 8px;
  }

  .content-intro-copy .eyebrow {
    margin-bottom: 14px;
  }

  .content-intro-copy h2 {
    font-size: clamp(2.3rem, 11vw, 3.4rem);
  }

  .page-journey-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    padding-block: 13px;
  }

  .page-journey ol {
    grid-template-columns: 1fr;
  }

  .page-journey li,
  .page-journey li:nth-child(2n) {
    border-inline-end: 0;
    border-top: 1px solid var(--line);
  }

  .page-journey li:first-child {
    border-top: 0;
  }

  .page-journey a {
    min-height: 66px;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 13px 15px;
  }

  .page-journey a strong {
    white-space: normal;
  }

  .content-shell .editorial-section,
  .about-page .editorial-section,
  .about-page .editorial-section.reverse {
    gap: 27px;
    padding-block: 48px 53px;
  }

  .content-shell .editorial-copy h2 {
    margin-bottom: 16px;
    font-size: clamp(2.2rem, 10.5vw, 3.2rem);
  }

  .content-shell .editorial-copy > p:last-of-type {
    font-size: .96rem;
    line-height: 1.65;
  }

  .content-shell .editorial-image {
    aspect-ratio: 1.18;
    min-height: 250px;
  }

  .content-shell .editorial-image::after {
    inset: 8px;
  }

  .process-page .process-overview-stage {
    padding-block: 35px 42px;
  }

  .process-page .editorial-image-tag {
    inset-inline-start: 14px;
    bottom: 14px;
  }

  .quality-page-hero {
    min-height: 265px;
    padding-top: 76px;
  }

  .quality-page-hero .hero-overlay {
    background: linear-gradient(180deg, color-mix(in srgb, var(--paper) 94%, transparent) 0%, color-mix(in srgb, var(--paper) 58%, transparent) 60%, color-mix(in srgb, var(--paper) 78%, transparent) 100%);
  }

  .quality-page-hero h1 {
    margin-bottom: 8px;
    font-size: clamp(1.85rem, 7.8vw, 2.45rem);
  }

  .quality-page-hero .page-hero-copy {
    font-size: clamp(0.85rem, 3.1vw, 0.94rem);
    line-height: 1.45;
  }

  .quality-anchor-nav .shell {
    width: calc(100% - 28px);
    grid-template-columns: 1fr;
  }

  .quality-anchor-nav a,
  .quality-anchor-nav a:last-child {
    min-height: 54px;
    border-inline-end: 0;
    border-bottom: 1px solid var(--line);
    padding-block: 9px;
  }

  .quality-anchor-nav a:last-child {
    border-bottom: 0;
  }

  .quality-approach-section .quality-approach-card {
    border-radius: 15px;
  }

  .quality-feature img {
    height: 290px;
  }

  .quality-feature-body {
    padding: 20px !important;
  }

  .quality-certificates-section .certificate-grid {
    grid-template-columns: 1fr;
  }

  .quality-process-section .mini-process {
    grid-template-columns: 1fr;
  }

  .quality-process-section .mini-process > div,
  .quality-process-section .mini-process > div:nth-child(2n) {
    min-height: 0;
    border-inline-end: 0;
    border-top: 1px solid var(--line);
  }

  .quality-process-section .mini-process > div:first-child {
    border-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .content-shell .editorial-image img,
  .page-journey a,
  .quality-anchor-nav a,
  .quality-process-section .mini-process > div {
    transition: none;
  }
}

/* Keep the phone reading hierarchy compact without changing desktop sizing. */
@media (max-width: 600px) {
  .site-body.page-about .page-hero > .shell > h1,
  .site-body.page-process .page-hero > .shell > h1 {
    font-size: clamp(1.75rem, 7.35vw, 2.3rem);
  }

  .site-body.page-about .page-hero .page-hero-copy,
  .site-body.page-process .page-hero .page-hero-copy {
    font-size: clamp(.8rem, 2.95vw, .9rem);
  }

  .site-body.page-about .content-intro-copy h2,
  .site-body.page-process .content-intro-copy h2,
  .site-body.page-about .editorial-copy h2,
  .site-body.page-process .editorial-copy h2 {
    font-size: clamp(2rem, 9vw, 2.95rem);
  }
}
