/* =======================================================
   GB FERRAGENS — STYLE.CSS
   Layout enxuto, responsivo e profissional
   ======================================================= */

/* -------------------------------------------------------
   0) VARIÁVEIS GLOBAIS
   ------------------------------------------------------- */
:root {
  --primary: #1E88E5;
  --primary-light: #42A5F5;
  --dark: #111111;
  --dark-soft: #222222;
  --bg-light: #F5F5F5;

  --radius-lg: 18px;
  --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.10);
  --transition-fast: 0.2s ease-in-out;

  --font-main: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Tema escuro básico */
:root[data-theme="dark"] {
  --dark: #e9e9e9;
  --dark-soft: #d8d8d8;
  --bg-light: #0f1420;

  --primary: #64B5F6;
  --primary-light: #90CAF9;
}

:root[data-theme="dark"] body {
  background-color: #0e1117;
  color: var(--dark);
}

/* -------------------------------------------------------
   1) BASE / RESET
   ------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  background-color: #ffffff;
  color: var(--dark-soft);
  padding-top: 120px;
  /* top-bar + navbar fixa */
}

a {
  text-decoration: none;
}

/* Títulos gerais */
.section-title {
  font-weight: 600;
  color: var(--dark-soft);
  margin-bottom: 6px;
}

.section-subtitle {
  font-size: 0.9rem;
  color: #777;
}

/* Container full-width amigável */
.section-full>.container {
  max-width: 100% !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
}

@media (min-width: 768px) {
  .section-full>.container {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
}

@media (min-width: 1400px) {
  .section-full>.container {
    padding-left: 40px !important;
    padding-right: 40px !important;
  }
}

/* -------------------------------------------------------
   2) TOP BAR
   ------------------------------------------------------- */
.top-bar {
  background: linear-gradient(90deg, #e3f2fd, #bbdefb);
  color: #0d47a1;
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 1px solid #90caf9;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1100;
  padding: 4px 0;
}

.top-bar .container {
  position: relative;
  height: 24px;
  overflow: hidden;
}

.top-message {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  white-space: nowrap;
}

.top-message.active {
  opacity: 1;
}

.top-bar strong {
  color: #0d47a1;
  font-weight: 700;
}

/* Dark mode top-bar */
:root[data-theme="dark"] .top-bar {
  background: linear-gradient(90deg, #152032, #0e1726);
  color: #cfe7ff;
  border-bottom: 1px solid #20334f;
}

:root[data-theme="dark"] .top-bar strong {
  color: #cfe7ff;
}

/* -------------------------------------------------------
   3) NAVBAR FIXA
   (o HTML está em header.php, aqui só o visual)
   ------------------------------------------------------- */
.main-navbar {
  position: fixed;
  top: 32px;
  /* abaixo da top-bar */
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(to bottom, #ffffff 0%, #f7f9fb 100%);
  border-bottom: 3px solid var(--primary);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  padding: 8px 0;
}

.main-navbar-grid {
  display: grid;
  grid-template-columns: 230px 1fr 320px;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
}

.navbar-left {
  justify-self: start;
}

.navbar-right {
  justify-self: end;
}

.logo-gb {
  width: 112px;
  height: auto;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.18));
}

.brand-text {
  margin-left: 8px;
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--primary);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

/* Menu */
.main-navbar .navbar-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-navbar .nav-link {
  color: #374151 !important;
  font-weight: 500;
  font-size: 0.86rem;
  padding: 4px 10px;
  border-radius: 999px;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.main-navbar .nav-link:hover {
  color: #ffffff !important;
  background-color: var(--primary);
}

.main-navbar .nav-link.text-primary {
  color: var(--primary) !important;
  font-weight: 600;
}

.navbar-toggler {
  border: none;
}

.navbar-toggler-icon {
  filter: invert(0.4);
}

/* Dark mode navbar */
:root[data-theme="dark"] .main-navbar {
  background: linear-gradient(to bottom, #0f1420 0%, #0b101a 100%);
  border-bottom-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}

:root[data-theme="dark"] .main-navbar .nav-link {
  color: #e0e6ef !important;
}

:root[data-theme="dark"] .main-navbar .nav-link:hover {
  background-color: var(--primary);
  color: #0b101a !important;
}

/* -------------------------------------------------------
   4) BUSCA CENTRAL (navbar)
   ------------------------------------------------------- */
.search-form {
  justify-self: center;
  width: 100%;
  max-width: 520px;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 8px 90px 8px 34px;
  border-radius: 999px;
  border: 1px solid #d0d0d0;
  font-size: 0.9rem;
  outline: none;
  background-color: #fff;
  transition: all 0.2s ease-in-out;
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(30, 136, 229, 0.12);
}

.search-btn {
  position: absolute;
  right: 4px;
  padding: 6px 16px;
  border: none;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background-color: var(--primary);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out, transform 0.15s ease-in-out;
}

.search-btn:hover {
  background-color: var(--primary-light);
  transform: translateY(-1px);
}

/* Dark mode busca */
:root[data-theme="dark"] .search-input {
  background: #0b101a;
  color: #e0e6ef;
  border-color: #2a3445;
}

:root[data-theme="dark"] .search-input:focus {
  box-shadow: 0 0 0 2px rgba(100, 181, 246, .18);
}

:root[data-theme="dark"] .search-btn {
  background-color: var(--primary);
  color: #0b101a;
}

/* -------------------------------------------------------
   5) HERO CAROUSEL
   ------------------------------------------------------- */
#hero-carousel {
  position: relative;
  width: 100%;
  height: 60vh;
  overflow: hidden;
  z-index: 1;
}

#hero-carousel .carousel-inner,
#hero-carousel .carousel-item {
  height: 100%;
}

#hero-carousel .carousel-item {
  background-size: cover;
  background-position: center;
  position: relative;
  transition: opacity 1s ease-in-out;
}

#hero-carousel .carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

#hero-carousel .hero-img {
  height: 100%;
  object-fit: cover;
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 10%;
  color: #fff;
  text-shadow: 0 3px 6px rgba(0, 0, 0, .5);
  pointer-events: none;
}

