/* ═══ Section layouts — balanced neutral palette ═══ */

/* 1 — Stats bar */
.sec-stats {
  background: var(--surface);
  padding: 0;
  border-block: 1px solid var(--border);
}

.sec-stats .stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 640px;
  margin: 0 auto;
}

.sec-stats .stat-item {
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--border);
  position: relative;
}

.sec-stats .stat-item:last-child { border-right: none; }

.sec-stats .stat-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--gold);
  opacity: 0;
  transition: opacity 0.3s, width 0.3s;
}

.sec-stats .stat-item:hover::after { opacity: 1; width: 60px; }

.sec-stats .stat-num {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--heading);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.sec-stats .stat-num span { color: var(--accent); }

.sec-stats .stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* 2 — Bento grid */
.sec-bento {
  background: var(--surface-muted);
  padding: 5rem 0;
}

.sec-bento .bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
  margin-top: 2rem;
}

.bento-cell {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: var(--white);
  box-shadow: var(--shadow);
}

.bento-cell img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.6s var(--ease);
}

.bento-cell:hover img { transform: scale(1.05); }

.bento-cell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 31, 30, 0.85) 0%, transparent 55%);
  z-index: 1;
}

.bento-cell > *:not(img) { position: relative; z-index: 2; }

.bento-cell h3 {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.bento-cell p { font-size: 0.8rem; opacity: 0.9; }

.bento-a { grid-column: span 12; min-height: 280px; }
.bento-b { grid-column: span 5; }
.bento-c { grid-column: span 6; }
.bento-d { grid-column: span 6; }
.bento-e {
  grid-column: span 4;
  background: var(--surface);
  color: var(--charcoal);
  border: 1px solid var(--border);
}
.bento-e::after { display: none; }
.bento-e .bento-cta h3,
.bento-e h3 { font-size: 1.25rem; color: var(--heading); }
.bento-e p { color: var(--text-muted); opacity: 1; }
.bento-e .btn { margin-top: 1rem; align-self: flex-start; }
.bento-e .bento-cta-btn { align-self: stretch; margin-top: auto; }

/* 3 — Marquee */
.sec-marquee {
  background: var(--marquee-bg);
  padding: 0.85rem 0;
  overflow: hidden;
  transition: background 0.35s var(--ease);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 35s linear infinite;
}

.marquee-track span {
  flex-shrink: 0;
  padding: 0 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--marquee-text);
  white-space: nowrap;
}

.marquee-track span::after {
  content: "·";
  margin-left: 2rem;
  color: var(--gold-light);
  font-size: 1rem;
  vertical-align: middle;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 4 — Timeline */
.sec-timeline {
  background: var(--surface);
  padding: 5rem 0;
}

.timeline {
  position: relative;
  max-width: 700px;
  margin: 2.5rem auto 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
  transform: translateX(-50%);
}

.tl-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 2rem);
  position: relative;
  margin-bottom: 2.5rem;
}

.tl-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 2rem);
}

.tl-dot {
  position: absolute;
  left: 50%;
  top: 0.5rem;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: var(--gold);
  border: 3px solid var(--surface);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--border);
  z-index: 1;
}

.tl-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  max-width: 320px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.tl-card h3 {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.tl-card p { font-size: 0.85rem; color: var(--text-muted); }

/* 5 — Split compare */
.sec-compare { padding: 0; }

.compare-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}

.compare-side {
  padding: 3.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.compare-export {
  background: var(--surface);
  color: var(--text);
  border-right: 1px solid var(--border);
}

.compare-import {
  background: var(--surface-muted);
  color: var(--text);
}

.compare-side .tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  width: fit-content;
}

.compare-export .tag {
  background: var(--green-100);
  color: var(--green-800);
}

.compare-import .tag {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--charcoal-soft);
}

.compare-side h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: var(--charcoal);
}

.compare-side ul { margin-bottom: 1.5rem; }

.compare-side li {
  padding: 0.4rem 0;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.compare-export li::before { content: "→"; color: var(--green-700); font-weight: 700; }
.compare-import li::before { content: "←"; color: var(--gold); font-weight: 700; }

.compare-side .btn { align-self: flex-start; }

/* 6 — Spotlight */
.sec-spotlight {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.sec-spotlight .spot-bg {
  position: absolute;
  inset: 0;
}

.sec-spotlight .spot-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sec-spotlight .spot-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(26, 31, 30, 0.75) 38%, rgba(26, 31, 30, 0.35) 100%);
}

.sec-spotlight .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.spot-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.spot-card .section-label { margin-bottom: 0.5rem; }

.spot-card h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.spot-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.spot-quote {
  color: var(--white);
  padding-left: 2rem;
  border-left: 3px solid var(--gold);
}

.spot-quote blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 1rem;
  opacity: 0.95;
}

.spot-quote cite {
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* 7 — Industries */
.sec-industries {
  background: var(--surface);
  padding: 5rem 0;
}

.industry-scroll {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.industry-card {
  background: var(--surface-muted);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  cursor: default;
}

.industry-card:hover {
  border-color: var(--gold-light);
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  background: var(--surface);
}

.industry-card .ind-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.industry-card h3 {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--heading);
  margin-bottom: 0.5rem;
}

.industry-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* 8 — Action CTAs */
.sec-actions {
  background: var(--surface-muted);
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.sec-actions .section-title { color: var(--heading); text-align: center; }
.sec-actions .section-label { color: var(--gold); text-align: center; display: block; }
.sec-actions .section-lead {
  color: var(--text-muted);
  text-align: center;
  margin: 0 auto 2.5rem;
  max-width: 560px;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.action-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
  text-align: left;
  color: var(--charcoal);
}

.action-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-light);
}

.action-card--highlight {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.action-card--highlight:hover {
  background: var(--green-500);
  border-color: var(--green-500);
}

[data-theme="light"] .action-card--highlight {
  background: var(--heading);
  border-color: var(--heading);
}

[data-theme="light"] .action-card--highlight:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.action-card--highlight .ac-link { color: var(--gold-light); }

.action-card .ac-icon { font-size: 2rem; margin-bottom: 1rem; }

.action-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.action-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 1.25rem;
}

.action-card--highlight p { color: rgba(255, 255, 255, 0.75); }

.action-card .ac-link {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--green-700);
}

.contact-info-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.contact-info-bar .ci-item { text-align: center; }

.contact-info-bar .ci-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.contact-info-bar a,
.contact-info-bar p {
  font-size: 0.95rem;
  color: var(--charcoal);
  font-weight: 600;
}

.contact-info-bar a:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 992px) {
  .bento-a, .bento-b, .bento-c, .bento-d, .bento-e { grid-column: span 12; }
  .compare-split { grid-template-columns: 1fr; }
  .compare-export { border-right: none; border-bottom: 1px solid var(--border); }
  .sec-spotlight .container { grid-template-columns: 1fr; }
  .spot-quote { padding-left: 0; padding-top: 1rem; border-left: none; border-top: 3px solid var(--gold); }
  .industry-scroll { grid-template-columns: repeat(2, 1fr); }
  .action-grid { grid-template-columns: 1fr; }
  .timeline::before { left: 1rem; }
  .tl-item, .tl-item:nth-child(even) {
    padding-left: 3rem;
    padding-right: 0;
    justify-content: flex-start;
  }
  .tl-dot { left: 1rem; }
}

@media (max-width: 768px) {
  .sec-stats .stats-row { grid-template-columns: 1fr; }
  .sec-stats .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .industry-scroll { grid-template-columns: 1fr; }
  .contact-info-bar { flex-direction: column; gap: 1.5rem; }
}
