/* ============================================================
   Tintas Marfim — base.css
   Estilos COMPARTILHADOS por todas as páginas:
   tokens, reset, header/navbar, footer, faixa de título,
   botões, utilitários e regras responsivas.
   (Cada página tem seu próprio CSS em css/<pagina>.css)
   ============================================================ */

@font-face {
  font-family: "Amsi Pro Condensed";
  src: url("../assets/fonts/AmsiProCondensed-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Amsi Pro Condensed";
  src: url("../assets/fonts/AmsiProCondensed-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Amsi Pro Condensed";
  src: url("../assets/fonts/AmsiProCondensed-Ultra.woff2") format("woff2");
  font-weight: 500 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Marca / paleta */
  --magenta: #ec008c;
  --teal: #5b9bb5;
  --teal-dark: #3f7f99;
  --ink: #333333;
  --ink-soft: #555;
  --muted: #8a8a8a;
  --line: #dddddd;

  --bg: #ffffff;
  --bg-warm: #f4f3f1;   /* header / seções claras */
  --band: #ececec;      /* faixa de título */
  --footer: #2b2b2b;
  --field: #cfe8f5;     /* campos de formulário */
  --btn-dark: #2b1a3d;  /* botões roxo-escuro */

  --maxw: 1280px;
  --header-h: 96px;
  --transition: .2s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Amsi Pro Condensed", "Century Gothic", "Segoe UI", Arial, sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4 { font-weight: 400; margin: 0; line-height: 1.15; }
p { margin: 0 0 1rem; }

/* ---------- Utilitários compartilhados ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 32px; }
.wrap-narrow { max-width: 1100px; margin-inline: auto; padding-inline: 32px; }
.text-center { text-align: center; }
.section { padding: 60px 0; }
.section--warm { background: var(--bg-warm); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }

/* ============================================================
   HEADER / NAVBAR (componente)
   ============================================================ */
.site-header {
  background: #fff;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: var(--header-h); padding: 12px 0;
}
.brand { display: flex; flex-direction: column; align-items: center; flex: none; }
.brand img { height: 52px; width: auto; border-radius: 0; }
.brand span {
  font-size: 11px; color: #666; letter-spacing: .02em; margin-top: 5px; font-weight: 400;
}

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  display: block; padding: 8px 11px; font-size: 16px; letter-spacing: .06em;
  text-transform: uppercase; color: #444; font-weight: 400; white-space: nowrap;
  transition: var(--transition);
}
.main-nav a:hover { color: var(--teal); }
.main-nav a.is-active { color: var(--teal); }

/* Dropdown Produtos */
.nav-drop { position: relative; }
.nav-drop__menu {
  position: absolute; top: 100%; left: 0; min-width: 190px; background: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,.14); border-radius: 6px; padding: 6px;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: var(--transition); z-index: 200;
}
.nav-drop:hover .nav-drop__menu, .nav-drop:focus-within .nav-drop__menu { opacity: 1; visibility: visible; transform: none; }
.nav-drop__menu a { display: block; padding: 11px 14px; border-radius: 4px; font-size: 15px; letter-spacing: .05em; text-transform: uppercase; color: #444; white-space: nowrap; }
.nav-drop__menu a:hover { background: var(--bg-warm); color: var(--teal); }

.header-social { display: flex; align-items: center; gap: 14px; flex: none; padding-left: 18px; border-left: 1px solid #cfcfcf; }
.header-social a { color: #333; display: grid; place-items: center; transition: var(--transition); }
.header-social a:hover { color: var(--teal); }
.header-social svg { width: 17px; height: 17px; fill: currentColor; }

/* Hambúrguer */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; padding: 9px; }
.nav-toggle span { display: block; height: 2px; background: #333; border-radius: 2px; transition: var(--transition); }
.nav-toggle span + span { margin-top: 6px; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   FAIXA DE TÍTULO (páginas internas)
   ============================================================ */
.page-band { background: var(--band); }
.page-band__inner { display: flex; align-items: center; gap: 8px; min-height: 96px; padding: 12px 0; }
.page-band__ele { height: 74px; width: auto; flex: none; }
.page-band__title { font-size: 24px; letter-spacing: .04em; color: #3a3a3a; font-weight: 300; }
.page-band__sub { color: #666; font-size: 14px; margin-top: 4px; }
.page-band--tall .page-band__inner { min-height: 84px; }

/* ============================================================
   BOTÕES
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: inherit; font-size: 15px; letter-spacing: .02em;
  padding: 13px 34px; border: 0; border-radius: 0; cursor: pointer; transition: var(--transition);
}
.btn--dark { background: var(--btn-dark); color: #fff; }
.btn--dark:hover { background: #3d2854; }

/* ============================================================
   BLOCOS COMPARTILHADOS (usados por 2+ páginas)
   ============================================================ */
.seal { display: block; margin: 0 auto 10px; max-width: min(300px, 100%); }
.ele-splash { max-width: 420px; margin: 0 auto; }
.ele-splash img { width: 100%; }
.eco-text { max-width: 980px; margin: 0 auto; color: #4a4a4a; font-size: 15.5px; }
.eco-text ul { list-style: disc; padding-left: 22px; margin: 16px 0; }
.eco-text li { margin-bottom: 6px; }

/* Formulários (base — contato / trabalhe conosco) */
.field { display: block; margin-bottom: 18px; }
.field > label { display: block; font-size: 14px; color: #555; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 15px; padding: 12px 14px;
  background: var(--field); border: 1px solid #b9dcee; border-radius: 2px; color: #333;
}
.field textarea { min-height: 190px; resize: vertical; }
.field--plain input, .field--plain textarea { background: #fff; border: 1px solid #cfcfcf; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ============================================================
   FOOTER (componente)
   ============================================================ */
.site-footer { background: var(--footer); color: #cfcfcf; padding: 18px 0 22px; }
.footer-top-line { border-top: 1px solid rgba(255,255,255,.18); max-width: var(--maxw); margin: 0 auto 20px; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.footer-info { font-size: 13px; line-height: 1.8; color: #dcdcdc; }
.footer-info .row { display: flex; align-items: center; gap: 22px; margin: 8px 0; }
.footer-info .ic { display: inline-flex; align-items: center; gap: 7px; }
.footer-info .ic svg { width: 15px; height: 15px; fill: #cfcfcf; }
.footer-info a { color: #dcdcdc; }
.footer-info a:hover { color: #fff; }
.footer-info .policy { font-weight: 600; color: #fff; margin: 12px 0 8px; }
.footer-info .copy { font-size: 13px; color: #b6b6b6; }
.footer-splash { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.footer-splash img.splash { width: 55%; max-width: 300px; }
.footer-splash img.flogo { width: 110px; flex: none; }

/* ============================================================
   RESPONSIVO (todas as páginas)
   ============================================================ */
@media (max-width: 1120px) {
  .main-nav a { padding: 8px 8px; font-size: 14px; }
  .cert-strip { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 960px) {
  .two-col, .contact-cols, .prod-hero { grid-template-columns: 1fr; }
  .mv-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .lines-grid, .prod-cols { grid-template-columns: 1fr; max-width: 460px; }
  .brand-tabs, .prod-brands { grid-template-columns: 1fr; }
  .emb-grid { grid-template-columns: repeat(3,1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-splash { text-align: center; }
  .footer-splash img.splash { margin-inline: auto; }

  /* menu completo não cabe mais junto com a marca e os ícones sociais — vira hambúrguer */
  .nav-toggle { display: block; }
  .header-social { display: none; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; padding: 8px 20px 20px; gap: 0; box-shadow: 0 12px 24px rgba(0,0,0,.15);
    transform: translateY(-130%); transition: transform .3s ease; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .main-nav.is-open { transform: translateY(0); }
  .main-nav a { padding: 13px 6px; border-bottom: 1px solid #e3e2e0; font-size: 14px; }
  .nav-drop__menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 16px; background: transparent; }
  .nav-drop__menu a { color: #666; font-size: 15px; }
}
@media (max-width: 900px) {
  .inv-grid { grid-template-columns: repeat(3, 1fr); }
  .inv-detail { grid-template-columns: 1fr; }
  .inv-anchors { grid-template-columns: repeat(3, auto); }
}
@media (max-width: 860px) {
  .cat-prod { grid-template-columns: 1fr; }
  .cat-prod__can { order: -1; }
  .color-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-cats { display: none; }
}
@media (max-width: 760px) {
  .clients-grid, .emb-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-strip { grid-template-columns: repeat(2, 1fr); }
  .form-row, .contact-info, .bottom-policies, .tc-social__inner { grid-template-columns: 1fr; }
  .hero__copy-left, .hero__copy-right { position: static; max-width: none; text-align: center; margin-top: 10px; }
  .hero__ele { position: static; transform: none; margin: 10px auto; width: 70%; }
  .hero__cans { margin-top: 20px; }
  .page-band__title { font-size: 20px; }
  .page-band__ele { height: 56px; }
  .contact-banner span { font-size: 30px; }
  .mv p { font-size: 18px; }
  .carousel3d { max-width: 100%; height: 360px; perspective: 900px; }
  .carousel3d__stage { width: 220px; height: 300px; margin-left: -110px; }
  .carousel3d__cell { width: 220px; height: 300px; }
  .pz-intro { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .pz-intro__seal { margin: 0 auto; }
  .inv-grid { grid-template-columns: repeat(2, 1fr); }
  body { font-size: 15px; }
}
