/* ==========================================================================
   IndoSpiceHub — Components
   ========================================================================== */

/* ---------- Layout primitives ---------- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: var(--container-narrow); }

.section {
  padding-block: var(--space-7);
}

.section--tight { padding-block: var(--space-6); }

.section--forest {
  background: var(--color-forest-700);
  color: var(--color-ivory);
}

.section--ivory-deep {
  background: var(--color-ivory-deep);
}

.grid {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Eyebrow / section labels ----------
   The small kicker above every section heading. Functions like a manifest
   line-item label: short, capitalized, always paired with a hairline rule. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-gold-600);
  margin-bottom: var(--space-2);
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--color-gold-500);
  flex-shrink: 0;
}

.section--forest .eyebrow,
.is-on-dark .eyebrow { color: var(--color-gold-200); }
.section--forest .eyebrow::before,
.is-on-dark .eyebrow::before { background: var(--color-gold-200); }

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-6);
}

.section-head h2 { font-size: var(--text-h2); }
.section-head--center { margin-inline: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: 0.9rem 1.875rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: background var(--duration-fast) var(--ease-standard),
              color var(--duration-fast) var(--ease-standard),
              border-color var(--duration-fast) var(--ease-standard),
              transform var(--duration-fast) var(--ease-standard);
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--color-gold-500);
  color: var(--color-forest-900);
}
.btn--primary:hover { background: var(--color-gold-200); }

.btn--outline {
  border-color: currentColor;
  color: inherit;
}
.btn--outline:hover {
  background: var(--color-charcoal);
  color: var(--color-white);
  border-color: var(--color-charcoal);
}

.section--forest .btn--outline:hover,
.hero .btn--outline:hover {
  background: var(--color-ivory);
  color: var(--color-forest-900);
  border-color: var(--color-ivory);
}

.btn--text {
  padding: 0;
  border-bottom: 1px solid var(--color-gold-500);
  border-radius: 0;
  font-weight: 600;
  color: var(--color-forest-700);
}
.btn--text:hover { color: var(--color-gold-600); border-color: var(--color-gold-600); }

/* ---------- Site header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(247, 244, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-forest-900);
}
.brand__sub {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-charcoal-60);
}

.nav {
  display: none;
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
    align-items: center;
    gap: var(--space-5);
  }
}

.nav__list {
  display: flex;
  gap: var(--space-4);
}

.nav__link {
  position: relative;
  font-size: 0.9375rem;
  font-weight: 500;
  padding-block: var(--space-1);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--color-gold-500);
  transition: right var(--duration-base) var(--ease-standard);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { right: 0; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-1);
}
.nav-toggle span {
  width: 24px; height: 1.5px;
  background: var(--color-charcoal);
  transition: transform var(--duration-base) var(--ease-standard), opacity var(--duration-base);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
}

.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-ivory);
  z-index: var(--z-overlay);
  padding: var(--space-5) var(--gutter);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-base) var(--ease-standard), transform var(--duration-base) var(--ease-standard);
  box-shadow: 0 24px 48px rgb(20 39 29 / 12%);
  border-bottom: 1px solid var(--color-border);
}
.mobile-nav.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.mobile-nav__link {
  display: block;
  width: 100%;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: var(--text-h5);
  font-weight: 600;
  color: var(--color-forest-900);
  background: var(--color-ivory);
  transition: background var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard);
}
.mobile-nav__link:hover,
.mobile-nav__link:focus-visible {
  background: var(--color-forest-100);
}

@media (min-width: 1024px) {
  .mobile-nav { display: none; }
}

.nav-cta { display: none; }
@media (min-width: 1024px) { .nav-cta { display: inline-flex; } }

/* ---------- Trust bar (legacy strip — superseded by .trust-grid) ---------- */
.trust-bar {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-white);
}
.trust-bar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  justify-content: space-between;
  align-items: center;
  padding-block: var(--space-3);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-charcoal-60);
}
.trust-bar__item { display: flex; align-items: center; gap: var(--space-1); white-space: nowrap; }
.trust-bar__item svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--color-gold-600); }

