/* ============================================================
   G9 REVESTIMENTOS — LANDING PAGES DE SEGMENTO
   Componentes exclusivos das páginas /hospitalar, /escolar,
   /comercio, /industria, /igrejas, /hotelaria, /corporativo,
   /academias.
   Usa os mesmos tokens de assets/css/style.css — nenhuma cor,
   fonte, raio ou sombra nova foi inventada aqui.
   ============================================================ */

/* ---------- HERO DO SEGMENTO ---------- */
.sg-hero{
  position:relative;overflow:hidden;color:#fff;
  background:linear-gradient(160deg,var(--navy-900) 0%,var(--navy-700) 58%,#03386F 100%);
  padding:clamp(40px,5vw,72px) 0 clamp(78px,8vw,118px);
}
.sg-hero__bg{position:absolute;inset:0;z-index:0}
.sg-hero__bg img{width:100%;height:100%;object-fit:cover;opacity:.32}
.sg-hero__bg::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(100deg,var(--navy-900) 6%,rgba(0,31,69,.86) 46%,rgba(0,31,69,.35) 100%);
}
.sg-hero .container{position:relative;z-index:1}
.sg-hero__grid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);gap:clamp(28px,4.5vw,64px);align-items:center}
.sg-hero .eyebrow-tag{color:var(--wa)}
.sg-hero h1{margin-top:12px;color:#fff;font-size:clamp(29px,3.5vw,50px);line-height:1.07;letter-spacing:-.022em;text-wrap:balance}
.sg-hero__lead{margin-top:18px;max-width:56ch;font-size:clamp(15.5px,1.3vw,18px);line-height:1.65;color:rgba(255,255,255,.86)}
.sg-hero__btns{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}
.sg-hero__who{display:flex;flex-wrap:wrap;gap:8px;margin:28px 0 0;padding:0;list-style:none}
.sg-hero__who li{font-size:12.5px;font-weight:600;color:#fff;border:1px solid rgba(255,255,255,.26);border-radius:999px;padding:6px 13px}
.sg-hero__media{border-radius:20px;overflow:hidden;aspect-ratio:4/3;background:rgba(255,255,255,.06);box-shadow:0 40px 70px -40px rgba(0,0,0,.85)}
.sg-hero__media img{width:100%;height:100%;object-fit:cover}

/* cartão de indicadores encostado na borda do hero */
.sg-perks{position:relative;z-index:3;margin-top:-58px}
.sg-perks__card{
  display:grid;grid-template-columns:repeat(4,1fr);gap:18px 26px;
  margin:0;padding:26px 32px;list-style:none;background:#fff;
  border:1px solid var(--line-soft);border-radius:16px;
  box-shadow:0 30px 60px -32px rgba(1,42,92,.45);
}
.sg-perks__card li{display:flex;align-items:center;gap:13px;min-width:0}
.sg-perks__card li + li{padding-left:26px;border-left:1px solid var(--line-soft)}
.sg-perks__ico{flex:none;width:50px;height:50px;border-radius:50%;display:grid;place-items:center;background:var(--bg-soft);color:var(--navy-600);transition:background var(--t-fast),color var(--t-fast)}
.sg-perks__ico .ico{width:24px;height:24px;stroke-width:1.5}
.sg-perks__card li:hover .sg-perks__ico{background:var(--navy-700);color:var(--wa)}
.sg-perks__card b{font-size:14px;font-weight:600;line-height:1.3;color:var(--ink)}

/* ---------- CABEÇALHO PADRÃO DE SEÇÃO ---------- */
.sg-sec{padding:clamp(56px,7vw,96px) 0}
.sg-sec--pale{background:var(--bg-pale);border-top:1px solid var(--line-soft);border-bottom:1px solid var(--line-soft)}
.sg-sec--soft{background:var(--bg-soft)}
.sg-head{max-width:66ch}
.sg-head h2{margin-top:12px;font-size:clamp(26px,2.6vw,38px);line-height:1.14;letter-spacing:-.022em;text-wrap:balance}
.sg-head p{margin-top:14px;font-size:clamp(15px,1.2vw,17px);line-height:1.68;color:var(--slate)}
.sg-head--center{margin-inline:auto;text-align:center}

/* ---------- DORES DO SEGMENTO ---------- */
.sg-pain{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:40px 0 0;padding:0;list-style:none}
.sg-pain li{
  background:#fff;border:1px solid var(--line-soft);border-radius:16px;
  padding:26px 24px;box-shadow:0 14px 30px -28px rgba(11,46,85,.5);
  transition:transform var(--t),box-shadow var(--t);
}
.sg-pain li:hover{transform:translateY(-4px);box-shadow:var(--sh-card-hover)}
.sg-pain__ico{width:46px;height:46px;border-radius:12px;background:var(--bg-soft);color:var(--navy-600);display:grid;place-items:center;margin-bottom:16px}
.sg-pain__ico .ico{width:22px;height:22px}
.sg-pain h3{font-size:17px;line-height:1.28}
.sg-pain p{margin-top:9px;font-size:14.5px;line-height:1.6;color:var(--slate)}

/* ---------- CUSTO OCULTO (faixa azul) ---------- */
.sg-cost{background:linear-gradient(150deg,var(--navy-900),var(--navy-600));color:#fff;padding:clamp(56px,7vw,96px) 0}
.sg-cost .eyebrow-tag{color:var(--wa)}
.sg-cost h2{color:#fff;font-size:clamp(26px,2.8vw,40px);line-height:1.1;letter-spacing:-.022em;margin-top:12px;max-width:22ch;text-wrap:balance}
.sg-cost__grid{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:clamp(30px,5vw,70px);align-items:center}
.sg-cost__lead{margin-top:16px;font-size:clamp(15px,1.2vw,17px);line-height:1.68;color:rgba(255,255,255,.84);max-width:48ch}
.sg-cost__list{margin:26px 0 0;padding:0;list-style:none;display:grid;gap:11px}
.sg-cost__list li{display:flex;gap:12px;align-items:flex-start;font-size:15px;line-height:1.55;color:rgba(255,255,255,.92)}
.sg-cost__list .ico{flex:none;width:20px;height:20px;color:var(--wa);margin-top:2px}
.sg-cost__panel{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.16);border-radius:18px;padding:clamp(24px,3vw,34px)}
.sg-cost__panel h3{color:#fff;font-size:19px;line-height:1.25}
.sg-cost__panel > p{margin-top:10px;font-size:14.5px;line-height:1.65;color:rgba(255,255,255,.8)}
.sg-cycle{margin:22px 0 0;padding:0;list-style:none;display:grid;gap:0}
.sg-cycle li{position:relative;padding:0 0 20px 34px;font-size:14.5px;line-height:1.5;color:rgba(255,255,255,.9)}
.sg-cycle li::before{content:"";position:absolute;left:9px;top:20px;bottom:0;width:1px;background:rgba(255,255,255,.22)}
.sg-cycle li:last-child{padding-bottom:0}
.sg-cycle li:last-child::before{display:none}
.sg-cycle li b{display:block;color:#fff;font-weight:600}
.sg-cycle__dot{position:absolute;left:0;top:3px;width:19px;height:19px;border-radius:50%;border:1.5px solid rgba(255,255,255,.35);display:grid;place-items:center;font-size:9.5px;font-weight:700;color:var(--wa)}
.sg-cost__note{margin-top:22px;padding-top:18px;border-top:1px solid rgba(255,255,255,.16);font-size:13.5px;line-height:1.6;color:rgba(255,255,255,.7)}
.sg-cost__cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}

/* ---------- VIRADA / PONTE ---------- */
.sg-turn{background:#fff;padding:clamp(52px,6.5vw,88px) 0 clamp(34px,4vw,54px);text-align:center}
.sg-turn__eyebrow{color:var(--navy-500)}
.sg-turn h2{margin:12px auto 0;max-width:20ch;font-size:clamp(27px,3vw,42px);line-height:1.1;letter-spacing:-.022em;text-wrap:balance}
.sg-turn p{margin:16px auto 0;max-width:62ch;font-size:clamp(15.5px,1.25vw,17.5px);line-height:1.68;color:var(--slate)}
.sg-turn__vs{display:grid;grid-template-columns:1fr auto 1fr;gap:20px;align-items:stretch;margin-top:40px;text-align:left}
.sg-turn__box{border:1px solid var(--line);border-radius:16px;padding:26px 24px;background:var(--bg-pale)}
.sg-turn__box--good{background:var(--navy-700);border-color:var(--navy-700);color:#fff}
.sg-turn__box h3{font-size:16px;letter-spacing:.02em}
.sg-turn__box--good h3{color:#fff}
.sg-turn__box ul{margin:16px 0 0;padding:0;list-style:none;display:grid;gap:10px}
.sg-turn__box li{display:flex;gap:10px;align-items:flex-start;font-size:14.5px;line-height:1.55;color:var(--slate)}
.sg-turn__box--good li{color:rgba(255,255,255,.9)}
.sg-turn__box .ico{flex:none;width:18px;height:18px;margin-top:2px;color:var(--slate-light)}
.sg-turn__box--good .ico{color:var(--wa)}
.sg-turn__arrow{align-self:center;width:48px;height:48px;border-radius:50%;background:var(--bg-soft);color:var(--navy-600);display:grid;place-items:center}

/* ---------- SOLUÇÕES INDICADAS ---------- */
.sg-sol{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin:40px 0 0;padding:0;list-style:none}
.sg-sol > li{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line-soft);border-radius:16px;overflow:hidden;box-shadow:var(--sh-card);transition:transform var(--t),box-shadow var(--t)}
.sg-sol > li:hover{transform:translateY(-4px);box-shadow:var(--sh-card-hover)}
.sg-sol__media{aspect-ratio:16/10;background:var(--bg-soft);overflow:hidden}
.sg-sol__media img{width:100%;height:100%;object-fit:cover;transition:transform .6s var(--ease)}
.sg-sol > li:hover .sg-sol__media img{transform:scale(1.04)}
.sg-sol__body{display:flex;flex-direction:column;gap:12px;padding:22px 24px 24px;flex:1}
.sg-sol__body h3{font-size:18px;line-height:1.25}
.sg-sol__where{display:grid;gap:8px;margin:0;padding:0}
.sg-sol__where div{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:start}
.sg-sol__where dt{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--navy-500);padding-top:2px;white-space:nowrap}
.sg-sol__where dd{margin:0;font-size:14px;line-height:1.55;color:var(--slate)}
.sg-sol__link{margin-top:auto;padding-top:4px}

/* ---------- APLICAÇÕES POR AMBIENTE ---------- */
.sg-amb{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin:40px 0 0;padding:0;list-style:none}
.sg-amb li{background:#fff;border:1px solid var(--line-soft);border-radius:14px;padding:22px 20px;transition:border-color var(--t-fast),box-shadow var(--t-fast)}
.sg-amb li:hover{border-color:var(--navy-200);box-shadow:0 18px 34px -30px rgba(11,46,85,.6)}
.sg-amb__top{display:flex;align-items:center;gap:11px}
.sg-amb__top span{flex:none;width:38px;height:38px;border-radius:10px;background:var(--bg-soft);color:var(--navy-600);display:grid;place-items:center}
.sg-amb__top .ico{width:19px;height:19px}
.sg-amb h3{font-size:15.5px;line-height:1.25}
.sg-amb p{margin-top:11px;font-size:13.8px;line-height:1.55;color:var(--slate)}
.sg-amb ul{margin:12px 0 0;padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:6px}
.sg-amb ul li{padding:4px 10px;border:0;border-radius:999px;background:var(--bg-soft);font-size:11.5px;font-weight:600;color:var(--ink-soft)}
.sg-amb ul li:hover{box-shadow:none}

/* ---------- PREVENÇÃO / OBRA EM AMBIENTE OCUPADO ---------- */
.sg-prev2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(30px,5vw,66px);align-items:center}
.sg-prev2__media{border-radius:20px;overflow:hidden;aspect-ratio:4/3;background:var(--bg-soft);box-shadow:0 34px 60px -38px rgba(1,42,92,.55)}
.sg-prev2__media img{width:100%;height:100%;object-fit:cover}
.sg-checks{margin:26px 0 0;padding:0;list-style:none;display:grid;gap:13px}
.sg-checks li{display:grid;grid-template-columns:auto 1fr;gap:13px;align-items:start}
.sg-checks span{flex:none;width:26px;height:26px;border-radius:50%;background:rgba(0,167,88,.12);color:#00a758;display:grid;place-items:center}
.sg-checks span .ico{width:15px;height:15px;stroke-width:2.2}
.sg-checks b{display:block;font-size:15px;color:var(--ink);font-weight:600;line-height:1.35}
.sg-checks p{margin-top:3px;font-size:14px;line-height:1.55;color:var(--slate)}

/* ---------- POR QUE A G9 ---------- */
.sg-why{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin:40px 0 0;padding:0;list-style:none}
.sg-why li{background:#fff;border:1px solid var(--line-soft);border-radius:16px;padding:26px 22px}
.sg-why b{display:block;font-size:clamp(22px,2.2vw,28px);line-height:1.1;color:var(--navy-700);letter-spacing:-.02em}
.sg-why strong{display:block;font-size:15.5px;color:var(--ink);font-weight:600;line-height:1.3;margin-top:4px}
.sg-why p{margin-top:9px;font-size:13.8px;line-height:1.55;color:var(--slate)}

/* ---------- GALERIA / PROJETOS ---------- */
.sg-gal{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:38px 0 0;padding:0;list-style:none}
.sg-gal li{border-radius:16px;overflow:hidden;aspect-ratio:4/3;background:var(--bg-soft)}
.sg-gal img{width:100%;height:100%;object-fit:cover}
.sg-ph{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;
  width:100%;height:100%;padding:24px;text-align:center;
  background:linear-gradient(160deg,var(--navy-900),var(--navy-600));color:rgba(255,255,255,.8);
  border-radius:16px;
}
.sg-ph .ico{width:38px;height:38px;color:var(--wa)}
.sg-ph b{font-size:12.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#fff}
.sg-ph span{font-size:13px;line-height:1.5;max-width:34ch}

/* aviso de informação pendente com o cliente */
.sg-todo{display:flex;gap:12px;align-items:flex-start;margin-top:22px;padding:14px 18px;border:1px dashed var(--navy-200);border-radius:12px;background:var(--bg-soft);font-size:13.5px;line-height:1.55;color:var(--ink-soft)}
.sg-todo .ico{flex:none;width:18px;height:18px;color:var(--navy-500);margin-top:2px}

/* ---------- FAQ ---------- */
.sg-faq{margin:38px 0 0;border:1px solid var(--line-soft);border-radius:16px;overflow:hidden;background:#fff}
.sg-faq details{border-top:1px solid var(--line-soft)}
.sg-faq details:first-child{border-top:0}
.sg-faq summary{
  display:flex;align-items:center;gap:16px;justify-content:space-between;
  padding:20px 26px;cursor:pointer;list-style:none;
  font-size:16px;font-weight:600;color:var(--ink);line-height:1.4;
  transition:background var(--t-fast);
}
.sg-faq summary::-webkit-details-marker{display:none}
.sg-faq summary:hover{background:var(--bg-pale)}
.sg-faq summary .ico{flex:none;width:20px;height:20px;color:var(--navy-500);transition:transform var(--t-fast)}
.sg-faq details[open] summary{background:var(--bg-pale)}
.sg-faq details[open] summary .ico{transform:rotate(90deg)}
.sg-faq__a{padding:0 26px 22px;font-size:14.8px;line-height:1.7;color:var(--slate);max-width:82ch}
.sg-faq__a p + p{margin-top:10px}
.sg-faq__a ul{margin:10px 0 0;padding:0 0 0 18px;list-style:disc}
.sg-faq__a li{margin-top:5px}

/* ---------- FAIXA DE CONVERSÃO INTERMEDIÁRIA ---------- */
.sg-strip{background:var(--navy-700);color:#fff;padding:clamp(34px,4vw,52px) 0}
.sg-strip__inner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px 40px}
.sg-strip h2{color:#fff;font-size:clamp(20px,2vw,27px);line-height:1.22;max-width:30ch}
.sg-strip p{margin-top:8px;font-size:15px;color:rgba(255,255,255,.8);max-width:52ch}
.sg-strip__btns{display:flex;flex-wrap:wrap;gap:12px}

/* ---------- RESPONSIVO ---------- */
@media (max-width:1024px){
  .sg-hero__grid{grid-template-columns:1fr}
  .sg-hero__media{order:-1;aspect-ratio:16/9}
  .sg-perks__card{grid-template-columns:repeat(2,1fr);padding:22px 24px}
  .sg-perks__card li + li{padding-left:0;border-left:0}
  .sg-perks__card li:nth-child(n+3){padding-top:18px;border-top:1px solid var(--line-soft)}
  .sg-pain,.sg-sol{grid-template-columns:repeat(2,1fr)}
  .sg-amb,.sg-why{grid-template-columns:repeat(2,1fr)}
  .sg-cost__grid,.sg-prev2{grid-template-columns:1fr}
  .sg-prev2__media{order:-1;aspect-ratio:16/9}
  .sg-turn__vs{grid-template-columns:1fr}
  .sg-turn__arrow{transform:rotate(90deg);margin-inline:auto}
  .sg-gal{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:640px){
  .sg-perks{margin-top:-40px}
  .sg-perks__card{grid-template-columns:1fr}
  .sg-perks__card li:nth-child(n+2){padding-top:16px;border-top:1px solid var(--line-soft)}
  .sg-pain,.sg-sol,.sg-amb,.sg-why,.sg-gal{grid-template-columns:1fr}
  .sg-hero__btns .btn,.sg-cost__cta .btn,.sg-strip__btns .btn{width:100%;justify-content:center}
  .sg-faq summary{padding:17px 18px;font-size:15px}
  .sg-faq__a{padding:0 18px 18px}
  .sg-head{max-width:none}
}

/* ---------- MOVIMENTO (mesma curva do restante do site) ---------- */
@media (prefers-reduced-motion:reduce){
  .sg-sol > li,.sg-pain li,.sg-sol__media img{transition:none}
}
