
/* =========================================================
   ELAINE LEAL — MODERN UI LAYER
   Visual-only layer: does not alter page copy or information
   architecture. Optimized for hierarchy, accessibility,
   responsive UX and lightweight rendering.
   ========================================================= */

:root{
  --ui-orange:#DF4C2B;
  --ui-orange-dark:#C83E21;
  --ui-navy:#1F2937;
  --ui-deep:#111820;
  --ui-ink:#25313d;
  --ui-muted:#64748b;
  --ui-line:#e6e9ec;
  --ui-soft:#f7f8f7;
  --ui-cream:#fbf8f5;
  --ui-shadow:0 24px 70px rgba(17,24,39,.11);
  --ui-shadow-soft:0 12px 36px rgba(17,24,39,.07);
  --ui-radius:26px;
}

/* ---------- Global rhythm / typography ---------- */
body{
  background:#fff;
  color:var(--ui-ink);
  text-rendering:optimizeLegibility;
}
main{overflow:clip}
h1,h2,h3,h4{
  text-wrap:balance;
}
p{
  text-wrap:pretty;
}
::selection{
  background:rgba(223,76,43,.18);
  color:var(--ui-navy);
}
:focus-visible{
  outline:3px solid rgba(223,76,43,.42)!important;
  outline-offset:3px;
}

/* ---------- Header: normal document flow, never fixed ---------- */
.site-header{
  position:relative!important;
  background:rgba(255,255,255,.96)!important;
  border-bottom:1px solid rgba(31,41,55,.09)!important;
  box-shadow:0 4px 20px rgba(17,24,39,.035)!important;
}
.site-header .header-inner,
.site-header .container.header-inner{
  min-height:92px;
}
.site-header .site-brand img{
  width:218px;
  max-width:218px;
  transition:transform .2s ease;
}
.site-header .site-brand:hover img{
  transform:translateY(-1px);
}
.site-header .primary-nav{
  gap:22px;
}
.site-header .primary-nav a:not(.nav-cta){
  position:relative;
  padding:12px 2px;
}
.site-header .primary-nav a:not(.nav-cta)::after{
  content:"";
  position:absolute;
  left:2px;
  right:2px;
  bottom:4px;
  height:2px;
  border-radius:2px;
  background:var(--ui-orange);
  transform:scaleX(0);
  transform-origin:center;
  transition:transform .18s ease;
}
.site-header .primary-nav a:not(.nav-cta):hover::after,
.site-header .primary-nav a[aria-current="page"]:not(.nav-cta)::after{
  transform:scaleX(1);
}
.site-header .primary-nav .nav-cta{
  min-height:50px;
  padding:0 22px;
}

/* ---------- Buttons ---------- */
.btn,
.button,
.nav-cta{
  -webkit-tap-highlight-color:transparent;
}
.btn{
  min-height:52px;
  padding-inline:24px;
  letter-spacing:-.01em;
}
.btn.primary,
.btn.btn-primary,
.button,
.nav-cta{
  background:var(--ui-orange)!important;
  border-color:var(--ui-orange)!important;
  color:#fff!important;
  box-shadow:0 12px 28px rgba(223,76,43,.18);
}
.btn.primary:hover,
.btn.btn-primary:hover,
.button:hover,
.nav-cta:hover{
  background:var(--ui-orange-dark)!important;
  border-color:var(--ui-orange-dark)!important;
  color:#fff!important;
  box-shadow:0 16px 34px rgba(223,76,43,.23);
}
.btn.secondary,
.btn.btn-secondary{
  background:#fff!important;
  color:var(--ui-navy)!important;
  border-color:#d6dce1!important;
}
.btn.secondary:hover,
.btn.btn-secondary:hover{
  border-color:var(--ui-orange)!important;
  color:var(--ui-orange)!important;
}

/* ---------- Section labels ---------- */
.eyebrow{
  color:var(--ui-orange)!important;
  font-weight:900!important;
  letter-spacing:.18em!important;
  font-size:.72rem!important;
}

/* =========================================================
   HERO BANNERS
   Each principal banner gets a distinct visual treatment.
   ========================================================= */

