/* ============================================================
   Dra. Kátia Bonatto — Site institucional
   Seções exclusivas da home institucional
   (reusa styles.css + components.css)
   ============================================================ */

/* ---------- Header sobre fundo claro ---------- */
.nav-logo .logo-dark{display:none}
.header-light:not(.scrolled) .nav-links a{color:var(--navy-800)}
.header-light:not(.scrolled) .nav-links a:hover{color:var(--navy-950)}
.header-light:not(.scrolled) .nav-burger span{background:var(--navy-900)}
.header-light:not(.scrolled) .logo-light{display:none}
.header-light:not(.scrolled) .logo-dark{display:block}

/* ---------- Hero institucional (claro, sóbrio) ---------- */
.ihero{
  background:
    radial-gradient(90% 120% at 100% 0%, var(--cream-2) 0%, transparent 55%),
    var(--paper);
  padding-top:clamp(140px,16vw,200px);
  border-bottom:1px solid var(--line);
}
.ihero .wrap{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);
  gap:clamp(40px,6vw,90px);
  align-items:end;
  padding-bottom:0;
}
.ihero-copy{padding-bottom:clamp(56px,7vw,96px)}
.ihero h1{
  font-size:clamp(40px,5.6vw,74px);
  color:var(--navy-900);
  margin-top:22px;
  max-width:15ch;
  text-wrap:balance;
}
.ihero h1 em{font-style:italic;color:var(--bronze);font-weight:500}
.ihero .lead{margin-top:24px;max-width:520px}
.ihero-actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:38px}
.ihero-oab{
  display:flex;align-items:center;gap:14px;
  margin-top:44px;padding-top:24px;
  border-top:1px solid var(--line);
  font-size:14px;color:var(--ink-500);
  letter-spacing:.04em;
}
.ihero-oab strong{color:var(--ink-900);font-weight:600}
.ihero-oab .sep{width:1px;height:16px;background:var(--line)}

.ihero-photo{position:relative;align-self:end}
.ihero-photo .img{
  position:relative;
  border-radius:2px 2px 0 0;
  overflow:hidden;
  background:var(--navy-900);
}
.ihero-photo .img::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(to top, rgba(11,20,34,.18), transparent 40%);
}
.ihero-photo img{width:100%;height:auto;display:block}
.ihero-photo .deco{
  position:absolute;top:-18px;right:-18px;width:120px;height:120px;
  border-top:1px solid var(--bronze-400);
  border-right:1px solid var(--bronze-400);
  pointer-events:none;
}

