/* ===================================================
   BROKER LDA – Main Stylesheet
   Color palette: Blue (#003F8A, #0060C7, #1a8fe3) + White
   =================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-900: #001f4d;
  --blue-800: #003F8A;
  --blue-600: #0060C7;
  --blue-400: #1a8fe3;
  --blue-200: #a8d4f5;
  --blue-50:  #eaf4fd;
  --white:    #ffffff;
  --gray-100: #f4f6f9;
  --gray-200: #e2e8f0;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --accent:   #f59e0b;

  --font: 'Inter', system-ui, sans-serif;
  --radius: 16px; /* Bordas mais suaves e modernas */
  --shadow-sm: 0 4px 16px rgba(0, 63, 138, 0.04);
  --shadow-md: 0 12px 32px rgba(0, 63, 138, 0.08);
  --shadow-lg: 0 24px 60px rgba(0, 63, 138, 0.12);
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

/* ===================================================
   TEMA SALVADOR (BA) - Azul Marinho
   =================================================== */
body.theme-ba {
  --blue-900: #030b1a; /* Quase preto */
  --blue-800: #081836; /* Azul marinho bem escuro */
  --blue-600: #112b59; /* Azul marinho principal (Botões, links) */
  --blue-400: #1e458a; /* Azul marinho médio */
  --blue-200: #a3bced; /* Azul claro acinzentado */
  --blue-50:  #f0f4fc; /* Fundo bem clarinho */
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
address { font-style: normal; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; }
.bg-light { background: var(--gray-100); }

/* ---------- Typography helpers ---------- */
.section-tag {
  display: inline-block;
  background: var(--blue-50);
  color: var(--blue-600);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--blue-200);
  margin-bottom: .75rem;
}
.section-tag.center { 
  display: block; 
  text-align: center; 
  width: fit-content; /* Garante que a pílula não ocupe a tela toda quando centralizada */
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-title.center { text-align: center; }
.section-title strong { color: var(--blue-600); }

.section-sub {
  color: var(--gray-500);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}
.section-sub.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue-600);
  color: var(--white);
  border-color: var(--blue-600);
}
.btn-primary:hover {
  background: var(--blue-800);
  border-color: var(--blue-800);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 96, 199, 0.4); /* Glow moderno */
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn-instagram {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: var(--white);
  padding: .85rem 2.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  gap: .6rem;
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
}
.btn-instagram:hover { opacity: .88; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(220,39,67,.4); }

/* ==========================================
   HEADER / NAV
   ========================================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: var(--transition);
}
.header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px); /* Efeito de vidro fosco */
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 2px; font-size: 1.6rem; font-weight: 900; }
.logo-broker { color: var(--white); transition: var(--transition); }
.logo-lda    { color: var(--blue-200); transition: var(--transition); }
.header.scrolled .logo-broker { color: var(--blue-800); }
.header.scrolled .logo-lda    { color: var(--blue-400); }
.logo-footer .logo-broker { color: var(--white); }
.logo-footer .logo-lda    { color: var(--blue-200); }

