/* JOM — internal page styles (services, about, cases) */

/* Light page chrome (used on internal pages where hero isn't deep purple) */
body.is-page { background: var(--bg); }
body.is-page .nav { background: rgba(250,247,242,.85); color: var(--ink); border-bottom: 1px solid transparent; backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); }
body.is-page .nav.is-stuck { background: rgba(250,247,242,.95); border-bottom-color: var(--line); }
body.is-page .nav-logo img { filter: none; }
body.is-page .nav .lang-toggle { border-color: var(--line); opacity: 1; }
body.is-page .nav .lang-toggle button.is-on { color: #fff; background: var(--ink); }
body.is-page .nav .nav-links a { color: var(--ink); }

/* Dark hero (used on services pages) */
.page-hero {
  position: relative;
  margin-top: -84px;
  padding: 200px 0 110px;
  background:
    radial-gradient(ellipse 60% 50% at 90% 10%, rgba(233,30,122,.22), transparent 60%),
    radial-gradient(ellipse 80% 80% at 0% 100%, rgba(75,27,143,.45), transparent 60%),
    linear-gradient(180deg, #1E0A3C, #140627);
  color: #fff;
  overflow: hidden;
}
body.is-page .page-hero ~ * { color: var(--ink); }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,.06) 1.5px, transparent 2px);
  background-size: 22px 22px; opacity: .5; pointer-events: none;
}
body.is-page:has(.page-hero) .nav { background: transparent; color: #fff; border: 0; }
body.is-page:has(.page-hero) .nav .nav-logo img { filter: brightness(0) invert(1); }
body.is-page:has(.page-hero) .nav .nav-links a { color: #fff; }
body.is-page:has(.page-hero) .nav.is-stuck { background: rgba(250,247,242,.92); color: var(--ink); border-bottom: 1px solid var(--line); }
body.is-page:has(.page-hero) .nav.is-stuck .nav-logo img { filter: none; }
body.is-page:has(.page-hero) .nav.is-stuck .nav-links a { color: var(--ink); }
body.is-page:has(.page-hero) .nav.is-stuck .lang-toggle button.is-on { color: #fff; background: var(--ink); }

.page-hero-inner { position: relative; max-width: 920px; }
.page-hero .breadcrumb {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(255,255,255,.6);
  margin-bottom: 28px;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,.7); transition: color .2s; }
.page-hero .breadcrumb a:hover { color: var(--accent-hot); }
.page-hero .breadcrumb svg { opacity: .5; }
.page-hero h1 {
  font-family: "Archivo Black", sans-serif;
  font-weight: 900;
  font-size: clamp(48px, 7vw, 112px);
  line-height: .95;
  letter-spacing: -0.03em;
  margin: 0 0 28px;
  text-transform: uppercase;
  text-wrap: balance;
}
.page-hero h1 em { font-style: normal; color: var(--accent-hot); }
.page-hero .lead {
  font-size: 20px;
  line-height: 1.5;
  color: rgba(255,255,255,.78);
  max-width: 56ch;
  margin: 0;
}
.page-hero-meta {
  margin-top: 40px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.55);
}
.page-hero-meta .meta-item b { display: block; font-family: "Archivo Black", sans-serif; font-size: 22px; color: #fff; letter-spacing: -0.01em; margin-top: 6px; text-transform: none; }
.page-hero-meta .meta-item.accent b { color: var(--accent-hot); }

/* Light page hero (cases index, sobre) */
.page-hero.light {
  background: var(--bg);
  color: var(--ink);
}
.page-hero.light::before { display: none; }
body.is-page:has(.page-hero.light) .nav { background: rgba(250,247,242,.85); color: var(--ink); }
body.is-page:has(.page-hero.light) .nav .nav-logo img { filter: none; }
body.is-page:has(.page-hero.light) .nav .nav-links a { color: var(--ink); }
.page-hero.light .breadcrumb { color: var(--ink-soft); }
.page-hero.light .breadcrumb a { color: var(--ink-soft); }
.page-hero.light .breadcrumb a:hover { color: var(--accent); }
.page-hero.light h1 em { color: var(--accent); }
.page-hero.light .lead { color: var(--ink-soft); }
.page-hero.light .page-hero-meta { color: var(--ink-soft); }
.page-hero.light .page-hero-meta .meta-item b { color: var(--ink); }
.page-hero.light .page-hero-meta .meta-item.accent b { color: var(--accent); }

/* Generic content blocks */
.content-section { padding: 96px 0; }
.content-section + .content-section { padding-top: 0; }
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
}
.content-grid .label-stack { position: sticky; top: 100px; align-self: start; }
.content-grid .label-stack .section-label { margin-bottom: 16px; }
.content-grid .label-stack h2 {
  font-family: "Archivo Black", sans-serif;
  font-weight: 900;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: .98;
  letter-spacing: -0.02em;
  margin: 0;
  text-transform: uppercase;
}
.content-grid .label-stack h2 em { font-style: normal; color: var(--accent); }
.content-body p { font-size: 17px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 1.2em; max-width: 60ch; }
.content-body p strong { color: var(--ink); font-weight: 600; }
.content-body p.lead { font-size: 22px; line-height: 1.45; color: var(--ink); max-width: 32ch; font-weight: 400; }
.content-body h3 {
  font-family: "Archivo Black", sans-serif;
  font-size: 28px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 48px 0 18px;
  line-height: 1;
}

/* Process step list */
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.step:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -20px rgba(30,10,60,.18); }
.step-num { font-family: "JetBrains Mono", monospace; font-size: 11.5px; letter-spacing: .12em; color: var(--accent); margin-bottom: 14px; }
.step h4 { font-family: "Archivo Black", sans-serif; font-size: 18px; text-transform: uppercase; margin: 0 0 8px; letter-spacing: -0.01em; }
.step p { font-size: 14.5px; color: var(--ink-soft); margin: 0; line-height: 1.5; }

