/* ============================================
   Panabalsa — Panamericana de Balsa S.A.
   Design system — ultra-clean / editorial / industrial
   Reference: Apple product-page rhythm, real brand green + lime
   ============================================ */

:root {
  --white: #ffffff;
  --paper: #fbf5e7;         /* brand cream */
  --paper-soft: #e9e9d4;
  --ink: #10160c;          /* near-black, brand-tinted — primary text on light surfaces */
  --ink-soft: #1b2415;      /* dark section alt (panels on dark) */
  --forest: #333e2c;        /* deep brand green — dark section & panel surfaces */
  --forest-soft: #46553f;   /* lighter forest — hover states on dark surfaces */
  --muted: #63695a;
  --muted-on-dark: rgba(249, 251, 246, 0.62);
  --line: rgba(16, 22, 12, 0.1);
  --line-on-dark: rgba(249, 251, 246, 0.14);
  --green: #5d7053;         /* brand sage green — links, one accent */
  --lime: #b2d545;          /* brand lime — sparing accent only */
  --lime-soft: rgba(178, 213, 69, 0.16);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1280px;
  --container-text: 720px;
  --font: "Inter", -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
section[id] { scroll-margin-top: 96px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Fine film-grain texture, brand-tinted, applied over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--lime); color: var(--ink); }

html { scrollbar-color: var(--green) var(--paper-soft); scrollbar-width: thin; }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--paper-soft); }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 8px; border: 3px solid var(--paper-soft); }
::-webkit-scrollbar-thumb:hover { background: var(--ink); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--forest);
  margin: 0;
  line-height: 1.05;
}
p { margin: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 18px;
}
.section--dark .eyebrow { color: var(--lime); }

