/* ===== MODERN MINIMALIST DESIGN SYSTEM ===== */
:root {
  /* Clean Color Palette */
  --primary-white: #ffffff;
  --primary-gray-50: #fafafa;
  --primary-gray-100: #f5f5f5;
  --primary-gray-200: #e5e5e5;
  --primary-gray-300: #d4d4d4;
  --primary-gray-400: #a3a3a3;
  --primary-gray-500: #737373;
  --primary-gray-600: #525252;
  --primary-gray-700: #404040;
  --primary-gray-800: #262626;
  --primary-gray-900: #171717;

  /* Accent Colors */
  --accent-orange: #f97316;
  --accent-orange-light: #fb923c;
  --accent-orange-dark: #ea580c;

  /* Typography */
  --font-primary: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Inter", sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Transitions */
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
}

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

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

body {
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: 1.6;
  color: var(--primary-gray-700);
  background: var(--primary-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== UTILITIES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== NAVIGATION ===== */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--primary-gray-200);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  transition: var(--transition);
}

.logo:hover {
  transform: translateY(-1px);
}

.logo-image {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-gray-900);
  letter-spacing: -0.025em;
}

.nav-menu {
  display: flex;
  gap: var(--space-xl);
}

.nav-link {
  color: var(--primary-gray-600);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-orange);
  background: rgba(249, 115, 22, 0.1);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  border-radius: var(--radius);
  transition: var(--transition);
}

.mobile-menu-toggle:hover {
  background: var(--primary-gray-100);
}

.hamburger {
  width: 24px;
  height: 2px;
  background: var(--primary-gray-700);
  margin: 2px 0;
  transition: var(--transition);
  border-radius: 1px;
}

.mobile-menu {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  border-top: 1px solid var(--primary-gray-200);
  padding: var(--space-lg);
  box-shadow: var(--shadow-lg);
  display: none;
}

.mobile-menu.active {
  display: block;
}

.mobile-nav-link {
  display: block;
  color: var(--primary-gray-600);
  text-decoration: none;
  padding: var(--space-md) 0;
  font-weight: 500;
  transition: var(--transition);
  border-bottom: 1px solid var(--primary-gray-100);
}

.mobile-nav-link:hover {
  color: var(--accent-orange);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 70px;
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url("/img/background.webp") center center / cover
    no-repeat;
  position: relative;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-3xl);
  align-items: center;
  padding: var(--space-3xl) 0;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: var(--space-xl);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--primary-white);
}

.brand-text {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-orange);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
}

.main-text {
  color: var(--primary-white);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-xl);
  line-height: 1.6;
  font-weight: 400;
}

.hero-subtitle strong {
  color: var(--accent-orange);
  font-weight: 600;
}

.hero-stats {
  display: flex;
  gap: var(--space-2xl);
  margin-top: var(--space-2xl);
}

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

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-orange);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== CONTACT FORM ===== */
.hero-form-container {
  display: flex;
  justify-content: center;
}

.contact-form {
  background: var(--primary-white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--primary-gray-200);
}

.form-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.form-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-gray-900);
  margin-bottom: var(--space-xs);
}

.form-header p {
  font-size: 0.875rem;
  color: var(--primary-gray-500);
}

.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.input-group {
  position: relative;
}

.input-group input,
.input-group textarea,
.input-group select {
  width: 100%;
  padding: var(--space-md) var(--space-md) var(--space-md) 2.75rem;
  border: 1px solid var(--primary-gray-300);
  border-radius: var(--radius);
  background: var(--primary-white);
  font-family: var(--font-primary);
  font-size: 0.875rem;
  color: var(--primary-gray-700);
  transition: var(--transition);
}

.input-group input::placeholder,
.input-group textarea::placeholder {
  color: var(--primary-gray-400);
}

.input-group textarea {
  resize: vertical;
  min-height: 100px;
  padding-top: var(--space-md);
}

.input-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
  outline: none;
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.input-icon {
  position: absolute;
  left: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-gray-400);
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.textarea-group .input-icon {
  top: 1rem;
  transform: none;
}

