/* ============================================================
   BioQuality Controle de Pragas — styles.css
   Versão: 2.0 | Semântica HTML5 + SEO + Tráfego Pago
   ============================================================ */

/* ── Tokens ── */
:root {
  --navy:     #1a2e6e;
  --royal:    #1e4db7;
  --sky:      #3a7bd5;
  --red:      #d32f2f;
  --crimson:  #b71c1c;
  --white:    #ffffff;
  --offwhite: #f4f6fb;
  --light:    #dce8f7;
  --wa-green: #25d366;
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Base ── */
body {
  font-family: 'Lato', sans-serif;
  background: var(--navy);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ── Background gradients ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%,  rgba(30,77,183,.45) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 85% 80%,  rgba(211,47,47,.28) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 50% 50%,  rgba(26,46,110,1)   0%, transparent 100%);
  z-index: 0;
  pointer-events: none;
}

/* ── Hex grid texture ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='104' viewBox='0 0 60 104'%3E%3Cpath d='M30 2 L58 18 L58 50 L30 66 L2 50 L2 18 Z' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3Cpath d='M30 38 L58 54 L58 86 L30 102 L2 86 L2 54 Z' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3C/svg%3E");
  z-index: 0;
  pointer-events: none;
}

/* ── Layout wrapper ── */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Main container ── */
.container {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  flex: 1;
}

/* ── Skip link (acessibilidade) ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--royal);
  color: var(--white);
  padding: 8px 16px;
  font-size: .9rem;
  z-index: 9999;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ============================================================
   HEADER / LOGO
   ============================================================ */
.site-header {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: center;
}

.logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: fadeDown .9s ease both;
}

.logo-img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 8px 32px rgba(211,47,47,.4)) drop-shadow(0 2px 8px rgba(0,0,0,.5));
  animation: pulse 3.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,100% { filter: drop-shadow(0 8px 32px rgba(211,47,47,.4)) drop-shadow(0 2px 8px rgba(0,0,0,.5)); }
  50%      { filter: drop-shadow(0 12px 48px rgba(211,47,47,.7)) drop-shadow(0 4px 16px rgba(30,77,183,.4)); }
}

.brand-name {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1;
  text-align: center;
}
.brand-name .bio  { color: var(--sky); }
.brand-name .qual { color: var(--white); }
.brand-name .ity  { color: var(--red); }

.brand-sub {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(.8rem, 2vw, 1rem);
  font-weight: 400;
  letter-spacing: .35em;
  color: var(--light);
  text-transform: uppercase;
  opacity: .8;
}

/* ============================================================
   DIVIDER
   ============================================================ */
.divider {
  margin-top: -32px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--royal), var(--red), var(--royal), transparent);
  border-radius: 2px;
  animation: shimmer 3s linear infinite;
  background-size: 200% 100%;
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

/* ============================================================
   BADGE — EM CONSTRUÇÃO
   ============================================================ */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(211,47,47,.15);
  border: 1.5px solid rgba(211,47,47,.5);
  border-radius: 100px;
  padding: 8px 22px;
  font-family: 'Oswald', sans-serif;
  font-size: .9rem;
  letter-spacing: .18em;
  color: #ff8a80;
  animation: fadeUp .9s .2s ease both;
}
.status-badge .icon-spin { animation: spin 6s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   HERO — TEXTO PRINCIPAL
   ============================================================ */
.hero-section {
  text-align: center;
  animation: fadeUp .9s .35s ease both;
  max-width: 680px;
}

.hero-section h1 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-section h1 .highlight { color: var(--sky); }

.hero-section p {
  font-size: clamp(.95rem, 2vw, 1.1rem);
  line-height: 1.8;
  color: var(--light);
  font-weight: 300;
}
.hero-section p strong { color: var(--white); font-weight: 700; }

/* ============================================================
   SERVIÇOS
   ============================================================ */
.services-section {
  width: 100%;
  animation: fadeUp .9s .5s ease both;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  list-style: none;
}

/* Título visível para leitores de tela / SEO */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.service-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 24px 20px;
  width: 140px;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: transform .3s, background .3s, border-color .3s;
  cursor: default;
}
.service-card:hover {
  transform: translateY(-6px);
  background: rgba(30,77,183,.25);
  border-color: var(--sky);
}
.service-card .card-icon {
  width: 2rem;
  height: 2rem;
  font-size: 2rem;
  color: var(--sky);
  fill: var(--sky);
  margin: 0 auto 10px;
  display: block;
  transition: color .3s, fill .3s;
}
.service-card:hover .card-icon {
  color: var(--red);
  fill: var(--red);
}
.service-card .card-label {
  font-size: .78rem;
  letter-spacing: .05em;
  color: var(--light);
  font-weight: 700;
  text-transform: uppercase;
}

