/* Westrock Chile — styled after the Westrock USA wireframe (V3):
   black header, photo hero carousel, gold pill CTAs, gold FIND-YOUR-PART band,
   pill section tabs, light content ground. Brand gold from the corporate logo. */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  --ink: #1c1c1e;           /* body text */
  --ink-soft: #55565a;      /* secondary text */
  --black: #0d0d0d;         /* header / footer / dark band */
  --bg: #ffffff;
  --bg-alt: #f4f4f4;        /* alternating sections, tab band */
  --gold: #e2a14e;          /* pill buttons (wireframe) */
  --gold-deep: #c4863a;     /* hover */
  --gold-band: #ecba6e;     /* FIND YOUR PART band */
  --gold-logo: #e9a13b;     /* brand gold accents on dark */
  --line: rgba(28, 28, 30, 0.14);
  --radius-pill: 999px;
  --radius-card: 10px;
  --shadow-card: 0 2px 14px rgba(13, 13, 13, 0.08);
  --font: "Montserrat", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 15px; line-height: 1.6; font-weight: 400;
  text-wrap: pretty;
}
img { display: block; max-width: 100%; }
a { color: var(--gold-deep); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
::selection { background: rgba(226, 161, 78, 0.35); }

.wrap { max-width: 1160px; margin: 0 auto; padding-inline: clamp(20px, 5vw, 64px); }

/* ── header ─────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: var(--black); color: #fff;
}
.topbar-in {
  display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px);
  padding-block: 10px; flex-wrap: wrap; row-gap: 6px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { height: 74px; width: auto; }
.brand .brand-cl {
  color: #fff; font-size: 15px; letter-spacing: 0.22em; font-weight: 500;
  border-left: 1px solid rgba(255,255,255,0.35); padding-left: 12px; text-transform: uppercase;
}
.topbar nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 26px); flex-wrap: wrap; }
.topbar nav a { color: #fff; text-decoration: none; font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.topbar nav a:hover { color: var(--gold-logo); }

.btn-pill {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold); color: #fff; text-decoration: none; cursor: pointer;
  font-family: var(--font); font-size: 14px; font-weight: 600;
  border: 0; border-radius: var(--radius-pill); padding: 10px 22px;
  transition: background 0.15s ease;
}
.btn-pill:hover { background: var(--gold-deep); color: #fff; }
.lang-pill {
  border: 1px solid rgba(255,255,255,0.45); border-radius: var(--radius-pill);
  color: #fff; text-decoration: none; font-size: 12.5px; font-weight: 600;
  padding: 6px 14px; letter-spacing: 0.08em;
}
.lang-pill:hover { border-color: var(--gold-logo); color: var(--gold-logo); }

/* ── hero carousel ──────────────────────────────────────── */
.hero { position: relative; background: var(--black); overflow: hidden; }
.slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s ease;
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
}
.slide.on { position: relative; opacity: 1; z-index: 1; }
.slide::before { content: ""; position: absolute; inset: 0; background: rgba(6, 6, 8, 0.48); }
.slide-in {
  position: relative; z-index: 1; text-align: center; color: #fff;
  padding: clamp(90px, 14vw, 170px) clamp(20px, 6vw, 72px);
  max-width: 860px; margin: 0 auto;
}
.slide h1, .slide .h1 {
  margin: 0; font-weight: 300; letter-spacing: 0.01em;
  font-size: clamp(30px, 4.6vw, 54px); line-height: 1.16;
}
.slide p {
  margin: 18px auto 0; max-width: 62ch; font-size: 14.5px; line-height: 1.7;
  color: rgba(255,255,255,0.92);
}
.slide .btn-pill { margin-top: 26px; padding: 12px 30px; font-size: 15px; }
.hero-dots {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 18px;
  display: flex; justify-content: center; gap: 9px;
}
.hero-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,0.45);
}
.hero-dots button.on { background: var(--gold); }

/* ── find your part band ────────────────────────────────── */
.finder { background: var(--gold-band); color: var(--black); }
.finder-in { padding-block: 30px 34px; text-align: center; }
.finder h2 {
  margin: 0 0 20px; font-size: clamp(22px, 2.6vw, 28px); font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.finder form {
  display: flex; justify-content: center; align-items: stretch; gap: 10px; flex-wrap: wrap;
}
.finder select, .finder input[type="text"] {
  background: var(--black); color: #fff; border: 0; border-radius: 3px;
  font-family: var(--font); font-size: 13.5px; padding: 11px 14px; min-height: 42px;
}
.finder select { min-width: 200px; }
.finder input[type="text"] { min-width: min(300px, 80vw); }
.finder input::placeholder { color: rgba(255,255,255,0.75); }
.finder .go {
  background: var(--black); color: #fff; border: 0; border-radius: 3px; cursor: pointer;
  font-size: 16px; padding: 0 16px; min-height: 42px;
}
.finder .go:hover { color: var(--gold-logo); }
.finder .hint { margin: 14px 0 0; font-size: 12.5px; color: rgba(13,13,13,0.72); }

/* ── section tab pills ──────────────────────────────────── */
.tabs { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.tabs-in { display: flex; justify-content: center; gap: clamp(6px, 2vw, 18px); flex-wrap: wrap; padding-block: 16px; }
.tabs a {
  text-decoration: none; color: var(--ink-soft); font-size: 14px; font-weight: 500;
  border-radius: var(--radius-pill); padding: 8px 22px;
}
.tabs a:hover { color: var(--black); }
.tabs a.on, .tabs a:target { background: var(--gold); color: #fff; }

/* ── content sections ───────────────────────────────────── */
section { padding: clamp(48px, 7vw, 84px) 0; }
section.alt { background: var(--bg-alt); }
.sec-head { text-align: center; max-width: 780px; margin: 0 auto; }
.sec-head .kicker {
  display: block; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 600; color: var(--gold-deep); margin-bottom: 10px;
}
.sec-head h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); font-weight: 600; line-height: 1.2; }
.sec-head h2::after {
  content: ""; display: block; width: 56px; height: 3px; background: var(--gold);
  margin: 16px auto 0; border-radius: 2px;
}
.sec-head .intro { margin: 18px auto 0; color: var(--ink-soft); font-size: 15px; max-width: 66ch; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; margin-top: 40px; }
.card {
  background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-card);
  padding: 26px 24px; border-top: 3px solid var(--gold);
}
.card .kicker {
  display: block; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 600; color: var(--gold-deep); margin-bottom: 8px;
}
.card h3 { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.3; }
.card p { margin: 10px 0 0; font-size: 13.8px; line-height: 1.65; color: var(--ink-soft); }

