/*
Theme Name: Persiana Eletrica LP
Theme URI: https://persianaeletrica.com.br/
Author: Attack Ads
Description: Tema de pagina unica (landing page) para campanha de leads da Persiana Eletrica.
Version: 1.0
Requires at least: 5.8
Requires PHP: 7.4
Text Domain: persiana-eletrica-lp
*/

:root{
    --white:#FFFFFF;
    --bg-soft:#F4F7FB;
    --navy:#0B2545;
    --navy-2:#123A66;
    --navy-3:#1E4E82;
    --navy-glow:#2C6BAE;
    --gold:#B8923F;
    --gold-bright:#E0B563;
    --gold-deep:#8F6E28;
    --text:#16212E;
    --text-muted:#5B6B7C;
    --text-dim:#8A97A3;
    --line:#E3E8ED;
    --line-soft:#EEF1F4;
    --radius-lg:20px;
    --radius:14px;
    --radius-sm:10px;
    --radius-pill:999px;
    --maxw:1180px;
    --whats:#25D366;
    --whats-deep:#128C42;
  }

  *{ box-sizing:border-box; margin:0; padding:0; }
  html{ scroll-behavior:smooth; overflow-x:hidden; }
  .fullbleed{
    width:100vw;
    margin-left:calc(50% - 50vw);
    margin-right:calc(50% - 50vw);
    box-sizing:border-box;
  }
  body{
    background:var(--white);
    color:var(--text);
    font-family:'Inter', sans-serif;
    font-size:15px;
    line-height:1.62;
    -webkit-font-smoothing:antialiased;
    overflow-x:hidden;
  }
  h1,h2,h3,h4{
    font-family:'Space Grotesk', sans-serif;
    font-weight:600;
    line-height:1.14;
    letter-spacing:-0.015em;
    color:var(--navy);
  }
  .mono{
    font-family:'Inter', sans-serif;
    font-weight:700;
    letter-spacing:0.09em;
    text-transform:uppercase;
    font-size:10.5px;
  }
  a{ color:inherit; text-decoration:none; }
  img{ max-width:100%; display:block; }
  .wrap{ max-width:var(--maxw); margin:0 auto; padding:0 24px; }
  @media(max-width:640px){ .wrap{ padding:0 20px; } }

  ::selection{ background:var(--gold); color:#fff; }

  a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible{
    outline:2px solid var(--navy-3);
    outline-offset:3px;
  }

  @media (prefers-reduced-motion: reduce){
    *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
  }

  /* ---------- reveal on scroll ---------- */
  [data-fade]{ opacity:0; transform:translateY(18px); transition:opacity .7s cubic-bezier(.16,.8,.24,1), transform .7s cubic-bezier(.16,.8,.24,1); }
  [data-fade].in-view{ opacity:1; transform:translateY(0); }

  .slat-divider{
    display:flex; flex-direction:column; gap:3px;
    width:100%; max-width:160px; margin:0 auto;
  }
  .slat-divider .bar{
    height:2px; background:var(--line); border-radius:2px;
    transform-origin:center; transform:scaleX(0); opacity:0;
    transition:transform .7s cubic-bezier(.16,.8,.24,1), opacity .5s ease, background .3s ease;
  }
  .slat-divider.in-view .bar{ transform:scaleX(1); opacity:1; }
  .slat-divider.in-view .bar:nth-child(1){ transition-delay:0s; background:var(--line); }
  .slat-divider.in-view .bar:nth-child(2){ transition-delay:.08s; background:var(--gold); }
  .slat-divider.in-view .bar:nth-child(3){ transition-delay:.16s; background:var(--line); }

  /* ---------- topbar ---------- */
  .topbar{
    position:sticky; top:0; z-index:50;
    background:rgba(255,255,255,0.86);
    backdrop-filter:blur(14px);
    border-bottom:1px solid var(--line);
  }
  .topbar-inner{
    display:flex; align-items:center; justify-content:space-between;
    padding:14px 24px; max-width:var(--maxw); margin:0 auto;
  }
  .logo{ font-family:'Space Grotesk', sans-serif; font-weight:700; font-size:16px; color:var(--navy); }
  .logo span{ color:var(--gold); }

  /* ---------- buttons: pill, modern, tactile ---------- */
  .btn{
    display:inline-flex; align-items:center; justify-content:center; gap:8px;
    font-family:'Space Grotesk', sans-serif; font-weight:600; font-size:13.5px;
    padding:12px 22px; border-radius:var(--radius-pill); border:1px solid transparent;
    cursor:pointer; position:relative; white-space:nowrap;
    transition:transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease, background .25s ease, filter .2s ease;
  }
  .btn:active{ transform:scale(0.96); }
  .btn-primary{
    background:linear-gradient(135deg, var(--navy-3), var(--navy));
    color:#fff; box-shadow:0 8px 20px -8px rgba(11,37,69,0.55), inset 0 1px 0 rgba(255,255,255,0.12);
  }
  .btn-primary:hover{ transform:translateY(-2px); box-shadow:0 14px 28px -10px rgba(11,37,69,0.6), inset 0 1px 0 rgba(255,255,255,0.16); }
  .btn-gold{
    background:linear-gradient(135deg, var(--gold-bright), var(--gold));
    color:#20140a; box-shadow:0 8px 20px -8px rgba(184,146,63,0.55), inset 0 1px 0 rgba(255,255,255,0.35);
  }
  .btn-gold:hover{ transform:translateY(-2px); box-shadow:0 14px 28px -10px rgba(184,146,63,0.6); }
  .btn-ghost{
    border-color:var(--line); color:var(--navy); background:#fff; font-size:12.5px; padding:10px 18px;
  }
  .btn-ghost:hover{ border-color:var(--gold); background:var(--bg-soft); }
  .btn-whats{
    background:linear-gradient(135deg, #2FE87F, var(--whats));
    color:#fff; box-shadow:0 8px 20px -8px rgba(37,211,102,0.55), inset 0 1px 0 rgba(255,255,255,0.25);
  }
  .btn-whats:hover{ transform:translateY(-2px); box-shadow:0 14px 28px -10px rgba(37,211,102,0.6); }
  .btn svg{ width:16px; height:16px; flex:none; }

  /* WordPress/theme CSS often targets "a" with higher specificity (e.g. .entry-content a)
     and overrides our link color/underline. Force it back on the buttons. */
  a.btn, a.btn:link, a.btn:visited, a.btn:hover, a.btn:focus, a.btn:active{
    text-decoration:none !important;
  }
  a.btn-primary, a.btn-primary:link, a.btn-primary:visited, a.btn-primary:hover{ color:#fff !important; }
  a.btn-gold, a.btn-gold:link, a.btn-gold:visited, a.btn-gold:hover{ color:#20140a !important; }
  a.btn-ghost, a.btn-ghost:link, a.btn-ghost:visited, a.btn-ghost:hover{ color:var(--navy) !important; }
  a.btn-whats, a.btn-whats:link, a.btn-whats:visited, a.btn-whats:hover{ color:#fff !important; }

  .topbar .btn-ghost{ display:none; }
  @media(min-width:560px){ .topbar .btn-ghost{ display:inline-flex; } }

  /* ---------- hero: full photo, gradient, glass form ---------- */
  .hero{
    position:relative;
    min-height:600px;
    display:flex; align-items:center;
    overflow:hidden;
    padding:64px 0 56px;
  }
  .hero-bg{
    position:absolute; inset:0; z-index:0;
  }
  .hero-bg img{ width:100%; height:100%; object-fit:cover; }
  .hero-bg::after{
    content:'';
    position:absolute; inset:0;
    background:
      linear-gradient(100deg, rgba(6,20,38,0.94) 0%, rgba(8,28,52,0.86) 32%, rgba(8,28,52,0.55) 58%, rgba(8,28,52,0.25) 100%);
  }
  .hero-blob{
    position:absolute; z-index:0; border-radius:50%; filter:blur(60px); opacity:0.35; pointer-events:none;
  }
  .hero-blob.b1{ width:340px; height:340px; background:var(--gold); top:-80px; right:8%; }
  .hero-blob.b2{ width:260px; height:260px; background:var(--navy-glow); bottom:-60px; right:28%; }

  .hero-grid{ position:relative; z-index:1; display:grid; grid-template-columns:1.15fr 0.85fr; gap:48px; align-items:center; width:100%; }
  @media(max-width:960px){ .hero-grid{ grid-template-columns:1fr; gap:32px; } }

  .eyebrow{ font-size:10.5px; color:var(--gold-bright); margin-bottom:14px; display:flex; align-items:center; gap:9px; }
  .eyebrow::before{ content:''; width:18px; height:1px; background:var(--gold-bright); display:inline-block; }
  .hero-text .eyebrow{ color:var(--gold-bright); }
  .hero h1{ font-size:clamp(28px, 3.6vw, 42px); max-width:15.5ch; margin-bottom:15px; color:#fff; }
  .hero h1 em{ font-style:normal; background:linear-gradient(135deg, var(--gold-bright), #F0D28E); -webkit-background-clip:text; background-clip:text; color:transparent; }
  .hero .sub{ font-size:14.5px; color:rgba(255,255,255,0.82); max-width:44ch; margin-bottom:24px; }
  .hero-ctas{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:26px; }

  .trust-line{ display:flex; gap:20px; flex-wrap:wrap; padding-top:18px; border-top:1px solid rgba(255,255,255,0.18); }
  .trust-line .item{ font-size:12px; color:rgba(255,255,255,0.75); display:flex; align-items:center; gap:7px; }
  .trust-line .item::before{ content:'—'; color:var(--gold-bright); }

  /* ---------- glass form card ---------- */
  .form-card{
    background:rgba(255,255,255,0.97);
    backdrop-filter:blur(18px);
    border:1px solid rgba(255,255,255,0.5);
    border-radius:var(--radius-lg);
    padding:26px 24px 24px;
    position:relative;
    box-shadow:0 30px 60px -20px rgba(4,15,30,0.5);
  }
  .form-card::before{
    content:''; position:absolute; top:0; left:24px; right:24px; height:3px;
    background:linear-gradient(90deg, var(--navy-3), var(--gold-bright));
    border-radius:0 0 4px 4px;
  }
  .form-card h3{ font-size:18px; margin-bottom:4px; }
  .form-card .form-sub{ font-size:12.5px; color:var(--text-muted); margin-bottom:18px; }
  .field{ margin-bottom:13px; }
  .field label{
    display:block; font-size:10.5px; color:var(--text-dim); font-weight:700;
    letter-spacing:0.05em; text-transform:uppercase; margin-bottom:6px;
  }
  .field input, .field select{
    width:100%; background:var(--bg-soft); border:1px solid var(--line); color:var(--text);
    padding:12px 14px; font-family:'Inter', sans-serif; font-size:13.5px; border-radius:var(--radius-sm);
    transition:border-color .2s ease, background .2s ease, box-shadow .2s ease;
  }
  .field input::placeholder{ color:var(--text-dim); }
  .field input:focus, .field select:focus{ border-color:var(--navy-3); background:#fff; box-shadow:0 0 0 4px rgba(30,78,130,0.12); }
  .field select{ appearance:none; background-image:linear-gradient(45deg, transparent 50%, var(--text-dim) 50%), linear-gradient(135deg, var(--text-dim) 50%, transparent 50%); background-position:calc(100% - 18px) center, calc(100% - 13px) center; background-size:5px 5px, 5px 5px; background-repeat:no-repeat; }
  .form-card .btn{ width:100%; padding:13px; font-size:14px; margin-top:4px; }
  .form-note{ font-size:11px; color:var(--text-dim); margin-top:11px; text-align:center; }

  /* ---------- sections ---------- */
  section{ padding:72px 0; }
  .section-head{ text-align:center; max-width:600px; margin:0 auto 42px; }
  .section-head .eyebrow{ justify-content:center; color:var(--gold-deep); }
  .section-head .eyebrow::before{ background:var(--gold-deep); }
  .section-head .eyebrow::after{ content:''; width:18px; height:1px; background:var(--gold-deep); }
  .section-head h2{ font-size:clamp(21px,2.5vw,30px); margin-bottom:11px; }
  .section-head p{ color:var(--text-muted); font-size:13.5px; }

  .divider-wrap{ padding:8px 0 40px; }

  /* ---------- stats ---------- */
  .stats{ background:linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); padding:36px 0; }
  .stats-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; text-align:center; }
  @media(max-width:640px){ .stats-grid{ grid-template-columns:1fr; gap:22px; } }
  .stat-num{ font-family:'Space Grotesk',sans-serif; font-size:28px; font-weight:700; background:linear-gradient(135deg,var(--gold-bright),#F0D28E); -webkit-background-clip:text; background-clip:text; color:transparent; }
  .stat-label{ font-size:11.5px; color:#AFC1D6; margin-top:5px; }

  /* ---------- gallery ---------- */
  .gallery-grid{
    display:grid;
    grid-template-columns:1.3fr 1fr 1fr;
    grid-template-rows:auto auto;
    gap:16px;
  }
  @media(max-width:820px){ .gallery-grid{ grid-template-columns:1fr 1fr; } }
  @media(max-width:560px){ .gallery-grid{ grid-template-columns:1fr; } }
  .gallery-item{
    position:relative; border-radius:var(--radius); overflow:hidden; background:var(--bg-soft);
    box-shadow:0 14px 30px -16px rgba(11,37,69,0.28);
    transition:box-shadow .3s ease, transform .3s ease;
  }
  .gallery-item:hover{ transform:translateY(-4px); box-shadow:0 22px 40px -16px rgba(11,37,69,0.36); }
  .gallery-item.tall{ grid-row:span 2; }
  .gallery-item img{ width:100%; height:100%; min-height:180px; object-fit:cover; transition:transform .6s ease; }
  .gallery-item:hover img{ transform:scale(1.06); }
  .gallery-cap{
    position:absolute; left:0; right:0; bottom:0;
    background:linear-gradient(180deg, transparent, rgba(6,20,38,0.9));
    color:#fff; font-size:12px; font-weight:600; padding:30px 16px 14px;
  }

  /* ---------- services ---------- */
  .services-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:20px; }
  @media(max-width:820px){ .services-grid{ grid-template-columns:1fr; } }
  .service-card{
    background:#fff; padding:30px 26px; border-radius:var(--radius); border:1px solid var(--line);
    box-shadow:0 10px 24px -18px rgba(11,37,69,0.2);
    transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  }
  .service-card:hover{ transform:translateY(-5px); box-shadow:0 20px 36px -16px rgba(11,37,69,0.28); border-color:var(--gold-bright); }
  .service-tag{
    width:44px; height:44px; border-radius:12px;
    display:flex; align-items:center; justify-content:center;
    background:linear-gradient(135deg, var(--bg-soft), #fff);
    font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:15px; color:var(--gold-deep);
    margin-bottom:16px; border:1px solid var(--line);
  }
  .service-card h3{ font-size:16px; margin-bottom:8px; }
  .service-card p{ font-size:13px; color:var(--text-muted); }

  /* ---------- why us ---------- */
  .why-grid{ display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center; }
  @media(max-width:820px){ .why-grid{ grid-template-columns:1fr; gap:30px; } }
  .why-list{ list-style:none; display:flex; flex-direction:column; }
  .why-list li{ display:flex; gap:14px; padding:16px 0; border-bottom:1px solid var(--line); }
  .why-list li:first-child{ border-top:1px solid var(--line); }
  .why-mark{
    width:24px; height:24px; border-radius:50%; flex:none;
    background:var(--bg-soft); color:var(--gold-deep); font-weight:700; font-size:12px;
    display:flex; align-items:center; justify-content:center; margin-top:1px;
  }
  .why-list h4{ font-size:14px; margin-bottom:3px; }
  .why-list p{ font-size:12.5px; color:var(--text-muted); }

  .why-panel{
    background:linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 70%, var(--navy-3) 130%);
    color:#fff; border-radius:var(--radius-lg); padding:36px 30px; position:relative; overflow:hidden;
    box-shadow:0 24px 48px -20px rgba(11,37,69,0.4);
  }
  .why-panel::before{
    content:''; position:absolute; width:220px; height:220px; border-radius:50%;
    background:var(--gold); opacity:0.18; filter:blur(50px); top:-60px; right:-40px;
  }
  .why-panel .eyebrow{ margin-bottom:14px; color:var(--gold-bright); position:relative; }
  .why-panel .eyebrow::before{ background:var(--gold-bright); }
  .why-panel h3{ font-size:20px; margin-bottom:12px; color:#fff; position:relative; }
  .why-panel p{ color:#C4D1DF; font-size:13px; margin-bottom:22px; position:relative; }
  .why-panel .btn{ position:relative; }

  /* ---------- process ---------- */
  .process-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
  @media(max-width:900px){ .process-grid{ grid-template-columns:1fr 1fr; } }
  @media(max-width:560px){ .process-grid{ grid-template-columns:1fr; } }
  .step{
    padding:22px 20px; border-radius:var(--radius); background:#fff; border:1px solid var(--line);
    transition:transform .3s ease, box-shadow .3s ease;
  }
  .step:hover{ transform:translateY(-4px); box-shadow:0 16px 30px -18px rgba(11,37,69,0.25); }
  .step-num{
    width:30px; height:30px; border-radius:9px; display:flex; align-items:center; justify-content:center;
    background:linear-gradient(135deg, var(--gold-bright), var(--gold));
    font-family:'Space Grotesk',sans-serif; font-size:12px; font-weight:700; color:#20140a;
    margin-bottom:14px;
  }
  .step h4{ font-size:14.5px; margin-bottom:6px; }
  .step p{ font-size:12.5px; color:var(--text-muted); }

  /* ---------- faq ---------- */
  .faq{ max-width:720px; margin:0 auto; }
  .faq-item{
    border:1px solid var(--line); border-radius:var(--radius-sm); margin-bottom:10px; overflow:hidden;
    transition:border-color .25s ease, box-shadow .25s ease;
  }
  .faq-item.open{ border-color:var(--gold-bright); box-shadow:0 12px 26px -18px rgba(184,146,63,0.35); }
  .faq-q{
    width:100%; text-align:left; background:none; border:none; color:var(--navy);
    display:flex; align-items:center; justify-content:space-between;
    padding:16px 18px; font-family:'Space Grotesk',sans-serif; font-size:14px; font-weight:600; cursor:pointer;
  }
  .faq-q .icon{
    width:22px; height:22px; border-radius:50%; background:var(--bg-soft); color:var(--gold-deep);
    display:flex; align-items:center; justify-content:center; font-size:14px;
    transition:transform .25s ease, background .25s ease; flex:none; margin-left:16px;
  }
  .faq-item.open .faq-q .icon{ transform:rotate(45deg); background:var(--gold-bright); color:#20140a; }
  .faq-a{ max-height:0; overflow:hidden; transition:max-height .3s ease; }
  .faq-a-inner{ padding:0 18px 17px; font-size:13px; color:var(--text-muted); max-width:62ch; }

  /* ---------- final cta ---------- */
  .final-cta{
    position:relative; overflow:hidden;
    background:linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 60%, var(--navy-3) 140%);
    text-align:center; padding:76px 0 84px;
  }
  .final-cta .hero-blob{ opacity:0.25; }
  .final-cta .blob-a{ width:320px; height:320px; background:var(--gold); top:-100px; left:8%; }
  .final-cta .blob-b{ width:260px; height:260px; background:var(--navy-glow); bottom:-80px; right:12%; }
  .final-cta h2{ font-size:clamp(22px,2.8vw,32px); margin-bottom:12px; max-width:20ch; margin-left:auto; margin-right:auto; color:#fff; position:relative; }
  .final-cta > .wrap{ position:relative; z-index:1; }
  .final-cta p{ color:#C4D1DF; font-size:13.5px; margin-bottom:28px; }
  .final-form{ max-width:440px; margin:0 auto; text-align:left; }

  /* ---------- footer ---------- */
  footer{ padding:28px 0 100px; }
  .footer-inner{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; }
  .footer-inner p{ font-size:11px; color:var(--text-dim); }

  /* ---------- floating whatsapp ---------- */
  a.fab-whats, a.fab-whats:link, a.fab-whats:visited, a.fab-whats:hover{
    text-decoration:none !important; color:#fff !important;
  }
  .fab-whats{
    position:fixed; right:20px; bottom:20px; z-index:70;
    height:56px; min-width:56px; border-radius:var(--radius-pill);
    background:linear-gradient(135deg, #2FE87F, var(--whats-deep));
    color:#fff;
    display:flex; align-items:center; justify-content:center; gap:9px;
    padding:0 18px 0 0;
    box-shadow:0 14px 30px -8px rgba(18,140,66,0.55), inset 0 1px 0 rgba(255,255,255,0.3);
    transition:transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease, padding .25s ease, min-width .25s ease;
    overflow:hidden;
  }
  .fab-whats .icon-wrap{
    width:56px; height:56px; border-radius:50%; display:flex; align-items:center; justify-content:center; flex:none;
  }
  .fab-whats svg{ width:26px; height:26px; }
  .fab-whats .label{
    font-family:'Space Grotesk',sans-serif; font-weight:600; font-size:13px;
    max-width:0; overflow:hidden; white-space:nowrap; opacity:0;
    transition:max-width .3s ease, opacity .25s ease;
  }
  .fab-whats:hover{ transform:translateY(-3px); box-shadow:0 20px 38px -8px rgba(18,140,66,0.6); padding-right:20px; }
  .fab-whats:hover .label{ max-width:160px; opacity:1; margin-right:2px; }
  .fab-whats .ring{
    position:absolute; inset:0; border-radius:var(--radius-pill); border:2px solid rgba(47,232,127,0.6);
    animation:pulse-ring 2.4s cubic-bezier(.4,0,.6,1) infinite;
    pointer-events:none;
  }
  @keyframes pulse-ring{ 0%{ transform:scale(1); opacity:.7; } 100%{ transform:scale(1.35); opacity:0; } }
  @media (prefers-reduced-motion: reduce){ .fab-whats .ring{ animation:none; display:none; } }