/* 
 * Antonelli Advocacia - Estilos Principais
 * Versão: 3.0
 */

:root {
  --primary: #1a1e4d;      /* Azul escuro moderno */
  --secondary: #e2b442;    /* Dourado moderno */
  --accent: #4761e6;       /* Azul vibrante */
  --dark: #151630;         /* Azul muito escuro */
  --light: #f8f9fc;        /* Cinza muito claro */
  --gray: #70708c;         /* Cinza azulado */
  --white: #ffffff;
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, #2c3e7b 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent) 0%, #6b4de6 100%);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
  --border-radius: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray);
  background-color: var(--light);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.3;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary);
}

p {
  margin-bottom: 1rem;
}

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

ul, ol {
  list-style-position: inside;
  margin-bottom: 1rem;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

section {
  position: relative;
}

/* Desktop-only elementos */
.desktop-only {
  display: inline-block;
}

/* Elementos decorativos */
.tech-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.3;
  z-index: -1;
}

.tech-circle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.05;
  z-index: -1;
}

.angle-corner {
  position: absolute;
  width: 15px;
  height: 15px;
  border-color: var(--secondary);
  opacity: 0.8;
}

.angle-corner-tl {
  top: 10px;
  left: 10px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.angle-corner-tr {
  top: 10px;
  right: 10px;
  border-top: 2px solid;
  border-right: 2px solid;
}

.angle-corner-bl {
  bottom: 10px;
  left: 10px;
  border-bottom: 2px solid;
  border-left: 2px solid;
}

.angle-corner-br {
  bottom: 10px;
  right: 10px;
  border-bottom: 2px solid;
  border-right: 2px solid;
}

/* Botões e links */
.btn {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  transition: var(--transition);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s ease;
  z-index: -1;
}

.btn:hover:after {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--white);
}

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

.btn-secondary:hover {
  background-color: var(--primary);
  color: var(--white);
}

.btn-accent {
  background: var(--gradient-accent);
  color: var(--white);
}

.btn-accent:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--white);
}

.whatsapp-btn {
  background-color: #25D366;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--border-radius);
  padding: 10px 20px;
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

.whatsapp-btn:hover {
  background-color: #128C7E;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  color: white;
}

/* Títulos de seção */
.section-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.section-title h2:after {
  content: '';
  position: absolute;
  width: 80px;
  height: 3px;
  background-color: var(--secondary);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.section-title p {
  max-width: 600px;
  margin: 0 auto;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(26, 30, 77, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  padding: 15px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 10px 0;
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  transition: var(--transition);
}

.navbar.scrolled .logo img {
  height: 40px;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
}

.nav-links a {
  color: var(--light);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: var(--transition);
  position: relative;
  padding-bottom: 5px;
}

.nav-links a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--secondary);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--secondary);
}

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

.nav-toggle {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--white);
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.nav-toggle span:nth-child(1) {
  top: 0px;
}

.nav-toggle span:nth-child(2) {
  top: 10px;
}

.nav-toggle span:nth-child(3) {
  top: 20px;
}

.nav-toggle.active span:nth-child(1) {
  top: 10px;
  transform: rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  top: 10px;
  transform: rotate(-45deg);
}

/* Header / Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(26, 30, 77, 0.95) 0%, rgba(44, 62, 123, 0.95) 100%), url('../images/hero-bg.jpg') center/cover no-repeat;
}

.hero:before {
  content: '';
  position: absolute;
  width: 150%;
  height: 100px;
  background: var(--light);
  bottom: -50px;
  left: -25%;
  border-radius: 50% 50% 0 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
  color: var(--white);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--white);
  line-height: 1.2;
}

.hero h1 span {
  color: var(--secondary);
  position: relative;
  display: inline-block;
}

.hero h1 span:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: var(--secondary);
  bottom: 5px;
  left: 0;
  z-index: -1;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.hero-pattern {
  position: absolute;
  right: 0;
  top: 0;
  width: 50%;
  height: 100%;
  background-image: 
    linear-gradient(45deg, rgba(71, 97, 230, 0.05) 25%, transparent 25%), 
    linear-gradient(-45deg, rgba(71, 97, 230, 0.05) 25%, transparent 25%), 
    linear-gradient(45deg, transparent 75%, rgba(71, 97, 230, 0.05) 75%), 
    linear-gradient(-45deg, transparent 75%, rgba(71, 97, 230, 0.05) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  z-index: 0;
}

/* Seção de Áreas de Atuação */
.areas {
  padding: 100px 0;
  position: relative;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.area-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  padding: 30px 25px 30px;
  text-align: center;
}

.area-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.area-card-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 25px;
  box-shadow: var(--shadow-sm);
}

.area-card-icon i {
  font-size: 30px;
  color: var(--white);
}

.area-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 15px;
  color: var(--primary);
}