/* ---------- Trust grid — six-pillar credibility band ----------
   An elegant horizontal strip, not a grid of cards: items separated
   by a single hairline rule, generous breathing room, no boxes,
   no shadows. Reads like a manifest line, not a marketing widget. */
.trust-grid {
  display: flex;
  flex-wrap: wrap;
}
.trust-pillar {
  flex: 1 1 280px;
  padding: var(--space-5) var(--space-4);
  border-top: 1px solid var(--color-border);
}
.trust-pillar + .trust-pillar { border-left: 1px solid var(--color-border); }
@media (max-width: 899px) {
  .trust-pillar + .trust-pillar { border-left: none; }
}
.trust-pillar__mark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.875rem;
  color: #7a5c14; /* darkened from var(--color-gold-500) to meet WCAG AA contrast */
  letter-spacing: 0.04em;
  margin-bottom: var(--space-2);
  display: block;
}
.trust-pillar h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-h6);
  margin-bottom: var(--space-1);
}
.trust-pillar p {
  font-size: 0.9375rem;
  color: var(--color-charcoal-60);
  max-width: 34ch;
  line-height: var(--leading-normal);
}

/* ---------- Cards ---------- */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: var(--space-4);
  transition: box-shadow var(--duration-base) var(--ease-standard), transform var(--duration-base) var(--ease-standard);
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }

.product-card { display: flex; flex-direction: column; height: 100%; }
.product-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin: calc(var(--space-4) * -1) calc(var(--space-4) * -1) var(--space-3);
  background: var(--color-forest-100);
}
.product-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-standard);
}
.card:hover .product-card__media img { transform: scale(1.04); }
.product-card__tag {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold-600);
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.product-card__name { font-size: var(--text-h5); margin-bottom: var(--space-2); }
.product-card__desc { color: var(--color-charcoal-60); flex-grow: 1; margin-bottom: var(--space-3); }
.product-card__footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-border);
}

/* ---------- Stats ---------- */
.stat { text-align: left; }
.stat__value {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  color: var(--color-gold-500);
  line-height: 1;
}
.stat__label {
  margin-top: var(--space-1);
  font-size: 0.875rem;
  color: var(--color-charcoal-60);
}
.section--forest .stat__label { color: var(--color-ivory); opacity: 0.75; }

/* ---------- Feature / icon list rows ---------- */
.feature-row {
  display: flex;
  gap: var(--space-3);
  padding-block: var(--space-3);
  border-top: 1px solid var(--color-border);
}
.feature-row:last-child { border-bottom: 1px solid var(--color-border); }
.feature-row__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--color-gold-500);
  color: var(--color-gold-600);
  border-radius: 50%;
}
.feature-row__icon svg { width: 20px; height: 20px; }
.feature-row h3 { font-size: var(--text-h6); margin-bottom: 0.25rem; font-family: var(--font-body); font-weight: 600; }
.feature-row p { color: var(--color-charcoal-60); font-size: 0.9375rem; }

/* ---------- Process steps (the export pipeline) ---------- */
.process {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--color-border-dark);
}
.process__step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: var(--space-3);
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--color-border-dark);
  position: relative;
}
.process__index {
  font-family: var(--font-display);
  font-size: var(--text-h4);
  color: var(--color-gold-500);
  line-height: 1;
}
.process__step h3 { font-size: var(--text-h5); margin-bottom: var(--space-1); }
.process__step p { opacity: 0.85; max-width: 52ch; }

@media (min-width: 768px) {
  .process__step { grid-template-columns: 96px 1fr; gap: var(--space-4); }
}

/* ---------- Signature element: Route & Manifest ----------
   The one unmistakable IndoSpiceHub motif: a shipment route line that
   draws itself from Jakarta to the destination port, paired with a
   certificate-style stamp. Used in hero and Global Markets. */
.route-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.route-mark__line {
  width: 64px;
  height: 1px;
  background: var(--color-gold-500);
  position: relative;
  overflow: hidden;
}
.route-mark__line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-gold-500);
  transform: scaleX(0);
  transform-origin: left;
  animation: route-draw 2.4s var(--ease-standard) 0.6s forwards;
}
@keyframes route-draw { to { transform: scaleX(1); } }

.stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px; height: 96px;
  border: 1px solid var(--color-gold-500);
  border-radius: 50%;
  position: relative;
  font-family: var(--font-display);
  text-align: center;
  color: var(--color-gold-200);
}
.stamp::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px dashed var(--color-gold-500);
  border-radius: 50%;
}
.stamp__text { font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.4; }

/* ---------- FAQ accordion ---------- */
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: var(--space-3);
  text-align: left;
  font-size: var(--text-h6);
  font-family: var(--font-display);
}
.faq-item__icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  position: relative;
}
.faq-item__icon::before, .faq-item__icon::after {
  content: '';
  position: absolute;
  background: var(--color-forest-700);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-item__icon::before { width: 14px; height: 1.5px; }
.faq-item__icon::after { width: 1.5px; height: 14px; transition: transform var(--duration-fast) var(--ease-standard); }
.faq-item__trigger[aria-expanded="true"] .faq-item__icon::after { transform: translate(-50%, -50%) scaleY(0); }

.faq-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--duration-base) var(--ease-standard);
}
.faq-item__panel.is-open { grid-template-rows: 1fr; }
.faq-item__panel-inner { overflow: hidden; }
.faq-item__panel p { padding-bottom: var(--space-3); max-width: 64ch; color: var(--color-charcoal-60); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-forest-900);
  color: var(--color-ivory);
  padding-block: var(--space-6) var(--space-4);
}
.site-footer a:hover { color: var(--color-gold-500); }
.footer-grid {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold-200);
  margin-bottom: var(--space-2);
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.9375rem; opacity: 0.9; }
.footer-bottom {
  margin-top: var(--space-6);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border-dark);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: space-between;
  font-size: 0.8125rem;
  opacity: 0.65;
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-slow) var(--ease-standard), transform var(--duration-slow) var(--ease-standard);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Article preview (Knowledge Center) ----------
   Editorial list, not a card grid — consistent with the trust strip's
   hairline language rather than introducing new shadow/box treatment. */
.article-preview {
  display: grid;
  gap: var(--space-4);
  border-top: 1px solid var(--color-border);
}
@media (min-width: 768px) {
  .article-preview { grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
}
.article-preview__item {
  padding-top: var(--space-4);
}
.article-preview__tag {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold-600);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.article-preview__item h3 {
  font-size: var(--text-h5);
  margin-bottom: var(--space-2);
}
.article-preview__item p {
  color: var(--color-charcoal-60);
  font-size: 0.9375rem;
  margin-bottom: var(--space-2);
  max-width: 38ch;
}

/* ---------- About split (reserved for About page) ---------- */
.about-split {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}
@media (min-width: 900px) {
  .about-split { grid-template-columns: 1fr 1fr; gap: var(--space-7); }
}
.about-split__media { position: relative; }
.about-split__media img { width: 100%; aspect-ratio: 5/6; object-fit: cover; }
.about-split__media .stamp {
  position: absolute;
  bottom: -28px; left: -28px;
  background: var(--color-forest-900);
}
.about-split h2 { font-size: var(--text-h2); margin-bottom: var(--space-3); }
.about-split p + p { margin-top: var(--space-3); }
.about-split p { color: var(--color-charcoal-60); font-size: var(--text-body-lg); }

/* ---------- Origin card (reserved for About / Why Indonesia content) ---------- */
.origin-grid { display: grid; gap: var(--space-3); }
@media (min-width: 768px) { .origin-grid { grid-template-columns: repeat(3, 1fr); } }
.origin-card { padding: var(--space-4); border: 1px solid var(--color-border); background: var(--color-white); }
.origin-card__num { font-family: var(--font-display); font-size: var(--text-h4); color: var(--color-gold-500); margin-bottom: var(--space-2); }
.origin-card h3 { font-size: var(--text-h6); margin-bottom: var(--space-1); font-family: var(--font-body); font-weight: 600; }
.origin-card p { color: var(--color-charcoal-60); font-size: 0.9375rem; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--color-gold-500);
  color: var(--color-gold-600);
}