/* Nav list */
.nav-list { display: flex; align-items: center; gap: .25rem; }
.nav-link {
  padding: .5rem .85rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: .9rem;
  color: rgba(255,255,255,.9);
  transition: var(--transition);
}
.nav-link:hover,
.nav-link.active { color: var(--white); background: rgba(255,255,255,.15); }
.header.scrolled .nav-link { color: var(--gray-700); }
.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active { color: var(--blue-600); background: var(--blue-50); }
.nav-intranet {
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.3);
  margin-left: .5rem;
}
.header.scrolled .nav-intranet {
  background: var(--blue-600);
  color: var(--white) !important;
  border-color: var(--blue-600);
}
.header.scrolled .nav-intranet:hover { background: var(--blue-800); border-color: var(--blue-800); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.header.scrolled .hamburger span { background: var(--gray-900); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Logo em Imagem na Navbar */
.nav-logo-img {
  max-height: 216px; /* Altura ideal para caber na barra */
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

/* Efeito de leve opacidade ao passar o mouse */
.logo:hover .nav-logo-img {
  opacity: 0.8;
}

/* --- Lógica de Troca de Cor da Logo --- */
/* Estado padrão (Topo da página) */
.logo-black { 
  display: none; 
}
.logo-white { 
  display: block; 
}

/* Estado com rolagem (Fundo branco) */
.header.scrolled .logo-white { 
  display: none; 
}
.header.scrolled .logo-black { 
  display: block; 
}

/* ==========================================
   HERO SLIDER
   ========================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}
.hero-slides { width: 100%; height: 100%; }

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--blue-800);
  opacity: 0;
  transition: opacity .8s ease;
  pointer-events: none;
}
.hero-slide.active { opacity: 1; pointer-events: auto; }

/* Gradient overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(0,31,77,.82) 0%,
    rgba(0,63,138,.6) 50%,
    rgba(0,96,199,.25) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 72px;
  max-width: 680px;
}
.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.35);
  color: var(--white);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  width: fit-content;
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero-content p {
  font-size: clamp(.95rem, 1.5vw, 1.15rem);
  color: rgba(255,255,255,.85);
  margin-bottom: 2rem;
  max-width: 540px;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.3);
  color: var(--white);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}
.hero-arrow:hover { background: var(--blue-600); border-color: var(--blue-600); }
.hero-arrow.prev { left: 1.5rem; }
.hero-arrow.next { right: 1.5rem; }

/* Dots */
.hero-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .6rem;
  z-index: 10;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}
.hero-dot.active { background: var(--white); transform: scale(1.3); }

/* ==========================================
   STATS BAR
   ========================================== */
.stats-bar {
  background: var(--blue-800);
  padding: 2.0rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}
.stat-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  border-right: 1px solid rgba(255,255,255,.15);
}
.stat-item:last-child { border-right: none; }
.stat-item > i {
  font-size: 2rem;
  color: var(--blue-200);
  flex-shrink: 0;
}
.stat-item strong {
  display: inline-block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.stat-item strong + span { color: var(--blue-200); font-size: 1.5rem; font-weight: 800; }
.stat-item p {
  font-size: .82rem;
  color: rgba(255,255,255,.7);
  margin-top: .2rem;
  font-weight: 500;
  letter-spacing: .02em;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-img-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img-wrapper img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  background: var(--blue-50);
}
.about-img-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect fill="%23eaf4fd" width="100" height="100"/><text x="50%" y="50%" font-size="40" text-anchor="middle" dominant-baseline="middle">🏢</text></svg>') center/cover;
  z-index: 0;
}
.about-img-wrapper img { position: relative; z-index: 1; }
.about-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: var(--blue-600);
  color: var(--white);
  border-radius: var(--radius);
  padding: .85rem 1.25rem;
  z-index: 2;
  box-shadow: var(--shadow-md);
  line-height: 1.3;
}
.about-badge span { font-size: .75rem; font-weight: 500; opacity: .85; }
.about-badge strong { display: block; font-size: 1.5rem; font-weight: 800; }

.about-text { display: flex; flex-direction: column; gap: 1.25rem; }
.about-text p { color: var(--gray-500); font-size: 1rem; line-height: 1.75; }
.about-text p strong { color: var(--gray-900); }

/* ==========================================
   FAQ
   ========================================== */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
  align-items: start;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.faq-item:hover { box-shadow: var(--shadow-md); border-color: var(--blue-200); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: .95rem;
  font-weight: 600;
  color: var(--gray-900);
  transition: var(--transition);
}
.faq-question > i:first-child { color: var(--blue-600); font-size: 1.1rem; flex-shrink: 0; }
.faq-icon { margin-left: auto; font-size: .8rem; color: var(--gray-500); transition: transform .3s; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(180deg); }
.faq-question[aria-expanded="true"] { color: var(--blue-600); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}
.faq-answer.open {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem;
}
.faq-answer p { color: var(--gray-500); font-size: .9rem; line-height: 1.7; }