.area-card h3:after {
  content: '';
  position: absolute;
  width: 40px;
  height: 2px;
  background-color: var(--secondary);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.area-card p {
  margin-bottom: 25px;
  color: var(--gray);
  flex-grow: 1;
}

.area-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.area-link:hover {
  color: var(--primary);
}

.area-link i {
  font-size: 14px;
  transition: var(--transition);
}

.area-link:hover i {
  transform: translateX(3px);
}

/* Seção de Missão */
.mission {
  padding: 100px 0;
  background: var(--gradient-primary);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.mission:before {
  content: '';
  position: absolute;
  width: 150%;
  height: 100px;
  background: var(--light);
  top: -50px;
  left: -25%;
  border-radius: 0 0 50% 50%;
}

.mission:after {
  content: '';
  position: absolute;
  width: 150%;
  height: 100px;
  background: var(--light);
  bottom: -50px;
  left: -25%;
  border-radius: 50% 50% 0 0;
}

.mission .container {
  position: relative;
  z-index: 1;
}

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

.mission .section-title h2:after {
  background-color: var(--secondary);
}

.mission-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.mission-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.mission-content .btn {
  margin-top: 20px;
}

/* Seção da Equipe */
.team {
  padding: 100px 0;
  position: relative;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.team-member {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.team-member-img {
  height: 300px;
  background-position: center;
  background-size: cover;
  position: relative;
}

.team-member-img:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(26, 30, 77, 0.8), transparent);
}

.team-member-info {
  padding: 25px;
  text-align: center;
}

.team-member h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
}

.team-member-title {
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 15px;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.team-social a {
  width: 36px;
  height: 36px;
  background-color: var(--light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
}

.team-social a:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* Seção de Contato */
.contact {
  padding: 100px 0;
  background-color: var(--light);
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 25px;
}

.contact-details {
  margin-top: 30px;
}

.contact-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.contact-icon i {
  color: var(--white);
  font-size: 20px;
}

.contact-text h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.contact-form {
  background-color: var(--white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  position: relative;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--primary);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e1e1e8;
  border-radius: var(--border-radius);
  transition: var(--transition);
  outline: none;
  font-family: 'Roboto', sans-serif;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(71, 97, 230, 0.15);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2370708c' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px 12px;
}

/* Footer */
footer {
  background-color: var(--dark);
  color: var(--light);
  padding: 80px 0 30px;
  position: relative;
}

footer:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--secondary), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.footer-column h4 {
  color: var(--white);
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
  font-size: 1.2rem;
}

.footer-column h4:after {
  content: '';
  position: absolute;
  width: 40px;
  height: 2px;
  background-color: var(--secondary);
  bottom: 0;
  left: 0;
}

.footer-column p {
  margin-bottom: 20px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--white);
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--secondary);
  transform: translateY(-3px);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

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

.footer-links i {
  font-size: 14px;
  color: var(--secondary);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Elementos futuristas e detalhes */
.tech-lines {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
}

.tech-lines .tech-line:nth-child(1) {
  top: 20%;
  width: 100%;
}

.tech-lines .tech-line:nth-child(2) {
  top: 50%;
  width: 80%;
  left: 10%;
}

.tech-lines .tech-line:nth-child(3) {
  top: 80%;
  width: 60%;
  left: 20%;
}

/* Estilos para o formulário de contato - Mensagens de erro e sucesso */
.form-message {
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 500;
}

.form-message.success {
  background-color: rgba(46, 204, 113, 0.1);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.form-message.error {
  background-color: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.form-control.error {
  border-color: #e74c3c !important;
}

.error-message {
  color: #e74c3c;
  font-size: 0.85rem;
  margin-top: 5px;
}

.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Política de privacidade */
.privacy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px 0;
}

.privacy-content h2 {
  margin-top: 40px;
  font-size: 1.8rem;
  color: var(--primary);
  position: relative;
  padding-bottom: 10px;
}

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

.privacy-content h3 {
  font-size: 1.3rem;
  margin-top: 30px;
  color: var(--primary);
}

.privacy-content p, .privacy-content ul, .privacy-content ol {
  margin-bottom: 20px;
  line-height: 1.7;
}

.privacy-content ul li, .privacy-content ol li {
  margin-bottom: 10px;
}

.privacy-header {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 80px 0 30px;
  text-align: center;
  margin-top: 70px;
}

.privacy-header h1 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.privacy-date {
  font-style: italic;
  color: var(--gray);
  margin-top: 30px;
  font-size: 0.9rem;
  text-align: right;
}

.back-link {
  display: inline-flex;
  align-items: center;
  margin-top: 40px;
  color: var(--accent);
  font-weight: 500;
  transition: var(--transition);
}

.back-link i {
  margin-right: 5px;
}

.back-link:hover {
  color: var(--primary);
  transform: translateX(-5px);
}

/* Animações para entrada de elementos na visualização */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
  .animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
  }
  
  .animate-slide-up {
    animation: slideUp 0.8s ease forwards;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  @keyframes slideUp {
    from { 
      opacity: 0;
      transform: translateY(30px);
    }
    to { 
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Acessibilidade - preferência por movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}