/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=Lato:ital,wght@0,300;0,400;0,700;1,400&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* Variáveis CSS premium */
:root {
  --azul-profundo: #0B1F3B;      /* cor primária oficial */
  --dourado: #C8A24A;             /* cor secundária oficial */
  --branco: #FFFFFF;
  --cinza-grafite: #2E2E2E;
  --cinza-claro: #F5F5F5;
  --overlay-escuro: rgba(11, 31, 59, 0.82);
  --overlay-hero: rgba(11, 31, 59, 0.78);

  --font-display: 'Playfair Display', serif;
  --font-body: 'Georgia', serif;
}

/* Reset Básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  color: var(--cinza-grafite);
  background-color: var(--branco);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

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

/* Tipografia */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background-color: var(--azul-profundo);
  color: var(--branco);
}

.btn-primary:hover {
  background-color: var(--dourado);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(200, 162, 74, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--branco);
  border: 1px solid var(--branco);
}

.btn-secondary:hover {
  background-color: var(--branco);
  color: var(--azul-profundo);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--dourado);
}

.link-arrow:hover {
  color: var(--dourado);
  gap: 0.75rem;
}

.link-arrow.white {
  color: var(--branco);
}

.link-arrow.white:hover {
  color: var(--dourado);
}

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

/* Componentes Estruturais */

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0.75rem 0; /* Padding reduzido para compensar logo maior */
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  background: transparent;
  color: var(--branco);
}

.navbar.scrolled {
  background: var(--azul-profundo);
  padding: 0.5rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.navbar.scrolled .nav-link {
  color: #FFFFFF;
}

/* Páginas internas — menu já tem fundo azul, manter branco */
.menu-solido .nav-link,
.pagina-interna .nav-link {
  color: #FFFFFF !important;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo no menu — padrão global */
.nav-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  height: auto !important;
}

.nav-logo-img {
  height: 80px;
  width: auto;
  object-fit: contain;
  display: block;
  /* Remove qualquer borda, sombra ou box branco */
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

@media (max-width: 1024px) {
  .nav-logo-img {
    height: 68px;
  }
}

@media (max-width: 768px) {
  .nav-logo-img {
    height: 54px;
  }
}

@media (max-width: 1024px) {
  .nav-logo {
    font-size: 1.15rem;
  }
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  position: relative;
  padding: 0.5rem 0;
  color: #FFFFFF; /* Garante visibilidade sobre fundos escuros */
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--dourado);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ===== DROPDOWN PRODUTOS — CORREÇÃO DEFINITIVA ===== */

/* Forçar visibilidade em TODOS os estados */
.dropdown,
.nav-dropdown,
.dropdown-menu,
[class*="dropdown-content"],
.produtos-submenu,
.submenu {
  background-color: #FFFFFF !important;
  border-top: 3px solid #C8A24A !important;
  box-shadow: 0 8px 32px rgba(11, 31, 59, 0.18) !important;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  min-width: 280px;
  border-radius: 0 0 4px 4px;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  overflow: hidden;
  z-index: 1000;
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Todos os links dentro do dropdown */
.dropdown a,
.nav-dropdown a,
.dropdown-menu a,
[class*="dropdown-content"] a,
.produtos-submenu a,
.submenu a,
.dropdown li a,
nav ul ul a,
nav ul ul li a {
  color: #0B1F3B !important;
  background: transparent !important;
  display: block !important;
  padding: 11px 20px !important;
  font-size: 0.92rem !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(11, 31, 59, 0.07) !important;
  white-space: nowrap !important;
  transition: all 0.2s ease !important;
}

.dropdown a:hover,
.nav-dropdown a:hover,
.dropdown-menu a:hover,
[class*="dropdown-content"] a:hover,
.produtos-submenu a:hover,
.submenu a:hover,
.dropdown li a:hover,
nav ul ul a:hover {
  color: #C8A24A !important;
  background: rgba(11, 31, 59, 0.04) !important;
  padding-left: 26px !important;
}

.dropdown li:last-child a {
  border-bottom: none !important;
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--branco);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section Base */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--overlay-hero);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--branco);
  max-width: 700px;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Helper Classes */
.section-padding {
  padding: 6rem 0;
}

.text-center {
  text-align: center;
}

.bg-light {
  background-color: var(--cinza-claro);
}

.bg-dark {
  background-color: var(--cinza-grafite);
  color: var(--branco);
}

.bg-primary {
  background-color: var(--azul-profundo);
  color: var(--branco);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--azul-profundo);
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--dourado);
}

