/* =========================================================
   Exchange Informática — style.css
   Folha de estilos única, compartilhada por todas as páginas.
   ========================================================= */

/* ---------- Fonte ---------- */
/* Poppins hospedada localmente (fonts/) em vez do CDN do Google Fonts,
   evitando que o navegador do visitante faça requisições a fonts.gstatic.com. */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/poppins-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/poppins-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/poppins-800.woff2') format('woff2');
}

/* ---------- Variáveis ---------- */
:root {
  --color-primary: #CC3438;
  --color-primary-dark: #972529;
  --color-ink: #24211f;
  --color-text: #59544f;
  --color-text-soft: #8a8580;
  --color-border: #ECE9E7;
  --color-surface-alt: #F5F3F2;
  --color-dark: #1a1815;
  --font-base: 'Poppins', sans-serif;
  --header-height: 76px;
  --container-max: 1200px;
}

/* ---------- Reset básico ---------- */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.6;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: var(--color-primary);
}

a:hover {
  color: var(--color-primary-dark);
}

img {
  max-width: 100%;
  display: block;
}

ul {
  margin: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-base);
  margin: 0 0 0.6em;
  color: var(--color-ink);
}

p { margin: 0 0 1em; }

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

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.btn-primary {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  background: var(--color-primary);
  padding: 14px 28px;
  border-radius: 4px;
  white-space: nowrap;
}

.btn-primary:hover {
  color: #ffffff;
  background: var(--color-primary-dark);
}

/* =========================================================
   Cabeçalho / Navegação
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.site-logo img {
  width: 170px;
  height: 64px;
  object-fit: contain;
  object-position: left center;
}

.main-nav {
  display: flex;
  align-items: center;
}

.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  padding: 0;
}

.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-ink);
  padding: 10px 0;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--color-primary);
}

.main-nav a.is-active {
  color: var(--color-primary);
  font-weight: 700;
}

/* Dropdown "Produtos" */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a .caret {
  font-size: 10px;
  margin-left: 6px;
  display: inline-block;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 36px;
  left: -16px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  border-radius: 12px;
  padding: 10px;
  list-style: none;
  margin: 0;
  grid-template-columns: repeat(2, 190px);
  gap: 2px;
  z-index: 60;
}

.nav-dropdown-menu li a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-ink);
  white-space: nowrap;
}

.nav-dropdown-menu li a:hover {
  background: var(--color-surface-alt);
  color: var(--color-primary);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: grid;
}

.nav-toggle {
  display: none;
  border: none;
  background: none;
  cursor: pointer;
  padding: 8px;
  font-size: 26px;
  line-height: 1;
  color: var(--color-ink);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .main-nav.is-open {
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 24px;
  }

  .main-nav > ul > li > a {
    font-size: 17px;
    font-weight: 600;
    padding: 12px 4px;
    display: block;
  }

  .nav-dropdown-menu {
    display: flex !important;
    flex-direction: column;
    position: static;
    box-shadow: none;
    padding: 0 0 0 16px;
    gap: 2px;
  }

  .nav-dropdown-menu li a {
    font-size: 15px;
    color: var(--color-text);
    padding: 10px 4px;
  }
}

/* =========================================================
   Hero (carrossel — home)
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-dark);
  padding: 76px 0 84px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -8%;
  width: 55%;
  height: 170%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  opacity: 0.16;
  transform: rotate(-10deg);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: #E7A6A8;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-text h1 {
  font-size: 48px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.12;
  margin-bottom: 18px;
  max-width: 520px;
}

.hero-text p {
  font-size: 17px;
  line-height: 1.65;
  color: #C9C4BF;
  max-width: 480px;
  margin-bottom: 32px;
  min-height: 85px;
}

.hero-actions {
  margin-bottom: 40px;
}

.hero-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.hero-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  cursor: pointer;
  color: #ffffff;
  font-size: 16px;
  flex-shrink: 0;
}

.hero-arrow:hover {
  border-color: rgba(255, 255, 255, 0.6);
}

.hero-dots {
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: #D8D3D3;
  padding: 0;
}

.hero-dots button.is-active {
  background: var(--color-primary);
}

.hero-image {
  background: #ffffff;
  border-radius: 8px;
  padding: 28px;
  height: 320px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@media (max-width: 760px) {
  .hero-text h1 { font-size: 34px; }
}

/* =========================================================
   Barra de estatísticas
   ========================================================= */