.btn-submit {
  background: var(--accent-orange);
  color: var(--primary-white);
  border: none;
  border-radius: var(--radius);
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-primary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.btn-submit:hover {
  background: var(--accent-orange-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-icon {
  width: 16px;
  height: 16px;
}

/* ===== SECTIONS ===== */
.section {
  padding: var(--space-3xl) 0;
}

.section-light {
  background: var(--primary-gray-50);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--primary-gray-900);
  margin-bottom: var(--space-md);
  letter-spacing: -0.025em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--primary-gray-500);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== SERVICES SECTION ===== */
.servicos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.servico-card {
  background: var(--primary-white);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--primary-gray-200);
  transition: var(--transition-slow);
  text-align: center;
}

.servico-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-orange);
}

.servico-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-orange);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  transition: var(--transition);
}

.servico-icon i {
  width: 24px;
  height: 24px;
  color: var(--primary-white);
}

.servico-card:hover .servico-icon {
  transform: scale(1.1);
  background: var(--accent-orange-dark);
}

.servico-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-gray-900);
  margin-bottom: var(--space-md);
}

.servico-card p {
  color: var(--primary-gray-600);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

/* ===== FAQ SECTION ===== */
#faq {
  background: var(--primary-white); /* Background branco puro para contrastar */
  border-top: 1px solid var(--primary-gray-200);
  border-bottom: 1px solid var(--primary-gray-200);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--primary-white);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
  border: 1px solid var(--primary-gray-200);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--accent-orange);
}

.faq-question {
  width: 100%;
  padding: var(--space-xl);
  background: none;
  border: none;
  color: var(--primary-gray-900);
  font-size: 1.125rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--accent-orange);
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: var(--transition);
  color: var(--accent-orange);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  padding: 0 var(--space-xl);
  color: var(--primary-gray-600);
  line-height: 1.6;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  opacity: 1;
  max-height: 500px;
  padding: 0 var(--space-xl) var(--space-xl);
  border-top: 1px solid var(--primary-gray-200);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--primary-gray-900);
  color: var(--primary-white);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-section h4 {
  font-size: 1.125rem;
  margin-bottom: var(--space-lg);
  color: var(--primary-white);
  font-weight: 600;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-white);
  margin-bottom: var(--space-md);
}

.footer-tagline {
  color: var(--primary-gray-400);
  margin-bottom: var(--space-lg);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--primary-gray-300);
  font-size: 0.875rem;
  margin-bottom: var(--space-sm);
}

.social-icons {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.social-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-gray-800);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-white);
  text-decoration: none;
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--accent-orange);
  transform: translateY(-2px);
}

.emergency-contact {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background: var(--primary-gray-800);
  border-radius: var(--radius);
  text-align: left; /* Changed from center to left */
  width: fit-content; /* Only as wide as content */
  min-width: auto; /* Remove min-width constraint */
  white-space: nowrap; /* Evita quebra de linha */
}

.emergency-text {
  font-size: 0.875rem;
  color: var(--primary-gray-400);
  margin-bottom: var(--space-xs);
  font-weight: 500;
  white-space: nowrap; /* Evita quebra de linha */
}

.emergency-phone {
  color: var(--accent-orange);
  font-weight: 700;
  font-size: 1rem; /* Reduzido ligeiramente para caber melhor */
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap; /* Evita quebra de linha */
  display: block;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--primary-gray-800);
}

.footer-bottom p {
  color: var(--primary-gray-400);
  font-size: 0.875rem;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-white);
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.whatsapp-icon {
  width: 24px;
  height: 24px;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-gray-900);
  color: var(--primary-white);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  display: none;
  max-width: 90%;
  text-align: center;
  font-weight: 500;
  font-size: 0.875rem;
}

.toast.error {
  background: #dc2626;
}

.toast.success {
  background: #16a34a;
}

.toast.show {
  display: block;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

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

  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    text-align: center;
  }

  .hero-stats {
    justify-content: center;
    gap: var(--space-xl);
  }

  .contact-form {
    max-width: 100%;
    margin: 0 var(--space-md);
  }

  .servicos-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }

  .whatsapp-float {
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 48px;
    height: 48px;
  }

  .whatsapp-icon {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

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

  .contact-form {
    padding: var(--space-lg);
  }

  .hero-stats {
    gap: var(--space-lg);
  }

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

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--accent-orange);
  outline-offset: 2px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--primary-gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-gray-400);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-orange);
}

/* ===== LOADING SPINNER ===== */
.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
