/* 
 * BASE STYLES - Agência Precisão
 * Estilos fundamentais, reset, container, etc.
 */

/* Reset e Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Cores principais */
  --cor-primaria: #00D1FF;
  --cor-secundaria: #F9B233;
  --cor-fundo-escuro: #0A1B2A;
  --cor-fundo-mais-escuro: #000000;
  --cor-texto-principal: #FFFFFF;
  --cor-texto-secundario: rgba(255, 255, 255, 0.8);
  --cor-texto-terciario: #B0BEC5;
  
  /* Gradientes */
  --gradiente-fundo: linear-gradient(135deg, var(--cor-fundo-escuro) 0%, var(--cor-fundo-mais-escuro) 100%);
  --gradiente-texto: linear-gradient(90deg, #FFFFFF, var(--cor-primaria));
  --gradiente-primario: linear-gradient(90deg, var(--cor-primaria), var(--cor-secundaria));
  
  /* Sombras */
  --sombra-padrao: 0 10px 25px rgba(0, 0, 0, 0.2);
  --sombra-hover: 0 15px 35px rgba(0, 0, 0, 0.3);
  --sombra-glow-primaria: 0 0 15px rgba(0, 209, 255, 0.5);
  --sombra-glow-secundaria: 0 0 10px rgba(249, 178, 51, 0.6);
  
  /* Espaçamentos */
  --espacamento-secao: 5rem 0;
  --border-radius-padrao: 16px;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--cor-texto-principal);
  overflow-x: hidden;
  background-color: var(--cor-fundo-mais-escuro);
}

/* Layout Container */
.container {
  /*  width: 90%; */
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Headings das Seções */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--gradiente-texto);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.section-header p {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--cor-texto-secundario);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.section-header p:last-child {
  margin-top: 1rem;
  font-weight: 400;
}

/* Highlight */
.highlight {
  position: relative;
  color: var(--cor-secundaria);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(249, 178, 51, 0.3);
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--cor-primaria);
  box-shadow: var(--sombra-glow-primaria);
}

/* Botão CTA Base */
.cta-button-hero {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  /*  padding: 16px 32px; */
  background-color: var(--cor-secundaria);
  color: var(--cor-fundo-escuro);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(249, 178, 51, 0.4);
  transition: all 0.3s ease;
  position: absolute;
  overflow: hidden;
  z-index: 5;
  bottom: -10%;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background-color: var(--cor-secundaria);
  color: var(--cor-fundo-escuro);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(249, 178, 51, 0.4);
  transition: all 0.3s ease;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: all 0.5s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(249, 178, 51, 0.5);
  background-color: #e9a82e;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.cta-button:hover i {
  transform: translateX(5px) rotate(10deg);
}

/* WhatsApp Button */
.whatsapp-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cor-primaria) 0%, #0088ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 209, 255, 0.4),
              0 0 20px rgba(0, 209, 255, 0.2);
  z-index: 99999;
  transition: all 0.3s ease;
  overflow: visible;
}

.whatsapp-button i {
  font-size: 28px;
  transition: transform 0.3s ease;
}

.whatsapp-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 209, 255, 0.5),
              0 0 30px rgba(0, 209, 255, 0.3);
}

.whatsapp-button:hover i {
  transform: rotate(10deg);
}

/* WhatsApp Tooltip */
.whatsapp-tooltip {
  position: absolute;
  background: var(--cor-fundo-escuro);
  color: white;
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 14px;
  right: 75px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 209, 255, 0.3);
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  border-width: 6px 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent transparent var(--cor-fundo-escuro);
}

.whatsapp-button:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Responsividade Base */
@media screen and (max-width: 1024px) {
  .section-header h2 {
    font-size: 2rem;
  }

  .section-header p {
    font-size: 1.1rem;
  }
  
  /* WhatsApp button tablet adjustments */
  .whatsapp-button {
    width: 55px;
    height: 55px;
  }
  
  .whatsapp-button i {
    font-size: 26px;
  }
}

@media screen and (max-width: 768px) {
  .section-header h2 {
    font-size: 1.8rem;
  }

  .section-header p {
    font-size: 1rem;
  }
  
  .cta-button {
    padding: 14px 28px;
    font-size: 1rem;
  }
  
  /* WhatsApp button mobile adjustments */
  .whatsapp-button {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }
  
  .whatsapp-button i {
    font-size: 24px;
  }
  
  .whatsapp-tooltip {
    display: none;
  }
}

@media screen and (max-width: 480px) {
  .section-header h2 {
    font-size: 1.5rem;
  }

  .section-header p {
    font-size: 0.9rem;
  }
  
  /* WhatsApp button smallest screen adjustments */
  .whatsapp-button {
    width: 45px;
    height: 45px;
    bottom: 15px;
    right: 15px;
  }
  
  .whatsapp-button i {
    font-size: 22px;
  }
}

/* Acessibilidade Base */
@media (prefers-reduced-motion: reduce) {
  .whatsapp-button,
  .whatsapp-button:hover,
  .whatsapp-button i,
  .whatsapp-tooltip,
  .cta-button::before,
  .cta-button:hover,
  .highlight::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* ===== Ajustes da primeira dobra ===== */

/* Reduz o logo da dobra */
#logo-precisao {
  width: clamp(180px, 22vw, 320px);
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Coloca o botão dentro do fluxo do texto */
.cta-button.inline {
  position: static !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  margin-top: 20px;
  padding: 16px 28px;
  font-size: 1.05rem;
}

/* Responsivo */
@media (max-width: 900px) {
  #logo-precisao {
    width: clamp(150px, 40vw, 260px);
  }
  .cta-button.inline {
    font-size: 1rem;
    padding: 14px 22px;
  }
}

