/* ============================================================
   REPAPEL — Comércio de Papéis LTDA
   Identidade: verde reciclagem + azul petróleo sobre tom papel
   ============================================================ */

:root {
  --green: #2fa43f;
  --green-deep: #1c7d2c;
  --green-ink: #0d3d1a;
  --blue: #14588f;
  --blue-deep: #0e3a5e;
  --ink: #14252f;
  --muted: #55676f;
  --paper: #f7f6f1;
  --paper-deep: #efede4;
  --kraft: #b9905a;
  --white: #ffffff;
  --line: #dedbd0;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(14, 58, 94, .18);
  --font: "Archivo", "Segoe UI", system-ui, sans-serif;
  --wide: "wdth" 125;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

html, body { overflow-x: clip; }

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); }
ul, ol { list-style: none; }

.wrap { width: min(1180px, 92%); margin-inline: auto; }

/* ---------- Tipografia ---------- */
h1, h2, h3 {
  font-variation-settings: var(--wide);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.015em;
  color: var(--blue-deep);
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 62ch; }
.accent { color: var(--green); }

/* Etiqueta de classificação — como as tags de fardo de aparas */
.tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green-deep);
  border: 1.5px solid currentColor;
  padding: .3rem .85rem .3rem .7rem;
  border-radius: 3px;
  margin-bottom: 1.1rem;
  position: relative;
  background: var(--white);
}
.tag::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  flex: none;
}
.on-dark .tag { color: #9fe8a9; background: transparent; }

/* ---------- Barra superior ---------- */
.topbar {
  background: var(--blue-deep);
  color: #cfe3f4;
  font-size: .85rem;
  padding: .45rem 0;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.topbar a { color: var(--white); text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }
.topbar-phones { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
.site-header.scrolled { box-shadow: 0 6px 24px -14px rgba(14, 37, 47, .35); border-color: var(--line); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: .9rem 0; }
.brand img { height: 46px; width: auto; }

.main-nav ul { display: flex; gap: .25rem; align-items: center; }
.main-nav a {
  display: block;
  padding: .55rem .85rem;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.main-nav a:hover { color: var(--green-deep); background: #eef7ef; }
.main-nav a[aria-current="page"] { color: var(--green-deep); box-shadow: inset 0 -2.5px 0 var(--green); border-radius: 8px 8px 2px 2px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.6rem;
  border-radius: 10px;
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-green { background: var(--green); color: var(--white); box-shadow: 0 8px 20px -8px rgba(47, 164, 63, .55); }
.btn-green:hover { background: var(--green-deep); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.on-dark .btn-outline { border-color: rgba(255,255,255,.7); color: var(--white); }
.on-dark .btn-outline:hover { background: var(--white); color: var(--blue-deep); }
.main-nav .btn { padding: .6rem 1.25rem; }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: .5rem;
}
.menu-toggle span {
  display: block;
  width: 26px; height: 2.5px;
  background: var(--blue-deep);
  margin: 5.5px 0;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  color: var(--white);
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: min(88vh, 760px);
  padding: 5rem 0 7.5rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  object-fit: cover;
  width: 100%; height: 100%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(9, 40, 62, .92) 15%, rgba(13, 61, 26, .68) 70%, rgba(9, 40, 62, .35));
}
.hero h1 { color: var(--white); max-width: 15ch; }
.hero .lead { color: #d9e6dd; margin: 1.4rem 0 2.2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Tíquetes de pesagem — números da empresa */
.hero-stats {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,.25);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 780px;
}
.stat {
  background: rgba(9, 40, 62, .55);
  backdrop-filter: blur(4px);
  padding: 1.1rem 1.3rem;
}
.stat b {
  display: block;
  font-size: 1.9rem;
  font-variation-settings: var(--wide);
  font-weight: 800;
  color: #9fe8a9;
  line-height: 1.1;
}
.stat span { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: #cfe3f4; }

/* Onda de papelão ondulado — assinatura visual */
.flute {
  display: block;
  width: 100%;
  height: 34px;
  margin-bottom: -1px;
}
.flute-bottom {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  color: var(--paper);
}
.flute-bottom svg, .flute svg { display: block; width: 100%; height: 100%; }

/* ---------- Heros internos ---------- */
.page-hero {
  position: relative;
  color: var(--white);
  isolation: isolate;
  padding: 6.5rem 0 8rem;
}
.page-hero .hero-bg { filter: saturate(.9); }
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(9, 40, 62, .93) 20%, rgba(20, 88, 143, .62));
}
.page-hero.tint-green::before { background: linear-gradient(100deg, rgba(13, 61, 26, .93) 20%, rgba(28, 125, 44, .55)); }
.page-hero h1 { color: var(--white); }
.page-hero .lead { color: #d5e4ef; margin-top: 1.2rem; }

/* ---------- Seções ---------- */
.section { padding: 5.5rem 0; }
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }

.band {
  background: var(--blue-deep);
  color: #dbe8f2;
  position: relative;
}
.band h2, .band h3 { color: var(--white); }
.band .lead { color: #b8cede; }
.band-green { background: linear-gradient(115deg, var(--green-ink), var(--green-deep)); color: #e2f3e4; }
.band-green .lead { color: #cbe8cf; }

/* ---------- Grades de cards ---------- */
.grid { display: grid; gap: 1.75rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px -14px rgba(14, 58, 94, .28); }
.card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card-body { padding: 1.5rem 1.6rem 1.7rem; flex: 1; }
.card-body h3 { margin-bottom: .55rem; }
.card-body p { color: var(--muted); font-size: .97rem; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1rem;
  font-weight: 700;
  font-size: .92rem;
  color: var(--green-deep);
  text-decoration: none;
}
.card-link:hover { text-decoration: underline; }

/* Cards de frota/equipamento/produto — foto + etiqueta */
.spec-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.spec-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px -14px rgba(14, 58, 94, .28); }
.spec-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.spec-card figcaption {
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: .98rem;
  color: var(--blue-deep);
  display: flex;
  align-items: center;
  gap: .6rem;
}
.spec-card figcaption::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 2px;
  background: var(--green);
  flex: none;
}

/* ---------- Linhas alternadas (serviços) ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: 3.5rem 0;
}
.feature-row + .feature-row { border-top: 1px solid var(--line); }
.feature-row:nth-child(even) .feature-media { order: 2; }
.feature-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}
.feature-copy h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.feature-copy p { color: var(--muted); margin-top: 1rem; }
.feature-copy ul { margin-top: 1.2rem; display: grid; gap: .55rem; }
.feature-copy li { display: flex; gap: .65rem; align-items: baseline; color: var(--ink); font-size: .98rem; }
.band .feature-copy li { color: #dbe8f2; }
.band-green .feature-copy li { color: #e2f3e4; }
.feature-copy li::before { content: "✓"; color: var(--green); font-weight: 800; flex: none; }

/* ---------- Diagrama do processo de aparas ---------- */
.process {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.process-step {
  counter-increment: step;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem 1.4rem;
  position: relative;
  box-shadow: var(--shadow);
}
.process-step::before {
  content: counter(step, decimal-leading-zero);
  font-variation-settings: var(--wide);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--green);
  display: block;
  margin-bottom: .6rem;
}
.process-step h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.process-step p { font-size: .9rem; color: var(--muted); }
.process-note {
  margin-top: 1.5rem;
  padding: 1rem 1.4rem;
  border-left: 4px solid var(--kraft);
  background: var(--paper-deep);
  border-radius: 0 10px 10px 0;
  font-size: .95rem;
  color: var(--muted);
}

/* ---------- Timeline (sobre nós) ---------- */
.timeline { position: relative; margin-top: 2.5rem; display: grid; gap: 2.25rem; padding-left: 2rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 2.5px;
  background: linear-gradient(var(--green), var(--blue));
  border-radius: 2px;
}
.timeline li { position: relative; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -2rem; top: .45rem;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 3.5px solid var(--green);
}
.timeline b {
  font-variation-settings: var(--wide);
  font-size: 1.15rem;
  color: var(--blue-deep);
  display: block;
  margin-bottom: .25rem;
}
.timeline p { color: var(--muted); font-size: .98rem; max-width: 62ch; }

/* ---------- Missão / visão / valores ---------- */
.pillar {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 1.9rem 1.8rem;
  box-shadow: var(--shadow);
}
.pillar h3 { margin-bottom: .7rem; }
.pillar p, .pillar li { color: var(--muted); font-size: .97rem; }
.pillar ul { display: grid; gap: .6rem; }
.pillar li { display: flex; gap: .6rem; align-items: baseline; }
.pillar li::before { content: "•"; color: var(--green); font-weight: 800; }
.pillar li b { color: var(--ink); }

/* ---------- Certificações ---------- */
.cert-row { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-top: 1.75rem; }
.cert {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  transition: background .2s;
}
.cert:hover { background: rgba(255,255,255,.16); }
.cert svg { flex: none; }
.cert small { display: block; font-weight: 400; font-size: .8rem; color: #b8d8c2; }

/* ---------- Chips de categorias (produtos) ---------- */
.chip-nav {
  position: sticky;
  top: 78px;
  z-index: 30;
  background: rgba(247, 246, 241, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: .8rem 0;
}
.chip-nav .wrap { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip {
  padding: .45rem 1.05rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--white);
  font-size: .85rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  transition: all .2s;
}
.chip:hover, .chip.active { border-color: var(--green); color: var(--green-deep); background: #eef7ef; }

.product-section { padding: 3.75rem 0 1rem; }
.product-section h2 {
  font-size: 1.55rem;
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: 1.75rem;
}
.product-section h2::after { content: ""; height: 1.5px; background: var(--line); flex: 1; }

/* ---------- Contato ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: start; }
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 700; color: var(--blue-deep); }
.field input, .field select, .field textarea {
  font-family: var(--font);
  font-size: .97rem;
  padding: .75rem .9rem;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
  width: 100%;
  transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid transparent;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 164, 63, .18);
}
.field textarea { resize: vertical; min-height: 130px; }
.radio-row { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.radio-row label { display: flex; gap: .5rem; align-items: center; font-weight: 600; font-size: .95rem; cursor: pointer; }
.radio-row input { accent-color: var(--green); width: 18px; height: 18px; }

.unit-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: var(--radius);
  padding: 1.75rem 1.9rem;
  box-shadow: var(--shadow);
}
.unit-card + .unit-card { margin-top: 1.5rem; }
.unit-card h3 { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.unit-card h3 small { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green-deep); background: #eef7ef; padding: .2rem .6rem; border-radius: 4px; }
.unit-card address { font-style: normal; color: var(--muted); margin-bottom: .9rem; }
.unit-card .phones { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .95rem; }
.unit-card .phones a { font-weight: 700; text-decoration: none; color: var(--blue); }
.unit-card .phones a:hover { text-decoration: underline; }
.map-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; font-size: .9rem; font-weight: 700; color: var(--green-deep); text-decoration: none; }
.map-link:hover { text-decoration: underline; }

.work-card {
  margin-top: 1.5rem;
  background: linear-gradient(115deg, var(--blue-deep), var(--blue));
  color: #d5e4ef;
  border-radius: var(--radius);
  padding: 1.75rem 1.9rem;
}
.work-card h3 { color: var(--white); margin-bottom: .5rem; }
.work-card p { font-size: .95rem; }

.form-status { margin-top: 1rem; font-weight: 600; font-size: .95rem; color: var(--green-deep); min-height: 1.4em; }

/* ---------- CTA final ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 22ch; margin-inline: auto; }
.cta-band .lead { margin: 1.2rem auto 2rem; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1f2b; color: #9fb4c0; font-size: .93rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding: 4rem 0 3rem;
}
.site-footer h4 {
  color: var(--white);
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.site-footer ul { display: grid; gap: .55rem; }
.site-footer a { color: #c3d3dc; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-brand img { height: 42px; margin-bottom: 1rem; }
.footer-brand p { max-width: 34ch; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.3rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .85rem;
  color: #7e94a1;
}

/* ---------- Animações de entrada ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .spec-card:hover { transform: none; }
}

:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .contact-grid, .feature-row { grid-template-columns: 1fr; }
  .feature-row:nth-child(even) .feature-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .chip-nav { top: 66px; }
}

@media (max-width: 820px) {
  /* backdrop-filter cria containing block e prende o menu fixed dentro do header */
  .site-header { backdrop-filter: none; background: var(--white); }
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 0;
    top: 0;
    background: var(--white);
    padding: 6rem 8% 2rem;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .35s ease, visibility 0s .35s;
    z-index: 40;
    overflow-y: auto;
  }
  .main-nav.open { transform: none; visibility: visible; transition: transform .35s ease; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: .35rem; }
  .main-nav a { font-size: 1.15rem; padding: .85rem 1rem; }
  .main-nav .btn { margin-top: 1rem; justify-content: center; }
  .menu-toggle { position: relative; z-index: 45; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .topbar { display: none; }
  .hero { min-height: 0; padding: 4.5rem 0 6.5rem; }
  .section { padding: 3.75rem 0; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}