.section {
  padding: 64px 0;
}
.section--tight { padding: 28px 0; }
.section--soft { background: var(--paper-soft); }
.section--dark {
  background: var(--forest);
  color: var(--white);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.section--dark p { color: var(--muted-on-dark); }

.section-head { max-width: var(--container-text); margin: 0 auto 28px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head p { color: var(--muted); font-size: 1.15rem; margin-top: 18px; line-height: 1.5; }
.section--dark .section-head p { color: var(--muted-on-dark); }

h2.display { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}
.btn--primary {
  background: var(--green);
  color: var(--white);
}
.btn--primary:hover { opacity: 0.88; transform: translateY(-1px); box-shadow: 0 10px 26px -12px rgba(16, 22, 12, 0.45); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn--outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn--outline:hover { border-color: var(--ink); }
.btn--sm { padding: 11px 22px; font-size: 0.86rem; }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { opacity: 0.85; }

/* Header — transparent over the hero photo, solidifies once scrolled */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}
.site-header.scrolled {
  background: rgba(93, 112, 83, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-on-dark);
  box-shadow: 0 1px 0 var(--line-on-dark), 0 12px 24px -18px rgba(16, 22, 12, 0.4);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo img { height: 68px; width: auto; }

.nav-main {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-main a {
  position: relative;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--white);
  opacity: 0.85;
  padding: 9px 18px;
  border-radius: 999px;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}
.nav-main a:hover { background: rgba(255, 255, 255, 0.1); opacity: 1; }
.nav-main a.active { background: rgba(255, 255, 255, 0.16); opacity: 1; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.7;
}
.lang-switch a { color: var(--white); opacity: 0.72; transition: opacity 0.2s ease; }
.lang-switch a:hover { opacity: 1; }
.lang-switch a.active { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.lang-switch .sep { opacity: 0.4; }
.mobile-nav-langs { display: flex; gap: 16px; margin-top: 24px; }
.mobile-nav .mobile-nav-langs a {
  font-weight: 600; font-size: 0.95rem; padding: 0; border-bottom: none;
  opacity: 0.6; transform: none; transition: opacity 0.2s ease;
}
.mobile-nav .mobile-nav-langs a.active { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--white);
  position: relative;
}
.mobile-nav .menu-toggle span,
.mobile-nav .menu-toggle span::before,
.mobile-nav .menu-toggle span::after { background: var(--ink); }
.menu-toggle span::before { position: absolute; top: -7px; }
.menu-toggle span::after { position: absolute; top: 7px; }

/* Hero — full-bleed, huge type, bottom-weighted, keynote style
   Photo is set inline (background-image) so its relative path always
   resolves against the HTML document, never against this stylesheet. */
.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(16, 38, 12, 0.46), rgba(16, 38, 12, 0.46)),
    linear-gradient(180deg, rgba(51, 62, 44, 0.38) 0%, rgba(51, 62, 44, 0.42) 45%, rgba(41, 50, 35, 0.95) 100%);
  z-index: 1;
}
.hero-bg {
  position: absolute;
  inset: -6% -6%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.hero-inner { position: relative; z-index: 2; padding: 0 0 150px; max-width: 980px; }
@media (min-width: 1240px) { .hero-inner { max-width: 1120px; } }
.hero .eyebrow { color: var(--lime); }
.hero h1, .page-hero h1 { color: var(--white); }
.hero h1 {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(2.7rem, 5.6vw, 4.9rem);
  line-height: 1.1;
  margin-bottom: 30px;
  letter-spacing: -0.03em;
  overflow: hidden;
  max-width: 780px;
}
/* Word-level reveal mask — survives text reflow at any viewport width,
   unlike a whole-line mask which clips wrapped rows on wide screens. */
.hero h1 .word { display: inline-block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero h1 .word > span {
  display: inline-block;
  transform: translateY(112%);
  animation: line-up 0.85s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 0.045s + 0.1s);
}
@keyframes line-up { to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .hero h1 .word > span { animation: none; transform: none; }
}
.hero p { font-size: 1.2rem; color: rgba(255, 255, 255, 0.85); margin-bottom: 40px; max-width: 580px; font-weight: 400; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.scroll-cue {
  position: absolute;
  left: 40px;
  bottom: 40px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.scroll-cue .cue-line { width: 1px; height: 34px; background: rgba(255, 255, 255, 0.3); position: relative; overflow: hidden; }
.scroll-cue .cue-line::after {
  content: "";
  position: absolute;
  left: 0; top: -100%;
  width: 100%; height: 100%;
  background: var(--lime);
  animation: cue-drop 1.8s ease-in-out infinite;
}
@keyframes cue-drop { 0% { top: -100%; } 60% { top: 100%; } 100% { top: 100%; } }
@media (max-width: 640px) { .scroll-cue { display: none; } }

/* Page header (inner pages) — big, minimal */
.page-hero {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background-size: cover;
  background-position: center;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(51, 62, 44, 0.3) 0%, rgba(41, 50, 35, 0.92) 100%);
}
.page-hero-inner { position: relative; z-index: 2; padding: 0 0 64px; max-width: 760px; }
.page-hero .eyebrow { color: var(--lime); }
.page-hero h1 { font-family: var(--font); font-weight: 800; font-size: clamp(2.2rem, 4.8vw, 4rem); letter-spacing: -0.03em; }
.page-hero p { font-size: 1.1rem; color: rgba(255, 255, 255, 0.8); margin-top: 20px; max-width: 560px; }

/* Full-bleed photo blocks (no shadow, no border — the photo IS the design) */
.photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-soft);
}
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo--full { border-radius: 0; }
.photo.contain { background: var(--forest); }
.photo.contain img { object-fit: contain; }

/* Cinematic curtain-wipe reveal for photo blocks, instead of a plain fade */
.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform-origin: right;
  transform: scaleX(1);
  transition: transform 0.95s var(--ease) 0.1s;
  z-index: 3;
  pointer-events: none;
}
.reveal.is-visible .photo::after,
.photo.reveal.is-visible::after { transform: scaleX(0); }
.photo.reveal { opacity: 1; transform: none; }
.photo.reveal img { opacity: 0; transition: opacity 0.7s ease 0.45s; }
.photo.reveal.is-visible img { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .photo::after { transition: none; transform: scaleX(0); }
  .photo.reveal img { opacity: 1; transition: none; }
}