/* ---------- Product feature block ----------
   Large editorial alternating layout used for the five commodities,
   replacing the small generic card grid. Each block carries the full
   commercial picture a buyer needs before requesting a quote. */
.product-feature {
  display: grid;
  gap: var(--space-4);
  padding-block: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}
.product-feature:first-of-type { padding-top: 0; }
.product-feature:last-of-type { border-bottom: none; }

@media (min-width: 900px) {
  .product-feature {
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: var(--space-7);
  }
  .product-feature--reverse .product-feature__media { order: 2; }
  .product-feature--reverse .product-feature__body { order: 1; }
}

.product-feature__media {
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: var(--color-forest-100);
}
.product-feature__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s var(--ease-standard);
}
.product-feature:hover .product-feature__media img { transform: scale(1.035); }

.product-feature__origin {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold-600);
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.product-feature__body h3 { font-size: var(--text-h3); margin-bottom: var(--space-2); }
.product-feature__desc { color: var(--color-charcoal-60); font-size: var(--text-body-lg); margin-bottom: var(--space-4); max-width: 56ch; }

.spec-table {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-1) var(--space-3);
  margin-bottom: var(--space-4);
  font-size: 0.9375rem;
}
.spec-table dt {
  font-weight: 600;
  color: var(--color-forest-700);
  white-space: nowrap;
}
.spec-table dd { color: var(--color-charcoal-60); }

.product-feature__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}

/* ---------- Capability block (Warehouse / Quality / Packaging) ----------
   Full-width, photography-led sections — replaces the tabbed interface
   so each capability earns its own dedicated, scannable moment. */
.capability-block {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 900px) {
  .capability-block {
    grid-template-columns: 1.1fr 1fr;
    align-items: stretch;
    gap: 0;
  }
  .capability-block--reverse .capability-block__media { order: 2; }
  .capability-block--reverse .capability-block__body { order: 1; }
}
.capability-block__media { aspect-ratio: 16/11; overflow: hidden; background: var(--color-forest-700); }
@media (min-width: 900px) { .capability-block__media { aspect-ratio: auto; } }
.capability-block__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s var(--ease-standard);
}
.capability-block:hover .capability-block__media img { transform: scale(1.03); }
.capability-block__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-5);
  background: var(--color-forest-900);
  color: var(--color-ivory);
}
@media (min-width: 900px) { .capability-block__body { padding: var(--space-7) var(--space-6); } }
.capability-block__body h2,
.capability-block__body h3 { font-size: var(--text-h3); margin-bottom: var(--space-3); }
.capability-block__body ul { display: flex; flex-direction: column; gap: var(--space-2); opacity: 0.85; }
.capability-block__body li { display: flex; gap: var(--space-2); align-items: flex-start; }
.capability-block__body li::before { content: ''; width: 16px; height: 1px; background: var(--color-gold-500); margin-top: 0.65em; flex-shrink: 0; }

/* ---------- Process timeline v2 (9-step) ----------
   A horizontal-on-desktop, vertical-on-mobile chain that follows the
   physical path of the commodity — not a generic numbered list. */
.process-chain {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
@media (min-width: 1100px) {
  .process-chain { grid-template-columns: repeat(9, 1fr); gap: var(--space-2); }
}
.process-chain--8 { }
@media (min-width: 1024px) {
  .process-chain--8 { grid-template-columns: repeat(8, 1fr); }
}
.process-node {
  position: relative;
  padding-top: var(--space-3);
  border-top: 2px solid var(--color-gold-500);
}
.process-node__icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-2);
  color: var(--color-forest-700);
}
.process-node__icon svg { width: 18px; height: 18px; }
.process-node h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.35rem;
}
.process-node p { font-size: 0.8125rem; color: var(--color-charcoal-60); line-height: 1.5; }

/* ---------- Inner-page hero ----------
   Shared by About, Products, Export Capability, Knowledge Center and
   Contact. Previously redefined per page with values that had drifted
   (56–70vh min-height, 18–20ch heading width); consolidated here as the
   single source of truth so every inner page opens on the same footing. */
