/* =====================================================================
   Jackson Glatz — site pessoal · branco, centralizado, tipográfico
   Fonte única: Inter  ·  Acento da marca: ciano #1ca3e0 / navy #19365f
   ===================================================================== */

:root {
  --bg:       #ffffff;
  --ink:      #14181f;
  --ink-2:    #4b5563;
  --ink-3:    #97a1ad;
  --cyan:     #1ca3e0;
  --cyan-ink: #1184c1;
  --navy:     #19365f;
  --line:     #e9edf2;
  --whats:    #25d366;
  --whats-d:  #1ebe5b;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --col:  760px;     /* coluna de leitura */
  --wide: 1140px;    /* contêineres largos (PC) */
  --pad:  clamp(1.25rem, 4.5vw, 2.5rem);
  --bar:  1200px;    /* largura da barra do topo */

  --shadow:    0 1px 2px rgba(20,24,31,.04), 0 14px 36px -14px rgba(20,24,31,.14);
  --shadow-sm: 0 1px 2px rgba(20,24,31,.05), 0 8px 20px -12px rgba(20,24,31,.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.075rem;
  line-height: 1.72;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.modal-open { overflow: hidden; }
h1, h2, p, ul { margin: 0; }
ul { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--cyan); color: #fff; }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--cyan); color: #fff; padding: .6rem 1rem; font: 600 .85rem var(--font); border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
.topbar.is-scrolled, .topbar.is-static { background: rgba(255,255,255,.88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.topbar__inner { max-width: var(--bar); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem var(--pad); }
.topbar__brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1rem; color: var(--ink); letter-spacing: -.01em; }
.topbar__nav { display: flex; align-items: center; gap: clamp(.6rem, 1.8vw, 1.6rem); }

.navlink {
  position: relative; background: none; border: 0; cursor: pointer; padding: .3rem 0;
  font-size: .92rem; font-weight: 500; color: var(--ink-2); transition: color .2s ease;
}
.navlink:not(.navlink--cta)::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--cyan); border-radius: 2px; transition: width .25s ease; }
.navlink:not(.navlink--cta):hover { color: var(--ink); }
.navlink:not(.navlink--cta):hover::after { width: 100%; }
.navlink--cta { background: var(--ink); color: #fff; padding: .5rem 1.1rem; border-radius: 999px; font-weight: 600; transition: background .2s ease, transform .2s ease; }
.navlink--cta:hover { background: var(--navy); transform: translateY(-1px); }

.topbar__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.topbar__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.topbar__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.topbar__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.topbar__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; position: fixed; inset: 0 0 auto 0; z-index: 90; flex-direction: column; align-items: center; text-align: center; padding: 5rem var(--pad) 2rem; background: rgba(255,255,255,.98); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); transform: translateY(-110%); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav .navlink { font-weight: 600; font-size: 1.2rem; color: var(--ink); padding: .8rem 0; width: 100%; border-bottom: 1px solid var(--line); }
.mobile-nav .navlink:last-child { border-bottom: 0; }
.mobile-nav .navlink::after { display: none; }

/* ---------- HERO ---------- */
.hero { max-width: var(--col); margin: 0 auto; padding: clamp(7rem, 15vh, 10rem) var(--pad) clamp(2.5rem, 5vw, 3.5rem); text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero__logo { width: 56px; height: 56px; margin-bottom: 1.6rem; }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan-ink); }
.hero__name { font-weight: 800; font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 1.04; letter-spacing: -.03em; color: var(--ink); margin: 1rem 0 1.25rem; }
.hero__lead { font-size: clamp(1.08rem, 2.2vw, 1.28rem); color: var(--ink-2); max-width: 42rem; }
.hero__roles { margin-top: 1.6rem; font-size: .95rem; font-weight: 500; color: var(--ink); }
.hero__roles i { color: var(--cyan); font-style: normal; }