/* ============================================================
   CAPTURA DE E-MAIL / CTA
   ============================================================ */
.notify-section {
  width: 100%;
  max-width: 560px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  padding: 36px 32px;
  text-align: center;
  backdrop-filter: blur(12px);
  animation: fadeUp .9s .65s ease both;
}

.notify-section h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: .04em;
}
.notify-section p {
  font-size: .9rem;
  color: var(--light);
  margin-bottom: 24px;
  line-height: 1.6;
}

.form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.email-input {
  flex: 1 1 220px;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.1);
  color: var(--white);
  font-family: 'Lato', sans-serif;
  font-size: .95rem;
  outline: none;
  transition: border-color .3s, background .3s;
}
.email-input::placeholder { color: rgba(255,255,255,.45); }
.email-input:focus {
  border-color: var(--sky);
  background: rgba(30,77,183,.2);
}

.cta-btn {
  padding: 14px 28px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, var(--red), var(--crimson));
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .08em;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, filter .2s;
  flex-shrink: 0;
  white-space: nowrap;
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(211,47,47,.5);
  filter: brightness(1.1);
}
.cta-btn:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
}

.success-msg {
  display: none;
  margin-top: 14px;
  color: #a5d6a7;
  font-size: .9rem;
  font-weight: 700;
}
.error-msg {
  display: none;
  margin-top: 14px;
  color: #ff8a80;
  font-size: .88rem;
  font-weight: 700;
}

/* ============================================================
   REDES SOCIAIS
   ============================================================ */
.social-nav {
  animation: fadeUp .9s .8s ease both;
}

.social-list {
  display: flex;
  gap: 16px;
  list-style: none;
}

.social-link {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.07);
  transition: transform .25s, background .25s, border-color .25s, color .25s;
}
.social-link:hover     { transform: translateY(-4px) scale(1.1); }
.social-link.wa:hover  { background: var(--wa-green); border-color: var(--wa-green); }
.social-link.ig:hover  { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); border-color: transparent; }
.social-link:focus-visible      { outline: 2px solid var(--sky); outline-offset: 3px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px 24px 40px;
  font-size: .78rem;
  color: rgba(255,255,255,.35);
  letter-spacing: .04em;
  line-height: 1.8;
}
.site-footer .brand-highlight { color: var(--red); }

/* ============================================================
   WHATSAPP FLUTUANTE
   ============================================================ */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.wa-bubble {
  background: var(--white);
  color: var(--navy);
  font-family: 'Lato', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 12px 12px 0 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
  white-space: nowrap;
  animation: blink 2.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes blink {
  0%,100% { opacity: 1; }
  50%      { opacity: .7; }
}

.wa-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wa-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 6px 28px rgba(37,211,102,.55);
  transition: transform .25s, box-shadow .25s;
  animation: waPop .4s 1.2s cubic-bezier(.175,.885,.32,1.275) both;
}
.wa-btn:hover {
  transform: scale(1.12) rotate(-8deg);
  box-shadow: 0 10px 36px rgba(37,211,102,.75);
}
.wa-btn:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

@keyframes waPop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* ============================================================
   KEYFRAMES GERAIS
   ============================================================ */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 540px) {
  .notify-section     { padding: 28px 20px; }
  .form-row           { flex-direction: column; }
  .cta-btn            { width: 100%; }
  .service-card       { width: 120px; padding: 18px 12px; }
}
