/* ==========================================================
   juan.eng.br — estilos
   Cores: troque aqui e o site inteiro muda (paleta Aço e concreto)
   ========================================================== */
:root {
  --bg: #111315;
  --bg-alt: #15181b;
  --bg-footer: #0d0f11;
  --surface: #1a1d21;
  --hatch: #1c1f23;
  --border: #2b3036;
  --border-soft: #24282d;
  --input-border: #343a41;
  --outline: #3e454d;
  --text: #ecedee;
  --text-2: #c5cad0;
  --muted: #9aa1a9;
  --dim: #858c95;
  --accent: #8fb3cf;
  --on-accent: #0b0d10;

  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --container: 1280px;
  --header-h: 64px;
  --lens-r: 150px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--text); }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 14px; background: var(--accent); color: var(--on-accent); font-weight: 700; }
.skip-link:focus { left: 8px; }

/* ---------- Cabeçalho ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: rgba(17, 19, 21, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border-soft); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.socials { display: flex; gap: 2px; }
.socials a { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--text-2); transition: color .2s; }
.socials a:hover { color: var(--text); }
.socials svg { font-size: 22px; }
.socials svg .fill { fill: currentColor; stroke: none; }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; }
.brand__name { font-weight: 800; font-size: 17px; letter-spacing: .16em; color: var(--text); }
.brand__dot { width: 6px; height: 6px; background: var(--accent); }
.brand__tag { font-weight: 600; font-size: 12px; letter-spacing: .18em; color: var(--muted); }
.nav { display: flex; gap: 26px; }
.nav a { padding: 12px 0; font-size: 14px; font-weight: 500; color: #a7aeb6; text-decoration: none; transition: color .2s; }
.nav a:hover, .nav a.is-current { color: var(--text); }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 12px 10px; background: transparent; border: 0; cursor: pointer; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: var(--text); transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Tipografia e botões ---------- */
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--muted); }
.eyebrow--accent { color: var(--accent); }
.title { font-size: clamp(30px, 3.8vw, 52px); font-weight: 800; letter-spacing: -.015em; line-height: 1.08; }
.title--xl { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.06; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; font: 700 15px/1 var(--font); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: filter .2s, background-color .2s; }
.btn svg { font-size: 18px; stroke-width: 2; }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { filter: brightness(1.08); color: var(--on-accent); }
.btn--outline { border-color: rgba(236, 237, 238, .7); color: var(--text); background: transparent; }
.btn--outline:hover { background: rgba(236, 237, 238, .08); }
.btn--block { width: 100%; }

