@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-color: #F9FAFB;
  --surface: #FFFFFF;
  --text-dark: #111827;
  --text-muted: #6B7280;
  --primary: #0A3254;
  --primary-light: #154e82;
  --vinho: #722F37; /* Cor Vinho Premium */
  --vinho-light: #8e3a44;
  --accent: #C5A861;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(10, 50, 84, 0.1);
  --safe-bottom: env(safe-area-inset-bottom, 24px);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Inter', sans-serif; color: var(--primary); font-weight: 700; letter-spacing: -0.02em; }

/* Layout Shell */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav Bar */
.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
  padding: max(16px, env(safe-area-inset-top)) 24px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.top-bar .logo img { 
  max-height: 115px; 
  width: auto; 
  object-fit: contain; 
}

/* Desktop Menu Links */
.desktop-nav {
  display: none;
  gap: 24px;
}
.desktop-nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 14px;
  transition: color 0.3s;
}
.desktop-nav a:hover { color: var(--vinho); }

.top-bar .cta-whatsapp {
  background: var(--vinho);
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 14px;
  display: none;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}
.top-bar .cta-whatsapp:hover {
  background: var(--vinho-light);
}

@media (min-width: 900px) { 
  .top-bar { justify-content: center; gap: 40px; }
  .desktop-nav { display: flex; gap: 16px; align-items: center; } 
  .top-bar .cta-whatsapp { display: flex; }
}

/* Hamburger Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  color: var(--vinho);
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.menu-toggle svg {
  width: 32px;
  height: 32px;
  display: block;
}
.menu-toggle svg line {
  stroke: var(--vinho) !important; /* Force color */
  stroke-width: 3; /* Thicker lines for visibility */
}

/* Mobile Menu Overlay */
.mobile-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 80px 40px 140px 40px; /* More padding top and bottom */
}
.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}
.mobile-overlay a {
  text-decoration: none;
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
  transition: color 0.3s, transform 0.3s;
}
.mobile-overlay .btn-primary {
  color: #ffffff !important;
  font-size: 15px;
  padding: 14px 28px;
  width: 80%;
  max-width: 280px;
  text-align: center;
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.mobile-overlay a:active {
  transform: scale(0.95);
  color: var(--vinho);
}
.mobile-overlay .close-btn {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  right: 24px;
  font-size: 40px;
  color: var(--vinho);
  cursor: pointer;
}

@media (max-width: 900px) {
  .menu-toggle { display: flex; }
  .desktop-nav { display: none; }
}

@media (max-width: 768px) {
  .top-bar { padding: max(12px, env(safe-area-inset-top)) 20px 12px; }
  .top-bar .logo { max-width: 70%; display: flex; align-items: center; }
  .top-bar .logo img { max-height: 70px; width: auto; object-fit: contain; }
  .top-bar .cta-whatsapp { display: none; }
}

/* Sections */
section { padding: 100px 0; }
section h2 { text-align: center; margin-top: 32px; margin-bottom: 56px; color: var(--vinho); }
@media (max-width: 768px) { section { padding: 60px 0; } section h2 { margin-top: 24px; margin-bottom: 40px; } }

/* Hero Edge-to-Edge with Overlay */
.hero {
  min-height: 100vh;
  padding-top: 147px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: 0 24px;
  color: #fff;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.1;
  margin-bottom: 24px;
  color: #fff;
  text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 32px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Buttons */
.cta-whatsapp {
  background: var(--vinho);
  color: #fff;
  padding: 10px 20px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
  animation: pulse-whatsapp 4s infinite;
}
@keyframes pulse-whatsapp {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(114, 47, 55, 0.7); }
  5% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(114, 47, 55, 0); }
  10% { transform: scale(1); box-shadow: 0 0 0 0 rgba(114, 47, 55, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(114, 47, 55, 0); }
}
.btn-primary {
  background: var(--vinho);
  color: #fff;
  padding: 16px 32px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  transition: all 0.3s;
  align-items: center;
  justify-content: center;
}
.btn-primary:hover { background: var(--vinho-light); transform: translateY(-2px); }
.btn-primary:active, .cta-whatsapp:active { transform: scale(0.96); opacity: 0.9; }

/* Form Card Vinho */
.contact-wrapper {
  background: var(--vinho);
  border-radius: var(--radius-lg);
  padding: 60px;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 40px; /* Entre linhas antes do rodapé */
}
@media (max-width: 900px) {
  .contact-wrapper { grid-template-columns: 1fr; padding: 32px 24px; margin-bottom: 32px; }
}
.contact-wrapper h2 { color: #fff; }
.contact-wrapper a { color: #fff; text-decoration: none; }

/* Custom Form */
.custom-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.custom-form input, .custom-form textarea {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: #ffffff;
  color: var(--text-dark);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  transition: all 0.3s;
}
.custom-form input::placeholder, .custom-form textarea::placeholder {
  color: #94a3b8;
}
.custom-form input:focus, .custom-form textarea:focus {
  outline: none;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}
.custom-form button {
  background: #fff;
  color: var(--vinho);
  padding: 16px;
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 8px;
}
.custom-form button:hover {
  background: #f1f1f1;
  transform: translateY(-2px);
}

/* Legal Footer */
footer {
  text-align: center;
  padding: 60px 24px 40px;
  background: var(--vinho);
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}
.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo {
  max-height: 75px;
  width: auto;
  object-fit: contain;
}
.footer-legal-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 32px;
  width: 100%;
}
.footer-legal-links a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.3s;
}
.footer-legal-links a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-copyright {
  font-size: 14px;
  color: rgba(255,255,255,0.9);
}
.footer-copyright a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.footer-copyright a:hover {
  text-decoration: underline;
}

/* Bento, Scroll, Accordion (Restante igual ao modern.css anterior) */
.bento-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.bento-item { background: var(--surface); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; justify-content: center; }
.bento-profile-img { grid-column: span 5; padding: 0; overflow: hidden; }
.bento-profile-img img { width: 100%; height: 100%; object-fit: cover; }
.bento-profile-text { grid-column: span 7; display: flex; flex-direction: column; align-items: center; text-align: center; }
@media (max-width: 900px) { .bento-profile-img { grid-column: span 12; height: 400px; } .bento-profile-text { grid-column: span 12; padding: 24px; } }

/* Curriculum Premium UX */
.rqe-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 32px; }
.rqe-tag { background: rgba(114, 47, 55, 0.08); color: var(--vinho); padding: 8px 16px; border-radius: 100px; font-size: 13px; font-weight: 600; }
.formation-list { list-style: none; display: grid; gap: 16px; text-align: left; margin-top: 8px; width: 100%; }
@media (min-width: 900px) { .formation-list { grid-template-columns: 1fr 1fr; } }
.formation-list li { display: flex; align-items: flex-start; gap: 12px; background: #fff; padding: 16px; border-radius: var(--radius-md); border: 1px solid rgba(0,0,0,0.04); font-size: 14px; color: var(--text-secondary); line-height: 1.5; transition: transform 0.3s, box-shadow 0.3s; }
.formation-list li:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(114, 47, 55, 0.1); }
.formation-list svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--vinho); margin-top: 2px; }
.horizontal-scroll { display: flex; gap: 24px; overflow-x: auto; padding-bottom: 24px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
@media (min-width: 900px) { .horizontal-scroll { justify-content: center; } }
.horizontal-scroll::-webkit-scrollbar { display: none; }
.card { flex: 0 0 300px; scroll-snap-align: start; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); border: 1px solid rgba(0,0,0,0.03); }
.card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: rgba(114, 47, 55, 0.1); }
@media (max-width: 768px) { .card { flex: 0 0 85vw; } }
.card-img { height: 200px; width: 100%; object-fit: cover; }
.card-body { padding: 24px; text-align: center; }
.card-title { font-size: 20px; margin-bottom: 8px; }

