/*
Theme Name: AN Tecnologia
Theme URI: https://antecnologia.com.br
Author: AN Tecnologia
Author URI: https://www.instagram.com/a.tecnologia.si
Description: Tema para a AN Tecnologia — segurança eletrônica, automação, controle de acesso, áudio/vídeo e conectividade. Home institucional + 5 páginas de serviço otimizadas para SEO e campanhas do Google Ads (title tag, meta description, dados estruturados Schema.org).
Version: 2.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: an-tecnologia
*/

/* ==========================================================================
   TOKENS
   ========================================================================== */
:root{
  --navy:        #001B3D;
  --navy-deep:   #00122b;
  --teal:        #0097B2;
  --teal-light:  #4FC3D9;
  --mist:        #F4F8FA;
  --slate:       #8CA0AE;
  --slate-dark:  #4A5A66;
  --white:       #FFFFFF;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

  --radius: 18px;
  --container: 1180px;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family: var(--font-display); margin:0; line-height:1.08; letter-spacing:-0.01em; }
p{ margin:0; }
.wrap{ max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.eyebrow{
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
a:focus-visible, button:focus-visible{
  outline: 2px solid var(--teal-light);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-family: var(--font-display);
  font-weight:600; font-size:15.5px;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor:pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-primary{ background: var(--teal); color: var(--white); box-shadow: 0 10px 24px -10px rgba(0,151,178,.65); }
.btn-primary:hover{ background: var(--teal-light); transform: translateY(-2px); }
.btn-ghost{ background: transparent; color: var(--white); border-color: rgba(255,255,255,.35); }
.btn-ghost:hover{ border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-dark{ background: var(--navy); color:var(--white); }
.btn-dark:hover{ background: var(--navy-deep); transform: translateY(-2px); }

/* ==========================================================================
   SIGNAL MARK — signature motif (echoes the arcs in the AN logo)
   ========================================================================== */
.signal{ position:relative; width: 46px; height: 46px; flex-shrink:0; }
.signal span{
  position:absolute; left:50%; bottom:0; transform: translateX(-50%);
  border: 2.5px solid var(--teal);
  border-bottom-color: transparent;
  border-radius: 50%;
  opacity:.35;
}
.signal span:nth-child(1){ width:14px; height:14px; opacity:1; }
.signal span:nth-child(2){ width:26px; height:26px; opacity:.65; }
.signal span:nth-child(3){ width:38px; height:38px; opacity:.35; }

.radar{
  position:absolute; inset:0; pointer-events:none;
}
.radar span{
  position:absolute; border-radius:50%;
  border:1.5px solid rgba(79,195,217,.5);
  left:50%; top:50%;
  transform: translate(-50%,-50%);
  animation: ping 3.6s cubic-bezier(.2,.6,.3,1) infinite;
  opacity:0;
}
.radar span:nth-child(2){ animation-delay: 1.2s; }
.radar span:nth-child(3){ animation-delay: 2.4s; }
@keyframes ping{
  0%{ width:40px; height:40px; opacity:.9; }
  100%{ width:520px; height:520px; opacity:0; }
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header{
  position:sticky; top:0; z-index:50;
  background: rgba(0,27,61,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .wrap{ display:flex; align-items:center; justify-content:space-between; height:78px; }
.brand{ display:flex; align-items:center; gap:12px; }
.brand img{ height:38px; width:auto; }
.brand-name{ font-family: var(--font-display); color:var(--white); font-weight:700; font-size:17px; line-height:1.15; }
.brand-name small{ display:block; font-family:var(--font-body); font-weight:400; color: var(--slate); font-size:11.5px; letter-spacing:.03em; }
.main-nav ul{ display:flex; gap:32px; }
.main-nav a{ color: rgba(255,255,255,.82); font-size:14.5px; font-weight:500; transition:color .15s; }
.main-nav a:hover{ color: var(--teal-light); }
.header-cta{ display:flex; align-items:center; gap:18px; }
.nav-toggle{ display:none; }

@media (max-width: 880px){
  .main-nav{ display:none; }
  .header-cta .btn-ghost{ display:none; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero{
  position:relative;
  background: radial-gradient(120% 140% at 78% 20%, #012a54 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: var(--white);
  overflow:hidden;
  padding: 108px 0 96px;
}
.hero .radar{ right: -140px; top: 50%; width: 560px; height:560px; }
.hero-grid{ display:grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items:center; position:relative; z-index:2; }
.hero-eyebrow{ color: var(--teal-light); margin-bottom:22px; }
.hero-eyebrow .signal{ width:22px; height:22px; }
.hero-eyebrow .signal span{ border-width:1.5px; }
.hero-eyebrow .signal span:nth-child(1){ width:7px; height:7px; }
.hero-eyebrow .signal span:nth-child(2){ width:13px; height:13px; }
.hero-eyebrow .signal span:nth-child(3){ width:19px; height:19px; }
.hero h1{ font-size: clamp(34px, 4.4vw, 56px); font-weight:700; }
.hero h1 em{ font-style:normal; color: var(--teal-light); }
.hero-lede{ margin-top:22px; max-width:480px; color: rgba(255,255,255,.75); font-size:17px; line-height:1.6; }
.hero-actions{ display:flex; gap:16px; margin-top:38px; flex-wrap:wrap; }
.hero-stats{ display:flex; gap:34px; margin-top:56px; }
.hero-stats div{ border-left:1px solid rgba(255,255,255,.18); padding-left:16px; }
.hero-stats strong{ display:block; font-family:var(--font-display); font-size:26px; color:var(--white); }
.hero-stats span{ font-size:12.5px; color: var(--slate); }

.hero-panel{
  position:relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6);
}
.hero-panel img{ width:100%; height:100%; object-fit:cover; }
.hero-panel.contain{ background: var(--navy); }
.hero-panel.contain img{ object-fit: contain; padding: 6%; }
.hero-panel::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(0deg, rgba(0,20,45,.85) 0%, rgba(0,20,45,0) 45%);
}
.hero-panel .badge{
  position:absolute; left:20px; bottom:20px; z-index:2;
  background: rgba(0,27,61,.75);
  border:1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  padding:10px 16px; border-radius:12px;
  font-family: var(--font-mono); font-size:12px; color:var(--white);
  display:flex; align-items:center; gap:8px;
}
.dot{ width:7px;height:7px;border-radius:50%; background: var(--teal-light); box-shadow:0 0 0 4px rgba(79,195,217,.25); }

@media (max-width: 880px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-panel{ aspect-ratio: 16/10; }
}

/* ==========================================================================
   TRUST STRIP
   ========================================================================== */
.trust-strip{ background: var(--white); border-bottom:1px solid #E6EDF0; }
.trust-strip .wrap{ display:flex; align-items:center; justify-content:space-between; padding:20px 28px; flex-wrap:wrap; gap:16px; }
.trust-strip p{ font-size:13.5px; color: var(--slate-dark); }
.trust-strip strong{ color:var(--navy); }
.trust-badge{ display:flex; align-items:center; gap:10px; font-family:var(--font-mono); font-size:12.5px; color:var(--navy); border:1px solid #DCE7EB; padding:8px 14px; border-radius:999px; }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services{ padding: 100px 0 90px; }
.section-head{ max-width:640px; margin-bottom:56px; }
.section-head .eyebrow{ color: var(--teal); margin-bottom:16px; }
.section-head h2{ font-size: clamp(28px, 3.4vw, 40px); color:var(--navy); }
.section-head p{ margin-top:16px; color: var(--slate-dark); font-size:16px; line-height:1.6; }

.service-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:22px; }
.service-card{
  background: var(--white);
  border: 1px solid #E6EDF0;
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover{ transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(0,27,61,.35); border-color: var(--teal-light); }
.service-card .icon{
  width:52px; height:52px; border-radius:14px;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  display:flex; align-items:center; justify-content:center;
  margin-bottom:20px;
}
.service-card .icon svg{ width:26px; height:26px; stroke: var(--white); fill:none; stroke-width:1.7; }
.service-card h3{ font-size:19px; color:var(--navy); margin-bottom:8px; }
.service-card p{ font-size:14px; color: var(--slate-dark); line-height:1.55; }
.service-card .more{
  display:inline-flex; align-items:center; gap:6px;
  margin-top:16px; font-family: var(--font-display); font-weight:600; font-size:13.5px;
  color: var(--teal);
}
.service-card .more:hover{ color: var(--navy); }

@media (max-width: 980px){ .service-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px){ .service-grid{ grid-template-columns: 1fr; } }

/* ==========================================================================
   PROCESS / HOW WE WORK
   ========================================================================== */
.process{ background: var(--white); padding: 90px 0; border-top:1px solid #E6EDF0; border-bottom:1px solid #E6EDF0; }
.process-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap:0; }
.process-step{ padding: 0 26px; border-left:1px solid #E6EDF0; }
.process-step:first-child{ border-left:none; padding-left:0; }
.process-step .num{ font-family:var(--font-mono); color: var(--teal); font-size:13px; margin-bottom:14px; display:block; }
.process-step h4{ font-size:17px; color:var(--navy); margin-bottom:10px; }
.process-step p{ font-size:13.5px; color:var(--slate-dark); line-height:1.55; }
@media (max-width: 880px){
  .process-grid{ grid-template-columns: 1fr 1fr; gap: 30px 0; }
  .process-step{ border-left:none; padding-left:0; }
}
@media (max-width: 520px){ .process-grid{ grid-template-columns: 1fr; } }

/* ==========================================================================
   CONTACT / CTA
   ========================================================================== */
.contact{
  position:relative;
  background: var(--navy);
  color: var(--white);
  padding: 100px 0;
  overflow:hidden;
}
.contact .radar{ left:-120px; top:20%; width:480px; height:480px; }
.contact-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:60px; position:relative; z-index:2; }
.contact h2{ font-size: clamp(28px,3.4vw,40px); }
.contact-lede{ margin-top:18px; color: rgba(255,255,255,.7); font-size:16px; line-height:1.6; max-width:440px; }
.contact-actions{ margin-top:34px; display:flex; gap:14px; flex-wrap:wrap; }

.contact-card{
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 34px;
}
.contact-row{ display:flex; align-items:center; gap:16px; padding:16px 0; border-bottom:1px solid rgba(255,255,255,.1); }
.contact-row:last-child{ border-bottom:none; }
.contact-row .icon-sm{ width:38px; height:38px; border-radius:10px; background:rgba(79,195,217,.14); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.contact-row .icon-sm svg{ width:18px; height:18px; stroke:var(--teal-light); fill:none; stroke-width:1.8; }
.contact-row a, .contact-row span{ font-size:15px; color: rgba(255,255,255,.92); }
.contact-row small{ display:block; font-family:var(--font-mono); font-size:11px; letter-spacing:.08em; text-transform:uppercase; color: var(--slate); margin-bottom:3px; }

@media (max-width: 880px){ .contact-grid{ grid-template-columns:1fr; } }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer{ background: var(--navy-deep); color: rgba(255,255,255,.6); padding: 40px 0; }
.footer-grid{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; }
.footer-grid .brand img{ height:26px; }
.footer-grid .brand-name{ font-size:14px; }
.footer-grid .brand-name small{ color: rgba(255,255,255,.4); }
.footer-legal{ font-size:12px; font-family: var(--font-mono); color: rgba(255,255,255,.35); }
.footer-social{ display:flex; gap:14px; }
.footer-social a{ font-size:13px; color: rgba(255,255,255,.65); transition:color .15s; }
.footer-social a:hover{ color: var(--teal-light); }

/* ==========================================================================
   PÁGINA DE SERVIÇO (landing page — SEO / Google Ads)
   ========================================================================== */
.service-breadcrumb{ background: var(--white); border-bottom:1px solid #E6EDF0; }
.service-breadcrumb .wrap{ padding: 16px 28px; font-size:13px; color: var(--slate-dark); }
.service-breadcrumb a{ color: var(--teal); }

.service-hero{
  background: radial-gradient(120% 140% at 78% 20%, #012a54 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: var(--white);
  padding: 76px 0 70px;
}
.service-hero .eyebrow{ color: var(--teal-light); margin-bottom:18px; }
.service-hero h1{ font-size: clamp(30px, 4vw, 44px); max-width: 760px; }
.service-hero .subtitle{ margin-top:16px; font-family: var(--font-mono); font-size:14px; color: var(--teal-light); letter-spacing:.02em; }
.service-hero p{ margin-top:18px; max-width: 620px; color: rgba(255,255,255,.75); font-size:16.5px; line-height:1.6; }
.service-hero .hero-actions{ display:flex; gap:16px; margin-top:32px; flex-wrap:wrap; }

.service-body{ padding: 80px 0; background: var(--mist); }
.service-body .wrap{ display:grid; grid-template-columns: 1.3fr .9fr; gap:56px; align-items:start; }
.service-list h2{ font-size:24px; color: var(--navy); margin-bottom:22px; }
.service-list ul{ display:flex; flex-direction:column; gap:16px; }
.service-list li{
  display:flex; gap:14px; align-items:flex-start;
  background: var(--white); border:1px solid #E6EDF0; border-radius:14px; padding:18px 20px;
  font-size:15px; color: var(--slate-dark); line-height:1.5;
}
.service-list li .check{
  flex-shrink:0; width:22px; height:22px; border-radius:50%;
  background: var(--teal); color:var(--white); display:flex; align-items:center; justify-content:center;
  font-size:12px; margin-top:1px;
}
.editorial-content{ margin-top:34px; font-size:15px; color: var(--slate-dark); line-height:1.7; }
.editorial-content h2, .editorial-content h3{ color:var(--navy); margin: 22px 0 10px; font-family: var(--font-display); }
.editorial-content p{ margin-bottom:14px; }

.service-aside{
  background: var(--navy); color: var(--white);
  border-radius: var(--radius); padding: 34px;
  position: sticky; top: 100px;
}
.service-aside h3{ font-size:20px; margin-bottom:12px; }
.service-aside p{ color: rgba(255,255,255,.7); font-size:14.5px; line-height:1.6; margin-bottom:24px; }
.service-aside .btn{ width:100%; justify-content:center; }
.service-aside .btn + .btn{ margin-top:12px; }
.service-aside .trust-line{ margin-top:22px; padding-top:20px; border-top:1px solid rgba(255,255,255,.12); font-family: var(--font-mono); font-size:12px; color: var(--slate); }

.related-services{ background: var(--white); padding: 70px 0; border-top:1px solid #E6EDF0; }
.related-services h2{ font-size:22px; color: var(--navy); margin-bottom:26px; }
.related-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap:16px; }
.related-grid a{
  display:block; background: var(--mist); border-radius:14px; padding:20px;
  font-family: var(--font-display); font-weight:600; font-size:14.5px; color: var(--navy);
  border:1px solid #E6EDF0; transition: border-color .15s, transform .15s;
}
.related-grid a:hover{ border-color: var(--teal); transform: translateY(-2px); }

@media (max-width: 900px){
  .service-body .wrap{ grid-template-columns: 1fr; }
  .service-aside{ position:static; }
  .related-grid{ grid-template-columns: repeat(2,1fr); }
}

.footer-legal-links{
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
  padding-top:6px;
  margin-top:6px;
  border-top:0px solid rgba(255,255,255,.08);
}
.footer-legal-links a{
  font-size:12px;
  color: rgba(255,255,255,.45);
  text-decoration:none;
}
.footer-legal-links a:hover{
  color: #4FC3D9;
}