/* Minimal placeholder (only used until a real photo lands) */
.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--paper-soft);
  color: var(--muted-soft, var(--muted));
  font-weight: 600;
  font-size: 0.85rem;
  padding: 20px;
  border-radius: var(--radius);
  line-height: 1.4;
}
.ph--dark { background: var(--ink-soft); color: var(--muted-on-dark); }

/* Certifications bar */
.certs { padding: 28px 0; border-bottom: 1px solid var(--line); }
.certs .certs-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  max-width: 480px;
  margin: 0 auto 28px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.certs .certs-label::before, .certs .certs-label::after {
  content: "";
  flex: 1;
  max-width: 56px;
  height: 1px;
  background: var(--line);
}
.certs-row { display: flex; justify-content: center; align-items: center; gap: 0; flex-wrap: wrap; }
.certs-row img {
  max-height: 42px; width: auto; object-fit: contain; padding: 0 40px;
  filter: grayscale(1); opacity: 0.6;
  transition: filter 0.35s ease, opacity 0.35s ease;
}
.certs-row img:hover { filter: grayscale(0); opacity: 1; }
.certs-row img:not(:last-child) { border-right: 1px solid var(--line); }

/* Stats — huge digits, Apple keynote style */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 0 28px;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; padding-left: 0; }
.section--dark .stat { border-left-color: var(--line-on-dark); }
.stat-num {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--forest);
}
.section--dark .stat-num { color: var(--white); }
.stat-num .lime-dot { color: var(--lime); }
.stat-label { color: var(--muted); font-size: 0.95rem; margin-top: 12px; line-height: 1.4; }
.section--dark .stat-label { color: var(--muted-on-dark); }

/* Editorial split feature (big photo + text, alternating) */
.feature-row {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 72px;
  align-items: center;
}
.feature-row.reverse { grid-template-columns: 1fr 1.15fr; }
.feature-row.reverse .feature-row-media { order: 2; }
.feature-row-media .photo { aspect-ratio: 4/3; }
.feature-row-text .eyebrow { margin-bottom: 14px; }
.feature-row-text h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 18px; }
.feature-row-text p { color: var(--muted); font-size: 1.05rem; margin-bottom: 12px; }
.feature-row + .feature-row { margin-top: 120px; }

/* Innovation block — text + photo, two columns like the rest of the editorial rhythm */
.innovation-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}
.innovation-block .photo { aspect-ratio: 4/3; }

/* Simple flat grid (industries, feature list) — no cards, no shadows */
.grid { display: grid; gap: 1px; background: var(--line); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid-item {
  background: var(--paper);
  padding: 28px 26px;
  position: relative;
  overflow: hidden;
  transition: background-color 0.25s ease;
}
.grid-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1);
  z-index: 2;
}
/* Cursor-tracking spotlight — set via JS custom properties --mx/--my */
.grid-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), var(--lime-soft), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.grid-item:hover::after { opacity: 1; }
.section--dark .grid-item::after { background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(163, 209, 48, 0.12), transparent 70%); }
.grid-item:hover::before { transform: scaleX(1); }
.grid-item:hover { background: var(--paper-soft); }
.section--soft .grid-item:hover { background: var(--white); }
.section--dark .grid-item { background: var(--forest); }
.section--dark .grid-item:hover { background: var(--forest-soft); }
.section--dark .grid { background: var(--line-on-dark); }
.grid-item h3 { font-size: 1.15rem; margin-bottom: 12px; font-weight: 700; letter-spacing: -0.01em; }
.grid-item p { color: var(--muted); font-size: 0.96rem; }
.section--dark .grid-item p { color: var(--muted-on-dark); }
.grid-item.photo-fill { padding: 0; position: relative; min-height: 240px; }
.grid-item.photo-fill img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.grid-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--paper-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--green);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.3s cubic-bezier(.2,.8,.2,1);
}
.grid-icon svg { width: 22px; height: 22px; }
.section--soft .grid-icon { background: var(--white); }
.section--dark .grid-icon { background: rgba(249, 251, 246, 0.08); color: var(--lime); }
.grid-item:hover .grid-icon { background: var(--lime); color: var(--ink); transform: scale(1.08); }
.grid-item .idx {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--lime);
  margin-bottom: 18px;
  letter-spacing: 0.04em;
  transition: transform 0.25s ease;
}
.grid-item:hover .idx { transform: translateX(3px); }