figure { margin: 0; }
.photo { border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); }
figcaption { font-size: 12.5px; color: var(--ink-soft); margin-top: 10px; text-align: center; }

/* two-column feature (cabs) */
.feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(26px, 5vw, 64px); align-items: center; margin-top: 40px; }
.feature h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; margin: 0; }
.feature .kicker {
  display: block; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 600; color: var(--gold-deep); margin-bottom: 10px;
}
.feature p { color: var(--ink-soft); font-size: 14.5px; margin: 14px 0 0; max-width: 54ch; }
.tag {
  display: inline-flex; align-items: center; border: 1.5px solid var(--gold);
  color: var(--gold-deep); border-radius: var(--radius-pill);
  font-size: 12.5px; font-weight: 600; padding: 5px 14px;
}

/* stats band */
.stats { background: var(--black); color: #fff; }
.stats-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 28px 18px; padding-block: 48px; text-align: center; }
.stat .num { font-size: clamp(26px, 3vw, 38px); font-weight: 700; color: var(--gold-logo); }
.stat .lbl { margin-top: 6px; font-size: 12.5px; color: rgba(255,255,255,0.8); line-height: 1.45; }

/* credentials / clients */
.creds { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px 34px; margin-top: 38px; }
.creds p {
  margin: 0; padding-left: 18px; border-left: 3px solid var(--gold);
  font-size: 14px; line-height: 1.65; color: var(--ink-soft);
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }
.logos {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 26px clamp(28px, 4vw, 56px); background: #fff; border-radius: var(--radius-card);
  box-shadow: var(--shadow-card); padding: 26px 30px; margin-top: 20px;
}
.mini-label {
  text-align: center; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 600; color: var(--ink-soft); margin: 40px 0 0;
}

/* contact */
.offices { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; margin-top: 40px; }
.office { background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 26px 24px; text-align: center; }
.office h3 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
.office p { margin: 10px 0 0; font-size: 13.8px; color: var(--ink-soft); }
.contact-cta { text-align: center; margin-top: 36px; }
.contact-cta .who { margin: 16px 0 0; font-size: 14px; color: var(--ink-soft); }

/* footer */
.footer { background: var(--black); color: rgba(255,255,255,0.78); }
.footer-in {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px;
  padding-block: 34px; font-size: 13px; line-height: 1.7;
}
.footer img { height: 62px; width: auto; }
.footer a { color: var(--gold-logo); text-decoration: none; }

@media (max-width: 720px) {
  .topbar { position: static; }
  .brand { flex-basis: 100%; justify-content: center; }
  .brand img { height: 48px; }
  .brand .brand-cl { font-size: 13px; letter-spacing: 0.16em; }
  .topbar nav { justify-content: center; flex-basis: 100%; }
}

/* ── v2: photo cards ────────────────────────────────────── */
.card.ph { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card.ph > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card.ph .pad { padding: 20px 22px 24px; }

/* wide banner figure inside sections */
.banner { border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); margin-top: 38px; }
.banner img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; display: block; }

/* ── v2: cross-reference table (brakes) ─────────────────── */
.xref-wrap { overflow-x: auto; margin-top: 30px; border-radius: var(--radius-card); box-shadow: var(--shadow-card); background: #fff; }
.xref { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 620px; }
.xref th {
  background: var(--black); color: #fff; text-align: left; font-weight: 600;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; padding: 12px 16px;
}
.xref td { padding: 10px 16px; border-bottom: 1px solid var(--line); color: var(--ink); }
.xref td.pn { font-weight: 600; }
.xref td.wr { color: var(--gold-deep); font-weight: 700; }
.xref tbody tr:nth-child(even) { background: var(--bg-alt); }
.xref-note { font-size: 12.5px; color: var(--ink-soft); margin: 12px 4px 0; }

/* ── v3: gallery ────────────────────────────────────────── */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 38px; }
.gtile { background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-card); overflow: hidden; }
.gtile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.gtile figcaption { padding: 10px 14px 12px; font-size: 12.5px; color: var(--ink-soft); text-align: left; }
.brand-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.brand-chips .wordmark {
  font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink); background: #fff; border-radius: 4px; padding: 7px 14px;
  box-shadow: var(--shadow-card); border-left: 3px solid var(--gold);
}

/* ── v4: engineering drawings + graveyard band ──────────── */
.gtile.draw img { object-fit: contain; background: #fff; padding: 10px; }
section.dark { background: var(--black); }
section.dark .sec-head .kicker { color: var(--gold-logo); }
section.dark .sec-head h2 { color: #fff; }
section.dark .sec-head .intro { color: rgba(255,255,255,0.78); }
section.dark .gtile { background: #181818; }
section.dark .gtile figcaption { color: rgba(255,255,255,0.75); }
