/* ==========================================
   HERO SECTION - ESCOPO ISOLADO (CONTATO)
   ========================================== */
section.contact-hero {
  background: var(--fundo-escuro);
  padding: var(--espaco-3xl) var(--espaco-md) var(--espaco-2xl);
  text-align: center;
}

/* Adaptação técnica: O HTML original utiliza <h4> ao invés de <p> para o subtítulo.
   O seletor reflete a estrutura real do DOM para garantir aplicação precisa. */
section.contact-hero h1,
section.contact-hero h4 {
  background: var(--fundo-escuro);
  color: var(--texto-claro);
  margin-top: 20px;
}

section.contact-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: var(--espaco-xs);
  text-transform: capitalize; /* Garante padronização visual independente do HTML */
}

section.contact-hero h4 {
  font-size: 1.1rem;
  font-weight: 400;
  margin: 0;
}

/* ==========================================
   ESTILOS ORIGINAIS (Preservados)
   ========================================== */
.iphone-device {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin: var(--espaco-xl) auto 20px auto;
  background: var(--fundo-claro-sec);
  border-radius: 60px;
  padding: var(--espaco-md);
  box-shadow: 0 40px 80px -10px rgba(0, 0, 0, 0.08),
  0 0 0 2px var(--marca),
  inset 0 0 0 1px rgba(255, 255, 255, 0.9);
  transition: transform var(--transicao-rapida),
  box-shadow var(--transicao-rapida),
  border-color var(--transicao-rapida);
  animation: floatIn 0.6s ease-out;
  border: 1px solid var(--marca);
}
.iphone-device:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 50px 100px -12px rgba(0, 0, 0, 0.12),
  0 0 0 2px var(--marca-hover),
  inset 0 0 0 1px rgba(255, 255, 255, 0.95);
  border-color: var(--marca-hover);
}
.iphone-frame {
  background: var(--fundo-claro);
  border-radius: 52px;
  padding: var(--espaco-xs);
  box-shadow: inset 0 0 0 1px var(--marca);
}
.iphone-screen {
  background: var(--fundo-claro);
  border-radius: 48px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 0 1px var(--marca),
  0 0 0 1px rgba(0, 0, 0, 0.04);
  background-image: radial-gradient(circle at 20% 10%, rgba(29, 78, 216, 0.04) 0%, transparent 50%);
}
.iphone-screen::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, transparent 40%, transparent 70%, rgba(255, 255, 255, 0.4) 100%);
  pointer-events: none;
  z-index: 5;
}
.screen-content {
  padding: var(--espaco-xl) var(--espaco-md) var(--espaco-xl);
  position: relative;
  z-index: var(--z-base);
}
.notch-container {
  display: flex;
  justify-content: center;
  margin-bottom: var(--espaco-lg);
}
.dynamic-island {
  background: var(--fundo-escuro);
  width: 110px;
  height: 34px;
  border-radius: var(--raio-completo);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--espaco-md);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6),
  0 4px 10px rgba(0, 0, 0, 0.3);
  border: 0.5px solid var(--marca);
  backdrop-filter: blur(4px);
}
.camera-lens {
  width: 14px;
  height: 14px;
  background: #142130;
  border-radius: 20px;
  border: 1px solid var(--marca);
  box-shadow: inset 0 0 4px #000000;
}
.sensor-dot {
  width: 8px;
  height: 8px;
  background: #0c1a28;
  border-radius: 10px;
  border: 0.5px solid var(--marca);
}
.speaker-grill {
  width: 30px;
  height: 4px;
  background: var(--fundo-escuro);
  border-radius: 10px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}
.form-header {
  text-align: center;
  margin-bottom: var(--espaco-xl);
}
.form-header h2 {
  font-weight: 650;
  font-size: 1.9rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--texto-escuro), var(--marca));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: var(--espaco-2xs);
}
.form-header p {
  opacity: 0.8;
  font-size: 0.9rem;
  color: var(--texto-escuro-sec);
}
.input-group {
  margin-bottom: var(--espaco-md);
}
.input-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: var(--espaco-2xs);
  margin-left: var(--espaco-xs);
  color: var(--texto-escuro-sec);
  letter-spacing: 0.2px;
}
.input-field {
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--marca);
  border-radius: var(--raio-completo);
  padding: var(--espaco-md) var(--espaco-lg);
  font-size: 0.95rem;
  color: var(--texto-escuro);
  outline: none;
  transition: all var(--transicao-rapida);
  font-family: var(--fonte-principal);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}