/* Product feature panels (two products, huge photos) */
.products-stack { display: flex; flex-direction: column; gap: 2px; background: var(--line); }
.product-panel {
  background: var(--paper);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}
.product-panel.reverse .product-panel-media { order: 2; }
.product-panel-media { position: relative; overflow: hidden; }
.product-panel-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s cubic-bezier(.2,.8,.2,1); }
.product-panel-media:not(.contain):hover img { transform: scale(1.035); }
.product-panel-media.contain { background: var(--forest); }
.product-panel-media.contain img { object-fit: contain; }
.product-panel-body { padding: 72px; display: flex; flex-direction: column; justify-content: center; }
.product-panel-body h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 18px; }
.product-panel-body p { color: var(--muted); font-size: 1.05rem; margin-bottom: 28px; }

/* Process — dark, full-bleed rows, huge step numerals */
.process-list { display: flex; flex-direction: column; }
.process-step {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 44px;
  align-items: center;
  padding: 32px 0;
  border-top: 1px solid var(--line-on-dark);
}
.process-step:first-child { border-top: none; }
.process-step .photo { aspect-ratio: 16/10; overflow: hidden; }
.process-step .photo img { transition: transform 0.6s cubic-bezier(.2,.8,.2,1); }
.process-step:hover .photo img { transform: scale(1.045); }
.process-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 32px;
}
.process-gallery .photo { border-radius: 0; aspect-ratio: 3/4; overflow: hidden; }
.process-gallery .photo img { transition: transform 0.6s cubic-bezier(.2,.8,.2,1); }
.process-gallery .photo:hover img { transform: scale(1.05); }
.step-num {
  font-weight: 800;
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  color: rgba(255, 255, 255, 0.16);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  line-height: 1;
}
.process-step h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 14px; }
.process-step p { color: var(--muted-on-dark); font-size: 1.02rem; }

/* Global reach */
.regions { display: flex; gap: 48px; margin-top: 32px; flex-wrap: wrap; }
.region-badge { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; }
.region-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }

/* Route diagram — stylized world map with animated shipping routes */
.route-diagram {
  margin-top: 36px;
  border-radius: var(--radius);
  background: var(--forest);
  padding: 40px 40px 28px;
  overflow: hidden;
}
.route-diagram svg { width: 100%; height: auto; display: block; }
.map-land {
  fill: rgba(249, 251, 246, 0.16);
}
.route-line {
  fill: none;
  stroke: rgba(249, 251, 246, 0.5);
  stroke-width: 6;
  stroke-dasharray: 16 22;
  animation: route-march 3.5s linear infinite;
}
@keyframes route-march { to { stroke-dashoffset: -76; } }
@media (prefers-reduced-motion: reduce) { .route-line { animation: none; } }
.route-origin { fill: var(--lime); transform-box: fill-box; transform-origin: center; animation: origin-pulse 2.4s ease-in-out infinite; }
.route-node { fill: var(--ink); stroke: rgba(249, 251, 246, 0.5); stroke-width: 6; }
.route-dot { fill: var(--lime); filter: drop-shadow(0 0 12px rgba(163, 209, 48, 0.9)); }
@keyframes origin-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.35); }
}
@media (prefers-reduced-motion: reduce) {
  .route-origin { animation: none; }
  .route-dot { display: none; }
}
.route-label {
  font-family: var(--font);
  font-weight: 700;
  font-size: 58px;
  fill: rgba(249, 251, 246, 0.9);
}
.route-label-canal {
  font-family: var(--font);
  font-weight: 700;
  font-size: 40px;
  fill: rgba(249, 251, 246, 0.75);
  letter-spacing: 0.02em;
}
.route-label-origin {
  font-family: var(--font);
  font-weight: 700;
  font-size: 54px;
  fill: var(--lime);
  letter-spacing: 0.06em;
}

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); margin-bottom: 20px; }
.cta-band p { color: var(--muted); max-width: 540px; margin: 0 auto 40px; font-size: 1.1rem; }
.cta-band .hero-actions { justify-content: center; }
.cta-band .btn--ghost { color: var(--ink); border-color: var(--line); }
.cta-band .btn--ghost:hover { background: var(--paper-soft); }