/* ==========================================
   BRANDS MARQUEE
   ========================================== */
.brands-track-wrapper {
  overflow: hidden;
  margin: 2.5rem 0;
  position: relative;
}
.brands-track-wrapper::before,
.brands-track-wrapper::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.brands-track-wrapper::before { left: 0; background: linear-gradient(to right, var(--white), transparent); }
.brands-track-wrapper::after  { right: 0; background: linear-gradient(to left, var(--white), transparent); }

.brands-track {
  display: flex;
  gap: 2rem;
  animation: marquee 28s linear infinite;
  width: max-content;
}
.brands-track:hover { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.brand-logo {
  min-width: 220px; /* Aumentado de 150px para 220px */
  height: 120px;    /* Aumentado de 90px para 120px */
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;  /* Aumentado o respiro interno */
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.brand-logo:hover { 
  box-shadow: var(--shadow-md); 
  border-color: var(--blue-200); 
  transform: translateY(-2px); 
}

.brand-logo img {
  max-height: 75px; /* Aumentado de 55px para 75px */
  width: auto;
  object-fit: contain;
}
.brand-logo span {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-800);
  letter-spacing: .02em;
}
.brands-cta { text-align: center; }

/* ==========================================
   WHY CHOOSE US
   ========================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
/* Estrutura base do cartão de diferenciais */
.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* A linha colorida animada na base do cartão */
.why-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-400));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.why-card:hover::before {
  transform: scaleX(1);
}
.why-icon {
  width: 60px;
  height: 60px;
  background: var(--blue-50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.4rem;
  color: var(--blue-600);
  transition: var(--transition);
}
.why-card:hover .why-icon { background: var(--blue-600); color: var(--white); }
.why-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--gray-900); margin-bottom: .5rem; }
.why-card p  { font-size: .875rem; color: var(--gray-500); line-height: 1.65; }

/* ==========================================
   INSTAGRAM GRID
   ========================================== */
.insta-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .75rem;
  margin-bottom: 2rem;
}
.insta-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--blue-50);
  cursor: pointer;
}
.insta-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue-50), var(--blue-200));
  font-size: 2rem;
  color: var(--blue-600);
}
.insta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,63,138,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  opacity: 0;
  transition: var(--transition);
}
.insta-item:hover .insta-overlay { opacity: 1; }
.insta-cta { text-align: center; }

.insta-item img,
.insta-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================
   LOCATIONS (NOSSAS UNIDADES)
   ========================================== */
.locations {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 100%);
  color: var(--white);
}
.locations .section-tag {
  background: rgba(255,255,255,.15);
  color: var(--white);
  border-color: rgba(255,255,255,.2);
}
.locations .section-title { color: var(--white); }
.locations .section-sub { color: rgba(255,255,255,.75); }

.locations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}
.location-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 2.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition);
}
.location-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}
.location-icon {
  width: 50px; height: 50px;
  background: var(--blue-600);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--white);
  margin-bottom: 1.5rem;
}
.location-card h3 {
  font-size: 1.25rem; font-weight: 700; margin-bottom: 1.25rem; color: var(--white);
}
.location-card address p {
  display: flex; gap: 1rem; align-items: flex-start;
  font-size: .95rem; color: rgba(255,255,255,.8);
  margin-bottom: 1rem; line-height: 1.6;
}
.location-card address p i {
  color: var(--blue-400); margin-top: .25rem; font-size: 1.1rem;
}
.location-card address a {
  color: rgba(255,255,255,.8); transition: var(--transition);
}
.location-card address a:hover { color: var(--white); text-decoration: underline; }