/* UX Sanfona (Accordion) Premium */
.accordion { margin-top: 40px; display: flex; flex-direction: column; gap: 16px; max-width: 800px; margin-left: auto; margin-right: auto; }
.accordion-item { background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow: hidden; border: 1px solid rgba(0,0,0,0.05); transition: all 0.3s; }
.accordion-item:hover { box-shadow: var(--shadow-md); border-color: rgba(114, 47, 55, 0.2); transform: translateY(-2px); }
.accordion-header { padding: 24px 32px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 20px; color: var(--vinho); text-align: left; }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.5s ease; color: var(--text-muted); text-align: center; }
.accordion-body-inner { padding: 0 32px 32px 32px; }
.accordion-item.active .accordion-body { max-height: 1200px; }
.accordion-item.active { box-shadow: 0 10px 25px rgba(114, 47, 55, 0.15); border-color: var(--vinho); transform: translateY(-2px); }
.accordion-icon { width: 32px; height: 32px; background: rgba(114, 47, 55, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--vinho); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); flex-shrink: 0; }
.accordion-item.active .accordion-icon { transform: rotate(135deg); background: var(--vinho); color: #fff; }

/* Atuacao Grid 2x2 */
.atuacao-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 32px;
  margin-top: 24px;
}
@media (max-width: 768px) {
  .atuacao-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
.atuacao-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.03);
  text-align: center;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.atuacao-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(114, 47, 55, 0.1);
}
.atuacao-item h3 {
  font-size: 22px;
  color: var(--text-dark);
  font-weight: 700;
  width: 100%;
}
.atuacao-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s ease;
}
.atuacao-item:hover img {
  transform: scale(1.02);
}
.atuacao-item p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* LGPD Banner */
.lgpd-banner { position: fixed; bottom: calc(var(--safe-bottom) + 70px); left: 16px; right: 16px; background: var(--surface); border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-lg); z-index: 9999; transform: translateY(150%); opacity: 0; transition: all 0.6s ease; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 768px) { .lgpd-banner { bottom: 24px; left: auto; right: 24px; width: 400px; } }
.lgpd-banner.show { transform: translateY(0); opacity: 1; }
.lgpd-banner.hidden { display: none !important; }
.lgpd-text { font-size: 13px; color: var(--text-muted); }
.lgpd-btn { background: var(--vinho); color: #fff; border: none; padding: 12px; border-radius: var(--radius-sm); width: 100%; font-weight: 500; cursor: pointer; }

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: calc(var(--safe-bottom) + 80px); /* Respect bottom nav on mobile */
  right: 24px;
  background-color: #25D366;
  color: #FFF;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.whatsapp-float:hover {
  background-color: #20b858;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
  color: #FFF;
}
@media (min-width: 768px) {
  .whatsapp-float {
    bottom: 40px;
  }
}