.section-title.center::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-title.white {
  color: var(--branco);
}

/* Footer Section */
.footer {
  background-color: var(--cinza-grafite);
  color: var(--branco);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-col-1 {
  grid-column: span 5;
}

.footer-col-2 {
  grid-column: span 3;
}

.footer-col-3 {
  grid-column: span 4;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--branco);
  margin-bottom: 1rem;
}

.footer-logo span {
  color: var(--dourado);
}

.footer-about {
  color: var(--cinza-claro);
  font-size: 0.95rem;
  max-width: 300px;
}

.footer-title {
  font-size: 1.25rem;
  color: var(--branco);
  margin-bottom: 1.5rem;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--cinza-claro);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--dourado);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--cinza-claro);
  font-size: 0.95rem;
}

.footer-contact i {
  color: var(--dourado);
  margin-top: 4px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--cinza-claro);
  font-size: 0.85rem;
}

/* Media Queries Principais */
@media (max-width: 992px) {
  .hero-title {
    font-size: 3rem;
  }

  .footer-col-1 {
    grid-column: span 12;
  }

  .footer-col-2 {
    grid-column: span 6;
  }

  .footer-col-3 {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--azul-profundo);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    transition: right 0.4s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-item {
    width: 100%;
  }

  /* Menu mobile — lista de produtos */
  .nav-mobile a,
  .nav-links .nav-link {
    color: #FFFFFF !important;
    padding: 14px 24px;
    display: block;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .dropdown {
    position: static !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    background-color: #FFFFFF !important;
    border: none !important;
    border-top: 2px solid #C8A24A !important;
    border-radius: 4px !important;
    padding: 4px 0 !important;
    margin-top: 4px !important;
    margin-bottom: 8px !important;
    display: none;
    width: 100%;
  }

  .nav-item.active .dropdown {
    display: block;
  }

  /* Itens do dropdown no mobile — fundo branco, texto azul escuro */
  .dropdown li a,
  .nav-links .dropdown li a,
  nav .dropdown li a {
    color: #0B1F3B !important;
    background: #FFFFFF !important;
    padding: 12px 24px 12px 24px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    border-bottom: 1px solid rgba(11, 31, 59, 0.08) !important;
    white-space: normal !important;
    line-height: 1.4 !important;
    display: block !important;
    width: 100% !important;
    text-align: left !important;
  }

  .dropdown li a:hover,
  .dropdown li a:active,
  .nav-links .dropdown li a:hover {
    color: #C8A24A !important;
    background: rgba(11, 31, 59, 0.05) !important;
    padding-left: 24px !important;
  }

  .menu-toggle {
    display: block;
    z-index: 1001;
  }

  /* Overlay para mobile menu */
  .mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .mobile-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-col-2,
  .footer-col-3 {
    grid-column: span 12;
  }
}

nav.menu-solido,
.pagina-interna nav {
  background: var(--azul-profundo) !important;
  backdrop-filter: none;
}

nav.menu-solido .nav-links > li > a,
.pagina-interna nav .nav-links > li > a {
  color: #FFFFFF !important;
}

nav.menu-solido .nav-links > li > a:hover,
.pagina-interna nav .nav-links > li > a:hover {
  color: var(--dourado) !important;
}

/* Dropdown links — sempre azul escuro sobre fundo branco, em qualquer página */
nav.menu-solido .dropdown a,
.pagina-interna nav .dropdown a,
nav.menu-solido .dropdown li a,
.pagina-interna nav .dropdown li a {
  color: #0B1F3B !important;
}

nav.menu-solido .dropdown a:hover,
.pagina-interna nav .dropdown a:hover,
nav.menu-solido .dropdown li a:hover,
.pagina-interna nav .dropdown li a:hover {
  color: #C8A24A !important;
  background: rgba(11, 31, 59, 0.04) !important;
}

/* Hero das páginas internas CORRIGIDO */
.pagina-interna .page-hero,
.pagina-interna .hero-interno,
.contato-hero {
    background-image: linear-gradient(rgba(11, 31, 59, 0.75), rgba(11, 31, 59, 0.75)), url('../assets/Foto_3.jpeg');
  padding: 120px 6% 60px;
  text-align: center;
}

.pagina-interna .page-hero h1,
.contato-hero h1 {
  font-family: 'Playfair Display', serif;
  color: #FFFFFF;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.pagina-interna .page-hero .linha-dourada,
.contato-hero .linha-dourada {
  width: 60px;
  height: 3px;
  background: var(--dourado);
  margin: 0 auto 20px;
}

.pagina-interna .page-hero p,
.contato-hero p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- AJUSTE 2: Seção Quem é André (Home) REDESIGN --- */
.secao-andre {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 64px;
  align-items: center;
  padding: 80px 6%;
  background: #FFFFFF;
}

.secao-andre .foto-container {
  position: relative;
}

.secao-andre .foto-container::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 16px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--dourado);
  border-radius: 4px;
  z-index: 0;
}