/* Responsividade para celulares */
@media (max-width: 768px) {
  .locations-grid { grid-template-columns: 1fr; }
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,.75);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.25fr 1.25fr;
  gap: 2.5rem;
  padding: 4rem 0 3rem;
}
.footer-brand .logo-footer { margin-bottom: 1rem; }
.footer-brand p { font-size: .875rem; line-height: 1.7; margin-bottom: 1.5rem; color: rgba(255,255,255,.6); }
.social-links { display: flex; gap: .75rem; }
.social-links a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  transition: var(--transition);
}
.social-links a:hover { background: var(--blue-600); border-color: var(--blue-600); color: var(--white); }

.footer-col h4 {
  color: var(--white);
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: .75rem;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 32px;
  height: 2px;
  background: var(--blue-400);
  border-radius: 2px;
}
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a { font-size: .875rem; color: rgba(255,255,255,.6); transition: var(--transition); }
.footer-col ul li a:hover { color: var(--white); padding-left: .35rem; }
.footer-col address p {
  display: flex;
  gap: .6rem;
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  margin-bottom: .65rem;
  line-height: 1.5;
}
.footer-col address p i { color: var(--blue-400); margin-top: .15rem; flex-shrink: 0; }
.footer-col address a { color: rgba(255,255,255,.6); transition: var(--transition); }
.footer-col address a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.5rem 0;
}
.footer-bottom p { font-size: .825rem; color: rgba(255,255,255,.4); text-align: center; }
.footer-bottom strong { color: rgba(255,255,255,.6); }

/* ==========================================
   BACK TO TOP
   ========================================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 46px;
  height: 46px;
  background: var(--blue-600);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--blue-800); transform: translateY(-3px); }

/* ==========================================
   PAGE HERO (inner pages)
   ========================================== */

.hero-tag {
  margin-bottom: 1rem; /* Espaço pequeno */
}

/* 1. Ajuste do Parágrafo (p) */
.hero-content p, 
.page-hero p {
  color: var(--white); /* Remove a transparência, deixando 100% branco */
  font-size: 1.1rem; /* Um leve ganho no tamanho para facilitar a leitura */
  font-weight: 500; /* Deixa a fonte um pouquinho mais encorpada */
  text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.8); /* O SEGREDO: Sombra escura atrás do texto */
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
}

/* 2. Bônus: Aplicar a sombra no Título (h1) e no Span (tag) para manter o padrão */
.hero-content h1, 
.page-hero h1 {
  margin-bottom: 1.5rem; /* Espaço médio */
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.8); /* Sombra um pouco maior para o título */
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -5%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}
.hero-content .section-tag, 
.page-hero .section-tag {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Sombra na caixinha do span */
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.25rem;
  font-size: .85rem;
  color: rgba(255,255,255,.6);
}
.breadcrumb a { color: rgba(255,255,255,.6); transition: var(--transition); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,.4); }

/* ==========================================
   PRODUCTS PAGE
   ========================================== */
.products-filter {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.filter-btn {
  padding: .55rem 1.25rem;
  border-radius: 999px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-700);
  font-weight: 500;
  font-size: .875rem;
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: var(--white);
}
/* ==========================================
   CATÁLOGO DE MARCAS (INSPIRADO NO SITE OFICIAL NESTLÉ)
   ========================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem;
  padding: 1rem 0;
}

.product-card {
  background: var(--white);
  border-radius: 16px;
  border: none; /* Removemos a borda para um visual mais limpo */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04); /* Sombra super suave */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1.5rem; /* Muito mais respiro interno */
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08); /* Sombra elegante ao flutuar */
}

.product-img {
  height: 150px; /* Altura ideal para logotipos ou embalagens hero */
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.product-img img {
  max-height: 100%;
  max-width: 85%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
  transform: scale(1.08); /* Zoom sutil na imagem */
}

.product-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-grow: 1;
  width: 100%;
}

