/* Reset e configuração base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Paleta de cores refinada baseada na logo AR Brasil (#0052FF) */
  --primary: #0052ff;
  --primary-dark: #001c66;
  --primary-light: #3376ff;
  --accent: #0099ff;
  --background: #ffffff;
  --foreground: #0a1628;
  --muted: #64748b;
  --border: #e8eef5;
  --card-bg: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --success: #10b981;

  /* Sombras mais suaves */
  --shadow-sm: 0 2px 8px rgba(0, 28, 102, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 28, 102, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 28, 102, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 28, 102, 0.15);
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif;
  color: var(--foreground);
  background-color: var(--background);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Header com fundo branco puro e linha divisória sutil */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

#header.scrolled {
  box-shadow: var(--shadow-md);
}

#header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo img {
  height: 40px;
  width: auto;
  transition: opacity 0.2s;
}

.logo:hover img {
  opacity: 0.85;
}

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

#nav a {
  color: var(--foreground);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: all 0.2s;
  position: relative;
  padding: 0.5rem 0;
}

#nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

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

#nav a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--foreground);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero com gradiente suave e fundo minimalista */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 40%, rgba(0, 82, 255, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 60%, rgba(0, 153, 255, 0.03) 0%, transparent 50%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  animation: fadeInUp 0.8s ease;
}

/* Badge com cores da marca */
.hero-badge {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  border-radius: 50px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.75rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: 0 4px 16px rgba(0, 82, 255, 0.2);
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
  letter-spacing: -0.03em;
}

.hero p {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--muted);
  margin-bottom: 2.5rem;
  line-height: 1.65;
  max-width: 560px;
}

/* Botões com cores e sombras da marca */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 1rem 2.25rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9375rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(0, 82, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 82, 255, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-whatsapp {
  background: #25d366;
  color: white;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.25);
  width: 100%;
}

.btn-whatsapp:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.btn-icon svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

/* Stats com gradiente da marca AR Brasil */
.stats {
  padding: 3rem 0;
  background: var(--background);
  margin-top: -3rem;
  position: relative;
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  font-size: 0.9375rem;
  opacity: 0.95;
  font-weight: 500;
}

/* Services com design clean e minimalista */
.services {
  padding: 5rem 0;
  background: var(--gray-50);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-badge {
  display: inline-block;
  padding: 0.5rem 1.125rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  border-radius: 50px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.section-header h2 {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.service-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: white;
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

/* Ícones de serviço com gradiente da marca */
.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.75rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 82, 255, 0.2);
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.08);
}

.service-icon svg {
  width: 40px;
  height: 40px;
  color: white;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 0;
}

/* Team cards com hover suave */
.team {
  padding: 5rem 0;
  background: white;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.team-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.team-photo {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--gray-100);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-card:hover .team-photo img {
  transform: scale(1.1);
}

/* Overlay com cores da marca */
.team-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 28, 102, 0.95) 0%, rgba(0, 82, 255, 0.4) 40%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-card:hover .team-overlay {
  opacity: 1;
}

.team-quick-actions {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  display: flex;
  gap: 0.625rem;
  opacity: 0;
  transform: translateY(1rem);
  transition: all 0.3s ease 0.1s;
}

.team-card:hover .team-quick-actions {
  opacity: 1;
  transform: translateY(0);
}

.team-info {
  padding: 1.75rem;
}

.team-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.375rem;
}

.team-specialty {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.team-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: 1.25rem;
}

.team-contacts a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

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

.team-contacts svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Contact Section */
.contact {
  padding: 5rem 0;
  background: var(--gray-50);
}

.contact-content {
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  padding: 2.5rem 2rem;
  background: white;
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

/* Ícones de contato com cores da marca */
.contact-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 82, 255, 0.2);
}

.contact-icon svg {
  width: 30px;
  height: 30px;
  color: white;
}

.contact-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 0;
}

.contact-item p,
.contact-item a {
  color: var(--muted);
  text-decoration: none;
  line-height: 1.7;
  font-size: 0.9375rem;
  margin: 0;
}

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

/* Footer com fundo da marca */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.9);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  height: 36px;
  width: auto;
  margin-bottom: 1.25rem;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: white;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 0.875rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.9375rem;
}

.footer a:hover {
  color: white;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-bottom: 1.125rem;
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin: 0;
}

/* Animações */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsividade mobile otimizada */
@media (max-width: 768px) {
  #nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 2rem;
    gap: 0;
    box-shadow: var(--shadow-xl);
    transform: translateY(-150%);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    border-top: 1px solid var(--border);
  }

  #nav a {
    padding: 1.25rem 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--border);
  }

  #nav a:last-child {
    border-bottom: none;
  }

  #nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero {
    min-height: 80vh;
    padding: 100px 0 60px;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .stats {
    padding: 2rem 0;
    margin-top: -2rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-card {
    padding: 2rem 1.5rem;
  }

  .services {
    padding: 3.5rem 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .team {
    padding: 3.5rem 0;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact {
    padding: 3.5rem 0;
  }

  .contact-info {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .service-icon {
    width: 70px;
    height: 70px;
  }
}