/* ---------- Topo (hero) ---------- */
.hero { position: relative; height: clamp(680px, calc(100vh - var(--header-h)), 900px); overflow: hidden; background: #15181b; }
.hero__stage { position: absolute; inset: 0; cursor: pointer; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; user-select: none; -webkit-user-drag: none; }
.hero__lens { position: absolute; inset: 0; clip-path: circle(0 at var(--x, 70%) var(--y, 45%)); transition: clip-path .14s ease-out; pointer-events: none; }
.hero__stage.is-hover .hero__lens { clip-path: circle(var(--lens-r) at var(--x) var(--y)); }
.hero__scrim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(17,19,21,.95) 0%, rgba(17,19,21,.82) 30%, rgba(17,19,21,0) 54%); }
.hero__ring, .hero__tag { position: absolute; left: 0; top: 0; pointer-events: none; opacity: 0; transition: opacity .2s; will-change: transform; }
.hero__ring { width: calc(var(--lens-r) * 2); height: calc(var(--lens-r) * 2); border-radius: 50%; border: 1.5px solid rgba(236,237,238,.8); box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 18px 50px rgba(0,0,0,.35); transform: translate(calc(var(--x) - var(--lens-r)), calc(var(--y) - var(--lens-r))); }
.hero__tag { padding: 7px 12px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 800; letter-spacing: .06em; white-space: nowrap; transform: translate(calc(var(--x) - 50%), calc(var(--y) + var(--lens-r) + 14px)); }
.hero__stage.is-hover .hero__ring, .hero__stage.is-hover .hero__tag { opacity: 1; }
.hero__content { position: relative; z-index: 2; padding-top: 72px; pointer-events: none; }
.hero__col { max-width: 520px; display: flex; flex-direction: column; gap: 20px; pointer-events: auto; }
.hero__title { font-size: clamp(38px, 4.2vw, 60px); font-weight: 800; letter-spacing: -.02em; line-height: 1.04; }
.hero__text { max-width: 30em; font-size: 17px; font-weight: 500; color: var(--text-2); }
.steps { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; padding-top: 20px; border-top: 1px solid rgba(236,237,238,.14); }
.steps__head { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; letter-spacing: .18em; color: var(--muted); }
.steps__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.step { min-height: 52px; padding: 10px 0 0; background: transparent; border: 0; border-top: 3px solid rgba(236,237,238,.18); color: var(--muted); font-family: var(--font); text-align: left; cursor: pointer; transition: border-color .25s, color .25s; }
.step.is-done { border-top-color: rgba(236,237,238,.55); }
.step.is-active { border-top-color: var(--accent); color: var(--text); }
.step__num { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.step__name { display: block; margin-top: 2px; font-size: 14px; font-weight: 700; }
.steps__desc { font-size: 15px; line-height: 1.5; color: var(--text-2); }
.steps__desc strong { color: var(--text); }
.steps__hint { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.steps__hint svg { flex: 0 0 18px; font-size: 18px; }
.hint-touch { display: none; }
@media (hover: none) { .hint-desktop { display: none; } .hint-touch { display: inline; } }

/* ---------- Números ---------- */
.numbers { background: var(--bg-alt); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.numbers__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 40px; padding-top: 44px; padding-bottom: 44px; }
.number { border-left: 3px solid var(--accent); padding-left: 18px; }
.number strong { display: block; font-size: 34px; font-weight: 800; line-height: 1.1; }
.number span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }

/* ---------- Seções ---------- */
.section { padding: 112px 0; background: var(--bg); border-top: 1px solid var(--border-soft); }
.section--alt { background: var(--bg-alt); }
.section--flush { padding-bottom: 0; }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 48px; margin-bottom: 44px; }
.section__head > div:first-child { display: flex; flex-direction: column; gap: 14px; }
.section__lead { max-width: 28em; color: var(--muted); }

/* Sobre */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.about__photo { position: relative; height: 620px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); }
.about__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 40%; opacity: .55; }
.about__photo::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 220px; background: linear-gradient(180deg, rgba(26,29,33,0), rgba(26,29,33,.9)); }
.about__juan { position: absolute; z-index: 1; bottom: 0; left: 50%; transform: translateX(-50%); height: 560px; width: auto; max-width: none; }
.badge { position: absolute; z-index: 2; left: 20px; bottom: 20px; padding: 8px 12px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.about__text { display: flex; flex-direction: column; gap: 22px; }
.about__text > p { font-size: 17px; line-height: 1.7; color: var(--text-2); }
.facts { margin: 8px 0 0; border-top: 1px solid var(--border); font-size: 15px; }
.facts div { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.facts dt { flex: 0 0 150px; font-weight: 700; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }

/* Experiência em obra */
.experience { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.experience__intro { position: sticky; top: calc(var(--header-h) + 40px); display: flex; flex-direction: column; gap: 18px; }
.exp-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.exp-item { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--border); }
.exp-item__num { padding-top: 4px; font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--accent); }
.exp-item h3 { font-size: 20px; font-weight: 800; line-height: 1.25; }
.exp-item p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.chips { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 4px 9px; border: 1px solid var(--outline); font-size: 12px; font-weight: 600; color: var(--text-2); }

/* Ferramentas */
.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tool { display: flex; gap: 18px; align-items: flex-start; padding: 24px; background: var(--surface); border: 1px solid var(--border); }
.tool__mark { flex: 0 0 56px; height: 56px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--accent); color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: .06em; }
.tool h3 { font-size: 19px; font-weight: 800; }
.tool p { margin-top: 6px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.tool small { display: block; margin-top: 8px; font-size: 11px; font-weight: 700; letter-spacing: .16em; color: var(--dim); }

/* Serviços */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.service { display: flex; flex-direction: column; gap: 16px; padding: 32px 26px; background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--accent); }
.service__top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--dim); }
.service__top svg { font-size: 34px; color: var(--text); stroke-width: 1.4; }
.service h3 { font-size: 21px; font-weight: 800; line-height: 1.25; }
.service p { font-size: 15px; color: var(--muted); }
.service ul { margin: auto 0 0; padding: 16px 0 0 18px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 500; color: var(--text-2); }

