/* Correções para o sites-performance.css */

:root {
  --dark-bg: #0f1419;
  --gray-light: #e2e8f0;
  --white: #ffffff;
  --accent-color: #00d4ff;
  --danger-color: #ff4757;
  --vh: 1vh;
}

.hero-service {
  padding-top: 200px; /* Aumentado de 120px para 150px */
  min-height: calc(100vh - 70px); 
  display: flex;
  align-items: center;
  position: relative;
}

.hero-service::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(49, 130, 206, .3) 0, transparent 70%), radial-gradient(circle at 70% 80%, rgba(0, 212, 255, .2) 0, transparent 70%);
  z-index: -1;
}

/* SOLUÇÃO DEFINITIVA - H1 simples que funciona em qualquer servidor */
.hero-service h1 {
font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--white), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.hero-service p {
  font-size: 1.3rem;
  max-width: 800px;
  line-height: 1.6;
  color: var(--gray-light);
}

nav {
  padding: 1.5rem 0;
}

.nav-links {
  align-items: center;
  height: 100%;
}

.faq-item {
  will-change: max-height, opacity, transform;
}

.faq-item h3,
.hero-service {
  display: flex;
}

.faq h2 {
  font-weight: 800;
  -webkit-text-fill-color: transparent;
}

.faq-item h3 {
  justify-content: space-between;
}

.faq-item h3::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent-color);
  transition: transform .3s;
}

.credibility,
.faq,
.results,
.services,
.why-choose-us {
  contain: layout style paint;
}


@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
 .nav-links {
    padding: 0.5rem;
    gap: 0.25rem;
  }
  
  .nav-links a {
    font-size: 1rem;
    padding: 0.6rem;
  }
  .container {
    padding: 0 1rem;
    width: 100%;
    max-width: 100vw;
  }

  body {
    overflow-x: hidden;
    width: 100vw;
  }

  /* CORREÇÃO: Padding unificado para mobile */
  .hero-service {
    padding-top: 90px !important; /* Aumentado de 75px para 90px */
    min-height: calc(100vh - 55px);
    padding-bottom: 2rem;
  }

  .hero-service h1 {
    font-size: 1.8rem;
    line-height: 1.2;
    word-wrap: break-word;
    hyphens: auto;
    /* Manter o gradient mas com fallback */
    background: linear-gradient(135deg, var(--white), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--white); /* Fallback */
  }

  .hero-service p {
    font-size: 1rem;
    line-height: 1.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  ::after,
  ::before {
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }

  .animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 55px;
    left: 0;
    width: 100%;
    background: var(--dark-bg);
    flex-direction: column;
    padding: 1rem; 
    gap: 0.5rem;  
    transition: transform .3s ease-in-out;
    transform: translateX(100%);
    z-index: 999;
   
  }

  .nav-links.active {
    transform: translateX(0);
    background: rgba(15, 20, 25, 0.98);
    height: calc(100vh - 55px);
  }

  .nav-links li {
    margin: 0.5rem 0; /* Margem reduzida */
 
  }

  .nav-links a {
    font-size: 1.1rem; 
    padding: 0.8rem;  
     display: block;
    width: 100%;
  }

  .menu-toggle {
    display: flex;
    position: relative;
    z-index: 1001;
  }

  .menu-toggle.active span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  /* CORREÇÃO: Padding para tablet */
  .hero-service {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding-top: 110px; /* Aumentado de 90px para 110px */
  }

  .hero-service .container {
    width: 100%;
    text-align: center;
  }

  .faq-item h3 {
    font-size: 1.1rem;
    line-height: 1.3;
  }

  .faq-item.active p {
    max-height: 300px;
  }

  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }

  header {
    z-index: 1000;
  }

  .hero-service h1 {
    font-size: 2.5rem;
  }

  .hero-service p {
    font-size: 1.1rem;
  }

  .faq {
    padding: 4rem 0;
  }

  .faq-item {
    margin-bottom: 1rem;
    padding: 1.5rem;
  }
}

@supports (-webkit-appearance:none) and (-webkit-text-stroke-color:transparent) {
  .hero-service {
    min-height: -webkit-fill-available;
  }

  .nav-links {
    height: -webkit-fill-available;
  }
}

.loading {
  opacity: 0;
  transition: opacity .3s ease-in-out;
}

.faq-item,
.faq-item p {
  overflow: hidden;
  transition: .3s;
}

.loaded {
  opacity: 1;
}

.services {
  padding: 4rem 0;
}

.credibility,
.results,
.why-choose-us {
  padding: 5rem 0;
}

.faq {
  padding: 8rem 0;
  background: linear-gradient(180deg, var(--gray-dark), var(--dark-bg));
}

.faq h2 {
  -webkit-background-clip: text;
  background: var(--gradient-accent);
  font-size: 3rem;
  text-align: center;
  margin-bottom: 4rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
}

.faq-item {
  background: rgba(255, 255, 255, .05);
  padding: 2.5rem;
  border-radius: 20px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .1);
  margin-bottom: 2rem;
  cursor: pointer;
}

.faq-item:hover {
  background: rgba(255, 255, 255, .08);
  transform: translateY(-2px);
}

.faq-item h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0;
  color: var(--white);
  align-items: center;
  justify-content: space-between;
}

.faq-item.active h3::after {
  transform: rotate(45deg);
}

.faq-item p {
  color: var(--gray-light);
  line-height: 1.6;
  font-size: 1.1rem;
  max-height: 0;
  opacity: 0;
  margin: 0;
  padding-top: 0;
}

.faq-item.active p {
  max-height: 200px;
  opacity: 1;
  margin-top: 1rem;
  padding-top: 1rem;
}

@media (max-width: 768px) {
  .services {
    padding: 3rem 0;
  }

  .cta-seo h2,
  .faq h2,
  .hero-service h1,
  .problems-solved h2,
  .seo-process h2 {
    font-size: 2.5rem;
  }

  .hero-service p {
    font-size: 1.1rem;
  }

  .step {
    gap: 1.5rem;
    text-align: center;
  }

  .step-number {
    margin: 0 auto;
  }

  .audit-form {
    padding: 0 1rem;
  }
}

