/* ============================================================
   JB ESPECIALISTA — EBM · João Batista Coelho Filho
   Identidade EBM: navy #1B2C5D + vermelho #C12033 + branco. SEM dourado.
   Editorial: Fraunces (display serif) + Hanken Grotesk (sans). Motion GSAP/Lenis.
   ============================================================ */

:root {
  --navy:   #1B2C5D;
  --navy-2: #16244d;
  --navy-900:#0d1730;
  --navy-ink:#0b1428;
  --red:    #C12033;
  --red-2:  #a81a2b;
  --paper:  #f6f4ef;   /* off-white quente */
  --paper-2:#efece4;
  --white:  #ffffff;
  --ink:    #141b2e;
  --muted:  #5c6478;
  --muted-2:#8a91a1;
  --line:   #e4e2da;
  --line-navy: rgba(255,255,255,.14);
  --gold-free: 0; /* lembrete: nada de dourado */

  --shadow-sm: 0 1px 2px rgba(16,24,46,.06), 0 6px 18px rgba(16,24,46,.06);
  --shadow-md: 0 10px 40px rgba(16,24,46,.12);
  --shadow-lg: 0 30px 80px rgba(11,20,40,.28);

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  --maxw: 1240px;
  --gut: clamp(20px, 5vw, 64px);

  --font-serif: "Archivo", "Hanken Grotesk", -apple-system, BlinkMacSystemFont, sans-serif; /* display arquitetural (era serif Fraunces = cara de IA) */
  --font-sans: "Hanken Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

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

/* ---------- tipografia ---------- */
h1,h2,h3,h4 { margin: 0; font-weight: 600; line-height: 1.04; letter-spacing: -.01em; }
.display {
  font-family: var(--font-serif);
  font-weight: 720;
  letter-spacing: -.035em;
  line-height: .98;
}
.kicker {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: .6em;
}
.kicker.on-navy { color: #ff8a97; }
.kicker::before {
  content: "";
  width: 26px; height: 1.5px;
  background: currentColor;
  display: inline-block;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--muted); line-height: 1.55; }
.on-navy .lead, .lead.on-navy { color: rgba(255,255,255,.72); }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
section { position: relative; }
.section-pad { padding-block: clamp(72px, 12vw, 148px); }
.navy-sec { background: var(--navy); color: #fff; }
.navy-sec .lead { color: rgba(255,255,255,.72); }

/* ---------- botões ---------- */
.btn {
  --bg: var(--red); --fg: #fff;
  display: inline-flex; align-items: center; gap: .6em;
  background: var(--bg); color: var(--fg);
  padding: 15px 26px;
  border-radius: 100px;
  font-weight: 650; font-size: .96rem; letter-spacing: .005em;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .3s;
  will-change: transform;
  box-shadow: 0 8px 24px rgba(193,32,51,.28);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(193,32,51,.36); background: var(--red-2); }
.btn svg { width: 18px; height: 18px; }
.btn.ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px rgba(27,44,93,.24); }
.btn.ghost:hover { background: var(--navy); color: #fff; box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn.ghost.on-navy { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.28); }
.btn.ghost.on-navy:hover { background: #fff; color: var(--navy); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gut);
  transition: background .5s var(--ease), padding .5s var(--ease), box-shadow .5s var(--ease);
}
.nav.solid { background: rgba(246,244,239,.86); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; transition: color .5s; }
.nav.solid .brand { color: var(--navy); }
.brand .mark { display: flex; gap: 3px; align-items: flex-end; }
.brand .mark i { width: 6px; border-radius: 2px; display: block; }
.brand .mark i:nth-child(1){ height: 20px; background: var(--red); }
.brand .mark i:nth-child(2){ height: 15px; background: currentColor; }
.brand .mark i:nth-child(3){ height: 11px; background: currentColor; }
.brand b { font-weight: 800; letter-spacing: .02em; font-size: 1.05rem; }
.brand small { display:block; font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; opacity: .7; font-weight: 700; margin-top: 1px;}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a.lnk { color: rgba(255,255,255,.82); font-weight: 550; font-size: .93rem; transition: color .4s; position: relative; }
.nav.solid .nav-links a.lnk { color: var(--muted); }
.nav-links a.lnk:hover { color: #fff; }
.nav.solid .nav-links a.lnk:hover { color: var(--navy); }
.nav-links a.lnk::after { content:""; position:absolute; left:0; bottom:-6px; height:2px; width:0; background: var(--red); transition: width .35s var(--ease-out); }
.nav-links a.lnk:hover::after { width: 100%; }
.nav-cta { padding: 11px 20px; font-size: .9rem; }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--navy-900); }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.hero-media::after {
  content:""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,20,40,.5) 0%, rgba(11,20,40,.28) 45%, rgba(11,20,40,.5) 74%, rgba(11,20,40,.96) 100%),
    linear-gradient(100deg, rgba(9,17,38,.96) 0%, rgba(9,17,38,.86) 26%, rgba(9,17,38,.55) 48%, rgba(11,20,40,.12) 74%, transparent 92%);
}
.hero h1, .hero .lead, .hero .kicker, .hero .hero-meta { text-shadow: 0 1px 2px rgba(8,14,30,.45), 0 10px 44px rgba(8,14,30,.55); }
.hero-meta .hm b { text-shadow: 0 1px 2px rgba(8,14,30,.5); }
.hero-inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(48px, 8vw, 96px); padding-top: 140px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 5.2rem); max-width: 13ch; }
.hero h1 em { font-style: normal; font-weight: 400; color: #fff; }
.hero .lead { max-width: 46ch; margin-top: 26px; color: rgba(255,255,255,.8); }
.hero-cta { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }
.hero-meta { display:flex; gap: 26px; margin-top: 44px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--line-navy); padding-top: 26px; }
.hero-meta .hm { font-size: .86rem; color: rgba(255,255,255,.6); }
.hero-meta .hm b { display: block; font-family: var(--font-serif); font-weight: 700; font-size: 1.65rem; color: #fff; letter-spacing: -.03em; }
.scrollcue { position: absolute; right: var(--gut); bottom: 34px; z-index: 3; display: flex; align-items: center; gap: 10px; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.scrollcue i { width: 1px; height: 42px; background: linear-gradient(rgba(255,255,255,.7), transparent); display:block; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0%{transform: scaleY(0); transform-origin: top;} 45%{transform: scaleY(1); transform-origin: top;} 55%{transform: scaleY(1); transform-origin: bottom;} 100%{transform: scaleY(0); transform-origin: bottom;} }

/* ---------- stats strip ---------- */
.trust { background: var(--paper); border-bottom: 1px solid var(--line); }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px,4vw,52px); padding-block: clamp(40px,6vw,64px); }
.stat b { display: block; font-family: var(--font-serif); font-weight: 680; font-size: clamp(2.1rem, 4vw, 3.1rem); color: var(--navy); letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 10px; font-size: .82rem; color: var(--muted); line-height: 1.4; max-width: 22ch; }
.stat b .u { font-size: .55em; color: var(--red); }

