/*
Theme Name: Primetrafo
Theme URI: https://primetrafo.com.br
Author: VISI
Description: Tema da landing page da Primetrafo — transformadores e soluções elétricas. Página única (front-page) recriada a partir do layout do Figma, com CTAs ligados ao WhatsApp.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: primetrafo
Tags: one-column, custom-logo, landing-page
*/

/* =========================================================
   Primetrafo — Landing Page
   Recriação fiel do layout Figma "LP Prime Trafo / 1920w light"
   ========================================================= */

:root{
  /* Cores extraídas do arquivo Figma */
  --navy:        #0b2b43;
  --navy-hero:   #001529;
  --navy-deep:   #010726;
  --card:        #1d223c;
  --yellow:      #f7b308;
  --yellow-lt:   #f8be2e;
  --white:       #ffffff;
  --muted:       #c3ced8;
  --muted-2:     #b3c0cc;
  --placeholder: #8fa3b3;

  --container: 1050px;

  --ff-display: 'Anton', 'Arial Narrow', Impact, sans-serif;
  --ff-body:    'Inter', 'Segoe UI', Arial, sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; }

html{ scroll-behavior:smooth; scroll-padding-top:86px; }

body{
  margin:0;
  background:var(--navy);
  color:var(--white);
  font-family:var(--ff-body);
  font-size:16px;
  line-height:21px;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,p{ margin:0; }

.container{
  width:100%;
  max-width:calc(var(--container) + 40px);
  margin:0 auto;
  padding:0 20px;
}

.c-yellow{ color:var(--yellow); }

/* quebras de linha idênticas ao Figma (só no desktop) */
.br-lg{ display:inline; }

/* ---------- Tipografia base ---------- */
.eyebrow{
  font-size:16px;
  line-height:20px;
  font-weight:500;
  color:var(--yellow);
}
.eyebrow--center{ text-align:center; }

/* =========================================================
   BOTÕES  (Component 1 / Component 4 do Figma)
   ========================================================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:52px;
  padding:0 22px;
  border-radius:999px;
  border:1.5px solid transparent;
  font-family:var(--ff-body);
  font-size:15px;
  font-weight:700;
  line-height:1;
  letter-spacing:.1px;
  white-space:nowrap;
  cursor:pointer;
  transition:background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.btn--primary{ background:var(--yellow); color:var(--navy); }
.btn--primary:hover{ background:#ffc328; transform:translateY(-2px); }

.btn--outline{ background:transparent; color:var(--white); border-color:var(--yellow); }
.btn--outline:hover{ background:var(--yellow); color:var(--navy); transform:translateY(-2px); }

.btn--ghost{ background:transparent; color:var(--white); border-color:var(--yellow); }
.btn--ghost:hover{ background:var(--yellow); color:var(--navy); }

.btn--sm{ height:40px; font-size:13px; padding:0 18px; }

.btn--w249{ width:249px; padding:0; }
.btn--w243{ width:243px; padding:0; }
.btn--w431{ width:431px; height:45px; padding:0; }
.btn--w311{ width:311px; padding:0; }
.btn--w306{ width:306px; padding:0; }
.btn--submit{ width:418px; height:62px; padding:0; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header{
  position:sticky;
  top:0;
  z-index:60;
  height:86px;
  background:var(--navy);
}
.header-inner{
  height:86px;
  display:flex;
  align-items:center;
}
.logo img{ width:154px; height:67px; object-fit:contain; }

.social{ display:flex; align-items:center; }
.social a{ display:block; }
.social svg{ display:block; }

.social--header{ gap:17px; margin-left:82px; }
.social--header svg{ width:33px; height:33px; }
.social--header a{ transition:transform .2s ease, opacity .2s ease; }
.social--header a:hover{ transform:translateY(-2px); opacity:.85; }

.main-nav{
  display:flex;
  align-items:center;
  gap:58px;
  margin-left:70px;
}
.main-nav a{
  font-size:13px;
  font-weight:500;
  color:var(--muted-2);
  transition:color .2s ease;
  white-space:nowrap;
}
.main-nav a:hover{ color:var(--yellow); }

.site-header .btn--ghost{ margin-left:auto; width:150px; }

/* Botão hambúrguer (mobile) */
.nav-toggle{
  display:none;
  margin-left:auto;
  width:44px; height:44px;
  background:none; border:0; cursor:pointer;
  flex-direction:column; justify-content:center; gap:5px;
}
.nav-toggle span{
  display:block; height:2px; width:24px; margin:0 auto;
  background:var(--white); border-radius:2px;
  transition:transform .3s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO  (1920 x 660 no Figma)
   ========================================================= */
.hero{
  position:relative;
  min-height:660px;
  overflow:hidden;
  /* torres de transmissão em toda a largura + véu escuro para leitura do texto */
  background-color:#01091a;
  background-image:
    /* véu leve à esquerda (contraste do texto) e, a partir de ~40%, apaga as
       torres antes da foto começar — evita o fundo transparecer no transformador */
    linear-gradient(to right,
      rgba(1,9,22,.20) 0%,
      rgba(1,9,22,.13) 28%,
      rgba(1,9,22,.22) 40%,
      rgba(1,9,22,.50) 46%,
      rgba(1,9,22,.82) 50%,
      rgba(1,9,22,1)   55%,
      rgba(1,9,22,1)   100%),
    url('images/hero-towers.png');
  background-size:auto, cover;
  background-position:center, center;
  background-repeat:no-repeat, no-repeat;
}
/* Transformador — 51,05% da largura (980/1920), acompanha a viewport */
.hero__photo{
  position:absolute;
  top:0; right:0;
  width:51.05%;
  height:100%;
  z-index:1;
  background:url('images/hero-right.png') left center/cover no-repeat;
  /* fade curtíssimo: o transformador começa a 2,5% da foto — qualquer
     transição maior faz o fundo aparecer por dentro da chapa */
  -webkit-mask-image:linear-gradient(to right, transparent 0%, #000 3.5%);
          mask-image:linear-gradient(to right, transparent 0%, #000 3.5%);
  pointer-events:none;
}
.hero__inner{
  position:relative;
  z-index:2;
  padding-top:62px;
  padding-bottom:33px;
}
.hero__title{
  font-family:var(--ff-display);
  font-weight:400;
  font-size:69px;
  line-height:82px;
  margin:10px 0 0;
  letter-spacing:.2px;
}
.hero__text{
  max-width:430px;
  margin:22px 0 0;
  font-size:16px;
  line-height:24px;
  color:var(--muted);
}
.hero__text strong{ color:var(--white); font-weight:700; }

.hero__actions{
  display:flex;
  align-items:center;
  gap:30px;
  margin-top:13px;
}

/* =========================================================
   SOBRE  (1920 x 694)
   ========================================================= */
.sobre{
  background:var(--navy);
  padding:66px 0 43px;
}
.sobre__grid{
  display:grid;
  grid-template-columns:539px 1fr;
  gap:52px;
  align-items:start;
}
.sobre__media img{
  width:539px;
  height:585px;
  object-fit:cover;
  border-radius:18px;
}
.sobre__content{ padding-top:9px; }
.sobre .eyebrow{ font-size:18px; line-height:32px; }

.sobre__title{
  font-family:var(--ff-display);
  font-weight:400;
  font-size:45px;
  line-height:51px;
  width:485px;
  max-width:none;
  margin:12px 0 0;
}
.sobre__text{
  width:445px;
  max-width:100%;
  margin-top:25px;
  font-size:16px;
  line-height:21px;
  color:var(--muted);
}
.sobre__text + .sobre__text{ margin-top:19px; }
.sobre__text strong{ color:var(--white); font-weight:700; }

.sobre__content .btn{ margin-top:28px; }

/* =========================================================
   PRODUTOS  (1920 x 761)
   ========================================================= */
.produtos{
  position:relative;
  --grid-w: min(1229px, calc(100% - 40px));
  --card-w: calc((var(--grid-w) - 96px) / 4);
  padding:27px 0 28px;
  background:var(--yellow) url('images/bg-produtos.jpg') center/cover no-repeat;
  overflow:hidden;
}
.produtos__title{
  font-family:var(--ff-display);
  font-weight:400;
  font-size:52px;
  line-height:62px;
  text-align:center;
  color:var(--white);
  margin:0 auto;
  max-width:1400px;
  padding:0 20px;
}
.rotulo-bar{
  position:absolute;
  left:0;
  top:110px;
  width:calc((100% - var(--grid-w))/2 + var(--card-w) + 22px);
  height:58px;
  background:var(--navy);
  border-radius:0 29px 29px 0;
  display:flex;
  align-items:center;
}
.rotulo-bar > span{
  display:block;
  width:100%;
  padding:0 18px 0 34px;
  text-align:center;
  font-size:20px;
  font-weight:700;
  line-height:23px;
  color:var(--white);
}

.produtos__grid{
  width:var(--grid-w);
  margin:32px auto 0;
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:32px;
}

.pcard{
  display:flex;
  flex-direction:column;
  height:259px;
  border-radius:14px;
  overflow:hidden;
  background:var(--white);
  transition:transform .3s ease, box-shadow .3s ease;
}
.pcard:hover{ transform:translateY(-6px); box-shadow:0 18px 34px rgba(0,0,0,.22); }

.pcard__foto{
  flex:0 0 175px;
  height:175px;
  background:var(--white);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:6px;
}
.pcard__foto img{
  max-height:100%;
  max-width:100%;
  width:auto;
  object-fit:contain;
}
.pcard__faixa > span,
.pcard__faixa-alt > span,
.pcard__cta > span{ display:block; width:100%; }

.pcard__faixa{
  flex:0 0 84px;
  height:84px;
  background:var(--navy);
  color:var(--white);
  font-size:18px;
  line-height:23px;
  font-weight:400;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:0 10px;
}

/* linha 2 — faixa em cima */
.pcard--inv .pcard__faixa{ order:-1; }

/* card "E MUITO MAIS" */
.pcard--mais{ background:var(--navy); }
.pcard__faixa-alt{
  flex:0 0 84px;
  height:84px;
  text-align:center;
  background:var(--white);
  color:var(--navy);
  font-size:27px;
  font-weight:700;
  letter-spacing:.2px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.pcard__cta{
  flex:1 1 auto;
  min-height:0;
  background:var(--navy);
  color:var(--white);
  font-family:var(--ff-display);
  font-weight:400;
  font-size:31px;
  line-height:38px;
  text-align:center;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 8px;
  transition:background-color .25s ease;
}
.pcard__cta:hover{ background:#123954; }

/* =========================================================
   DIFERENCIAIS  (1920 x 465)
   ========================================================= */
.dif{
  background:var(--navy);
  padding:39px 0 54px;
  text-align:center;
}
.dif .eyebrow{ line-height:32px; }
.dif__title{
  font-family:var(--ff-display);
  font-weight:400;
  font-size:40px;
  line-height:48px;
  margin-top:7px;
}
.dif__grid{
  display:flex;
  justify-content:center;
  gap:27px;
  margin-top:14px;
  flex-wrap:wrap;
}
.dcard{
  width:221px;
  height:223px;
  background:var(--card);
  border-radius:24px;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding-top:34px;
  transition:transform .3s ease, background-color .3s ease;
}
.dcard:hover{ transform:translateY(-6px); background:#242a48; }

.dcard__icon{
  width:95px; height:95px;
  color:var(--yellow);
  display:block;
}
.dcard__icon--sm{ width:87px; height:87px; margin:4px 0; }
.dcard__icon svg{ width:100%; height:100%; display:block; }

.dcard__label{
  margin-top:14px;
  font-size:18px;
  line-height:25px;
  color:var(--white);
}

/* =========================================================
   FORMULÁRIO  (1920 x 788)
   ========================================================= */
.form-sec{
  background:var(--yellow);
  padding:33px 0 34px;
}
.form-card{
  position:relative;
  width:1200px;
  max-width:calc(100% - 40px);
  margin:0 auto;
  min-height:721px;
  background:var(--navy);
  display:grid;
  grid-template-columns:1fr 577px;
  overflow:hidden;
}
.form-card__content{ padding:83px 0 0 98px; }

.form__title{
  font-family:var(--ff-display);
  font-weight:400;
  font-size:39px;
  line-height:48px;
}
.form__text{
  width:400px;
  max-width:100%;
  margin-top:18px;
  font-size:16px;
  line-height:22px;
  color:var(--muted);
}
.form{ margin-top:18px; }

.field{ margin-bottom:16px; }
.field input{
  width:418px;
  max-width:100%;
  height:45px;
  padding:0 12px;
  border-radius:23px;
  border:1px solid rgba(255,255,255,.34);
  background:transparent;
  color:var(--white);
  font-family:var(--ff-body);
  font-size:15px;
  outline:none;
  transition:border-color .2s ease, box-shadow .2s ease;
}
.field input::placeholder{ color:var(--placeholder); }
.field input:focus{ border-color:var(--yellow); box-shadow:0 0 0 3px rgba(247,179,8,.15); }
.field input.is-invalid{ border-color:#ff6b6b; }

.check{
  display:flex;
  align-items:flex-start;
  gap:8px;
  width:418px;
  max-width:100%;
  margin-top:0;
  cursor:pointer;
}
.check input{ position:absolute; opacity:0; width:0; height:0; }
.check__box{
  flex:0 0 auto;
  width:16px; height:16px;
  margin-top:2px;
  border-radius:3px;
  background:#e9eef2;
  position:relative;
  transition:background-color .2s ease;
}
.check input:checked + .check__box{ background:var(--yellow); }
.check input:checked + .check__box::after{
  content:'';
  position:absolute;
  left:5px; top:2px;
  width:4px; height:8px;
  border:solid var(--navy);
  border-width:0 2px 2px 0;
  transform:rotate(45deg);
}
.check__label{
  font-size:13px;
  line-height:17px;
  color:var(--muted);
}
.form .btn--submit{ margin-top:55px; }

.form-card__media{ position:relative; }
.form-card__media img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}

.form-msg{
  margin-top:14px;
  font-size:14px;
  font-weight:600;
  color:var(--yellow);
}

/* =========================================================
   CTA FINAL  (1920 x 549)
   ========================================================= */
.cta{
  position:relative;
  min-height:549px;
  display:flex;
  align-items:flex-start;
  background:#0a1220 url('images/cta-bg.png') center/cover no-repeat;
}
.cta::before{
  content:'';
  position:absolute; inset:0;
  background:
    radial-gradient(58% 78% at 82% 42%, rgba(196,152,86,.20) 0%, rgba(0,0,0,0) 62%),
    linear-gradient(180deg, rgba(4,10,20,.62) 0%, rgba(4,10,20,.44) 45%, rgba(4,10,20,.74) 100%);
}
.cta__inner{
  position:relative;
  z-index:2;
  width:100%;
  max-width:1200px;
  text-align:center;
  padding-top:66px;
  padding-bottom:84px;
}
.cta__title{
  font-family:var(--ff-display);
  font-weight:400;
  font-size:55px;
  line-height:62px;
  margin-top:38px;
}
.cta__text{
  margin-top:36px;
  font-size:16px;
  line-height:22px;
  color:var(--muted);
}
.cta__actions{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:33px;
  margin-top:85px;
}

/* =========================================================
   FOOTER  (1920 x 107)
   ========================================================= */
.site-footer{
  background:var(--navy-deep);
  height:107px;
  display:flex;
  align-items:center;
}
.footer-inner{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:106px;
}
.copy{
  font-size:14px;
  line-height:20px;
  color:var(--muted-2);
  white-space:nowrap;
}
.copy strong{ color:var(--white); font-weight:700; }
.copy .sep{ color:rgba(255,255,255,.35); margin:0 4px; }

.social--footer{ gap:17px; }
.social--footer svg{ width:34px; height:34px; }
.social--footer a{ transition:transform .2s ease, opacity .2s ease; }
.social--footer a:hover{ transform:translateY(-2px); opacity:.85; }

/* =========================================================
   WHATSAPP FLUTUANTE
   ========================================================= */
.wa-float{
  position:fixed;
  right:28px;
  bottom:28px;
  z-index:80;
  width:60px;
  height:60px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#25d366;
  color:#fff;
  box-shadow:0 6px 20px rgba(0,0,0,.28), 0 0 0 0 rgba(37,211,102,.55);
  transition:transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.wa-float svg{ width:32px; height:32px; display:block; }
.wa-float:hover{
  background:#1fbe5b;
  transform:translateY(-3px) scale(1.05);
  box-shadow:0 10px 26px rgba(0,0,0,.34), 0 0 0 10px rgba(37,211,102,.14);
}
.wa-float:focus-visible{
  outline:3px solid var(--yellow);
  outline-offset:3px;
}

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width:1180px){
  .form-card{ grid-template-columns:1fr 45%; }
  .form-card__content{ padding-left:60px; }
}

@media (max-width:1024px){
  .main-nav{
    position:absolute;
    top:86px; left:0; right:0;
    flex-direction:column;
    gap:0;
    margin:0;
    background:var(--navy);
    border-top:1px solid rgba(255,255,255,.08);
    max-height:0;
    overflow:hidden;
    transition:max-height .35s ease;
  }
  .main-nav.is-open{ max-height:320px; }
  .main-nav a{ padding:16px 24px; font-size:16px; }
  .social--header{ margin-left:24px; }
  .site-header .btn--ghost{ display:none; }
  .nav-toggle{ display:flex; }

  .hero{ min-height:auto; }
  .hero__photo{
    width:100%;
    height:100%;
    opacity:.34;
    background-position:right center;
    -webkit-mask-image:none; mask-image:none;
  }
  .hero__inner{ padding-top:56px; padding-bottom:60px; }
  .hero__title{ font-size:58px; line-height:62px; }

  .sobre__grid{ grid-template-columns:1fr; gap:38px; }
  .sobre__media img{ width:100%; height:auto; }
  .sobre__title,
  .sobre__text{ width:100%; }
  .btn--w431{ width:100%; max-width:431px; }

  .produtos__title{ font-size:42px; line-height:48px; }
  .produtos__grid{ grid-template-columns:repeat(2,1fr); margin-top:40px; }
  .rotulo-bar{ position:static; width:auto; max-width:560px; margin:22px auto 0; border-radius:29px; }
  .rotulo-bar span{ width:100%; margin-left:0; }

  .form-card{ grid-template-columns:minmax(0,1fr); min-height:0; }
  .form-card__content{ padding:56px 32px 48px; min-width:0; }
  .form__title,
  .form__text{ width:100%; }
  .form-card__media{ height:340px; }
  .form-card__media img{ position:static; }
  .field input,
  .check,
  .btn--submit{ width:100%; }

  .cta__title{ font-size:40px; line-height:46px; }
  .cta__inner{ padding:60px 20px 70px; }

  .footer-inner{ flex-direction:column; gap:22px; }
  .site-footer{ height:auto; padding:28px 0; }
}

@media (max-width:680px){
  .wa-float{ right:16px; bottom:16px; width:54px; height:54px; }
  .wa-float svg{ width:29px; height:29px; }

  .social--header{ display:none; }
  .hero__title{ font-size:42px; line-height:46px; }
  .br-lg{ display:none; }
  .hero__actions{ flex-direction:column; align-items:stretch; gap:14px; }
  .btn--w249,.btn--w243,.btn--w311,.btn--w306{ width:100%; }

  .sobre__title{ font-size:36px; line-height:40px; }
  .produtos__title{ font-size:32px; line-height:38px; }
  .produtos__title br{ display:none; }
  .produtos__grid{ grid-template-columns:1fr; }
  .dif__title{ font-size:32px; line-height:38px; }
  .cta__title{ font-size:30px; line-height:36px; }
  .cta__title br{ display:none; }
  .cta__actions{ flex-direction:column; gap:14px; }
  .copy{ white-space:normal; text-align:center; font-size:13px; }
}

/* =========================================================
   AJUSTES WORDPRESS
   ========================================================= */
/* barra de admin não pode cobrir o header fixo */
.admin-bar .site-header{ top:32px; }
.admin-bar{ scroll-padding-top:118px; }
@media screen and (max-width:782px){
  .admin-bar .site-header{ top:46px; }
  .admin-bar{ scroll-padding-top:132px; }
}

/* logo enviado pelo Personalizar (Aparência > Personalizar > Identidade do site) */
.custom-logo-link{ display:block; line-height:0; }
.custom-logo{ width:154px; height:67px; object-fit:contain; }

/* imagens inseridas pelo editor não estouram o container */
.wp-caption, .wp-caption-text, .gallery-caption{ max-width:100%; }
.alignnone, .aligncenter{ max-width:100%; height:auto; }