.product-info h3 {
  font-size: 1.3rem;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.product-info p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Botão de ação idêntico ao da Nestlé */
.product-action {
  margin-top: auto;
  background-color: #0056b3; /* Azul clássico Nestlé */
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.7rem 1.8rem;
  border-radius: 50px; /* Formato de pílula */
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.product-action:hover {
  background-color: #004494; /* Azul mais escuro no hover */
  color: #ffffff;
  transform: scale(1.03);
}

/* ==========================================
   CONTACT PAGE
   ========================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}
.contact-info h2 { font-size: 1.5rem; font-weight: 800; color: var(--gray-900); margin-bottom: 1.5rem; }
.contact-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.contact-card:hover { box-shadow: var(--shadow-md); border-color: var(--blue-200); }
.contact-card-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--gray-200);
}
.contact-card-header i { font-size: 1.2rem; color: var(--blue-600); }
.contact-card-header h3 { font-size: 1rem; font-weight: 700; color: var(--gray-900); }
.contact-card p {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .875rem;
  color: var(--gray-500);
  margin-bottom: .5rem;
  line-height: 1.5;
}
.contact-card p i { color: var(--blue-400); margin-top: .15rem; flex-shrink: 0; }
.contact-card a { color: var(--blue-600); }
.contact-card a:hover { text-decoration: underline; }

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}
.contact-form-card h2 { font-size: 1.4rem; font-weight: 800; color: var(--gray-900); margin-bottom: .5rem; }
.contact-form-card > p { color: var(--gray-500); font-size: .9rem; margin-bottom: 1.75rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: .5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .85rem 1.1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-family: var(--font);
  font-size: .9rem;
  color: var(--gray-900);
  outline: none;
  transition: var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(26,143,227,.15);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-submit { width: 100%; justify-content: center; font-size: 1rem; padding: 1rem; }

/* ==========================================
   MAPA EMBUTIDO (Google Maps)
   ========================================== */
.map-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--gray-200);
}

.map-header i {
  font-size: 1.25rem;
  color: var(--blue-600);
}

.map-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
}

.map-wrapper {
  width: 100%;
  height: 350px; /* Altura ideal para não ocupar a tela toda no celular */
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  background: var(--gray-100);
}

.map-wrapper:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--blue-200);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================
   QUEM SOMOS PAGE
   ========================================== */
.timeline {
  position: relative;
  padding: 2rem 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue-600), var(--blue-200));
  transform: translateX(-50%);
}
.timeline-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}
.timeline-item:nth-child(even) { flex-direction: row-reverse; }
.timeline-content {
  width: calc(50% - 2rem);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
/* Estilo do container da imagem na linha do tempo */
.timeline-image {
  width: calc(50% - 2rem);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  /* Garante que a imagem estique para acompanhar a altura do texto se necessário */
  display: flex; 
}

.timeline-image:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.timeline-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Faz a imagem preencher o espaço sem distorcer */
  min-height: 220px; /* Altura mínima para garantir destaque */
  display: block;
}
.timeline-content:hover { box-shadow: var(--shadow-md); border-color: var(--blue-200); }
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 1.5rem;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--blue-600);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--blue-200);
  z-index: 1;
}
.timeline-date {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--blue-600);
  background: var(--blue-50);
  padding: .25rem .7rem;
  border-radius: 999px;
  margin-bottom: .75rem;
}
.timeline-content h3 { font-size: 1.05rem; font-weight: 700; color: var(--gray-900); margin-bottom: .5rem; }
.timeline-content p  { font-size: .875rem; color: var(--gray-500); line-height: 1.65; }

/* Team cards */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.team-avatar {
  width: 80px;
  height: 80px;
  background: var(--blue-600);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--white);
  margin: 0 auto 1rem;
}
.team-card h3 { font-size: 1rem; font-weight: 700; color: var(--gray-900); margin-bottom: .25rem; }
.team-card span { font-size: .825rem; color: var(--blue-600); font-weight: 500; }