/* ---------- intro / section head ---------- */
.sec-head { max-width: 62ch; margin-bottom: clamp(40px,6vw,68px); }
.sec-head h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); margin-top: 18px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .kicker::before { display:none; }

/* ---------- EMPREENDIMENTOS (tabs) ---------- */
.emp { background: var(--paper); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.tab {
  position: relative;
  padding: 16px 22px 20px;
  color: var(--muted);
  font-weight: 650; font-size: 1.02rem; letter-spacing: -.01em;
  transition: color .4s var(--ease);
  display: flex; flex-direction: column; gap: 3px; text-align: left;
}
.tab small { font-size: .72rem; font-weight: 600; letter-spacing: .04em; color: var(--muted-2); text-transform: none; }
.tab:hover { color: var(--navy); }
.tab[aria-selected="true"] { color: var(--navy); }
.tab .tab-ink { position: absolute; left: 0; bottom: -1px; height: 3px; background: var(--red); border-radius: 3px; width: 100%; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); }
.tab[aria-selected="true"] .tab-ink { transform: scaleX(1); }

.panel { display: none; }
.panel.active { display: block; }

.emp-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 60px); align-items: center; }
.emp-figure { position: relative; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-md); background: var(--navy-900); aspect-ratio: 4/3.2; }
.emp-figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.emp-figure:hover img { transform: scale(1.045); }
.emp-figure .fig-tag { position: absolute; left: 16px; top: 16px; background: rgba(11,20,40,.62); color:#fff; backdrop-filter: blur(6px); padding: 8px 14px; border-radius: 100px; font-size: .76rem; font-weight: 650; letter-spacing: .02em; }
.emp-figure .status-dot { width: 7px; height: 7px; border-radius: 50%; background: #46d17f; display: inline-block; margin-right: 7px; box-shadow: 0 0 0 3px rgba(70,209,127,.25); vertical-align: middle;}

.emp-body h3 { font-size: clamp(1.8rem, 3.4vw, 2.9rem); color: var(--navy); }
.emp-body .emp-sub { margin-top: 16px; color: var(--muted); font-size: 1.08rem; max-width: 44ch; }
.emp-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 30px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.emp-facts .f { background: var(--white); padding: 16px 18px; }
.emp-facts .f small { display:block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; }
.emp-facts .f b { display:block; margin-top: 5px; font-size: 1.05rem; color: var(--ink); font-weight: 650; letter-spacing: -.01em; }
.emp-facts .f b .pre { font-size: .72em; color: var(--muted); font-weight: 600; }
.emp-cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

.hl-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.hl-list li { position: relative; padding-left: 30px; color: var(--ink); font-size: .98rem; line-height: 1.45; }
.hl-list li::before { content:""; position:absolute; left: 4px; top: .55em; width: 8px; height: 8px; border-radius: 2px; background: var(--red); transform: rotate(45deg); }
.hl-list li b { font-weight: 700; }

/* galeria da aba */
.emp-gallery { margin-top: clamp(30px,4vw,54px); }
.gal-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 30%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.gal-strip::-webkit-scrollbar { height: 8px; }
.gal-strip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 100px; }
.gal-cell { position: relative; scroll-snap-align: start; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; background: var(--navy-900); cursor: pointer; }
.gal-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out), filter .5s; }
.gal-cell:hover img { transform: scale(1.06); }
.gal-cell figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; color: #fff; font-size: .82rem; font-weight: 600; background: linear-gradient(transparent, rgba(11,20,40,.82)); letter-spacing: .01em; }