.carousel-overlay .hero-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.carousel-overlay .hero-subtitle {
  font-size: 1.05rem;
  max-width: 500px;
  margin-bottom: 1.2rem;
}

.carousel-control-prev,
.carousel-control-next {
  z-index: 3;
  opacity: 0.9;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: brightness(0) invert(1);
  width: 2.8rem;
  height: 2.8rem;
  opacity: 1;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

@media (max-width: 576px) {
  #hero-carousel {
    height: 40vh;
  }

  #hero-carousel .carousel-item {
    height: 40vh;
  }

  .carousel-overlay {
    padding: 0 5%;
    text-align: center;
    align-items: center;
  }
}

/* -------------------------------------------------------
   6) DESTAQUES (carrossel horizontal)
   ------------------------------------------------------- */
.promo-section {
  padding: 32px 0 24px;
  background-color: #ffffff;
}

.promo-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.promo-track {
  display: flex;
  gap: 12px;
  overflow: hidden;
  width: 100%;
  padding: 4px 0 8px;
  align-items: stretch;
}

/* Cards de destaque */
.product-card,
.promo-card {
  flex: 0 0 calc((100% - (12px * 5)) / 6);
  max-width: calc((100% - (12px * 5)) / 6);
  min-width: 160px;
  background-color: #fff;
  border-radius: 14px;
  border: 1px solid #e5e5e5;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.product-card:hover,
.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.10);
  border-color: var(--primary-light);
}

.product-card .ratio,
.promo-card .ratio {
  --bs-aspect-ratio: 75%;
}

.product-card .ratio>img,
.promo-card .ratio>img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body {
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 140px;
}

.product-meta {
  font-size: .72rem;
  color: #6b7280;
}

.product-name {
  font-size: .85rem;
  font-weight: 600;
  color: #222;
  margin: 0;
}

