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

/* ---------- Fonte ---------- */
/* Antes o CSS pedia 'Poppins' em vários lugares mas a fonte nunca
   era carregada — o site sempre caía no sans-serif padrão do
   navegador. Agora ela é importada de verdade. */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* ---------- Variáveis ---------- */
:root {
  --color-primary: #CC3438;
  --color-primary-dark: #972529;
  --color-text: #333333;
  --color-text-muted: #333333cc;
  --color-bg-soft: #a6a6a623;
  --color-card-bg: #F2F2F2;
  --color-footer-bg: #A6A6A6;
  --font-base: 'Poppins', sans-serif;
  --header-height: 100px;
  --container-max: 1200px;
}

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

body {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-base);
  font-size: 18px;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

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

ul {
  margin: 0;
}

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

h1 { font-size: 36px; font-weight: 800; }
h2 { font-size: 28px; font-weight: 700; }
h3 { font-size: 22px; font-weight: 600; margin: 0; }
h4 { font-size: 18px; font-weight: 400; color: var(--color-text); }

p { margin: 0 0 1em; }

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

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

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

.site-logo img {
  height: 70px;
  width: auto;
}

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

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

.main-nav a {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  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::after {
  content: '▾';
  font-size: 12px;
  margin-left: 5px;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 10px 0;
  list-style: none;
  margin: 0;
}

.nav-dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;
}

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

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

.nav-toggle {
  display: none;
  border: none;
  background: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle svg {
  width: 28px;
  height: 28px;
  color: var(--color-primary);
}

@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: flex-start;
    gap: 0;
    padding: 10px 25px 20px;
  }

  .main-nav > ul > li {
    width: 100%;
  }

  .nav-dropdown-menu {
    display: block;
    position: static;
    box-shadow: none;
    padding-left: 15px;
  }

  .nav-dropdown:hover .nav-dropdown-menu {
    display: block;
  }
}

/* =========================================================
   Banner / Hero (home)
   ========================================================= */
.hero-banner img {
  width: 100%;
  height: auto;
}

/* =========================================================
   Produtos (grade da home)
   ========================================================= */
#sp-main-body {
  padding: 50px 0;
}

#produtos-section,
#who_we_are {
  scroll-margin-top: var(--header-height);
}

.box_products {
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 100%;
  gap: 25px;
  padding: 0 25px;
  margin-bottom: 20px;
}

.box_products h1 {
  text-align: center;
}

.products {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 25px;
}

.product {
  background-color: var(--color-card-bg);
  border-radius: 20px;
  width: 450px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product h3 {
  margin-bottom: 10px;
}

.content_product {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
}

.image_product img {
  max-width: 110px;
}

.text_product {
  width: 100%;
}

.text_product p {
  margin: 0;
}

@media only screen and (max-width: 500px) {
  .product {
    width: 100%;
  }
}

/* =========================================================
   Quem Somos
   ========================================================= */
#who_we_are {
  display: flex;
  padding: 70px 25px;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  background-color: var(--color-bg-soft);
  margin-bottom: 50px;
}

.content_who_we_are {
  width: 500px;
  max-width: 100%;
}

.title_who_we_are {
  display: flex;
  align-items: center;
  gap: 15px;
}

.title_who_we_are h2 {
  font-size: 32px;
}

.text_who_we_are {
  font-size: 22px;
  word-spacing: 2px;
  opacity: 0.8;
}

.topics_who_we_are {
  width: 40%;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.option_who_we_are {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.icon_option_who_we_are {
  width: 100px;
  flex-shrink: 0;
}

.title_desc_quem_somos {
  color: var(--color-primary);
  font-weight: bolder;
  margin: 0;
}

.text_option_who_we_are {
  font-weight: 500;
  font-size: 17px;
  opacity: 0.8;
}

@media only screen and (max-width: 1050px) {
  .content_who_we_are { width: 100%; }
  .title_who_we_are h2 { font-size: 28px; }
  .text_who_we_are { font-size: 16px; }
  .text_option_who_we_are { font-size: 14px; }
}

@media only screen and (max-width: 760px) {
  #who_we_are { flex-direction: column; gap: 50px; }
  .content_who_we_are { display: flex; align-items: center; flex-direction: column; text-align: center; }
  .topics_who_we_are { width: 100%; }
}

/* =========================================================
   Páginas de produto (câmbio, cripto, offshore, etc.)
   Reaproveitam o mesmo layout de .institutional-page, com uma
   linha de destaque (subtítulo) logo abaixo do h1.
   ========================================================= */
.product-page .lead {
  font-size: 20px;
  color: var(--color-text);
  opacity: 0.85;
  margin-bottom: 2em;
}

@media only screen and (max-width: 760px) {
  .product-page h1 { font-size: 26px; }
  .product-page .lead { font-size: 17px; }
}

/* =========================================================
   Páginas institucionais (Código de Ética, DPO)
   ========================================================= */
.institutional-page {
  padding: 50px 0;
  max-width: 900px;
  margin: 0 auto;
}

.institutional-page h2 {
  margin-top: 2em;
  padding-top: 0.4em;
  border-top: 3px solid var(--color-bg-soft);
}

.institutional-page h2:first-of-type {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.institutional-page h3 {
  color: var(--color-text);
  font-size: 19px;
  font-weight: 700;
  margin: 1.2em 0 0.5em;
}

.institutional-page ul {
  padding-left: 22px;
  margin-bottom: 1em;
}

.institutional-page li {
  margin-bottom: 0.5em;
}

.contact-page p {
  font-size: 18px;
}

/* =========================================================
   Contato (faixa antes do rodapé)
   ========================================================= */
.bottom-bar {
  background-color: var(--color-bg-soft);
  padding: 40px 0;
}

.bottom-bar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.titulos_bottom {
  font-size: 18px;
  margin-bottom: 10px;
}

.bottom-links p {
  margin-bottom: 12px;
}

/* =========================================================
   Rodapé
   ========================================================= */
.site-footer {
  background-color: var(--color-footer-bg);
  color: #ffffff;
  padding: 25px 0;
  text-align: center;
}

.site-footer .sp-copyright {
  font-size: 14px;
  font-weight: 300;
}

/* =========================================================
   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;
}