/* About page */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.about-intro .photo { aspect-ratio: 4/3; }
.about-intro p { color: var(--muted); margin-bottom: 18px; font-size: 1.1rem; }
.about-intro p:last-child { margin-bottom: 0; }

.cert-block { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); }

/* Compact single-row layout: heading and cert card side by side, no tall stack */
.cert-block-inline { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; }
.cert-block-inline .eyebrow { margin-bottom: 10px; }
.cert-block-inline h2.display { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.cert-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 30px 34px;
}
.cert-card img { height: 48px; width: auto; object-fit: contain; margin-bottom: 0; flex-shrink: 0; }
.cert-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.cert-card p { color: var(--muted); font-size: 0.92rem; line-height: 1.45; }
@media (max-width: 900px) {
  .cert-block-inline { grid-template-columns: 1fr; }
  .cert-card { flex-direction: column; align-items: flex-start; }
}

/* Products page detail */
.product-detail {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--line);
}
.product-detail .photo { border-radius: 0; height: auto; aspect-ratio: 3/4; }
.product-detail-body { padding: 40px; }
.product-detail-body h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 12px; }
.product-detail-body > p { color: var(--muted); margin-bottom: 30px; font-size: 1.05rem; }
.spec-label {
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
  margin-top: 26px;
}
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.spec-table td { padding: 10px 0; border-top: 1px solid var(--line); transition: border-color 0.2s ease; }
.spec-table td:first-child { color: var(--muted); width: 40%; }
.spec-table tr:hover td { border-color: var(--lime); }
.spec-note { font-size: 0.84rem; color: var(--muted); margin-top: 18px; font-style: italic; }
.products-detail-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .products-detail-stack { grid-template-columns: 1fr; } }

/* Contact page */
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.contact-form {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 48px;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.contact-form .field-full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--paper-soft);
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(16, 22, 12, 0.22); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--lime-soft);
}

.contact-side { background: var(--forest); color: var(--white); border-radius: var(--radius); padding: 40px; }
.contact-side h3 { color: var(--white); margin-bottom: 24px; }
.contact-row { margin-bottom: 22px; }
.contact-row .label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--lime); margin-bottom: 6px; }
.contact-row a, .contact-row span { display: block; font-weight: 600; color: var(--white); }

.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); margin-top: 24px; border-radius: var(--radius); overflow: hidden; }
.team-card { background: var(--paper); color: var(--ink); padding: 32px; transition: background-color 0.25s ease; }
.team-card:hover { background: var(--paper-soft); }
.team-card .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paper-soft);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.team-card .avatar { border: 1.5px solid transparent; transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease); }
.team-card:hover .avatar { background: var(--lime); color: var(--ink); border-color: var(--ink); transform: scale(1.06); }
.team-card h3 { font-size: 1.1rem; color: var(--ink); }
.team-card .role { color: var(--green); font-weight: 600; font-size: 0.86rem; margin: 6px 0 12px; }
.team-card .loc { color: var(--muted); font-size: 0.9rem; margin-bottom: 12px; }
.team-card a { color: var(--ink); font-weight: 600; font-size: 0.92rem; text-decoration: underline; text-underline-offset: 3px; }

/* Footer — thin, quiet */
.site-footer { background: var(--forest); color: var(--muted-on-dark); padding: 48px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line-on-dark);
}
.footer-brand img { height: 28px; margin-bottom: 18px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 0.92rem; max-width: 260px; margin-bottom: 24px; }
.footer-social {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-on-dark);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.footer-social:hover { background: rgba(249, 251, 246, 0.08); border-color: rgba(249, 251, 246, 0.4); }
.footer-social svg { width: 17px; height: 17px; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 700;
}
.footer-col li { margin-bottom: 13px; font-size: 0.92rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; padding-top: 28px;
  font-size: 0.82rem; color: rgba(249, 251, 246, 0.45); flex-wrap: wrap; gap: 10px;
}