/* Deliverables list (services) */
.deliv-list { list-style: none; padding: 0; margin: 24px 0; }
.deliv-list li {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 16px;
  align-items: baseline;
  font-size: 16px;
}
.deliv-list li:last-child { border-bottom: 1px solid var(--line); }
.deliv-list li .check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 12px;
  align-self: center;
}
.deliv-list li .meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-soft);
}

/* Stats strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--bg-alt);
  border-radius: 24px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  margin: 80px 0;
}
.stat-cell { padding: 36px 32px; border-right: 1px solid var(--line); }
.stat-cell:last-child { border-right: 0; }
.stat-cell .v { font-family: "Archivo Black", sans-serif; font-size: clamp(36px, 4.2vw, 56px); letter-spacing: -0.03em; line-height: 1; margin-bottom: 10px; }
.stat-cell .v em { color: var(--accent); font-style: normal; }
.stat-cell .l { font-family: "JetBrains Mono", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); line-height: 1.4; }

/* CTA strip */
.cta-strip {
  margin-top: 64px;
  padding: 48px;
  background: linear-gradient(140deg, var(--purple-deep), var(--purple-mid));
  border-radius: 24px;
  color: #fff;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 100% 0%, rgba(233,30,122,.35), transparent 60%);
  pointer-events: none;
}
.cta-strip > * { position: relative; }
.cta-strip h3 {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(24px, 2.4vw, 36px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.05;
}
.cta-strip h3 em { color: var(--accent-hot); font-style: normal; }
.cta-strip .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Cases grid (cases.html) */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.case-card { display: flex; flex-direction: column; gap: 16px; transition: transform .3s var(--ease-out); }
.case-card:hover { transform: translateY(-4px); }
.case-card .case-media { aspect-ratio: 4/5; }
.case-card:hover .case-stat-overlay { background: var(--accent); color: #fff; }
.case-card:hover .case-stat-overlay em { color: #fff; }
.case-stat-overlay { transition: background .25s, color .25s; }
.case-card .case-title { transition: color .2s; }
.case-card:hover .case-title { color: var(--accent); }

/* Case detail */
.case-detail-hero {
  margin-top: -84px;
  padding-top: 140px;
  background: linear-gradient(180deg, var(--bg), var(--bg-alt) 60%);
  position: relative;
  overflow: hidden;
}
.case-detail-hero .breadcrumb { color: var(--ink-soft); display: inline-flex; gap: 8px; font-family: "JetBrains Mono", monospace; font-size: 11.5px; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 24px; }
.case-detail-hero .breadcrumb a { color: var(--ink-soft); }
.case-detail-hero .breadcrumb a:hover { color: var(--accent); }
.case-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; padding-bottom: 80px; }
.case-detail-grid h1 {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(48px, 6vw, 96px);
  line-height: .95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0 0 24px;
  text-wrap: balance;
}
.case-detail-grid h1 em { font-style: normal; color: var(--accent); }
.case-detail-grid .lead { font-size: 19px; color: var(--ink-soft); max-width: 50ch; margin: 0; }
.case-detail-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
.case-detail-meta .item { border-top: 1px solid var(--line); padding-top: 14px; }
.case-detail-meta .item .l { font-family: "JetBrains Mono", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); margin-bottom: 6px; }
.case-detail-meta .item .v { font-weight: 500; font-size: 16px; }

.case-cover {
  aspect-ratio: 16/10;
  border-radius: 24px;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 12px, transparent 12px 24px),
    linear-gradient(180deg, var(--purple-deep), var(--purple-mid));
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5);
  font-family: "JetBrains Mono", monospace; font-size: 12px; text-transform: uppercase; letter-spacing: .14em;
  margin-bottom: 80px;
}