/* ==========================================
   RECEITAS PAGE
   ========================================== */
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.recipe-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.recipe-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.recipe-img {
  height: 200px;
  background: linear-gradient(135deg, var(--blue-50), var(--blue-200));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
}
.recipe-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.recipe-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--blue-600);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  padding: .25rem .6rem;
  border-radius: 999px;
}
.recipe-body { padding: 1.5rem; }
.recipe-meta { display: flex; gap: 1rem; font-size: .8rem; color: var(--gray-500); margin-bottom: .75rem; }
.recipe-meta span { display: flex; align-items: center; gap: .3rem; }
.recipe-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--gray-900); margin-bottom: .5rem; }
.recipe-body p  { font-size: .875rem; color: var(--gray-500); line-height: 1.55; margin-bottom: 1rem; }
.recipe-body a  { font-size: .875rem; font-weight: 600; color: var(--blue-600); display: flex; align-items: center; gap: .35rem; transition: var(--transition); }
.recipe-body a:hover { color: var(--blue-800); gap: .6rem; }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .stats-grid   { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .why-grid     { grid-template-columns: repeat(2, 1fr); }
  .products-grid{ grid-template-columns: repeat(3, 1fr); }
  .insta-grid   { grid-template-columns: repeat(3, 1fr); }
  .footer-grid  { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .timeline::before { left: 24px; }
  .timeline-item { flex-direction: column !important; padding-left: 56px; }
  .timeline-content { width: 100%; }
  .timeline-dot { left: 24px; }
  .timeline-image { width: 100%; margin-top: 1.5rem; }
  .timeline-image img { min-height: 250px; }
}

@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  /* Nav */
  .hamburger { display: flex; }
  .nav {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-110%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
    z-index: 999;
  }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-list { flex-direction: column; gap: .25rem; }
  .nav-link { color: var(--gray-700) !important; display: block; padding: .75rem 1rem; }
  .nav-link:hover, .nav-link.active { background: var(--blue-50) !important; color: var(--blue-600) !important; }
  .nav-intranet { margin-left: 0 !important; background: var(--blue-600) !important; color: var(--white) !important; border-color: var(--blue-600) !important; }
  /* About */
  .about-grid   { grid-template-columns: 1fr; }
  .about-img-wrapper img { height: 280px; }
  /* FAQ */
  .faq-grid     { grid-template-columns: 1fr; }
  /* Why */
  .why-grid     { grid-template-columns: 1fr; }
  /* Newsletter */
  .newsletter-wrapper { grid-template-columns: 1fr; gap: 2rem; }
  /* Products */
  .products-grid{ grid-template-columns: repeat(2, 1fr); }
  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }
  .form-row     { grid-template-columns: 1fr; }
  /* Team */
  .team-grid    { grid-template-columns: 1fr; }
  /* Recipes */
  .recipes-grid { grid-template-columns: 1fr 1fr; }
  /* Insta */
  .insta-grid   { grid-template-columns: repeat(3, 1fr); }
  /* Footer */
  .footer-grid  { grid-template-columns: 1fr; }
  /* Stats */
  .stats-grid   { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.8rem; }
  .hero-buttons { flex-direction: column; }
  .btn { justify-content: center; }
  .products-grid{ grid-template-columns: 1fr; }
  .recipes-grid { grid-template-columns: 1fr; }
  .insta-grid   { grid-template-columns: repeat(2, 1fr); }
  .stats-grid   { grid-template-columns: 1fr; }
  .stat-item    { border-right: none; border-bottom: 1px solid rgba(255,255,255,.15); padding-bottom: 1.25rem; }
  .stat-item:last-child { border-bottom: none; }
}

/* ==========================================
   AOS-like fade animations (CSS only)
   ========================================== */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}