/* Floating contact buttons */
.floating-actions { position: fixed; right: 28px; bottom: 28px; display: flex; flex-direction: column; gap: 12px; z-index: 90; }
.fab {
  position: relative;
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--green); color: var(--white);
  box-shadow: 0 12px 30px -10px rgba(16, 22, 12, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.fab:not(.fab--top)::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--lime);
  opacity: 0.55;
  z-index: -1;
  animation: fab-ring 2.6s ease-out infinite;
}
@keyframes fab-ring {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.9); opacity: 0; }
}
.fab:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 16px 34px -10px rgba(16, 22, 12, 0.55); }
@media (prefers-reduced-motion: reduce) { .fab:not(.fab--top)::before { animation: none; opacity: 0; } }

.fab--top {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px -10px rgba(16, 22, 12, 0.25);
  opacity: 0;
  transform: scale(0.7);
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.15s ease;
}
.fab--top.is-visible { opacity: 1; transform: scale(1); pointer-events: auto; }
.fab--top:hover { background: var(--green); color: var(--white); border-color: var(--green); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.grid-item.reveal:nth-child(2), .stat.reveal:nth-child(2) { transition-delay: .07s; }
.grid-item.reveal:nth-child(3), .stat.reveal:nth-child(3) { transition-delay: .14s; }
.grid-item.reveal:nth-child(4), .stat.reveal:nth-child(4) { transition-delay: .21s; }
.grid-item.reveal:nth-child(5) { transition-delay: .28s; }
.grid-item.reveal:nth-child(6) { transition-delay: .35s; }
.grid-item.reveal:nth-child(7) { transition-delay: .07s; }
.grid-item.reveal:nth-child(8) { transition-delay: .14s; }
.grid-item.reveal:nth-child(9) { transition-delay: .21s; }
.grid-item.reveal:nth-child(10) { transition-delay: .28s; }
.grid-item.reveal:nth-child(11) { transition-delay: .35s; }
.grid-item.reveal:nth-child(12) { transition-delay: .42s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 980px) {
  .nav-main { display: none; }
  .menu-toggle { display: flex; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .stat:nth-child(2n+1) { border-left: none; padding-left: 0; }
  .about-intro, .contact-layout, .cert-block, .product-detail, .product-panel, .feature-row, .feature-row.reverse, .innovation-block { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-row-media { order: 0; }
  .product-panel.reverse .product-panel-media { order: 0; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step { grid-template-columns: 1fr; }
  .process-gallery { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 48px 0; }
}
@media (max-width: 640px) {
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .process-gallery { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .container { padding: 0 22px; }
  .hero-inner, .page-hero-inner { padding-bottom: 56px; }
  .product-panel-body, .cert-card, .grid-item { padding: 32px 26px; }
  .feature-row + .feature-row { margin-top: 72px; }
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed; inset: 0; background: var(--paper); z-index: 200; padding: 24px;
  visibility: hidden; opacity: 0; transform: translateY(-14px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.mobile-nav.open { visibility: visible; opacity: 1; transform: translateY(0); }
.mobile-nav-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 48px; }
.mobile-nav-top img { height: 26px; }
.mobile-nav a {
  display: block; font-family: var(--font); font-weight: 800; font-size: 1.7rem;
  padding: 16px 0; border-bottom: 1px solid var(--line); letter-spacing: -0.03em;
  opacity: 0; transform: translateX(-10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.mobile-nav.open a { opacity: 1; transform: translateX(0); }
.mobile-nav.open a:nth-child(2) { transition-delay: .06s; }
.mobile-nav.open a:nth-child(3) { transition-delay: .11s; }
.mobile-nav.open a:nth-child(4) { transition-delay: .16s; }
.mobile-nav.open a:nth-child(5) { transition-delay: .21s; }
.mobile-nav .btn { margin-top: 28px; width: 100%; justify-content: center; }