/* HOME */
body:not(:has(.mentoria-hero)):not(:has(.consultoria-hero)):not(:has(.implementation-hero)):not(:has(.diagnostic-hero)):not(:has(.pf-hero)):not(:has(.capture-hero)) .hero.section{
  position:relative;
  isolation:isolate;
  padding-top:88px;
  padding-bottom:92px;
  color:#fff;
  background:
    radial-gradient(circle at 82% 18%,rgba(223,76,43,.30),transparent 25%),
    radial-gradient(circle at 60% 90%,rgba(223,76,43,.10),transparent 30%),
    linear-gradient(135deg,#10171f 0%,#1c2732 54%,#111820 100%);
}
body:not(:has(.mentoria-hero)):not(:has(.consultoria-hero)):not(:has(.implementation-hero)):not(:has(.diagnostic-hero)):not(:has(.pf-hero)):not(:has(.capture-hero)) .hero.section::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  opacity:.24;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 1px);
  background-size:44px 44px;
  mask-image:linear-gradient(to bottom,black,transparent 88%);
}
body:not(:has(.mentoria-hero)):not(:has(.consultoria-hero)):not(:has(.implementation-hero)):not(:has(.diagnostic-hero)):not(:has(.pf-hero)):not(:has(.capture-hero)) .hero h1{
  color:#fff;
  max-width:820px;
}
body:not(:has(.mentoria-hero)):not(:has(.consultoria-hero)):not(:has(.implementation-hero)):not(:has(.diagnostic-hero)):not(:has(.pf-hero)):not(:has(.capture-hero)) .hero .lead{
  color:#e4e9ed;
}
body:not(:has(.mentoria-hero)):not(:has(.consultoria-hero)):not(:has(.implementation-hero)):not(:has(.diagnostic-hero)):not(:has(.pf-hero)):not(:has(.capture-hero)) .hero .copy{
  color:#bfc9d1;
}
body:not(:has(.mentoria-hero)):not(:has(.consultoria-hero)):not(:has(.implementation-hero)):not(:has(.diagnostic-hero)):not(:has(.pf-hero)):not(:has(.capture-hero)) .hero .micro{
  color:#aab6bf;
}
body:not(:has(.mentoria-hero)):not(:has(.consultoria-hero)):not(:has(.implementation-hero)):not(:has(.diagnostic-hero)):not(:has(.pf-hero)):not(:has(.capture-hero)) .hero .btn.secondary{
  background:rgba(255,255,255,.08)!important;
  border-color:rgba(255,255,255,.28)!important;
  color:#fff!important;
  backdrop-filter:blur(8px);
}
body:not(:has(.mentoria-hero)):not(:has(.consultoria-hero)):not(:has(.implementation-hero)):not(:has(.diagnostic-hero)):not(:has(.pf-hero)):not(:has(.capture-hero)) .hero .btn.secondary:hover{
  background:#fff!important;
  color:var(--ui-navy)!important;
}

/* Home visual card */
body:not(:has(.mentoria-hero)):not(:has(.consultoria-hero)):not(:has(.implementation-hero)):not(:has(.diagnostic-hero)):not(:has(.pf-hero)):not(:has(.capture-hero)) .hero .window{
  border:1px solid rgba(255,255,255,.16);
  box-shadow:0 30px 90px rgba(0,0,0,.28);
  transform:rotate(.35deg);
}
body:not(:has(.mentoria-hero)):not(:has(.consultoria-hero)):not(:has(.implementation-hero)):not(:has(.diagnostic-hero)):not(:has(.pf-hero)):not(:has(.capture-hero)) .hero .windowbody{
  background:linear-gradient(145deg,#fff 0%,#f8f4f1 100%);
}

/* INTERNAL SERVICE HEROES */
.mentoria-hero,
.consultoria-hero,
.implementation-hero,
.diagnostic-hero,
.pf-hero{
  position:relative;
  isolation:isolate;
  overflow:hidden;
}
.mentoria-hero::before,
.consultoria-hero::before,
.implementation-hero::before,
.diagnostic-hero::before,
.pf-hero::before{
  content:"";
  position:absolute;
  z-index:-1;
  width:560px;
  height:560px;
  right:-180px;
  top:-240px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(223,76,43,.24),rgba(223,76,43,0) 68%);
  pointer-events:none;
}
.mentoria-hero::after,
.consultoria-hero::after,
.implementation-hero::after,
.diagnostic-hero::after,
.pf-hero::after{
  content:"";
  position:absolute;
  z-index:-1;
  inset:0;
  opacity:.32;
  pointer-events:none;
  background-image:
    linear-gradient(rgba(31,41,55,.06) 1px,transparent 1px),
    linear-gradient(90deg,rgba(31,41,55,.06) 1px,transparent 1px);
  background-size:48px 48px;
  mask-image:linear-gradient(115deg,black,transparent 70%);
}