.page-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  color: var(--color-ivory);
  overflow: hidden;
}
.page-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--color-forest-900);
  --hero-tint: var(--tint-forest);
}
.page-hero__media img { position: relative; z-index: 0; width: 100%; height: 100%; object-fit: cover; }

/* Layer 2 — soft vignette: darkens the frame edges without touching the
   center of the image, so the photograph still reads clearly at a glance.
   z-index is scoped to .page-hero__media's own stacking context (it is
   positioned + z-indexed), so 1/2 here safely sits above the img (0)
   without affecting anything outside this component. */
.page-hero__media::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(120% 100% at 50% 30%, transparent 45%, rgb(0 0 0 / 0.3) 100%);
}

/* Layer 3 + 4 — directional gradient aligned to where the heading and CTA
   sit (bottom-left, per .page-hero's flex-end alignment), tinted with
   each page's brand color rather than a generic black scrim. */
.page-hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg,
    rgb(var(--hero-tint) / calc(var(--hero-overlay-alpha) * 0.5)) 0%,
    rgb(var(--hero-tint) / var(--hero-overlay-alpha)) 55%,
    rgb(var(--hero-tint) / calc(var(--hero-overlay-alpha) * 1.4)) 100%);
}

/* Per-page tints — each drawn from the existing palette, not a new hue,
   so every hero still feels like the same brand at a different moment. */
.page-hero--walnut .page-hero__media      { --hero-tint: var(--tint-walnut); }
.page-hero--olive .page-hero__media       { --hero-tint: var(--tint-olive); }
.page-hero--forest-rich .page-hero__media { --hero-tint: var(--tint-forest-rich); }
.page-hero--charcoal .page-hero__media    { --hero-tint: var(--tint-charcoal); }
.page-hero--forest-warm .page-hero__media { --hero-tint: var(--tint-forest-warm); }

.page-hero__inner { padding-block: var(--space-7) var(--space-6); width: 100%; }
.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-gold-200);
  margin-bottom: var(--space-3);
  opacity: 0.8;
}
.page-hero__breadcrumb a { transition: opacity var(--duration-fast); }
.page-hero__breadcrumb a:hover { opacity: 0.7; }
.page-hero__breadcrumb span { opacity: 0.5; }
.page-hero h1 { font-size: var(--text-h1); max-width: 20ch; margin-bottom: var(--space-3); }
.page-hero__sub { font-size: var(--text-body-lg); max-width: 56ch; opacity: 0.85; margin-bottom: var(--space-5); }

/* ---------- Hero action row ----------
   The Request Quotation / secondary-CTA row beneath every hero heading —
   home and inner pages alike. */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}
.hero__actions .btn--outline { color: var(--color-ivory); }

/* ---------- CTA band ----------
   The centered final call-to-action used to close every page. */
.cta-band { text-align: center; }
.cta-band h2 { font-size: var(--text-h2); max-width: 24ch; margin-inline: auto; margin-bottom: var(--space-3); }
.cta-band p { max-width: 56ch; margin-inline: auto; margin-bottom: var(--space-4); opacity: 0.85; }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); }

/* ---------- Packaging types ----------
   Dark card grid used on both Export Capability and Products. */
.packaging-grid {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
@media (min-width: 640px) { .packaging-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .packaging-grid { grid-template-columns: repeat(3, 1fr); } }

.packaging-card {
  padding: var(--space-4);
  border: 1px solid var(--color-border-dark);
  background: var(--color-forest-900);
  color: var(--color-ivory);
  transition: background var(--duration-base) var(--ease-standard), border-color var(--duration-base) var(--ease-standard);
}
.packaging-card:hover { background: var(--color-forest-700); border-color: var(--color-gold-500); }
.packaging-card__icon { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: var(--space-3); color: var(--color-gold-500); }
.packaging-card__icon svg { width: 100%; height: 100%; }
.packaging-card h3 { font-family: var(--font-body); font-size: 1.0625rem; font-weight: 600; margin-bottom: var(--space-1); }
.packaging-card p { font-size: 0.875rem; opacity: 0.78; line-height: var(--leading-normal); max-width: 30ch; }