.input-field:focus {
  border-color: var(--marca-hover);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--borda-foco-sombra),
  inset 0 2px 4px rgba(29, 78, 216, 0.05);
}
.input-field::placeholder {
  color: var(--texto-escuro-muted);
  opacity: 0.7;
  font-weight: 300;
}
textarea.input-field {
  min-height: 100px;
  resize: vertical;
}
.send-btn {
  width: 100%;
  background: linear-gradient(145deg, var(--marca), var(--marca-hover));
  border: none;
  border-radius: var(--raio-completo);
  padding: var(--espaco-lg) var(--espaco-xl);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--texto-claro);
  cursor: pointer;
  box-shadow: 0 8px 20px -5px rgba(29, 78, 216, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transicao-rapida);
  margin-top: var(--espaco-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--espaco-xs);
}
.send-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(29, 78, 216, 0.5);
}
.home-bar {
  display: flex;
  justify-content: center;
  margin-top: var(--espaco-lg);
  margin-bottom: var(--espaco-xs);
}
.home-indicator {
  width: 130px;
  height: 5px;
  background: var(--marca);
  opacity: 0.35;
  border-radius: var(--raio-completo);
}
.side-buttons {
  position: absolute;
  left: -4px;
  top: 120px;
  width: 4px;
  height: 35px;
  background: var(--marca);
  opacity: 0.6;
  border-radius: 4px 0 0 4px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}
.side-buttons.right {
  left: auto;
  right: -4px;
  border-radius: 0 4px 4px 0;
  top: 150px;
  height: 55px;
}
.side-buttons.small {
  top: 200px;
  height: 25px;
}
@media (max-width: 900px) {
  .iphone-device {
    max-width: 460px;
    margin-top: 60px;
  }
  .screen-content { padding: var(--espaco-lg) var(--espaco-md); }
  .form-header h2 { font-size: 1.6rem; }
}
@media (max-width: 480px) {
  .iphone-device {
    max-width: 100%;
    margin: 40px auto 20px auto;
    border-radius: 36px;
    padding: var(--espaco-sm);
  }
  .iphone-frame { border-radius: 30px; }
  .iphone-screen { border-radius: 26px; }
  .dynamic-island { width: 90px; height: 28px; }
  .camera-lens { width: 10px; height: 10px; }
  .sensor-dot { width: 6px; height: 6px; }
  .speaker-grill { width: 20px; height: 3px; }
  .screen-content { padding: var(--espaco-md) var(--espaco-xs); }
  .form-header h2 { font-size: 1.4rem; }
  .form-header p { font-size: 0.8rem; }
  .side-buttons { display: none; }
}
@keyframes floatIn {
  0% { opacity: 0; transform: translateY(30px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease-out forwards;
}
.modal-box {
  background: var(--fundo-claro);
  border: 1px solid var(--borda-sutil-claro);
  border-radius: 24px;
  padding: 40px;
  text-align: center;
  width: 90%;
  max-width: 350px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: scale(0.9);
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.modal-icon i {
  font-size: 4rem;
  color: var(--sucesso);
  display: block;
  margin-bottom: 15px;
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}
.modal-box h3 {
  color: var(--texto-escuro);
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-weight: 600;
}
.modal-box p {
  color: var(--texto-escuro-sec);
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.loader-bar {
  width: 100%; height: 4px;
  background: var(--borda-sutil-claro);
  border-radius: 10px; overflow: hidden; position: relative;
}
.loader-bar::after {
  content: ''; position: absolute; top: 0; left: 0; height: 100%; width: 0%;
  background: var(--marca); animation: loadProgress 3s linear forwards;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { to { transform: scale(1); } }
@keyframes loadProgress { to { width: 100%; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}