[data-delay="100"] { transition-delay: .1s !important; }
[data-delay="200"] { transition-delay: .2s !important; }
[data-delay="300"] { transition-delay: .3s !important; }
[data-delay="400"] { transition-delay: .4s !important; }
[data-delay="500"] { transition-delay: .5s !important; }

/* ==========================================
   INTRANET / LOGIN PAGE
   ========================================== */
.intranet-body {
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--blue-900) 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.login-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 2rem;
}

.login-container {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

/* Detalhe visual no topo do card */
.login-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-400));
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.security-icon {
  width: 64px;
  height: 64px;
  background: var(--blue-50);
  color: var(--blue-600);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1rem;
}

.login-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.login-header p {
  font-size: 0.9rem;
  color: var(--gray-500);
}

.login-form .form-group {
  margin-bottom: 1.25rem;
}

.input-with-icon {
  position: relative;
}

.input-with-icon i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
  font-size: 0.9rem;
}

.input-with-icon input {
  padding-left: 2.5rem; /* Espaço para o ícone */
}

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gray-700);
  cursor: pointer;
}

.forgot-password {
  color: var(--blue-600);
  font-weight: 600;
}

.forgot-password:hover {
  text-decoration: underline;
}

.login-btn {
  width: 100%;
  justify-content: center;
  padding: 1rem;
  font-size: 1rem;
}

.login-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
  text-align: center;
}

.login-footer p {
  font-size: 0.8rem;
  color: var(--gray-500);
  line-height: 1.5;
}

/* ==========================================
   HEADER INTERNO (Para páginas sem Hero escuro)
   ========================================== */
.header-internal {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--gray-200);
}

/* Força as cores escuras nos textos e logos */
.header-internal .logo-broker { color: var(--blue-800); }
.header-internal .logo-lda    { color: var(--blue-400); }
.header-internal .nav-link    { color: var(--gray-700); }

/* Efeitos de hover */
.header-internal .nav-link:hover,
.header-internal .nav-link.active { 
  color: var(--blue-600); 
  background: var(--blue-50); 
}

/* Botão da Intranet */
.header-internal .nav-intranet {
  background: var(--blue-600);
  color: var(--white) !important;
  border-color: var(--blue-600);
}
.header-internal .nav-intranet:hover { 
  background: var(--blue-800); 
  border-color: var(--blue-800); 
}

/* Menu Hamburguer (Mobile) */
.header-internal .hamburger span { background: var(--gray-900); }

/* Troca da imagem da Logo (se houver) */
.header-internal .logo-white { display: none; }
.header-internal .logo-black { display: block; }

/* ==========================================
   CABEÇALHO PADRÃO PARA PÁGINAS INTERNAS (Modernizado)
   ========================================== */
.page-hero {
  /* Fundo azul corporativo */
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 100%);
  position: relative;
  overflow: hidden;
}

/* Efeito de película de vidro (Glassmorphism) */
.page-header-interno {
  padding-top: 130px; /* Dá espaço para o menu transparente respirar */
  padding-bottom: 4rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  text-align: center;
  position: relative;
  z-index: 2;

  /* A mágica do vidro fosco aqui 👇 */
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Ajuste das cores para contrastar com o fundo azul */
.page-header-interno h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--white); /* Título agora é branco */
  margin-bottom: 0.5rem;
  font-weight: 800;
  text-shadow: 0 4px 12px rgba(0,0,0,0.3); /* Sombra para dar profundidade */
}

.page-header-interno p {
  color: rgba(255, 255, 255, 0.85); /* Texto descritivo claro */
  max-width: 600px;
  margin: 0 auto 1.5rem auto;
  font-size: 1.05rem;
}

/* Ajuste da Tag (ex: "Nossa Empresa") */
.page-header-interno .section-tag {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Ajuste do Breadcrumb (Home / Quem Somos) */
.breadcrumb-interno {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-interno a {
  color: var(--blue-200);
  font-weight: 600;
  transition: var(--transition);
}

.breadcrumb-interno a:hover {
  color: var(--white);
}