/* ---------- Hero v2 — recorte + ambiente de escritório ---------- */
.ihero-cut{
  position:relative;
  min-height:min(94vh,1000px);
  display:flex;align-items:stretch;
  background:
    radial-gradient(46% 40% at 22% 88%, rgba(217,172,130,.07) 0%, transparent 100%),
    radial-gradient(34% 30% at 88% 72%, rgba(217,172,130,.10) 0%, transparent 100%),
    radial-gradient(120% 135% at 76% 0%, #56402a 0%, #332412 44%, #1a1109 100%);
  color:#fff;
  overflow:hidden;
  padding-top:110px;
}
/* luz quente que respira atrás da foto */
.ihero-cut .glow{
  position:absolute;z-index:0;
  right:-4%;top:4%;
  width:min(64vw,960px);aspect-ratio:1;
  border-radius:50%;
  background:radial-gradient(circle, rgba(222,178,120,.30) 0%, rgba(176,122,69,.12) 44%, transparent 70%);
  filter:blur(12px);
}
/* anel decorativo lento */
.ihero-cut .ring{
  position:absolute;z-index:0;
  right:4%;top:12%;
  width:min(38vw,560px);aspect-ratio:1;
  border-radius:50%;
  border:1px solid rgba(205,169,104,.28);
}
.ihero-cut .ring::before{
  content:"";position:absolute;inset:-1px;border-radius:50%;
  border:1px solid transparent;
  border-top-color:var(--bronze-300);
  border-right-color:rgba(205,169,104,.4);
}
@media(prefers-reduced-motion:no-preference){
  .ihero-cut .glow{animation:kb-breathe 8s ease-in-out infinite alternate}
}
@keyframes kb-breathe{
  from{transform:scale(.94);opacity:.75}
  to{transform:scale(1.06);opacity:1}
}
@keyframes kb-spin{to{transform:rotate(360deg)}}
@keyframes kb-float{
  from{transform:translateY(0)}
  to{transform:translateY(-12px)}
}
.ihero-cut .wrap{
  position:relative;z-index:2;
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);
  gap:clamp(24px,4vw,60px);
  align-items:end;
  width:100%;
}
.ihero-cut .copy{padding-block:clamp(48px,7vw,100px)}
.ihero-cut h1{
  font-size:clamp(42px,5.6vw,78px);
  color:#fff;margin-top:22px;max-width:15ch;text-wrap:balance;
}
.ihero-cut h1 em{font-style:italic;color:var(--bronze-300);font-weight:500}
.ihero-cut .lead{margin-top:24px;max-width:520px;color:rgba(255,255,255,.78)}
.ihero-cut .ihero-oab{border-top-color:rgba(255,255,255,.18);color:rgba(255,255,255,.6)}
.ihero-cut .ihero-oab strong{color:#fff}
.ihero-cut .ihero-oab .sep{background:rgba(255,255,255,.24)}
.ihero-cut .cut{
  position:relative;align-self:end;
  display:flex;justify-content:center;
}
.ihero-cut .cut img{
  width:auto;max-width:none;display:block;
  height:clamp(560px,80vh,880px);
  filter:drop-shadow(0 30px 60px rgba(0,0,0,.5));
}
.ihero-cut .cut .base{
  position:absolute;left:50%;bottom:0;transform:translateX(-50%);
  width:140%;height:30%;
  background:linear-gradient(to top, #1a1109 10%, transparent);
  pointer-events:none;
}
.ihero-cut .cred{
  position:absolute;left:-10px;bottom:clamp(28px,4vw,52px);
  background:rgba(26,17,9,.72);backdrop-filter:blur(8px);
  border:1px solid rgba(205,169,104,.35);
  padding:14px 20px;border-radius:2px;
  display:flex;flex-direction:column;gap:2px;
}
.ihero-cut .cred .k{font-family:var(--serif);font-size:19px;color:#fff}
.ihero-cut .cred .v{font-size:12.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--bronze-300)}
@media(max-width:880px){
  .ihero-cut{min-height:0}
  .ihero-cut .wrap{grid-template-columns:1fr}
  .ihero-cut .copy{padding-bottom:0}
  .ihero-cut .cut{margin-top:34px;justify-self:center}
  .ihero-cut .cut img{height:auto;width:100%;max-width:400px}
}

/* ---------- Hero v2 — foto full ---------- */
.ihero-full{
  position:relative;
  min-height:min(96vh,1020px);
  display:flex;align-items:center;
  background:#12100d;
  color:#fff;
  overflow:hidden;
  padding-top:120px;
}
.ihero-full .bg{position:absolute;inset:0 0 0 auto;overflow:hidden;width:78%}
.ihero-full .bg img{
  position:absolute;left:0;top:0;
  width:100%;height:112%;
  object-fit:cover;object-position:62% 22%;
}
.ihero-full .bg::before{
  content:"";position:absolute;inset:0;z-index:1;
  background:linear-gradient(to left, transparent 74%, #12100d 100%);
}
@media(prefers-reduced-motion:no-preference){
  .ihero-full .bg img{animation:kb-kenburns 24s var(--ease) infinite alternate}
}
@keyframes kb-kenburns{
  from{transform:scale(1)}
  to{transform:scale(1.06)}
}
.ihero-full .shade{
  position:absolute;inset:0;
  background:
    linear-gradient(to top, rgba(18,15,12,.5), transparent 30%),
    linear-gradient(100deg, rgba(18,15,12,.92) 0%, rgba(18,15,12,.7) 30%, rgba(18,15,12,.3) 52%, rgba(18,15,12,.04) 72%);
}
.ihero-full .wrap{position:relative;z-index:2;padding-block:clamp(56px,8vw,110px);padding-inline-start:clamp(16px,3vw,32px)}
.ihero-full h1{
  font-size:clamp(42px,5.8vw,80px);
  color:#fff;margin-top:22px;max-width:14ch;text-wrap:balance;
}
.ihero-full h1 em{font-style:italic;color:var(--bronze-300);font-weight:500}
.ihero-full .lead{margin-top:24px;max-width:540px;color:rgba(255,255,255,.78)}
.ihero-full .ihero-oab{border-top-color:rgba(255,255,255,.18);color:rgba(255,255,255,.6)}
.ihero-full .ihero-oab strong{color:#fff}
.ihero-full .ihero-oab .sep{background:rgba(255,255,255,.24)}
@media(max-width:720px){
  .ihero-full .bg{width:100%}
  .ihero-full .bg img{object-position:70% 12%}
  .ihero-full .bg::before{background:none}
  .ihero-full .shade{background:linear-gradient(to top, rgba(18,15,12,.97) 26%, rgba(18,15,12,.55) 60%, rgba(18,15,12,.25) 100%)}
  .ihero-full{align-items:flex-end}
}

/* ---------- Áreas de atuação ---------- */
.iareas{background:var(--navy-950);color:#fff}
.iareas .section-head p{color:rgba(255,255,255,.62);max-width:560px;margin-top:18px;font-size:18px}
.iareas .h-section{color:#fff}
.iareas-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1px;
  background:rgba(255,255,255,.09);
  border:1px solid rgba(255,255,255,.09);
  margin-top:clamp(40px,5vw,64px);
}
.iarea{
  background:var(--navy-950);
  padding:clamp(28px,3vw,44px) clamp(24px,2.6vw,38px);
  display:flex;flex-direction:column;gap:16px;
  transition:background .4s var(--ease);
  position:relative;
}
.iarea:hover{background:var(--navy-900)}
.iarea .num{
  font-family:var(--serif);font-style:italic;
  font-size:15px;color:var(--bronze-400);letter-spacing:.08em;
}
.iarea h3{font-size:clamp(22px,1.8vw,27px);color:#fff;line-height:1.15}
.iarea p{font-size:15.5px;line-height:1.6;color:rgba(255,255,255,.6)}
.iarea .go{
  margin-top:auto;padding-top:18px;
  font-size:14px;font-weight:600;letter-spacing:.02em;
  color:var(--bronze-300);
  display:inline-flex;align-items:center;gap:8px;
}
.iarea .go .arrow{transition:transform .4s var(--ease)}
.iarea:hover .go .arrow{transform:translateX(5px)}

/* ---------- Banner construtoras ---------- */
.ibuild{
  position:relative;
  background:var(--navy-950);
  border-bottom:1px solid var(--line);
  overflow:hidden;
}
.ibuild::before{
  content:"";position:absolute;inset:0;
  background:radial-gradient(60% 140% at 88% 50%, rgba(205,169,104,.16) 0%, transparent 70%);
}
.ibuild .wrap{
  position:relative;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:clamp(28px,4vw,48px);
  align-items:center;
  padding-block:clamp(48px,6vw,80px);
}
.ibuild-icon{
  width:clamp(64px,6vw,84px);height:clamp(64px,6vw,84px);
  border:1px solid rgba(205,169,104,.4);
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  color:var(--bronze-300);
  flex-shrink:0;
}
.ibuild-icon svg{width:56%;height:56%}
.ibuild-icon .crane-arm{transform-origin:22px 20px}
.ibuild-icon .crane-hook{transform-origin:34px 20px}
@media(prefers-reduced-motion:no-preference){
  .ibuild-icon .crane-arm{animation:kb-crane-swing 5s ease-in-out infinite}
  .ibuild-icon .crane-hook{animation:kb-crane-hook 5s ease-in-out infinite}
}
@keyframes kb-crane-swing{
  0%,100%{transform:rotate(0deg)}
  50%{transform:rotate(-8deg)}
}
@keyframes kb-crane-hook{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(3px)}
}
.ibuild .eyebrow{margin-bottom:14px;color:var(--bronze-300)}
.ibuild h2{font-size:clamp(28px,3.4vw,42px);color:#fff;max-width:24ch;text-wrap:balance}
.ibuild p{margin-top:14px;color:rgba(255,255,255,.68);max-width:520px;font-size:17px}

/* ---------- Responsivo ---------- */
@media(max-width:980px){
  .ihero .wrap{grid-template-columns:1fr;align-items:start}
  .ihero-copy{padding-bottom:0}
  .ihero-photo{max-width:420px;margin-top:8px}
  .iareas-grid{grid-template-columns:1fr 1fr}
  .ibuild .wrap{grid-template-columns:1fr;text-align:center}
  .ibuild-icon{margin-inline:auto}
}
@media(max-width:620px){
  .iareas-grid{grid-template-columns:1fr}
}
@media(min-width:761px){
  .iareas-title{white-space:nowrap}
}

/* ---------- Header: blend with warm hero (this page only) ---------- */
.site-header.scrolled{background:rgba(18,15,12,.82)}