/* Portfólio (carrossel) */
.carousel__controls { display: flex; align-items: center; gap: 12px; }
.carousel__hint { margin-right: 6px; font-size: 13px; color: var(--muted); }
.icon-btn { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: transparent; border: 1.5px solid var(--outline); color: var(--text); cursor: pointer; }
.icon-btn svg { font-size: 18px; stroke-width: 2; }
.icon-btn--accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.carousel { display: flex; gap: 20px; overflow-x: auto; padding: 0 24px 8px max(24px, calc((100% - var(--container)) / 2 + 24px)); cursor: grab; scrollbar-width: none; overscroll-behavior-x: contain; }
.carousel::-webkit-scrollbar { display: none; }
.carousel.is-dragging { cursor: grabbing; user-select: none; }
.card { flex: 0 0 min(440px, 84vw); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); }
.card__img { width: 100%; height: 280px; object-fit: cover; }
.card__img--placeholder { display: flex; align-items: center; justify-content: center; padding: 16px; background-color: var(--hatch); background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0, rgba(255,255,255,.06) 1px, transparent 1px, transparent 12px); }
.card__img--placeholder span { padding: 8px 12px; border: 1px solid var(--outline); background: var(--surface); font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--muted); }
.card__body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 26px; }
.card h3 { font-size: 22px; font-weight: 800; line-height: 1.25; }
.card p { font-size: 14px; color: var(--muted); }
.card__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; color: var(--dim); }
.card__foot a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 700; color: var(--text); text-decoration: none; }
.card__foot a:hover { color: var(--accent); }
.tag { align-self: flex-start; padding: 5px 9px; border: 1px solid var(--outline); color: var(--text-2); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.tag--accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.muted { color: var(--dim); }
.progress { position: relative; height: 3px; margin: 28px 0 112px; background: var(--border); }
.progress__bar { position: absolute; left: 0; top: 0; height: 100%; width: 14%; background: var(--accent); transition: width .15s ease-out; }

/* Contato */
.contact { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px 64px; align-items: start; }
.contact__text { display: flex; flex-direction: column; gap: 22px; }
.contact__text > p { max-width: 32em; font-size: 17px; color: var(--text-2); }
.facts--contact dt { flex-basis: 110px; }
.form { display: flex; flex-direction: column; gap: 16px; padding: 32px; background: var(--surface); border: 1px solid var(--border); }
.form h3 { font-size: 20px; font-weight: 800; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.form input, .form select, .form textarea { width: 100%; min-height: 48px; padding: 12px 14px; background: var(--bg-alt); border: 1.5px solid var(--input-border); color: var(--text); font: 500 15px/1.4 var(--font); }
.form textarea { resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: #7d848c; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); outline: none; }
.form__note { min-height: 1.4em; font-size: 13px; color: var(--muted); }

/* Rodapé */
.site-footer { background: var(--bg-footer); border-top: 1px solid var(--border-soft); }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 28px; padding-bottom: 28px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.footer-nav a { padding: 12px 0; font-size: 14px; color: #a7aeb6; text-decoration: none; }
.footer-nav a:hover { color: var(--text); }
.site-footer__copy { font-size: 13px; color: var(--dim); }

/* ---------- Animações ao rolar ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero__lens, .hero__ring, .hero__tag { transition: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numbers__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .experience { grid-template-columns: 1fr; gap: 32px; }
  .experience__intro { position: static; }
}

/* ---------- Celular ---------- */
@media (max-width: 760px) {
  .socials { display: none; }
  .nav-toggle { display: flex; }
  .nav { position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 24px 16px; background: var(--bg); border-bottom: 1px solid var(--border); display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--border-soft); }

  .hero { height: auto; overflow: visible; }
  .hero__stage { position: relative; aspect-ratio: 4 / 3; }
  .hero__img { object-position: 76% 45%; }
  .hero__scrim { background: linear-gradient(180deg, rgba(17,19,21,0) 60%, rgba(17,19,21,.9) 100%); }
  .hero__ring, .hero__tag { display: none; }
  .hero__content { padding-top: 8px; padding-bottom: 48px; pointer-events: auto; }
  .hero__col { max-width: none; }

  .section { padding: 80px 0; }
  .section--flush { padding-bottom: 0; }
  .progress { margin-bottom: 80px; }
  .numbers__grid, .tools, .services { grid-template-columns: 1fr; }
  .about__photo { height: 480px; }
  .about__juan { height: 440px; }
  .carousel__hint { display: none; }
  .facts dt { flex-basis: 100%; }
  .exp-item { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
}