.case-section { padding: 80px 0; border-top: 1px solid var(--line); }
.case-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.case-gallery .jom-ph { aspect-ratio: 4/3; }
.case-gallery .jom-ph.full { grid-column: span 2; aspect-ratio: 16/8; }

/* About manifesto */
.manifesto {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
.manifesto-q {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(28px, 3vw, 48px);
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.manifesto-q em { font-style: normal; color: var(--accent); }
.manifesto-a { font-size: 17px; color: var(--ink-soft); line-height: 1.6; }

@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; gap: 32px; }
  .content-grid .label-stack { position: relative; top: 0; }
  .steps { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .stat-cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat-cell:nth-child(2n) { border-right: 0; }
  .cta-strip { grid-template-columns: 1fr; padding: 32px; }
  .cases-grid { grid-template-columns: 1fr; }
  .case-detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .case-detail-meta { grid-template-columns: 1fr; }
  .case-gallery { grid-template-columns: 1fr; }
  .case-gallery .jom-ph.full { grid-column: span 1; }
  .manifesto { grid-template-columns: 1fr; gap: 16px; }
}

/* =========================================================
   ProsperSites — Footer credit (Feito com amor) + Grupo Jonnpo link
   ========================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.footer-legal { line-height: 1.7; }
.footer-jonnpo { color: var(--jom-pink-hot, #FF2E88) !important; font-weight: 600; opacity: 1 !important; transition: color .2s ease; }
.footer-jonnpo:hover { color: var(--jom-pink-soft, #F48FB1) !important; }
.footer__credit { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.6); }
.footer__credit a { color: #fff; opacity: 1 !important; }
.footer__credit a:hover { color: var(--jom-pink-hot, #FF2E88); }
.footer__credit strong { font-weight: 600; }
.footer__heart { display: inline-block; color: var(--jom-pink-hot, #FF2E88); animation: jom-heart-pulse 1.6s ease-in-out infinite; transform-origin: center; }
@keyframes jom-heart-pulse {
  0%, 100% { transform: scale(1); }
  30%      { transform: scale(1.22); }
  60%      { transform: scale(0.96); }
}
@media (prefers-reduced-motion: reduce) {
  .footer__heart { animation: none; }
}

/* =========================================================
   ProsperSites — WhatsApp floating button
   ========================================================= */
.whatsapp-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 80;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow:
    0 10px 30px rgba(37, 211, 102, .45),
    0 2px 8px rgba(0, 0, 0, .25),
    inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .25s ease, box-shadow .25s ease;
  animation: whatsapp-pulse 2.4s ease-out infinite;
}
.whatsapp-fab:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow:
    0 16px 40px rgba(37, 211, 102, .55),
    0 4px 12px rgba(0, 0, 0, .3),
    inset 0 1px 0 rgba(255, 255, 255, .3);
}
.whatsapp-fab:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@keyframes whatsapp-pulse {
  0%   { box-shadow: 0 10px 30px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.5), inset 0 1px 0 rgba(255,255,255,.25); }
  70%  { box-shadow: 0 10px 30px rgba(37,211,102,.45), 0 0 0 18px rgba(37,211,102,0), inset 0 1px 0 rgba(255,255,255,.25); }
  100% { box-shadow: 0 10px 30px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,0),  inset 0 1px 0 rgba(255,255,255,.25); }
}
@media (max-width: 540px) {
  .whatsapp-fab { right: 16px; bottom: 16px; width: 46px; height: 46px; }
  .whatsapp-fab svg { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) { .whatsapp-fab { animation: none; } }

/* =========================================================
   ProsperSites — Back to top floating button
   ========================================================= */
.back-to-top {
  position: fixed; right: 24px; bottom: 88px; z-index: 79;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(20, 6, 39, .78);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: #fff; cursor: pointer;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, background .25s ease, border-color .25s ease;
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover {
  background: var(--jom-pink, #E91E7A);
  border-color: var(--jom-pink-hot, #FF2E88);
  transform: translateY(-3px);
}
.back-to-top:focus-visible { outline: 2px solid var(--jom-pink-hot, #FF2E88); outline-offset: 3px; }
@media (max-width: 540px) {
  .back-to-top { right: 16px; bottom: 76px; width: 44px; height: 44px; }
}

/* =========================================================
   ProsperSites — Cookie consent banner (LGPD)
   ========================================================= */
.cookie-banner {
  position: fixed; left: 24px; bottom: 24px; z-index: 90;
  max-width: 440px; display: flex; flex-direction: column; gap: 16px;
  padding: 20px 22px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(20, 6, 39, .88);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  color: rgba(255,255,255,.78); font-family: var(--font-sans, "Inter", sans-serif);
  font-size: 13px; line-height: 1.55;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,.6);
  transform: translateY(20px); opacity: 0; pointer-events: none;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), opacity .4s ease;
}
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
.cookie-banner[hidden] { display: none; }
.cookie-banner__body { display: flex; gap: 14px; align-items: flex-start; }
.cookie-banner__icon { flex-shrink: 0; color: var(--jom-pink-hot, #FF2E88); margin-top: 2px; }
.cookie-banner__title { margin: 0 0 4px; color: #fff; font-weight: 600; font-size: 14px; }
.cookie-banner__desc { margin: 0; font-size: 12.5px; }
.cookie-banner__desc a { color: var(--jom-pink-soft, #F48FB1); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner__actions { display: flex; gap: 10px; justify-content: flex-end; }
.cookie-banner__btn {
  font-family: inherit; font-size: 12px; font-weight: 500;
  padding: 9px 16px; border-radius: 8px; border: 1px solid transparent;
  cursor: pointer; transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.cookie-banner__btn--ghost { background: transparent; border-color: rgba(255,255,255,.16); color: rgba(255,255,255,.8); }
.cookie-banner__btn--ghost:hover { border-color: rgba(255,255,255,.32); color: #fff; }
.cookie-banner__btn--primary { background: var(--jom-pink, #E91E7A); color: #fff; }
.cookie-banner__btn--primary:hover { background: var(--jom-pink-hot, #FF2E88); }
@media (max-width: 540px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; padding: 16px; }
  .cookie-banner__actions { flex-direction: column-reverse; }
  .cookie-banner__btn { width: 100%; padding: 11px; }
}