.product-cta {
  margin-top: auto;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.cta-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

/* Navegação do carrossel de destaques */
.promo-nav {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease-in-out;
  flex-shrink: 0;
}

.promo-nav:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* Responsivo: 5/4/3/2/1 cards */
@media (max-width: 1400px) {

  .product-card,
  .promo-card {
    flex: 0 0 calc((100% - (12px * 4)) / 5);
    max-width: calc((100% - (12px * 4)) / 5);
  }
}

@media (max-width: 1200px) {

  .product-card,
  .promo-card {
    flex: 0 0 calc((100% - (12px * 3)) / 4);
    max-width: calc((100% - (12px * 3)) / 4);
  }
}

@media (max-width: 992px) {

  .product-card,
  .promo-card {
    flex: 0 0 calc((100% - (12px * 2)) / 3);
    max-width: calc((100% - (12px * 2)) / 3);
  }
}

@media (max-width: 768px) {

  .product-card,
  .promo-card {
    flex: 0 0 calc((100% - 12px) / 2);
    max-width: calc((100% - 12px) / 2);
  }
}

@media (max-width: 480px) {

  .product-card,
  .promo-card {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* -------------------------------------------------------
   7) CATÁLOGO (grid de produtos)
   ------------------------------------------------------- */
.catalog-section {
  background-color: #f7f8fa;
  border-top: 1px solid #eee;
}

.catalog-section .row {
  --bs-gutter-x: 12px !important;
}

#catalogo .row.g-3 {
  --bs-gutter-x: 0 !important;
  --bs-gutter-y: 16px;
}

#catalogo .col-lg-3 {
  padding-right: 6px !important;
}

#catalogo .col-lg-9 {
  padding-left: 0 !important;
}

/* Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 1400px) {
  .product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 576px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* Card do catálogo */
.catalog-card {
  background-color: #fff;
  border-radius: 16px;
  border: 1px solid #e5e5e5;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease-in-out;
  height: 100%;
}

.catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-light);
}

.catalog-img-wrap {
  width: 100%;
  height: 120px;
  overflow: hidden;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.catalog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.catalog-card:hover .catalog-img {
  transform: scale(1.05);
}

.catalog-body {
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.catalog-category {
  font-size: 0.7rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.catalog-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #222;
  margin: 0;
}

.catalog-desc {
  font-size: 0.7rem;
  color: #777;
  margin: 0;
}

.catalog-link {
  color: inherit;
  display: block;
}

.catalog-link:hover .catalog-card {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}

.catalog-link:hover .catalog-name {
  color: #1565C0;
}

/* Paginação */
.pagination {
  margin-top: 8px;
}

.pagination .page-link {
  font-size: 0.78rem;
  padding: 4px 8px;
}

/* -------------------------------------------------------
   8) SIDEBAR — CATEGORIAS + SUBCATEGORIAS
   ------------------------------------------------------- */

/* Card geral */
.filter-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 10px 12px 8px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  border: 1px solid #e5e7eb;
  font-size: 0.82rem;
}

.filter-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #111827;
  margin-bottom: 6px;
}

/* Link "Todas as categorias" */
.all-cats-link a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.8rem;
  color: #374151;
  border: 1px solid transparent;
  background-color: #f9fafb;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.all-cats-link a::before {
  content: "◦";
  font-size: 0.9rem;
  color: #9ca3af;
}

.all-cats-link a:hover {
  background-color: #e5f2ff;
  color: #0f172a;
  border-color: rgba(30, 136, 229, 0.35);
}

.all-cats-link a.active {
  background-color: rgba(30, 136, 229, 0.08);
  color: #1E88E5;
  border-color: rgba(30, 136, 229, 0.6);
  font-weight: 600;
}

/* Ajustes do accordion dentro do filtro */
.filter-card .accordion {
  --bs-accordion-bg: transparent;
  --bs-accordion-border-color: transparent;
  --bs-accordion-btn-focus-box-shadow: none;
  --bs-accordion-border-radius: 0;
}

.filter-card .accordion-item {
  border: none;
  background: transparent;
  margin-bottom: 2px;
}

.filter-card .accordion-button {
  border-radius: 8px !important;
  padding: 4px 6px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #374151;
  background-color: transparent;
  box-shadow: none;
  border: 1px solid transparent;
  min-height: 26px;
}

.filter-card .accordion-button.collapsed {
  background-color: transparent;
}

.filter-card .accordion-button::after {
  width: 0.7rem;
  height: 0.7rem;
  background-size: 0.7rem;
  opacity: 0.65;
}