/* curadoria (só flagship) */
.curadoria { margin-top: clamp(36px,5vw,60px); border-top: 1px solid var(--line); padding-top: 34px; }
.curadoria .cur-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 22px 30px; margin-top: 22px; }
.cur-item small { display:block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--red); font-weight: 700; }
.cur-item b { display:block; margin-top: 5px; color: var(--navy); font-size: 1.02rem; font-weight: 650; }

/* ---------- faixa 3D / experiência ---------- */
.xp { position: relative; overflow: hidden; color: #fff; background: var(--navy-900); }
.xp-media { position: absolute; inset: 0; z-index: 0; }
.xp-media img { width: 100%; height: 100%; object-fit: cover; opacity: .38; will-change: transform;}
.xp-media::after { content:""; position: absolute; inset:0; background: linear-gradient(90deg, rgba(13,23,48,.94), rgba(13,23,48,.5) 70%, rgba(13,23,48,.7)); }
.xp .wrap { position: relative; z-index: 2; }
.xp h2 { font-size: clamp(2rem,4.4vw,3.4rem); max-width: 18ch; }
.xp .lead { max-width: 44ch; margin-top: 20px; }

/* ---------- corretor ---------- */
.corretor .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px,5vw,70px); align-items: center; }
.corretor-photo { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--navy); aspect-ratio: 4/5; max-width: 380px; }
.corretor-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.corretor-photo .badge { position: absolute; left: 16px; bottom: 16px; right: 16px; background: rgba(11,20,40,.6); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 12px 16px; color: #fff; display: flex; align-items: center; justify-content: space-between; }
.corretor-photo .badge > div { display: flex; flex-direction: column; gap: 2px; }
.corretor-photo .badge small { font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; opacity: .68; line-height: 1.3; }
.corretor-photo .badge b { font-size: 1.02rem; line-height: 1.2; }
/* fallback branded (sem foto real ainda) */
.brandcard { background: radial-gradient(120% 100% at 20% 0%, #23386e 0%, var(--navy) 42%, var(--navy-900) 100%); display: grid; place-items: center; }
.brandcard::before { content:""; position: absolute; inset: 0; background:
  radial-gradient(60% 50% at 80% 90%, rgba(193,32,51,.18), transparent 70%),
  repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 2px, transparent 2px 22px); }
.bc-mono { position: relative; display: grid; justify-items: center; gap: 18px; color: #fff; }
.bc-mono b { font-family: var(--font-serif); font-weight: 340; font-size: clamp(3.4rem, 9vw, 5.2rem); letter-spacing: .02em; line-height: 1; }
.mark.big { gap: 6px; }
.mark.big i { width: 12px; border-radius: 3px; }
.mark.big i:nth-child(1){ height: 42px; background: var(--red); }
.mark.big i:nth-child(2){ height: 32px; background: #fff; }
.mark.big i:nth-child(3){ height: 23px; background: rgba(255,255,255,.85); }
.corretor h2 { font-size: clamp(1.9rem,4vw,3rem); color: var(--navy); margin-top: 16px; }
.corretor .role { color: var(--red); font-weight: 700; letter-spacing: .02em; margin-top: 6px; }
.corretor p { color: var(--muted); font-size: 1.06rem; max-width: 52ch; margin-top: 18px; }
.corretor .tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 22px 0 0; }
.corretor .tags li { font-size: .82rem; font-weight: 600; color: var(--navy); background: var(--paper-2); border: 1px solid var(--line); padding: 6px 14px; border-radius: 100px; }
.corretor .c-cta { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; align-items: center; }
.btn.ghost.ig { font-size: .9rem; padding: 13px 20px; }

/* ---------- footer ---------- */
.foot { background: var(--navy-ink); color: rgba(255,255,255,.66); padding-block: clamp(52px,7vw,78px) 30px; }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot .brand { color: #fff; align-items: flex-start; }
.foot h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; font-weight: 700; }
.foot a.f-lnk { display: block; color: rgba(255,255,255,.66); padding: 5px 0; transition: color .3s, padding-left .3s; }
.foot a.f-lnk:hover { color: #fff; padding-left: 5px; }
.foot .fine { grid-column: 1/-1; border-top: 1px solid var(--line-navy); margin-top: 30px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .8rem; color: rgba(255,255,255,.45); }

/* ---------- whatsapp float ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 12px 30px rgba(37,211,102,.4); transition: transform .35s var(--ease-out); }
.wa-float:hover { transform: scale(1.08) translateY(-2px); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(8,14,30,.92); display: none; place-items: center; padding: 4vw; backdrop-filter: blur(4px); }
.lb.open { display: grid; }
.lb img { max-width: 92vw; max-height: 88vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lb .lb-close { position: absolute; top: 22px; right: 26px; color: #fff; font-size: 2rem; opacity: .8; }

/* ---------- motion reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsivo ---------- */
@media (max-width: 960px) {
  .emp-grid { grid-template-columns: 1fr; }
  .emp-figure { aspect-ratio: 16/11; }
  .corretor .wrap { grid-template-columns: 1fr; }
  .corretor-photo { max-width: 320px; }
  .trust .wrap { grid-template-columns: 1fr 1fr; gap: 30px; }
  .foot .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links { position: fixed; inset: 0 0 0 auto; width: min(80vw,320px); background: var(--navy); flex-direction: column; align-items: flex-start; justify-content: center; gap: 22px; padding: 40px; transform: translateX(100%); transition: transform .5s var(--ease-out); box-shadow: var(--shadow-lg); }
  .nav-links.open { transform: none; }
  .nav-links a.lnk { color: rgba(255,255,255,.9); font-size: 1.2rem; }
  .nav.solid .nav-links a.lnk { color: rgba(255,255,255,.9); }
  .nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; z-index: 101; }
  .nav-toggle i { width: 26px; height: 2px; background: #fff; transition: transform .4s, opacity .3s; }
  .nav.solid .nav-toggle i { background: var(--navy); }
  .nav-toggle.x i:nth-child(1){ transform: translateY(7px) rotate(45deg); background:#fff; }
  .nav-toggle.x i:nth-child(2){ opacity: 0; }
  .nav-toggle.x i:nth-child(3){ transform: translateY(-7px) rotate(-45deg); background:#fff; }
  .emp-facts { grid-template-columns: 1fr 1fr; }
  .trust .wrap { grid-template-columns: 1fr 1fr; }
  .foot .wrap { grid-template-columns: 1fr; }
  .gal-strip { grid-auto-columns: minmax(76%, 82%); }
  .hero-meta .hm b { font-size: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .scrollcue i { animation: none; }
  * { scroll-behavior: auto !important; }
  .hero-media img, .xp-media img { transform: none !important; }
}