/* Mentoria = premium dark banner */
.mentoria-hero{
  background:
    radial-gradient(circle at 75% 25%,rgba(223,76,43,.24),transparent 28%),
    linear-gradient(135deg,#111820,#1d2833);
}
.mentoria-hero h1,
.mentoria-hero .hero-subtitle{
  color:#fff!important;
}
.mentoria-hero .hero-copy{color:#cbd4da!important}
.mentoria-hero .btn.btn-secondary{
  background:rgba(255,255,255,.07)!important;
  color:#fff!important;
  border-color:rgba(255,255,255,.25)!important;
}
.mentoria-hero-card{
  box-shadow:0 30px 80px rgba(0,0,0,.24)!important;
}

/* Consultoria = warm editorial */
.consultoria-hero{
  background:
    radial-gradient(circle at 86% 22%,rgba(223,76,43,.18),transparent 26%),
    linear-gradient(135deg,#fff 0%,#fbf4ef 100%);
}
.consultoria-hero-card{
  box-shadow:0 28px 70px rgba(61,46,39,.12)!important;
}

/* Implementação = dark operational */
.implementation-hero{
  background:
    radial-gradient(circle at 84% 20%,rgba(223,76,43,.22),transparent 25%),
    linear-gradient(135deg,#121a22 0%,#26333f 100%);
}
.implementation-hero h1,
.implementation-hero .implementation-lead{
  color:#fff!important;
}
.implementation-hero .implementation-copy{color:#c7d0d7!important}
.implementation-hero .btn.btn-secondary{
  background:rgba(255,255,255,.08)!important;
  color:#fff!important;
  border-color:rgba(255,255,255,.25)!important;
}
.implementation-hero-card{
  box-shadow:0 30px 80px rgba(0,0,0,.25)!important;
}

/* Diagnóstico = conversion-focused orange halo */
.diagnostic-hero{
  background:
    radial-gradient(circle at 85% 20%,rgba(223,76,43,.24),transparent 26%),
    linear-gradient(135deg,#fff 0%,#fbf5f1 100%);
}
.diagnostic-booking-card{
  border-color:rgba(223,76,43,.22)!important;
  box-shadow:0 28px 75px rgba(61,46,39,.13)!important;
}

/* Para fabricantes = strategic grid */
.pf-hero{
  background:
    radial-gradient(circle at 88% 24%,rgba(223,76,43,.25),transparent 27%),
    linear-gradient(135deg,#111820 0%,#202d39 100%);
}
.pf-hero h1,
.pf-hero .pf-lead{
  color:#fff!important;
}
.pf-hero .btn.btn-secondary{
  background:rgba(255,255,255,.08)!important;
  color:#fff!important;
  border-color:rgba(255,255,255,.25)!important;
}
.pf-hero-card{
  box-shadow:0 30px 80px rgba(0,0,0,.24)!important;
}

/* Generic hero on Sobre/Cases: identify by content, no markup change */
body:has(.featured) .hero,
body:has(.hero-inner) .hero{
  position:relative;
  isolation:isolate;
  overflow:hidden;
}
body:has(.featured) .hero{
  background:
    radial-gradient(circle at 82% 20%,rgba(223,76,43,.20),transparent 26%),
    linear-gradient(135deg,#fff 0%,#fbf5f1 100%);
}
body:has(.hero-inner) .hero{
  background:
    radial-gradient(circle at 85% 18%,rgba(223,76,43,.23),transparent 25%),
    linear-gradient(135deg,#111820 0%,#25323e 100%);
}
body:has(.hero-inner) .hero h1,
body:has(.hero-inner) .hero .lead{
  color:#fff;
}
body:has(.hero-inner) .hero .photo{
  box-shadow:0 32px 85px rgba(0,0,0,.24);
  border:1px solid rgba(255,255,255,.12);
}

/* Diagnostic form banner */
.capture-hero{
  position:relative;
  isolation:isolate;
  background:
    radial-gradient(circle at 88% 18%,rgba(223,76,43,.25),transparent 28%),
    linear-gradient(135deg,#111820 0%,#273540 100%)!important;
}
.capture-hero::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  opacity:.25;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 1px);
  background-size:46px 46px;
}
.capture-copy h1,
.capture-copy>p:not(.eyebrow),
.capture-benefits li{
  color:#fff!important;
}
.capture-form-card{
  box-shadow:0 30px 80px rgba(0,0,0,.24)!important;
}

/* Contact page — modern editorial hero */
body:has(a[href="mailto:contato@portalprojetos.com.br"]) main>.section:first-child{
  position:relative;
  background:
    radial-gradient(circle at 90% 12%,rgba(223,76,43,.18),transparent 26%),
    linear-gradient(135deg,#fff 0%,#fbf5f1 100%);
}
body:has(a[href="mailto:contato@portalprojetos.com.br"]) main>.section:first-child::after{
  content:"";
  position:absolute;
  width:420px;
  height:420px;
  right:-170px;
  bottom:-240px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(223,76,43,.12),transparent 68%);
  pointer-events:none;
}

/* Legal pages: restrained, premium and readable */
.legal-hero{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 90% 10%,rgba(223,76,43,.13),transparent 24%),
    linear-gradient(135deg,#fff,#f8f6f3)!important;
}
.legal-content{
  max-width:900px;
}
.legal-content h2{
  position:relative;
  padding-left:18px;
}
.legal-content h2::before{
  content:"";
  position:absolute;
  left:0;
  top:.2em;
  bottom:.2em;
  width:3px;
  border-radius:4px;
  background:var(--ui-orange);
}

/* ---------- Sections: visual continuity ---------- */
.section{
  position:relative;
}
.section.light{
  background:linear-gradient(180deg,#f7f8f7 0%,#fff 100%);
}
.section.soft{
  background:linear-gradient(180deg,#fbf8f5 0%,#fff 100%);
}
.section.dark{
  background:
    radial-gradient(circle at 90% 20%,rgba(223,76,43,.12),transparent 24%),
    linear-gradient(135deg,#111820,#1b2630);
}
.section.dark::before{
  content:"";
  position:absolute;
  inset:0;
  opacity:.13;
  pointer-events:none;
  background-image:linear-gradient(rgba(255,255,255,.08) 1px,transparent 1px);
  background-size:100% 44px;
}
.section.dark>.container{
  position:relative;
}

/* ---------- Cards / grids ---------- */
.points article,
.grid6 article,
.mentor-card,
.method article,
.pf-grid article,
.stage-grid article,
.help-grid article,
.consulting-grid article,
.implementation-grid article,
.diagnostic-audience article,
.review,
.video-card,
.featured-card,
.badge,
.card{
  border-color:rgba(31,41,55,.10)!important;
  box-shadow:var(--ui-shadow-soft);
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
}
.points article:hover,
.grid6 article:hover,
.pf-grid article:hover,
.stage-grid article:hover,
.help-grid article:hover,
.consulting-grid article:hover,
.implementation-grid article:hover,
.diagnostic-audience article:hover,
.review:hover,
.video-card:hover,
.featured-card:hover,
.badge:hover,
.card:hover{
  transform:translateY(-4px);
  box-shadow:var(--ui-shadow);
  border-color:rgba(223,76,43,.24)!important;
}
.grid6 article,
.pf-grid article{
  position:relative;
  overflow:hidden;
}
.grid6 article::before,
.pf-grid article::before,
.stage-grid article::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:100%;
  height:3px;
  background:linear-gradient(90deg,var(--ui-orange),rgba(223,76,43,0));
  opacity:.7;
}

/* Method / process visual hierarchy */
.method article.featured{
  box-shadow:0 24px 60px rgba(223,76,43,.15)!important;
  background:linear-gradient(180deg,#fff,#fff8f5)!important;
}
.method article>b,
.method label,
.service .num{
  color:var(--ui-orange)!important;
}

/* Case home */
.case-home{
  background:
    radial-gradient(circle at 15% 15%,rgba(223,76,43,.10),transparent 26%),
    linear-gradient(135deg,#fbf8f5,#fff);
}
.case-home-card{
  box-shadow:0 28px 75px rgba(31,41,55,.13)!important;
  border:1px solid rgba(31,41,55,.09)!important;
}
.case-home-video,
.featured-video{
  box-shadow:0 16px 40px rgba(0,0,0,.16);
}

/* Cases video cards */
.video-card{
  transition:transform .22s ease,box-shadow .22s ease;
}
.video-frame{
  background:#10151b;
}
.video-card:hover .video-frame{
  box-shadow:inset 0 0 0 2px rgba(223,76,43,.25);
}

/* ---------- CTA blocks ---------- */
.ctabox,
.cta-box{
  position:relative;
  overflow:hidden;
  box-shadow:0 30px 80px rgba(17,24,39,.16)!important;
}
.ctabox::before,
.cta-box::before{
  content:"";
  position:absolute;
  width:380px;
  height:380px;
  right:-170px;
  top:-220px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(223,76,43,.28),transparent 68%);
  pointer-events:none;
}
.ctabox>*,
.cta-box>*{
  position:relative;
}

/* ---------- Footer ---------- */
.site-footer{
  position:relative;
  background:
    radial-gradient(circle at 88% 15%,rgba(223,76,43,.10),transparent 22%),
    #111820!important;
}
.site-footer .footer-grid{
  padding-top:8px;
}
.site-footer .footer-title{
  color:var(--ui-orange)!important;
}
.site-footer .footer-social a{
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:8px 10px;
  border-radius:999px;
  transition:background .18s ease,color .18s ease,transform .18s ease;
}
.site-footer .footer-social a:hover{
  color:#fff!important;
  background:rgba(255,255,255,.08);
  transform:translateY(-1px);
}
.site-footer .footer-social .social-icon{
  filter:none;
}
.site-footer .footer-bottom{
  align-items:center;
}

/* ---------- Forms ---------- */
.capture-form-card input,
.capture-form-card textarea,
.capture-form-card select,
.form-field input,
.form-field textarea,
.form-field select{
  transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
.capture-form-card input:hover,
.capture-form-card textarea:hover,
.capture-form-card select:hover,
.form-field input:hover,
.form-field textarea:hover,
.form-field select:hover{
  border-color:#aeb8c0;
}
.capture-form-card input:focus,
.capture-form-card textarea:focus,
.capture-form-card select:focus,
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus{
  border-color:var(--ui-orange)!important;
  box-shadow:0 0 0 4px rgba(223,76,43,.12)!important;
}

/* ---------- Mobile: preserve content order, improve touch UX ---------- */
@media (max-width:1050px){
  .site-header .site-brand img{width:200px;max-width:200px}
  .site-header .primary-nav{gap:14px}
  .site-header .primary-nav a{font-size:14px!important}
  .site-header .primary-nav .nav-cta{padding-inline:17px}
  .hero-grid,
  .mentoria-hero-grid,
  .consultoria-hero-grid,
  .implementation-hero-grid,
  .diagnostic-hero-grid,
  .pf-hero-grid{
    gap:42px;
  }
}
@media (max-width:780px){
  .site-header .site-brand img{width:190px;max-width:190px}
  .site-header .header-inner,
  .site-header .container.header-inner{
    min-height:76px;
  }
  .site-header .primary-nav{
    top:76px;
    border-radius:18px!important;
    box-shadow:0 24px 60px rgba(17,24,39,.16)!important;
  }
  .site-header .primary-nav a:not(.nav-cta)::after{
    display:none;
  }
  .hero.section,
  .mentoria-hero,
  .consultoria-hero,
  .implementation-hero,
  .diagnostic-hero,
  .pf-hero,
  .capture-hero{
    padding-top:64px!important;
    padding-bottom:68px!important;
  }
  .hero h1,
  .mentoria-hero h1,
  .consultoria-hero h1,
  .implementation-hero h1,
  .diagnostic-hero h1,
  .pf-hero h1,
  .capture-copy h1{
    font-size:clamp(2.6rem,11.5vw,4.1rem)!important;
    line-height:.99!important;
  }
  .hero-art{
    order:2;
  }
  .hero .window{
    transform:none!important;
  }
  .case-home-grid,
  .featured{
    gap:32px!important;
  }
  .case-home-video iframe,
  .featured-video iframe{
    min-height:0;
  }
  .section{
    padding-top:78px;
    padding-bottom:78px;
  }
  .points article,
  .grid6 article,
  .review,
  .video-card,
  .badge,
  .card{
    box-shadow:var(--ui-shadow-soft);
  }
  .site-footer .footer-social a{
    padding:8px 7px;
  }
}
@media (max-width:480px){
  .site-header .site-brand img{width:170px;max-width:170px}
  .btn,
  .button{
    width:100%;
  }
  .actions{
    width:100%;
  }
  .hero .windowbody,
  .capture-form-card{
    padding:22px;
  }
  .featured-card{
    padding:24px;
  }
}

/* Respect users who disable motion. */
@media (prefers-reduced-motion:reduce){
  *,
  *::before,
  *::after{
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
    scroll-behavior:auto!important;
  }
}

/* Thank-you page */
.thanks-page{
  background:
    radial-gradient(circle at 90% 10%,rgba(223,76,43,.14),transparent 25%),
    linear-gradient(135deg,#fff,#fbf6f2)!important;
}
.thanks-card{
  border-color:rgba(31,41,55,.09)!important;
  box-shadow:0 30px 80px rgba(31,41,55,.13)!important;
}
.thanks-icon{
  box-shadow:0 12px 28px rgba(223,76,43,.22);
}

/* Make the principal visual blocks feel intentionally layered */
.hero-art,
.mentoria-hero-card,
.consultoria-hero-card,
.implementation-hero-card,
.diagnostic-booking-card,
.pf-hero-card,
.capture-form-card{
  position:relative;
}
.hero-art::after,
.mentoria-hero-card::after,
.consultoria-hero-card::after,
.implementation-hero-card::after,
.diagnostic-booking-card::after,
.pf-hero-card::after,
.capture-form-card::after{
  content:"";
  position:absolute;
  inset:10px -10px -10px 10px;
  z-index:-1;
  border-radius:inherit;
  background:rgba(223,76,43,.07);
  filter:blur(18px);
  pointer-events:none;
}

/* Keep long-form legal content comfortable to scan */
.legal-content{
  line-height:1.78;
}
.legal-content p,
.legal-content li{
  max-width:78ch;
}


/* =========================================================
   V10 — Correções visuais solicitadas
   Somente apresentação/UX; nenhum conteúdo ou estrutura
   de informação é alterado.
   ========================================================= */

/* 1) Skip link: acessível, mas invisível até receber foco.
   As páginas legais carregam global.css diretamente e não
   possuem a regra antiga que escondia .skip. */
.skip{
  position:absolute!important;
  left:-9999px!important;
  top:8px!important;
  width:auto!important;
  height:auto!important;
  z-index:10000!important;
  padding:10px 14px!important;
  border-radius:8px!important;
  background:#fff!important;
  color:var(--ui-navy)!important;
  border:1px solid rgba(31,41,55,.18)!important;
  box-shadow:0 10px 30px rgba(17,24,39,.12)!important;
  font-weight:800!important;
}
.skip:focus{
  left:16px!important;
  top:16px!important;
}

/* 2) CASES — o seletor visual da Home não deve deixar o
   título dos Cases branco sobre fundo claro. */
body:has(.featured) .hero h1{
  color:var(--ui-navy)!important;
}
body:has(.featured) .hero .lead{
  color:var(--ui-muted)!important;
}
body:has(.featured) .hero .eyebrow{
  color:var(--ui-orange)!important;
}
body:has(.featured) .hero{
  color:var(--ui-navy);
}
body:has(.featured) .hero .btn-primary{
  color:#fff!important;
}

/* 3) MENTORIA — quadro "Próximo passo".
   O CTA passa a ter aparência de bloco premium, com
   hierarquia clara entre texto e ação. */
.mentoria-hero ~ .section-cta .cta-box,
main .section-cta .cta-box{
  background:
    radial-gradient(circle at 90% 15%,rgba(223,76,43,.20),transparent 30%),
    linear-gradient(135deg,#111820 0%,#202c37 100%)!important;
  color:#fff!important;
  border:1px solid rgba(255,255,255,.08);
  border-radius:28px;
  padding:52px 58px;
}
main .section-cta .cta-box h2{
  color:#fff!important;
  max-width:760px;
}
main .section-cta .cta-box > div > p:not(.eyebrow),
main .section-cta .cta-box .cta-note{
  color:rgba(255,255,255,.76)!important;
}
main .section-cta .cta-box .eyebrow{
  color:var(--ui-orange)!important;
}
main .section-cta .cta-action{
  min-width:250px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
}
main .section-cta .cta-action .btn{
  white-space:nowrap;
}
@media(max-width:760px){
  main .section-cta .cta-box{
    padding:36px 26px;
  }
  main .section-cta .cta-action{
    min-width:0;
    width:100%;
  }
  main .section-cta .cta-action .btn{
    width:100%;
  }
}

/* 4) SOLICITAR DIAGNÓSTICO — banner deliberadamente branco.
   Mantém o destaque pelo contraste, tipografia e card,
   sem criar um fundo escuro. */
.capture-hero{
  background:#fff!important;
  color:var(--ui-navy)!important;
}
.capture-hero::after{
  opacity:.22!important;
  background-image:
    linear-gradient(rgba(31,41,55,.055) 1px,transparent 1px),
    linear-gradient(90deg,rgba(31,41,55,.055) 1px,transparent 1px)!important;
}
.capture-copy h1,
.capture-copy>p:not(.eyebrow),
.capture-benefits li{
  color:var(--ui-navy)!important;
}
.capture-copy>p:not(.eyebrow){
  color:#52606c!important;
}
.capture-benefits li:before{
  color:var(--ui-orange)!important;
}
.capture-form-card{
  border-color:rgba(31,41,55,.12)!important;
  background:#fff!important;
  box-shadow:0 24px 65px rgba(31,41,55,.12)!important;
}
.capture-form-card h2,
.capture-form-card .form-field label{
  color:var(--ui-navy)!important;
}
.capture-form-card>p,
.capture-form-card .form-help,
.capture-form-card .form-note{
  color:#64748b!important;
}
.capture-form-card input,
.capture-form-card textarea,
.capture-form-card select{
  color:var(--ui-navy)!important;
  background:#fff!important;
}

/* 5) PÁGINAS LEGAIS — aparência limpa e sem o skip link
   aparecendo no fluxo normal da página. */
body:has(.legal-hero) .site-header{
  position:relative!important;
}
body:has(.legal-hero) .legal-hero h1{
  color:var(--ui-navy)!important;
}
body:has(.legal-hero) .legal-hero .hero-lead{
  color:#64748b!important;
}
body:has(.legal-hero) .legal-content{
  color:#3f4a55;
}
body:has(.legal-hero) .legal-content h2{
  color:var(--ui-navy)!important;
}
body:has(.legal-hero) .legal-content p,
body:has(.legal-hero) .legal-content li{
  color:#52606c;
}
body:has(.legal-hero) .legal-content a{
  color:var(--ui-orange);
}

/* Evita corte horizontal acidental no cabeçalho das páginas
   legais e mantém o conteúdo acessível em resoluções menores. */
@media(max-width:1150px) and (min-width:781px){
  .site-header .primary-nav{
    gap:12px;
  }
  .site-header .primary-nav a{
    font-size:13px!important;
  }
  .site-header .primary-nav .nav-cta{
    padding-inline:14px;
  }
}

/* =========================================================
   V11 — REFINAMENTO VISUAL FINAL
   Polimento de consistência, contraste, escala tipográfica,
   navegação, espaçamento, cartões, banners e responsividade.
   Não altera conteúdo nem arquitetura das páginas.
   ========================================================= */

:root{
  --ui-orange:#DF4C2B;
  --ui-orange-dark:#C83E21;
  --ui-navy:#1F2937;
  --ui-deep:#111820;
  --ui-text:#26313D;
  --ui-muted:#667383;
  --ui-line:#E4E8EB;
  --ui-max:1240px;
}

html{background:#fff;overflow-x:hidden}
body{
  min-width:320px;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  color:var(--ui-text);
  background:#fff;
}

/* ---------- Header: one consistent system on every page ---------- */
.site-header .header-inner,
.site-header .container.header-inner{
  width:min(calc(100% - 40px),var(--ui-max));
  min-height:92px;
  padding:14px 0;
  gap:22px;
}
.site-header .site-brand img{
  width:210px;
  max-width:210px;
}
.site-header .primary-nav{
  gap:19px;
  align-items:center;
}
.site-header .primary-nav a:not(.nav-cta){
  font-size:14.5px!important;
  font-weight:750!important;
}
.site-header .primary-nav .nav-cta{
  min-height:50px;
  padding:0 22px;
  font-size:14px!important;
  box-shadow:0 10px 26px rgba(223,76,43,.17);
}
.site-header .menu-toggle{
  display:none;
  flex:0 0 44px;
}

/* ---------- Consistent page rhythm ---------- */
main>.section:first-child{scroll-margin-top:20px}
.section{padding:96px 0}
.section>.container,
.hero>.container,
.legal-hero-inner,
.legal-content{
  position:relative;
}

.heading h2,
.section-heading h2,
.service h2{
  text-wrap:balance;
}
.heading p,
.section-heading p,
.service p,
.lead,
.copy,
.hero-lead{
  text-wrap:pretty;
}

/* ---------- Principal banners: stronger visual separation ---------- */
.hero,
.mentoria-hero,
.consultoria-hero,
.implementation-hero,
.diagnostic-hero,
.pf-hero,
.capture-hero,
body:has(.featured) .hero,
body:has(.hero-inner) .hero,
.legal-hero{
  border-bottom:1px solid rgba(31,41,55,.08);
}

/* Subtle decorative glow without adding image weight */
.mentoria-hero::before,
.consultoria-hero::before,
.implementation-hero::before,
.diagnostic-hero::before,
.pf-hero::before,
body:has(.featured) .hero::before,
body:has(.hero-inner) .hero::before,
.legal-hero::before{
  filter:blur(2px);
}

/* ---------- CASES: guarantee readable hero copy ---------- */
body:has(.featured) .hero{
  min-height:460px;
  display:flex;
  align-items:center;
  background:
    radial-gradient(circle at 88% 18%,rgba(223,76,43,.17),transparent 25%),
    linear-gradient(135deg,#fff 0%,#fbf7f4 100%)!important;
}
body:has(.featured) .hero h1{
  color:var(--ui-navy)!important;
  font-family:Inter,ui-sans-serif,system-ui,sans-serif!important;
  font-size:clamp(3rem,5.2vw,5.6rem)!important;
  line-height:.98!important;
  letter-spacing:-.065em!important;
  max-width:980px!important;
}
body:has(.featured) .hero p:not(.eyebrow){
  color:#64748b!important;
  max-width:820px;
}
body:has(.featured) .hero .btn-primary{
  background:var(--ui-orange)!important;
  color:#fff!important;
}
body:has(.featured) .hero .btn-primary:hover{background:var(--ui-orange-dark)!important}

/* Cases cards: clean editorial presentation */
.featured-card,
.video-card,
.review{
  border-radius:22px!important;
  overflow:hidden;
}
.featured-card{padding:32px!important}
.featured-card .quote{line-height:1.28}

/* ---------- About / home portrait ---------- */
.portrait.portrait-photo{
  position:relative;
  overflow:hidden;
  min-height:480px!important;
  padding:0!important;
  background:#f3eee9!important;
}
.portrait.portrait-photo img{
  width:100%;
  height:100%;
  min-height:480px;
  object-fit:cover;
  object-position:center top;
  display:block;
}
.portrait.portrait-photo::after{
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:28%;
  background:linear-gradient(to top,rgba(17,24,32,.20),transparent);
  pointer-events:none;
}

/* ---------- Consistent section labels ---------- */
.eyebrow,
.section-heading .eyebrow,
.service .eyebrow,
.heading .eyebrow{
  color:var(--ui-orange)!important;
}

/* Dark sections keep labels orange and body text controlled */
.section.dark .eyebrow,
.section-dark .eyebrow,
.heading.light .eyebrow{color:#DF4C2B!important}

/* ---------- Number system ---------- */
.grid6 article>b,
.points article>b,
.method article>b,
.service .num,
.pf-grid article>b,
.stage-grid article>b{
  color:var(--ui-orange)!important;
  font-variant-numeric:tabular-nums;
}

/* ---------- Buttons: consistent tactile hierarchy ---------- */
.btn,
.button,
.nav-cta{
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease,border-color .18s ease,color .18s ease!important;
}
.btn.primary,
.btn.btn-primary,
.nav-cta,
.button,
.form-submit{
  background:var(--ui-orange)!important;
  border-color:var(--ui-orange)!important;
  color:#fff!important;
}
.btn.primary:hover,
.btn.btn-primary:hover,
.nav-cta:hover,
.button:hover,
.form-submit:hover{
  background:var(--ui-orange-dark)!important;
  border-color:var(--ui-orange-dark)!important;
  transform:translateY(-2px);
}
.btn.secondary:hover,
.btn.btn-secondary:hover{transform:translateY(-2px)}

/* ---------- Home case block ---------- */
.case-home{
  padding-top:104px;
  padding-bottom:104px;
}
.case-home-grid{
  display:grid;
  grid-template-columns:minmax(0,.88fr) minmax(520px,1.12fr);
  gap:58px;
  align-items:center;
}
.case-home-copy h2{
  max-width:760px;
  text-wrap:balance;
}
.case-home-copy>p:not(.eyebrow){
  color:#64748b;
  max-width:690px;
}
.case-home-card{
  border-radius:28px!important;
  background:#fff;
}
.case-home-video,
.featured-video{
  border-radius:20px;
  overflow:hidden;
  background:#10151b;
}
.case-home-video iframe,
.featured-video iframe{
  width:100%;
  aspect-ratio:16/9;
  display:block;
  border:0;
}

/* ---------- Section transitions / cards ---------- */
.grid6,
.points,
.pf-grid,
.consulting-grid,
.implementation-grid,
.diagnostic-audience,
.review-grid,
.video-grid{
  align-items:stretch;
}
.grid6 article,
.points article,
.pf-grid article,
.consulting-grid article,
.implementation-grid article,
.diagnostic-audience article,
.review,
.video-card,
.card,
.badge{
  border-radius:20px!important;
}

/* Avoid excessive hover movement on touch devices */
@media (hover:hover){
  .grid6 article:hover,
  .points article:hover,
  .pf-grid article:hover,
  .consulting-grid article:hover,
  .implementation-grid article:hover,
  .diagnostic-audience article:hover,
  .review:hover,
  .video-card:hover,
  .card:hover,
  .badge:hover{transform:translateY(-4px)}
}

/* ---------- CTA: final decision block ---------- */
.section.cta{padding-top:84px;padding-bottom:96px}
.ctabox{
  min-height:250px;
  padding:46px 50px!important;
  border-radius:28px!important;
}
.ctabox h2{max-width:780px}
.ctabox .btn.lightbtn{
  min-width:210px;
  background:#fff!important;
  color:var(--ui-navy)!important;
  border:1px solid rgba(255,255,255,.75)!important;
}
.ctabox .btn.lightbtn:hover{color:var(--ui-orange)!important}

/* ---------- Legal pages: editorial reading experience ---------- */
.legal-hero{
  padding:110px 0 92px!important;
  min-height:360px;
  display:flex;
  align-items:flex-end;
}
.legal-hero-inner{
  width:min(calc(100% - 48px),920px)!important;
  margin:0 auto!important;
}
.legal-hero h1{
  max-width:900px!important;
  font-size:clamp(3rem,5.2vw,5.5rem)!important;
  line-height:.99!important;
  letter-spacing:-.065em!important;
  text-wrap:balance;
}
.legal-hero .hero-lead{
  max-width:800px!important;
  font-size:1.12rem!important;
  line-height:1.7!important;
}
.legal-hero .updated{color:#7a858e!important;font-size:.88rem!important}
.legal-section{padding:84px 0 100px!important}
.legal-content{
  width:min(calc(100% - 48px),900px)!important;
  margin:0 auto!important;
}
.legal-content h2{
  margin-top:58px!important;
  margin-bottom:16px!important;
  font-size:clamp(1.55rem,2.4vw,2.2rem)!important;
  line-height:1.15!important;
  letter-spacing:-.035em!important;
}
.legal-content h2:first-child{margin-top:0!important}
.legal-content p,
.legal-content li{
  font-size:1rem!important;
  line-height:1.82!important;
  color:#52606c!important;
}
.legal-content ul{padding-left:1.2rem}
.legal-content .notice{
  margin-top:22px;
  padding:24px 26px!important;
  border-radius:18px!important;
  border:1px solid rgba(223,76,43,.20)!important;
  background:#fff8f5!important;
}

/* ---------- Solicitar diagnóstico: white conversion banner ---------- */
.capture-hero{
  padding-top:76px!important;
  padding-bottom:86px!important;
  background:#fff!important;
}
.capture-hero .capture-grid{
  align-items:start;
}
.capture-copy .eyebrow{color:var(--ui-orange)!important}
.capture-copy h1{
  color:var(--ui-navy)!important;
  max-width:650px;
}
.capture-copy>p:not(.eyebrow){color:#52606c!important}
.capture-benefits li{color:#3e4b56!important}
.capture-form-card{
  border:1px solid #e0e5e8!important;
  border-radius:26px!important;
  box-shadow:0 24px 70px rgba(31,41,55,.10)!important;
}
.capture-form-card input,
.capture-form-card textarea,
.capture-form-card select{
  border:1px solid #cfd6dc!important;
  border-radius:12px!important;
  min-height:54px;
}
.capture-form-card textarea{min-height:130px}

/* ---------- Footer: same visual signature everywhere ---------- */
.site-footer{
  padding-top:64px!important;
  padding-bottom:24px!important;
}
.site-footer .footer-grid,
.site-footer .container.footer-grid{
  gap:42px;
}
.site-footer .footer-title{
  color:var(--ui-orange)!important;
}
.site-footer .footer-bottom{
  margin-top:52px!important;
}
.site-footer .footer-social{
  gap:18px!important;
}
.site-footer .footer-social a{
  min-height:36px;
  padding:7px 9px!important;
}
.site-footer .footer-social .social-icon{
  width:19px!important;
  height:19px!important;
}

/* ---------- Tablet / notebook header ---------- */
@media (max-width:1200px) and (min-width:781px){
  .site-header .header-inner,
  .site-header .container.header-inner{width:min(calc(100% - 32px),1180px);gap:14px}
  .site-header .site-brand img{width:185px;max-width:185px}
  .site-header .primary-nav{gap:13px}
  .site-header .primary-nav a:not(.nav-cta){font-size:13px!important}
  .site-header .primary-nav .nav-cta{padding-inline:16px;font-size:12.5px!important}
}

/* ---------- Mobile navigation ---------- */
@media (max-width:780px){
  .site-header .header-inner,
  .site-header .container.header-inner{
    min-height:76px;
    padding:12px 0;
  }
  .site-header .site-brand img{width:175px;max-width:175px}
  .site-header .menu-toggle{
    display:inline-flex!important;
    align-items:center;
    justify-content:center;
  }
  .site-header .primary-nav{
    position:absolute!important;
    left:14px!important;
    right:14px!important;
    top:76px!important;
    display:none!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:2px!important;
    padding:14px!important;
    background:#fff!important;
    border:1px solid #e1e5e9!important;
    border-radius:18px!important;
    box-shadow:0 24px 60px rgba(17,24,39,.15)!important;
  }
  .site-header .primary-nav.open,
  .site-header .primary-nav.active{display:flex!important}
  .site-header .primary-nav a:not(.nav-cta){
    display:flex;
    min-height:46px;
    align-items:center;
    padding:10px 12px!important;
    border-radius:10px;
  }
  .site-header .primary-nav a:not(.nav-cta):hover{background:#f7f8f7}
  .site-header .primary-nav .nav-cta{
    width:100%;
    margin-top:6px;
  }
  .site-header .primary-nav a:not(.nav-cta)::after{display:none}

  .section{padding:74px 0}
  .hero,
  .mentoria-hero,
  .consultoria-hero,
  .implementation-hero,
  .diagnostic-hero,
  .pf-hero,
  .capture-hero{padding-top:62px!important;padding-bottom:68px!important}

  .hero h1,
  .mentoria-hero h1,
  .consultoria-hero h1,
  .implementation-hero h1,
  .diagnostic-hero h1,
  .pf-hero h1,
  .capture-copy h1,
  body:has(.featured) .hero h1,
  .legal-hero h1{
    font-size:clamp(2.55rem,11.5vw,4.15rem)!important;
    line-height:1!important;
    letter-spacing:-.055em!important;
  }

  .case-home-grid{grid-template-columns:1fr;gap:34px}
  .case-home{padding-top:76px;padding-bottom:76px}
  .case-home-card{order:2}

  .portrait.portrait-photo,
  .portrait.portrait-photo img{min-height:380px!important}

  .legal-hero{padding:74px 0 64px!important;min-height:0}
  .legal-hero-inner,.legal-content{width:min(calc(100% - 28px),900px)!important}
  .legal-section{padding:62px 0 76px!important}
  .legal-content h2{margin-top:44px!important}

  .ctabox{padding:34px 26px!important;min-height:0}
  .section.cta{padding:64px 0 76px}

  .site-footer .footer-grid,
  .site-footer .container.footer-grid{grid-template-columns:1fr!important;gap:34px}
  .site-footer .footer-bottom{flex-direction:column;align-items:flex-start!important;gap:18px}
  .site-footer .footer-social{flex-wrap:wrap}
}

@media (max-width:480px){
  .site-header .site-brand img{width:158px;max-width:158px}
  .container{width:min(calc(100% - 28px),var(--ui-max))}
  .btn,.button{min-height:52px}
  .case-home-card,.featured-card{padding:24px!important}
  .portrait.portrait-photo,
  .portrait.portrait-photo img{min-height:330px!important}
  .legal-content p,.legal-content li{font-size:.96rem!important}
}

/* ---------- Accessibility / performance ---------- */
img{content-visibility:auto}
iframe{max-width:100%}
@media (prefers-reduced-motion:reduce){
  .site-header .site-brand:hover img,
  .btn:hover,
  .button:hover,
  .nav-cta:hover{transform:none!important}
}