.stats-bar {
  padding: 36px 0;
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat-value {
  font-size: 34px;
  font-weight: 700;
  color: var(--color-primary);
}

.stat-label {
  font-size: 13px;
  color: var(--color-text-soft);
  margin-top: 4px;
}

/* =========================================================
   Produtos (grade da home)
   ========================================================= */
.box_products {
  padding: 88px 24px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.box_products h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.box_products .section-lead {
  font-size: 16px;
  color: var(--color-text);
  margin-bottom: 44px;
  max-width: 640px;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.product {
  cursor: pointer;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.product:hover {
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.product .image_product {
  height: 150px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.product .image_product img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product .text_product {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.product .tag_product {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.03em;
}

.product h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 0;
}

.product p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text);
  flex: 1;
  margin: 0;
}

.product .see-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-ink);
}

/* =========================================================
   Quem Somos
   ========================================================= */
#quem-somos {
  background: var(--color-surface-alt);
  padding: 88px 24px;
}

#quem-somos .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 56px;
}

#quem-somos h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
}

.text_who_we_are {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  max-width: 480px;
  margin: 0;
}

.topics_who_we_are {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--color-border);
  border-radius: 6px;
  overflow: hidden;
}

.option_who_we_are {
  background: #ffffff;
  padding: 24px 26px;
}

.title_desc_quem_somos {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.text_option_who_we_are {
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text);
}

/* =========================================================
   Páginas de produto
   ========================================================= */
.product-hero {
  padding: 56px 24px 40px;
}

.product-hero .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  align-items: center;
}

.back-link {
  cursor: pointer;
  background: none;
  border: none;
  font-size: 14px;
  color: var(--color-text-soft);
  margin-bottom: 20px;
  padding: 0;
  display: inline-block;
}

.product-hero h1 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
}

.product-hero .lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text);
  max-width: 520px;
  margin-bottom: 40px;
}

.product-hero-image {
  height: 260px;
  background: var(--color-surface-alt);
  border-radius: 6px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-hero-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-sections {
  padding: 0 24px 80px;
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 28px 32px;
}

.info-card h2 {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 12px;
}

.info-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-ink);
  margin: 16px 0 8px;
}

.info-card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 0;
  margin: 0 0 8px;
  list-style: none;
}

.info-card li {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--color-text);
  padding-left: 18px;
  position: relative;
}

.info-card li::before {
  content: '–';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-primary);
}

@media (max-width: 760px) {
  .product-hero h1 { font-size: 28px; }
  .product-hero .lead { font-size: 16px; }
}

/* =========================================================
   Páginas institucionais (DPO)
   ========================================================= */
.institutional-hero {
  padding: 64px 24px 0;
  max-width: 720px;
  margin: 0 auto;
}

.institutional-hero h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
}

.contact-card {
  max-width: 720px;
  margin: 0 auto 80px;
  padding: 0 24px;
}

.contact-card .info-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  color: var(--color-text);
}

.contact-card .info-card strong {
  color: var(--color-ink);
}

/* Código de Ética */
.etica-page {
  padding: 56px 24px 80px;
}

.etica-page .container > .eyebrow,
.etica-page .container > h1 {
  max-width: var(--container-max);
}

.etica-page h1 {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 32px;
}

.etica-sections {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* =========================================================
   Rodapé
   ========================================================= */
.site-footer {
  background: var(--color-surface-alt);
  margin-top: auto;
  border-top: 3px solid var(--color-primary);
}

.footer-grid {
  padding: 56px 24px 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

.footer-logo {
  width: 150px;
  height: 64px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-soft);
  max-width: 260px;
  margin: 0;
}

.footer-heading {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a,
.footer-col p {
  font-size: 14px;
  color: var(--color-text);
  margin: 0;
}

.footer-col a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid #E7E3E1;
  padding: 20px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--color-text-soft);
}

/* =========================================================
   Utilitários
   ========================================================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