.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: 2.2rem; }
.btn { display: inline-flex; align-items: center; gap: .45rem; font-size: .95rem; font-weight: 600; padding: .8rem 1.6rem; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease; }
.btn--primary { background: var(--cyan); color: #fff; box-shadow: 0 8px 20px -8px rgba(28,163,224,.55); }
.btn--primary:hover { background: var(--cyan-ink); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan-ink); transform: translateY(-2px); }
.btn--whats { background: var(--whats); color: #fff; box-shadow: 0 10px 24px -10px rgba(37,211,102,.6); }
.btn--whats:hover { background: var(--whats-d); transform: translateY(-2px); }

/* ---------- Cartões (abrem modais) ---------- */
.cards { max-width: var(--wide); margin: clamp(1rem,3vw,2rem) auto 0; padding: 0 var(--pad); display: grid; gap: 1.1rem; grid-template-columns: repeat(3, 1fr); }
.card {
  text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 1.5rem 1.6rem; cursor: pointer; display: flex; flex-direction: column; gap: .35rem;
  box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d4e6f4; }
.card__num { font-size: .78rem; font-weight: 700; letter-spacing: .1em; color: var(--cyan-ink); }
.card__title { font-size: 1.3rem; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.card__desc { font-size: .95rem; color: var(--ink-2); flex: 1; }
.card__more { margin-top: .6rem; display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; font-weight: 600; color: var(--cyan-ink); }
.card:hover .card__more svg { transform: translateX(3px); }
.card__more svg { transition: transform .2s ease; }

/* ---------- Faixa de lugar (foto clara) ---------- */
.band { margin: clamp(2.5rem, 6vw, 4rem) 0 0; }
.band img { width: 100%; height: auto; display: block; }
.band figcaption { text-align: center; margin-top: .85rem; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding: 0 var(--pad); }

/* ---------- Footer ---------- */
.footer { text-align: center; padding: 3rem var(--pad) 3.5rem; }
.footer .social { margin-bottom: 1.6rem; }
.footer__mark { color: var(--cyan); font-size: 1.1rem; margin-bottom: .5rem; }
.footer__copy { font-size: .82rem; letter-spacing: .04em; color: var(--ink-3); }

/* ---------- Social (compartilhado) ---------- */
.social { display: flex; justify-content: center; gap: .8rem; }
.social a { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink-2); transition: color .2s ease, border-color .2s ease, transform .2s ease, background .2s ease; }
.social a:hover { color: #fff; background: var(--cyan); border-color: var(--cyan); transform: translateY(-3px); }

/* ---------- MODAIS (<dialog>) ---------- */
.modal {
  width: min(760px, 94vw); max-width: none; max-height: 88vh;
  padding: 0; border: 0; border-radius: 18px; color: var(--ink-2);
  background: #fff; box-shadow: 0 30px 80px -20px rgba(20,24,31,.45);
  overflow: hidden;
}
.modal::backdrop { background: rgba(15,22,33,.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal[open] { animation: modalIn .28s cubic-bezier(.2,.8,.2,1); }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

.modal__bar { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.4rem; background: #fff; border-bottom: 1px solid var(--line); z-index: 2; }
.modal__eyebrow { font-size: .82rem; font-weight: 700; letter-spacing: .1em; color: var(--cyan-ink); }
.modal__close { background: none; border: 0; cursor: pointer; font-size: 1.9rem; line-height: 1; color: var(--ink-3); width: 40px; height: 40px; border-radius: 10px; transition: background .2s ease, color .2s ease; }
.modal__close:hover { background: #f1f5f9; color: var(--ink); }
.modal__body { padding: 1.6rem clamp(1.4rem, 4vw, 2.6rem) 2.4rem; overflow-y: auto; max-height: calc(88vh - 64px); text-align: center; }
.modal__title { font-weight: 800; font-size: clamp(1.7rem, 4vw, 2.3rem); letter-spacing: -.02em; color: var(--ink); }
.modal__intro { margin-top: .9rem; color: var(--ink-2); }
.modal__cta { margin-top: 2rem; display: flex; justify-content: center; }

/* Listas/grupos (usados nos modais) */
.list { margin-top: 1.8rem; }
.list li { padding: 1.2rem 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.list__main { color: var(--ink); font-weight: 500; font-size: 1.06rem; line-height: 1.5; }
.list__sub { margin-top: .35rem; font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }

.groups { margin-top: 1.8rem; display: grid; gap: 0; }
.group { padding: 1.4rem 0; border-top: 1px solid var(--line); }
.group:first-child { border-top: 0; }
.group__level { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan-ink); margin-bottom: .55rem; }
.group__main { color: var(--ink); font-weight: 500; font-size: 1.06rem; line-height: 1.55; }
.group__sub { color: var(--ink-3); font-size: .9rem; margin-top: .15rem; }
.group--link { display: block; border-radius: 10px; transition: background .2s ease; }
.group--link .group__main { transition: color .2s ease; }
.group--link:hover { background: #f6fafd; }
.group--link:hover .group__main { color: var(--cyan-ink); }

.links { margin-top: 1.8rem; font-weight: 600; color: var(--cyan-ink); }
.links a { transition: color .2s ease; }
.links a:hover { color: var(--navy); }
.links span { color: var(--ink-3); margin: 0 .6rem; font-weight: 400; }

.inline-list { max-width: 40rem; margin: 1.6rem auto 0; color: var(--ink); font-weight: 500; line-height: 2; }
.inline-list span { color: var(--cyan); margin: 0 .5rem; }
.subhead { margin-top: 2.4rem; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan-ink); }

/* ---------- PÁGINA DE CONTATO ---------- */
.contact { max-width: var(--wide); margin: 0 auto; padding: clamp(6.5rem, 12vh, 8.5rem) var(--pad) 0; }
.contact__head { text-align: center; max-width: var(--col); margin: 0 auto clamp(2.2rem, 5vw, 3.2rem); }
.contact__title { font-weight: 800; font-size: clamp(2.2rem, 6vw, 3.4rem); letter-spacing: -.03em; color: var(--ink); margin: .6rem 0 0; }
.contact__lead { margin-top: 1rem; color: var(--ink-2); }

.contact__grid { display: grid; grid-template-columns: 340px 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.contact__side { order: 1; }
.contact__formwrap { order: 2; }
.contact__sub { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-bottom: 1.2rem; letter-spacing: -.01em; }
.contact__formwrap { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow-sm); }

.cform { text-align: left; }
.field { margin-bottom: 1.1rem; display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.field .req { color: var(--cyan-ink); }
.cform input, .cform textarea {
  font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 10px; padding: .8rem .95rem;
  width: 100%; transition: border-color .2s ease, box-shadow .2s ease;
}
.cform input::placeholder, .cform textarea::placeholder { color: #b3bcc7; }
.cform input:focus, .cform textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(28,163,224,.15); }
.cform textarea { resize: vertical; min-height: 120px; }
.cform .btn--whats { width: 100%; justify-content: center; margin-top: .4rem; }
.cform__hint { margin-top: .8rem; font-size: .82rem; color: var(--ink-3); text-align: center; }
.cform__error { margin-bottom: 1rem; padding: .7rem .9rem; border-radius: 10px; background: #fff1f1; color: #b42318; font-size: .9rem; border: 1px solid #f7d4d4; }

.contact__side .contact__emails { display: grid; gap: .7rem; margin-bottom: 1.8rem; }
.contact__side .contact__emails a { font-weight: 600; font-size: 1.02rem; color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: .15rem; width: fit-content; transition: color .2s ease, border-color .2s ease; }
.contact__side .contact__emails a:hover { color: var(--cyan-ink); border-color: var(--cyan); }
.contact__side .social { justify-content: flex-start; }
.contact__photo { margin: 2rem 0 0; }
.contact__photo img { width: 100%; max-width: 300px; height: auto; aspect-ratio: 1/1; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.contact__photo figcaption { margin-top: 1rem; font-weight: 700; font-size: 1.05rem; color: var(--ink); letter-spacing: -.01em; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }

/* ---------- Responsivo ---------- */
@media (max-width: 880px) {
  .cards { grid-template-columns: 1fr; max-width: var(--col); }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__side { order: 2; }
  .contact__formwrap { order: 1; }
}
@media (max-width: 720px) {
  .topbar__nav { display: none; }
  .topbar__toggle { display: flex; }
  .mobile-nav { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
