/*
Theme Name: ASX Componentes
Author: Willy Guimarães
Description: Tema institucional personalizado da ASX Componentes.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: asx-componentes
*/
:root{--navy:#080d2b;--navy2:#111844;--blue:#00a9f4;--cyan:#12d9ff;--text:#12204a;--muted:#5e6b88;--soft:#eef7ff;--border:#dce8f6;--shadow:0 12px 35px rgba(11,33,74,.08)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);line-height:1.6}a{text-decoration:none;color:inherit}img{max-width:100%;height:auto}.container{width:min(1180px,calc(100% - 40px));margin:auto}.section{padding:88px 0}.eyebrow{display:inline-block;color:var(--blue);font-size:.78rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;margin-bottom:12px}.section-title{font-size:clamp(2rem,3.5vw,3.25rem);line-height:1.08;letter-spacing:-.035em;margin:0 0 18px;font-weight:800}.section-copy{color:var(--muted);max-width:650px}.btn{display:inline-flex;align-items:center;gap:10px;border-radius:999px;padding:14px 22px;font-weight:750;border:1px solid transparent;transition:.25s}.btn-primary{background:linear-gradient(135deg,var(--blue),var(--cyan));color:#03132e;box-shadow:0 12px 28px #00a9f440}.btn-primary:hover{transform:translateY(-2px)}.btn-outline{border-color:#65cfff;color:var(--blue)}.btn-outline:hover{background:#effaff}.btn-dark-outline{border-color:#ffffff55;color:#fff}.btn-dark-outline:hover{border-color:var(--cyan);color:var(--cyan)}
.site-header{position:absolute;z-index:20;left:0;right:0;top:0;background:#070d2b88;backdrop-filter:blur(14px);border-bottom:1px solid #ffffff14}.header-inner{min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{flex:none}.brand img{display:block;width:136px;max-height:50px;object-fit:contain;filter:none}.primary-nav ul{display:flex;gap:24px;list-style:none;margin:0;padding:0}.primary-nav a{color:#fff;font-size:.92rem;font-weight:650}.primary-nav a:hover{color:var(--cyan)}.menu-toggle{display:none;background:none;border:0;color:#fff;font-size:1.7rem}.header-actions{display:flex;align-items:center;gap:8px;flex:none}.header-action{display:inline-flex;align-items:center;gap:7px;padding:9px 11px;border:1px solid #ffffff26;border-radius:999px;color:#edf7ff;background:#ffffff0a;font-size:.76rem;font-weight:750;line-height:1;transition:.2s}.header-action svg{width:16px;height:16px;fill:currentColor;flex:none}.header-action:hover{border-color:var(--cyan);background:#12d9ff1a;color:var(--cyan);transform:translateY(-1px)}.header-action--whatsapp:hover{border-color:#4ade80;color:#4ade80}.header-action--portal{background:#00a9f421;border-color:#00a9f45c}
.hero{position:relative;overflow:hidden;min-height:680px;padding:150px 0 92px;background:radial-gradient(circle at 77% 48%,#00a9f433,transparent 25%),radial-gradient(circle at 92% 15%,#12d9ff1f,transparent 20%),linear-gradient(120deg,#060c2b,#07163b 58%,#06102e);color:#fff}.hero:before{content:"";position:absolute;inset:0;opacity:.22;background-image:linear-gradient(#12d9ff1f 1px,transparent 1px),linear-gradient(90deg,#12d9ff1f 1px,transparent 1px);background-size:70px 70px}.hero-grid{position:relative;z-index:2;display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:center}.hero h1{font-size:clamp(3rem,6vw,5.3rem);line-height:.98;letter-spacing:-.05em;margin:0 0 24px}.hero h1 span{color:var(--cyan)}.hero-copy{font-size:1.08rem;color:#d6def5;max-width:620px;margin:0 0 30px}.hero-actions{display:flex;gap:13px;flex-wrap:wrap}.hero-visual{position:relative;min-height:410px;display:grid;place-items:center}.circuit-orbit{width:min(430px,100%);aspect-ratio:1;border-radius:50%;position:relative;background:radial-gradient(circle,#00a9f438,#00a9f408 55%,transparent 70%);border:1px solid #12d9ff59;box-shadow:0 0 100px #00a9f438,inset 0 0 80px #12d9ff14}.circuit-orbit:before,.circuit-orbit:after{content:"";position:absolute;inset:11%;border:1px solid #12d9ff40;border-radius:50%}.circuit-orbit:after{inset:25%;border-style:dashed}.circuit-logo{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:150px;filter:drop-shadow(0 0 22px #00a9f480)}.node{position:absolute;padding:8px 13px;border:1px solid #11bff5;border-radius:9px;background:#041131e8;color:#fff;font-size:.75rem;font-weight:750}.n1{top:8%;left:9%}.n2{top:18%;right:0}.n3{bottom:23%;right:-3%}.n4{bottom:8%;left:12%}.pixels{position:absolute;width:140px;height:210px;right:3%;top:3%;opacity:.85;background-image:radial-gradient(circle,var(--cyan) 0 4px,transparent 5px);background-size:28px 28px}
.solution-head{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:end;margin-bottom:42px}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.card{border:1px solid var(--border);border-radius:18px;padding:28px;background:#fff;box-shadow:var(--shadow);transition:.25s}.card:hover{transform:translateY(-6px);box-shadow:0 20px 45px #0b214a22;border-color:#b9def5}.icon-box{width:50px;height:50px;display:grid;place-items:center;border-radius:14px;background:#eaf8ff;color:var(--blue);font-size:1.4rem;margin-bottom:22px}.card h3{font-size:1.15rem;margin:0 0 10px;line-height:1.25}.card p{font-size:.92rem;color:var(--muted);margin:0 0 20px}.card-link{color:var(--blue);font-weight:750;font-size:.88rem}
.why{background:linear-gradient(135deg,#eff8ff,#f8fbff)}.why-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:75px;align-items:center}.why-list{display:grid;grid-template-columns:1fr 1fr;gap:30px}.feature{display:grid;grid-template-columns:52px 1fr;gap:16px}.feature-icon{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;border:1px solid #9cdcf8;background:#e4f8ff;color:#007dc1;font-weight:800}.feature h3{margin:0 0 5px;font-size:1rem}.feature p{margin:0;color:var(--muted);font-size:.88rem}
.tech{background:linear-gradient(125deg,#050b28,#071b48);color:#fff;overflow:hidden}.tech-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:60px;align-items:center}.tech .section-copy{color:#c9d7f4}.tech-graphic{min-height:380px;position:relative;display:grid;place-items:center}.tech-core{width:190px;height:190px;border-radius:30px;display:grid;place-items:center;background:linear-gradient(145deg,#0d4f9a,#05132f);border:1px solid var(--cyan);box-shadow:0 0 60px #00a9f452;z-index:2}.tech-core img{width:95px;filter:brightness(0) invert(1)}.tech-pill{position:absolute;min-width:125px;text-align:center;padding:11px 14px;border:1px solid #12d9ff8c;border-radius:9px;background:#020e2acc;font-size:.78rem;font-weight:700}.tp1{left:0;top:25%}.tp2{left:0;top:48%}.tp3{left:0;top:71%}.tp4{right:0;top:18%}.tp5{right:0;top:42%}.tp6{right:0;top:66%}
.blog-head{display:flex;align-items:end;justify-content:space-between;gap:30px;margin-bottom:35px}.posts{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.post{border:1px solid var(--border);border-radius:16px;overflow:hidden;background:#fff;box-shadow:var(--shadow)}.post-thumb{height:170px;background:linear-gradient(135deg,#07143a,#0a66a5);overflow:hidden}.post-thumb img{width:100%;height:100%;object-fit:cover}.post-body{padding:22px}.post-tag{display:inline-block;color:#007fc4;background:#e7f8ff;padding:4px 8px;border-radius:999px;font-size:.7rem;font-weight:800;margin-bottom:12px}.post h3{margin:0 0 9px;line-height:1.3;font-size:1.05rem}.post p{margin:0 0 14px;color:var(--muted);font-size:.88rem}.post-meta{font-size:.76rem;color:#77849d}.cta{padding:55px 0;background:linear-gradient(100deg,#0649a5,#009de7);color:#fff}.cta-inner{display:flex;align-items:center;justify-content:space-between;gap:30px}.cta h2{margin:0 0 5px;font-size:clamp(1.8rem,3vw,2.8rem);line-height:1.05}.cta p{margin:0;color:#dff6ff}.site-footer{background:#050a25;color:#b9c6e4;padding:60px 0 25px}.footer-grid{display:grid;grid-template-columns:1.5fr repeat(3,1fr);gap:45px;padding-bottom:45px}.footer-brand img{width:190px;filter:brightness(0) invert(1);margin-bottom:15px}.footer-brand p{max-width:300px;font-size:.86rem}.footer-col h3{color:#fff;font-size:.9rem;margin:0 0 14px}.footer-col ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}.footer-col a{font-size:.83rem}.footer-col a:hover{color:var(--cyan)}.footer-bottom{border-top:1px solid #ffffff17;padding-top:20px;display:flex;justify-content:space-between;gap:20px;font-size:.76rem}
@media(max-width:980px){.primary-nav{display:none}.menu-toggle{display:block}.primary-nav.is-open{display:block;position:absolute;left:20px;right:20px;top:70px;background:#080d2b;border:1px solid #ffffff1f;border-radius:16px;padding:18px}.primary-nav.is-open ul{flex-direction:column;align-items:flex-start}.hero-grid,.tech-grid,.why-grid{grid-template-columns:1fr}.hero{min-height:auto}.solution-head{grid-template-columns:1fr}.cards{grid-template-columns:repeat(2,1fr)}.footer-grid{grid-template-columns:1.5fr 1fr 1fr}}
@media(max-width:640px){.container{width:calc(100% - 28px)}.section{padding:65px 0}.brand img{width:175px}.hero{padding:125px 0 65px}.hero h1{font-size:2.85rem}.hero-visual{min-height:300px}.circuit-orbit{width:290px}.circuit-logo{width:105px}.cards,.why-list,.posts{grid-template-columns:1fr}.blog-head,.cta-inner{align-items:flex-start;flex-direction:column}.tech-graphic{min-height:330px}.tech-core{width:145px;height:145px}.tech-core img{width:75px}.tech-pill{min-width:100px;font-size:.68rem}.footer-grid{grid-template-columns:1fr 1fr}.footer-brand{grid-column:1/-1}.footer-bottom{flex-direction:column}}

.footer-brand img{
    width:320px;
    height:auto;
    padding:16px 20px;
    margin-bottom:20px;
    background:rgba(255,255,255,.94);
    border-radius:16px;
    box-shadow:
        0 10px 30px rgba(132, 107, 107, 0.35),
        0 0 0 1px rgba(255,255,255,.12);
    filter:none;
}

.hero-grid{
  display:grid;
  grid-template-columns: minmax(0,0.9fr) minmax(0,1.1fr);
  gap:56px;
  align-items:center;
}

.hero-copy-col{ min-width:0; }

.hero-trust{
  margin-top:28px;
  padding-top:20px;
  border-top:1px solid rgba(15,27,51,0.08);
  font-size:.8rem;
  letter-spacing:.02em;
  color:#fdfdfd;
}
.hero-trust strong{ color:#ffffff; font-weight:700; }

/* ---------- Visual panel ---------- */
.hero-visual{
  position:relative;
  border-radius:24px;
  overflow:hidden;
  background:linear-gradient(160deg,#0a1526 0%, #0e1c33 55%, #101a30 100%);
  box-shadow:0 30px 70px -25px rgba(10,20,40,.55), 0 0 0 1px rgba(255,255,255,.04) inset;
  height:600px;
  min-height:600px;
}

.hero-slide{
  position:absolute;
  inset:0;
  display:grid;
  /*grid-template-rows:1fr auto;*/
  opacity:0;
  transform:translateY(14px) scale(.99);
  transition:opacity .7s ease, transform .7s ease;
  pointer-events:none;
  height:600px;
  grid-template-rows:340px 260px;
}
.hero-slide.is-active{
  position:relative;
  opacity:1;
  transform:translateY(0) scale(1);
  pointer-events:auto;
}

.hero-art{
  position:relative;
  width:100%;
  min-height:0;
}
.art-svg{ width:100%; height:100%; display:block; }
.art-label{
  fill:#cfe7ff;
  font-size:13px;
  font-weight:700;
  font-family:inherit;
  letter-spacing:.01em;
}

/* Orbit / flow animations */
.orbit{ transform-origin:280px 220px; animation:spin 26s linear infinite; }
.orbit-slow{ transform-origin:280px 220px; animation:spin 40s linear infinite reverse; }
.node-sat{ animation:float-soft 5s ease-in-out infinite; }
.node-sat--2{ animation-delay:.6s; }
.node-sat--3{ animation-delay:1.2s; }
.flow-path{ animation:dash-flow 2.4s linear infinite; }
.code-line line{ animation:pulse-op 3.6s ease-in-out infinite; }
.code-line line:nth-child(2){ animation-delay:.3s; }
.code-line line:nth-child(3){ animation-delay:.6s; }
.code-line line:nth-child(4){ animation-delay:.9s; }
.check-mark{ stroke-dasharray:120; stroke-dashoffset:120; animation:draw-check 1.6s ease forwards .3s; }
.bar-chart rect{ animation:grow-bar .9s ease forwards; transform-box:fill-box; transform-origin:bottom; }

@keyframes spin{ to{ transform:rotate(360deg); } }
@keyframes float-soft{ 0%,100%{ transform:translateY(0);} 50%{ transform:translateY(-8px);} }
@keyframes dash-flow{ to{ stroke-dashoffset:-28; } }
@keyframes pulse-op{ 0%,100%{ opacity:.4;} 50%{ opacity:1;} }
@keyframes draw-check{ to{ stroke-dashoffset:0; } }
@keyframes grow-bar{ from{ transform:scaleY(0); opacity:0;} to{ transform:scaleY(1); opacity:1;} }

/* Slide copy under the artwork */
.hero-slide-copy{
  min-height:260px;
  padding:18px 28px 20px;
  border-top:1px solid rgba(255,255,255,.06);
  background:linear-gradient(180deg, rgba(10,18,34,0) 0%, rgba(8,14,28,.55) 100%);
}
.hero-slide-copy .carousel-kicker{
  display:inline-block;
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#8feaff;
  margin-bottom:8px;
}
.hero-slide-copy h2{
  color:#f4f8ff;
  font-size:1.3rem;
  line-height:1.28;
  margin:0 0 8px;
}
.hero-slide-copy h2 span{ color:#8feaff; }
.hero-slide-copy p{
  color:#aebedd;
  font-size:.92rem;
  line-height:1.5;
  margin:0;
  max-width:46ch;
}
.hero-slide-action{margin-top:17px;padding:10px 16px;font-size:.82rem}

/* Progress dots (segmented, autoplay-aware) */
.carousel-progress{
  position:absolute;
  top:18px;
  right:20px;
  display:flex;
  gap:6px;
  z-index:5;
}
.carousel-dot{
  width:34px;
  height:4px;
  border-radius:2px;
  background:rgba(255,255,255,.18);
  border:none;
  padding:0;
  cursor:pointer;
  overflow:hidden;
  position:relative;
}
.carousel-dot span{
  position:absolute; inset:0;
  background:#8feaff;
  transform:scaleX(0);
  transform-origin:left;
}
.carousel-dot.is-active span{ animation:fill-dot var(--dot-duration,6.5s) linear forwards; }

@keyframes fill-dot{ from{ transform:scaleX(0);} to{ transform:scaleX(1);} }

.carousel-arrows{
  position:absolute;
  bottom:18px;
  right: 24px;
  left: auto;
  display:flex;
  gap:8px;
  z-index:5;
  opacity:0;
  transition:opacity .25s ease;
}
.hero-visual:hover .carousel-arrows{ opacity:1; }
.carousel-arrow{
  width:32px; height:32px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(14,28,51,.6);
  color:#eaf2ff;
  font-size:1.1rem;
  line-height:1;
  cursor:pointer;
  display:flex; align-items:center; justify-content:center;
}
.carousel-arrow:hover{ background:rgba(14,28,51,.9); }

/* Focus visibility */
.carousel-dot:focus-visible,
.carousel-arrow:focus-visible{
  outline:2px solid #8feaff;
  outline-offset:2px;
}

/* ---------- Responsive ---------- */
@media (max-width:980px){
  .hero-grid{ grid-template-columns:1fr; gap:40px; }
  .hero-visual{ min-height:420px; }
  .header-inner{gap:14px}.primary-nav{display:none}.menu-toggle{display:block;order:3}.header-actions{order:2;margin-left:auto}.primary-nav.is-open{display:block;position:absolute;left:20px;right:20px;top:70px;background:#080d2b;border:1px solid #ffffff1f;border-radius:16px;padding:18px}.primary-nav.is-open ul{flex-direction:column;align-items:flex-start}
}
@media (max-width:560px){
  .hero-visual{ min-height:380px; border-radius:18px; }
  .hero-slide-copy h2{ font-size:1.12rem; }
  .carousel-arrows{ display:none; }
  .site-header{background:#070d2be8}.header-inner{min-height:68px}.brand img{width:118px;max-height:42px}.header-actions{gap:6px}.header-action{width:34px;height:34px;justify-content:center;padding:0;border-radius:50%}.header-action span{display:none}.menu-toggle{font-size:1.45rem;padding:4px}
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  .orbit, .orbit-slow, .node-sat, .flow-path,
  .flow-return, .flow-stage--asx, .code-line line, .carousel-dot.is-active span{
    animation:none !important;
  }
  .hero-slide{ transition:opacity .3s ease; }
}

/* Mantém a marca em sua paleta original também no rodapé. */
.footer-brand img{width:150px;filter:none}

/* Header com contraste próprio para a marca. */
.site-header{
  background:rgba(247,251,255,.96);
  border-bottom-color:rgba(0,169,244,.2);
  box-shadow:0 8px 24px rgba(8,29,66,.09);
}
.header-inner{min-height:88px}
.brand img{width:176px;max-height:66px}
.primary-nav a{color:#12204a}
.primary-nav a:hover{color:#007fc4}
.menu-toggle{color:#12204a}
.header-action{color:#12204a;background:#fff;border-color:#cfe6f6}
.header-action:hover{background:#effaff;color:#007fc4}
.header-action--portal{background:#e9f8ff;border-color:#a8dff6}

/* Todos os quadros do carrossel mantêm a mesma proporção. */
.hero-visual{height:560px;min-height:560px}
.hero-slide{height:560px;grid-template-rows:300px 260px}
.hero-art{min-height:0}
.hero-slide-copy{min-height:260px;padding:18px 28px 20px}

/* Tipografia e movimento do fluxo fiscal. */
.art-logo-mark{fill:#f4f8ff;font-size:25px;font-weight:800;font-family:inherit;letter-spacing:.08em}
.art-logo-mark--small{font-size:17px}
.art-flow-title{fill:#dff5ff;font-size:18px;font-weight:750;font-family:inherit}
.art-step-number{fill:#dff5ff;font-size:12px;font-weight:800;font-family:inherit}
.art-step-label{fill:#8feaff;font-size:11px;font-weight:700;font-family:inherit;text-transform:uppercase;letter-spacing:.04em}
.art-response-label{fill:#9eeac8;font-size:13px;font-weight:700;font-family:inherit}
.flow-return{animation:dash-flow 3.4s linear infinite reverse}
.flow-stage--asx{animation:float-soft 4.2s ease-in-out infinite}
.flow-stage--asx .art-label{font-size:10px;}

@media(max-width:560px){
  .site-header{background:#f7fbff}
  .brand img{width:142px;max-height:54px}
  .hero-visual{height:550px;min-height:550px}
  .hero-slide{height:550px;grid-template-rows:245px 305px}
  .hero-slide-copy{min-height:305px;padding:16px 20px 18px}
}