.secao-andre .foto-container img {
  width: 100%;
  max-width: 360px;
  height: 440px;
  object-fit: cover;
  object-position: top center;
  border-radius: 4px;
  display: block;
  position: relative;
  z-index: 1;
  box-shadow: 0 20px 60px rgba(11, 31, 59, 0.15);
}

.secao-andre .label-superior {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dourado);
  margin-bottom: 12px;
  display: block;
}

.secao-andre h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  color: var(--azul-profundo);
  line-height: 1.25;
  margin-bottom: 8px;
}

.secao-andre .cargo {
  font-size: 0.9rem;
  color: var(--dourado);
  font-weight: 600;
  margin-bottom: 24px;
  display: block;
}

.secao-andre .divider {
  width: 48px;
  height: 2px;
  background: var(--dourado);
  margin-bottom: 24px;
}

.secao-andre p {
  font-size: 1rem;
  color: #4A4A4A;
  line-height: 1.8;
  margin-bottom: 32px;
}

.secao-andre .btn-sobre {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: 2px solid var(--azul-profundo);
  color: var(--azul-profundo);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.secao-andre .btn-sobre:hover {
  background: var(--azul-profundo);
  color: #FFFFFF;
}

/* Novos botões WhatsApp padronizados */
.btn-whatsapp-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  background: #25D366;
  color: #FFFFFF !important;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: none !important;
  text-decoration: none;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s ease, transform 0.2s ease;
  line-height: 1;
}

.btn-whatsapp-primary:hover {
  background: #1ebe57;
  transform: translateY(-1px);
}

.btn-whatsapp-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  background: #C8A24A;
  color: #FFFFFF !important;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: none !important;
  text-decoration: none;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s ease, transform 0.2s ease;
  line-height: 1;
}

.btn-whatsapp-secondary:hover {
  background: #b8922a;
  transform: translateY(-1px);
}

.btn-whatsapp-primary svg,
.btn-whatsapp-secondary svg,
.btn-whatsapp-primary img,
.btn-whatsapp-secondary img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* Botão Enviar Mensagem do formulário */
button[type="submit"],
.btn-submit,
input[type="submit"] {
  text-transform: none !important;
  font-size: 1rem !important;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 14px 32px;
  background: var(--azul-profundo);
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
  width: 100%;
}

button[type="submit"]:hover {
  background: var(--dourado);
}

/* Feedback do formulário */
#feedback-form {
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: 4px;
  font-size: 0.95rem;
  line-height: 1.6;
  animation: fadeInUp 0.3s ease;
}

.feedback-sucesso {
  background: #f0faf4;
  color: #1a6b3c;
  border: 1px solid #a8dabb;
  border-left: 4px solid #C8A24A;
}

.feedback-erro {
  background: #fff5f5;
  color: #8b1a1a;
  border: 1px solid #f5c0c0;
  border-left: 4px solid #e53e3e;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading state no botão */
button[type="submit"].loading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

button[type="submit"].loading::after {
  content: '...';
}

/* Mobile */
@media (max-width: 768px) {
  .secao-andre {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 5%;
  }

  .secao-andre .foto-container img {
    max-width: 280px;
    height: 340px;
    margin: 0 auto;
  }
}