/* Product photos: hero slideshow and a slideshow on each product tab.
   Photos from Unsplash (free for business use). Slides rotate via script.js. */

.slideshow { position: relative; overflow: hidden; background-color: #0a0b0a; }
.slideshow .slide {
  position: absolute; inset: 0; margin: 0;
  background-position: center; background-size: cover;
  opacity: 0; transition: opacity 1.2s ease;
}
.slideshow .slide.active { opacity: 1; }

/* Hero */
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slides::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 18, 12, 0.94) 0%, rgba(8, 18, 12, 0.80) 45%, rgba(8, 18, 12, 0.45) 100%),
    linear-gradient(0deg, rgba(8, 18, 12, 0.85) 0%, transparent 40%);
}
.hero::after { z-index: 0; opacity: 0.6; }
@media (max-width: 700px) {
  .hero-slides::after { background: rgba(8, 18, 12, 0.82); }
}

/* Product tab slideshows */
.panel { --pad: clamp(24px, 4vw, 40px); overflow: hidden; }
.panel-photo {
  margin: calc(var(--pad) * -1) calc(var(--pad) * -1) 26px;
  height: clamp(190px, 28vw, 320px);
}
.panel-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, var(--white) 0%, transparent 45%);
}
.panel-photo figcaption {
  position: absolute; left: var(--pad); top: 18px; z-index: 2;
  background: rgba(10, 11, 10, 0.72); color: var(--ink); backdrop-filter: blur(6px);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
.slide-dots {
  position: absolute; right: var(--pad); top: 22px; z-index: 2;
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 45%;
}
.slide-dots button {
  width: 9px; height: 9px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(243, 239, 230, 0.8); background: transparent;
}
.slide-dots button[aria-current="true"] { background: var(--gold); border-color: var(--gold); }

/* Our Operation slideshow with a step strip underneath */
.ops-show {
  margin-top: clamp(40px, 6vw, 64px);
  border-radius: var(--radius); border: 1px solid var(--line);
  height: clamp(300px, 42vw, 480px);
}
.ops-show::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(8, 10, 9, 0.92) 0%, rgba(8, 10, 9, 0.55) 38%, transparent 70%);
}
.ops-show figcaption {
  position: absolute; left: clamp(20px, 4vw, 40px); right: clamp(20px, 4vw, 40px); bottom: 86px; z-index: 2;
  display: grid; gap: 6px; max-width: 620px; color: var(--ink);
}
.ops-show .ops-num { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; color: var(--gold); }
.ops-show figcaption strong { font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.1; }
.ops-show figcaption span:last-child { color: #d3d8d0; font-size: 1.02rem; }

.ops-steps {
  position: absolute; left: 0; right: 0; bottom: 0; top: auto; z-index: 3; max-width: none;
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 0;
  border-top: 1px solid rgba(243, 239, 230, 0.18);
}
.ops-steps button {
  width: auto; height: auto; border-radius: 0; border: 0; background: rgba(8, 10, 9, 0.55);
  color: #b9c1b9; font: inherit; font-size: 0.82rem; font-weight: 500; text-align: left;
  padding: 14px 12px 16px; display: grid; gap: 2px; line-height: 1.25;
  border-top: 3px solid transparent; transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.ops-steps button + button { border-left: 1px solid rgba(243, 239, 230, 0.12); }
.ops-steps button span { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; color: var(--gold); }
.ops-steps button:hover { color: var(--ink); background: rgba(8, 10, 9, 0.75); }
.ops-steps button[aria-current="true"] { color: var(--ink); background: rgba(31, 77, 51, 0.85); border-top-color: var(--gold); }

@media (max-width: 760px) {
  .ops-show { height: 420px; }
  .ops-show figcaption { bottom: 74px; }
  .ops-steps { grid-template-columns: repeat(7, 1fr); }
  .ops-steps button { font-size: 0; padding: 12px 0; text-align: center; }
  .ops-steps button span { font-size: 0.74rem; }
}

/* About Us world map */
.world-map { margin: clamp(40px, 6vw, 64px) 0 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 3vw, 28px); }
.map-canvas { aspect-ratio: 1000 / 520; }
.map-canvas { overflow: hidden; border-radius: 8px; }
.map-canvas svg { width: 100%; height: 100%; display: block; overflow: hidden; }
.map-land path { stroke: #0a0b0a; stroke-width: 0.5; }
.map-land .c-none { fill: #22251f; }
.map-land .c-trade { fill: #2f5e42; }
.map-land .c-sourcing { fill: #c08a2b; }
.route { fill: none; stroke: #e0b563; stroke-width: 1.6; stroke-dasharray: 5 5; opacity: 0.9; animation: route-flow 1.6s linear infinite; }
@keyframes route-flow { to { stroke-dashoffset: -20; } }
.market-dot { fill: #e0b563; stroke: #0a0b0a; stroke-width: 1.5; }
.market-label { fill: var(--ink); font: 600 15px var(--sans); text-anchor: middle; paint-order: stroke; stroke: #0a0b0a; stroke-width: 4px; letter-spacing: 0.02em; }
.pin-body { fill: #e0b563; stroke: #0a0b0a; stroke-width: 1.5; }
.pin-hole { fill: #0a0b0a; }
.pin-label { fill: #fff; font: 700 17px var(--serif); paint-order: stroke; stroke: #0a0b0a; stroke-width: 4px; }
.pin-pulse { fill: rgba(224, 181, 99, 0.35); transform-origin: 0 0; animation: pin-pulse 2s ease-out infinite; }
@keyframes pin-pulse { from { transform: scale(0.4); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.map-legend { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 18px; color: var(--muted); font-size: 0.92rem; }
.map-legend span { display: inline-flex; align-items: center; gap: 8px; }
.key { width: 14px; height: 14px; border-radius: 4px; display: inline-block; flex: none; }
.key-base { background: #e0b563; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.key-sourcing { background: #c08a2b; }
.key-trade { background: #2f5e42; }
@media (prefers-reduced-motion: reduce) { .route, .pin-pulse { animation: none; } }
@media (max-width: 700px) {
  .market-label { font-size: 30px; stroke-width: 6px; }
  .pin-label { font-size: 32px; stroke-width: 6px; }
  .market-dot { r: 7; }
  .route { stroke-width: 2.6; }
}