/* ===== HERO – CTA embaixo da imagem (desktop e mobile) ===== */
#hero .hero-content{
  display: grid !important;
  grid-template-columns: 1.25fr 1fr;                 /* texto à esquerda, mídia à direita */
  grid-template-areas:
    "text  media"
    "text  cta";
  align-items: center;
  gap: 24px 48px;
}

/* Mapeia as áreas existentes */
#hero .hero-text{ grid-area: text; }
#hero .hero-logo-top{ grid-area: media; justify-self: center; }
#hero .cta-button-hero{
  grid-area: cta;               /* FICA DEBAIXO DA IMAGEM */
  justify-self: center;         /* centraliza sob o logo */
  position: static !important;  /* garante que não “flutue” */
  margin-top: 12px;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  line-height: normal !important;
  overflow: visible !important;
}

/* O link continua com o estilo global dos seus botões */
#hero .cta-button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Responsivo: empilha tudo ordenado */
@media (max-width: 992px){
  #hero .hero-content{
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "text"
      "cta";
    gap: 18px;
  }
  #hero .hero-logo-top,
  #hero .cta-button-hero{ justify-self: center; }
}

/* ===== HERO – remover a linha do brilho do CTA ===== */
#hero .cta-button {
  position: relative;   /* garante contexto pro pseudo */
  overflow: hidden;     /* segurança extra */
}

/* desliga o brilho só aqui */
#hero .cta-button::before,
#hero .cta-button:hover::before {
  content: none !important;
}

/* === MOBILE — engrossar o botão para cima (discreto) === */
@media (max-width: 768px){
  #hero .cta-button{
    /* +4px em cima, -4px embaixo */
    padding: 16px 24px 12px;
    margin-top: -4px;   /* compensa para “crescer” para cima */
    line-height: 1.05;
  }
}

/* telas bem pequenas: ajuste proporcional */
@media (max-width: 420px){
  #hero .cta-button{
    padding: 15px 22px 11px; /* +4 / -4 também */
    margin-top: -4px;
  }
}

/* ===== HERO — telas grandes (27"+) ===== */
@media (min-width: 1440px){
  /* H1 maior e com respiro */
  #hero .hero-text h1{
    font-size: clamp(3.6rem, 3.2vw, 5rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    max-width: 22ch;           /* mantém linhas curtas e impactantes */
  }

  /* Subtítulo mais legível */
  #hero .hero-text h2{
    font-size: clamp(1.6rem, 1.2vw, 2.2rem);
    line-height: 1.25;
    max-width: 34ch;
  }

  /* Parágrafo com leve ganho de tamanho */
  #hero .hero-text p{
    font-size: clamp(1.05rem, 0.75vw, 1.3rem);
    line-height: 1.6;
    max-width: 52ch;
  }

  /* Sublinado do destaque um pouco mais grosso no desktop grande */
  #hero .hero-text .highlight::after{
    height: 3px;
  }
}

/* bump extra para resoluções 1920px+ */
@media (min-width: 1920px){
  #hero .hero-text h1{ font-size: clamp(4rem, 3.4vw, 5.6rem); }
  #hero .hero-text h2{ font-size: clamp(1.7rem, 1.25vw, 2.4rem); }
  #hero .hero-text p { font-size: clamp(1.1rem, 0.8vw, 1.35rem); }
}

/* ===== HERO — override seguro p/ telas grandes (27"+) ===== */
@media (min-width: 1440px){
  #hero .hero-text h1{
    font-size: clamp(3rem, 2.4vw, 4.2rem) !important;
    line-height: 1.10 !important;
    letter-spacing: -0.01em;
    max-width: 20ch !important;
  }

  /* remove a linha azul do destaque no desktop grande */
  #hero .hero-text .highlight::after{
    content: none !important;
    display: none !important;
  }
}

@media (min-width: 1920px){
  #hero .hero-text h1{
    font-size: clamp(3.2rem, 2.2vw, 4.6rem) !important;
  }
}

/* (opcional) Se quiser manter uma linha sutil amarela, use isto em vez do "content:none" acima:
#hero .hero-text .highlight::after{
  height: 2px !important;
  background: var(--cor-secundaria) !important;
  box-shadow: none !important;
}
*/

/* ===== HERO — Tipografia para monitores grandes ===== */

/* 1600px+ (27" QHD) */
@media (min-width: 1600px){
  #hero .hero-text h1{
    font-size: clamp(3.4rem, 2.7vw, 4.8rem) !important;
    line-height: 1.12;
    max-width: 20ch;
  }
  #hero .hero-text h2{
    font-size: clamp(1.6rem, 1.15vw, 2.1rem) !important;
    line-height: 1.28;
    max-width: 34ch;
  }
  #hero .hero-text p{
    font-size: clamp(1.05rem, 0.85vw, 1.25rem) !important;
    line-height: 1.6;
    max-width: 52ch;
  }
}

/* 1920px+ (27–32" Full HD esticado / 4K com escala) */
@media (min-width: 1920px){
  #hero .hero-text h1{ font-size: clamp(3.8rem, 2.8vw, 5.2rem) !important; }
  #hero .hero-text h2{ font-size: clamp(1.7rem, 1.2vw, 2.3rem) !important; }
  #hero .hero-text p { font-size: clamp(1.1rem, 0.9vw, 1.3rem) !important; }
}

/* 2560px+ (27–32" QHD/4K sem muita escala) */
@media (min-width: 2560px){
  #hero .hero-text h1{ font-size: clamp(4.2rem, 3.1vw, 5.8rem) !important; }
  #hero .hero-text h2{ font-size: clamp(1.9rem, 1.25vw, 2.5rem) !important; }
  #hero .hero-text p { font-size: clamp(1.15rem, 0.95vw, 1.35rem) !important; }
}