.filter-card .accordion-button:hover {
  background-color: #f3f4f6;
  color: #111827;
}

.filter-card .accordion-button:not(.collapsed) {
  background-color: rgba(30, 136, 229, 0.05);
  color: #1E88E5;
  border-color: rgba(30, 136, 229, 0.28);
}

/* Corpo com subcategorias */
.filter-card .accordion-body {
  padding: 3px 5px 4px 8px;
  border-left: 1px dashed #e5e7eb;
  margin-left: 4px;
}

/* Link "Ver todos os itens" da categoria */
.cat-link-main {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  font-size: 0.76rem !important;
  color: #4b5563;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cat-link-main::before {
  content: "∘";
  font-size: 0.9rem;
  color: #9ca3af;
}

.cat-link-main:hover {
  background-color: #f3f4f6;
  color: #111827;
}

.cat-link-main.active {
  background-color: rgba(30, 136, 229, 0.08);
  color: #1E88E5;
  border-color: rgba(30, 136, 229, 0.45);
  font-weight: 600;
}

/* Subcategorias */
.cat-link-sub {
  display: block;
  padding: 2px 6px;
  margin-left: 4px;
  font-size: 0.74rem !important;
  color: #6b7280;
  border-radius: 6px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.cat-link-sub::before {
  content: "• ";
  font-size: 0.7rem;
  color: #d1d5db;
}

.cat-link-sub:hover {
  background-color: #e5e7eb;
  color: #111827;
}

.cat-link-sub.active {
  background-color: rgba(30, 136, 229, 0.12);
  color: #1E88E5;
  font-weight: 600;
}

/* Fallback: lista simples (sem subcategorias) */
.filter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-list>li>a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 0.82rem;
  color: #4b5563;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.filter-list>li>a:hover {
  background-color: #f3f4f6;
  color: #111827;
}

.filter-list>li>a.active {
  background-color: rgba(30, 136, 229, 0.08);
  color: var(--primary);
  border-color: rgba(30, 136, 229, 0.45);
  font-weight: 600;
}

/* Dark mode sidebar */
:root[data-theme="dark"] .filter-card {
  background: #0f1420;
  border-color: #1f2937;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

:root[data-theme="dark"] .filter-title {
  color: #e5e7eb;
}

:root[data-theme="dark"] .all-cats-link a {
  background-color: #111827;
  color: #e5e7eb;
}

:root[data-theme="dark"] .all-cats-link a:hover {
  background-color: #1f2937;
}

:root[data-theme="dark"] .all-cats-link a.active {
  background-color: rgba(96, 165, 250, 0.16);
  color: #93c5fd;
}

:root[data-theme="dark"] .filter-card .accordion-button {
  color: #e5e7eb;
}

:root[data-theme="dark"] .filter-card .accordion-button:not(.collapsed) {
  background-color: rgba(37, 99, 235, 0.18);
  border-color: rgba(59, 130, 246, 0.45);
  color: #bfdbfe;
}

:root[data-theme="dark"] .filter-card .accordion-body {
  border-left-color: #374151;
}

:root[data-theme="dark"] .cat-link-main {
  color: #d1d5db;
}

:root[data-theme="dark"] .cat-link-sub {
  color: #9ca3af;
}

/* -------------------------------------------------------
   9) FORNECEDORES (logos)
   ------------------------------------------------------- */
.fornecedores-section {
  background: linear-gradient(180deg, #f7fbff 0%, #eef6ff 100%);
  padding: 30px 0;
}

.forn-wrapper {
  margin-top: 16px;
  overflow: hidden;
}

.forn-track {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 10px 6px;
}

.forn-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 72px;
  background: #fff;
  border: 1px solid #e1e9f9;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(13, 71, 161, .08);
  filter: grayscale(30%);
  transition: all .25s;
}

.forn-logo img {
  max-width: 140px;
  max-height: 48px;
  object-fit: contain;
}

.forn-logo:hover {
  filter: none;
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(13, 71, 161, .18);
}

/* -------------------------------------------------------
   10) NEWSLETTER
   ------------------------------------------------------- */
.newsletter-section {
  background: #f8fafd;
  border-top: 2px solid var(--primary);
  padding-top: 20px;
  padding-bottom: 10px;
}

.newsletter-bar {
  background: #ffffff;
  border-radius: 14px;
  padding: 18px 22px;
  border: 1px solid #e5e5e5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.newsletter-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-soft);
}

.newsletter-subtitle {
  font-size: 0.82rem;
  color: #777;
  margin-top: -3px;
}

.newsletter-form .form-control-lg {
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.85rem;
  height: 42px;
  border: 1px solid #d6d6d6;
}

.newsletter-form .form-control-lg:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(30, 136, 229, 0.25);
}

.btn-newsletter {
  height: 42px;
  padding: 0;
  font-size: 1.15rem;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  border: none;
  transition: all 0.2s ease;
}

.btn-newsletter:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.newsletter-section {
  padding-bottom: 60px;
  /* ajuste aqui se quiser mais ou menos */
}

/* Dark mode newsletter */
:root[data-theme="dark"] .newsletter-section {
  background: #0d1117;
}

:root[data-theme="dark"] .newsletter-bar {
  background: #0f1420;
  border-color: #223044;
}

:root[data-theme="dark"] .newsletter-title {
  color: #e6e6e6;
}

:root[data-theme="dark"] .newsletter-subtitle {
  color: #a9b7c6;
}

:root[data-theme="dark"] .newsletter-form .form-control-lg {
  background: #0b101a;
  border-color: #2a3445;
  color: #e6e6e6;
}

/* -------------------------------------------------------
   11) FOOTER (resumido, mas elegante)
   ------------------------------------------------------- */
/* FOOTER BASE */
.site-footer {
  background: #0b1f3a;
  color: #e9e9e9;
  font-family: "Poppins", sans-serif;
}

/* CARD DA LOGO - versão paisagem */
.footer-brand-card {
  background: #ffffff;
  padding: 18px 28px;
  border-radius: 14px;
  text-align: center;
  width: 100%;
  max-width: 560px;
  height: 280px;
  /* antes era 240px */
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 10px;
}

/* Logo maior e mais proporcional ao formato paisagem */
.footer-logo {
  width: 160px;
  /* antes era 120px */
  height: auto;
  margin-bottom: 4px;
}

.footer-brand {
  font-weight: 700;
  color: #0b1f3a;
  font-size: 1rem;
  margin-top: 6px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: #555;
  margin-top: -2px;
}

/* TÍTULOS */
.footer-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
}

/* LISTAS */
.footer-list li {
  margin-bottom: 8px;
  font-size: 0.90rem;
}

/* MAP LINKS */
.footer-map {
  display: block;
  color: #d1e3ff;
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-map:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* REDES SOCIAIS */
.footer-social-links a {
  font-size: 1.4rem;
  margin-right: 12px;
  transition: transform .2s;
}

.footer-social-links a:hover {
  transform: scale(1.15);
}

/* FOOTER BOTTOM */
.footer-bottom {
  background: #081324;
  color: #c9c9c9;
}

.footer-mini {
  font-size: 0.85rem;
}


/* -------------------------------------------------------
   12) BOTÃO WHATSAPP FLUTUANTE
   ------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 25px;
  right: 25px;
  background-color: #25D366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 32px;
  line-height: 60px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1200;
  transition: all 0.3s ease;
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
  background-color: #1EBE57;
  transform: scale(1.1);
  color: #fff;
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* -------------------------------------------------------
   13) RESPONSIVIDADE GERAL
   ------------------------------------------------------- */
@media (max-width: 1200px) {
  body {
    padding-top: 120px;
  }

  .main-navbar-grid {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 10px 20px;
  }

  .navbar-left,
  .navbar-right,
  .search-form {
    justify-self: center;
  }

  .search-form {
    max-width: 90%;
    margin: 8px auto;
  }

  .brand-text {
    font-size: 1.3rem;
  }

  .logo-gb {
    width: 60px;
  }
}

/* Ajuste de tamanho da logo no footer */
.footer-logo {
  width: 180px;
  /* ↓ menor */
  max-width: 200px;
  /* segurança em telas menores */
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.20));
}

/* Opcional: ainda menor no celular */
@media (max-width: 576px) {
  .footer-logo {
    width: 80px;
    max-width: 90px;
  }
}