/* ==========================================================================
   Bulb Arquitetura — Design tokens
   Paleta extraída da identidade visual real da marca (logo "bulb", cetim
   branco, gradiente magenta/violeta). Tons de texto/botão ajustados para
   contraste WCAG AA (>=4.5:1 em texto normal, >=3:1 em texto grande/UI).
   ========================================================================== */
:root {
  /* Neutros */
  --ink: #221f26;
  --muted: #6e6873;
  --bg: #ffffff;
  --surface: #faf6fa;      /* "cetim" — leve tom lavanda sobre branco */
  --stone: #f3edf4;
  --line: #e2d9e5;
  --line-strong: #c9bccd;

  /* Marca — decorativo (gradientes, fundos grandes, ícones) */
  --brand-magenta: #b23fc4;
  --brand-violet: #8c3fd6;
  --brand-blush: #f3e3f6;
  --brand-gradient: linear-gradient(135deg, var(--brand-magenta) 0%, var(--brand-violet) 100%);

  /* Marca — texto/UI (contraste garantido sobre branco) */
  --accent: #6b2fa0;
  --accent-hover: #59248a;
  --accent-contrast: #ffffff;

  /* Sistema */
  --focus: #1f4fd8;
  --danger: #b3261e;
  --success: #2f6d3f;

  /* Tipografia */
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Espaçamento / raio */
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;
  --container: 1280px;

  --shadow-soft: 0 20px 60px -30px rgba(107, 47, 160, 0.35);
}

:root { color-scheme: light; }

/* ==========================================================================
   Reset básico
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; margin: 0 0 0.5em; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem); }
h2 { font-size: clamp(1.9rem, 3vw + 1rem, 2.75rem); }
h3 { font-size: clamp(1.3rem, 1vw + 1rem, 1.6rem); }
p { margin: 0 0 1em; max-width: 68ch; text-wrap: pretty; }
ul, ol { padding-left: 1.2em; }
.container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.full-bleed { width: 100%; }

/* Skip link */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--bg); padding: 12px 18px;
  border-radius: var(--radius-sm); transition: top 150ms ease;
}
.skip-link:focus { top: 12px; }

/* Foco visível */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
:root[data-theme="dark"] .site-header,
@media (prefers-color-scheme: dark) { .site-header { background: rgba(23,20,27,0.92); } }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 14px; gap: 16px;
}
.brand-lockup { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-lockup__word {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 600;
  background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-lockup__sub { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: block; }

.nav-desktop { display: none; }
.nav-desktop ul { display: flex; list-style: none; gap: 28px; margin: 0; padding: 0; }
.nav-desktop a {
  text-decoration: none; font-size: 0.95rem; font-weight: 500; color: var(--ink);
  padding: 8px 2px; border-bottom: 2px solid transparent;
}
.nav-desktop a:hover, .nav-desktop a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn-primary { display: none; }
@media (min-width: 640px) { .header-actions .btn-primary { display: inline-flex; } }
.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: transparent; border: 1px solid var(--line);
  cursor: pointer;
}
@media (min-width: 900px) {
  .nav-desktop { display: block; }
  .menu-toggle { display: none; }
}

/* Menu mobile em tela cheia */
.nav-mobile {
  position: fixed; inset: 0; z-index: 150; background: var(--bg);
  display: flex; flex-direction: column; padding: 20px 24px 40px;
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
}
.nav-mobile.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.nav-mobile__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.nav-mobile ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.nav-mobile a {
  display: block; padding: 16px 4px; font-size: 1.5rem; font-family: var(--font-display);
  text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line);
}
.nav-mobile .btn { margin-top: 28px; align-self: flex-start; }
@media (min-width: 900px) { .nav-mobile { display: none; } }

/* ==========================================================================
   Botões / CTAs
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 0.95rem; border: 1px solid transparent;
  cursor: pointer; min-height: 48px; line-height: 1;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: var(--shadow-soft); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--accent); padding-inline: 4px; min-height: auto; }
.btn-block { width: 100%; justify-content: center; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding-block: 64px 80px;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background: var(--surface);
}
.hero__blob {
  position: absolute; z-index: -1; border-radius: 50%;
  background: var(--brand-gradient); opacity: 0.14; filter: blur(10px);
}
.hero__blob--a { width: 620px; height: 620px; top: -220px; right: -220px; }
.hero__blob--b { width: 420px; height: 420px; bottom: -180px; left: -140px; opacity: 0.1; }
.hero__grid {
  display: grid; gap: 40px; align-items: center;
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: 64px; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); display: inline-block; }
.hero p.lede { font-size: 1.15rem; color: var(--muted); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero__media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4 / 5; background: var(--stone); box-shadow: var(--shadow-soft);
}
.hero__media figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px;
  background: linear-gradient(0deg, rgba(20,15,25,0.72), transparent);
  color: #fff; font-size: 0.78rem; letter-spacing: 0.02em;
}

/* Placeholder de imagem — bloco neutro, sempre marcado */
.img-placeholder {
  position: relative; display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(135deg, var(--stone), var(--stone) 12px, var(--line) 12px, var(--line) 13px);
  color: var(--muted); text-align: center; font-size: 0.85rem; padding: 24px;
  border-radius: inherit; width: 100%; height: 100%;
}
.img-placeholder span { max-width: 26ch; }

/* ==========================================================================
   Faixa de escopo
   ========================================================================== */
.scope {
  padding-block: 72px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.scope__grid {
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.scope__item {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 28px; text-decoration: none; color: var(--ink);
  transition: border-color 150ms ease, transform 150ms ease;
}
.scope__item:hover { border-color: var(--accent); transform: translateY(-3px); }
.scope__icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--brand-blush);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--accent);
}
.scope__item h3 { margin-bottom: 6px; font-size: 1.15rem; }
.scope__item p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ==========================================================================
   Seções gerais
   ========================================================================== */
.section { padding-block: 88px; }
.section--tight { padding-block: 56px; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-head--between { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* Grid de projetos */
.project-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.project-card { text-decoration: none; color: var(--ink); display: block; }
.project-card__media { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/5; margin-bottom: 14px; background: var(--stone); }
.project-card__meta { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.project-card h3 { font-size: 1.1rem; margin-bottom: 2px; }
.project-card .tag-line { font-size: 0.85rem; color: var(--muted); }
.badge {
  display: inline-block; font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase;
  font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--brand-blush); color: var(--accent);
}

/* Processo / timeline */
.timeline { display: grid; gap: 24px; counter-reset: step; }
@media (min-width: 760px) { .timeline { grid-template-columns: repeat(3, 1fr); } }
.timeline__step {
  border: 1px solid var(--line); border-radius: var(--radius-md); padding: 26px;
  background: var(--bg); counter-increment: step;
}
.timeline__step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-size: 1.6rem; color: var(--accent); display: block; margin-bottom: 10px;
}

/* Cards genéricos */
.card { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 28px; background: var(--bg); }
.grid-2 { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Cartão com avatar circular (foto pequena + texto) — usado quando a foto
   de origem é de baixa resolução (ex.: foto de perfil), evitando ampliar
   uma imagem pequena numa área grande e borrar o resultado. */
.avatar-card { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
.avatar-card__photo {
  width: 168px; height: 168px; border-radius: 50%; overflow: hidden; flex: none;
  box-shadow: var(--shadow-soft); border: 4px solid var(--bg); outline: 1px solid var(--line);
}
.avatar-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-card__body { flex: 1 1 380px; min-width: 260px; }
@media (max-width: 560px) {
  .avatar-card { flex-direction: column; text-align: center; }
  .avatar-card__photo { width: 128px; height: 128px; }
  .avatar-card__body .eyebrow::before { display: none; }
}

/* Faixa "Sobre" resumida */
.about-strip { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .about-strip { grid-template-columns: 0.85fr 1.15fr; } }
.about-strip__media { aspect-ratio: 3/4; border-radius: var(--radius-lg); overflow: hidden; background: var(--stone); }

/* Accordion (FAQ) */
.accordion { border-top: 1px solid var(--line); }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: none; border: none; text-align: left; padding: 22px 4px; cursor: pointer;
  font-family: var(--font-display); font-size: 1.08rem; color: var(--ink);
}
.accordion-trigger .icon { flex: none; width: 22px; height: 22px; transition: transform 200ms ease; color: var(--accent); }
.accordion-trigger[aria-expanded="true"] .icon { transform: rotate(45deg); }
.accordion-panel { overflow: hidden; max-height: 0; transition: max-height 220ms ease; }
.accordion-panel__inner { padding: 0 4px 22px; color: var(--muted); }

/* CTA final */
.cta-band {
  background: var(--brand-gradient); border-radius: var(--radius-lg);
  padding: 64px 40px; text-align: center; color: #fff; position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(20,10,25,0.28), rgba(20,10,25,0.05));
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); margin-inline: auto; }
.cta-band .hero__actions { justify-content: center; }
.cta-band .btn-primary { background: #fff; color: var(--accent); }
.cta-band .btn-primary:hover { background: #f4e7fb; }
.cta-band .btn-secondary { border-color: rgba(255,255,255,0.6); color: #fff; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: #efe9f2; padding-block: 64px 32px; margin-top: 80px; }
.site-footer a { color: #efe9f2; text-decoration: none; }
.site-footer a:hover { color: var(--brand-magenta); }
.footer-grid { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 40px; }
.footer-grid h4 { color: #fff; font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 0.92rem; color: #cabfd1; }
.footer-legal { border-top: 1px solid rgba(255,255,255,0.14); padding-top: 28px; font-size: 0.82rem; color: #b6aabd; }
.footer-legal p { max-width: 90ch; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 20px; font-size: 0.8rem; color: #9c8fa5; }

/* Barra fixa mobile */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; background: var(--bg); border-top: 1px solid var(--line);
  padding: 8px max(8px, env(safe-area-inset-left)) max(8px, env(safe-area-inset-bottom));
}
.mobile-bar a, .mobile-bar button {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 4px; text-decoration: none; color: var(--ink); font-size: 0.7rem;
  background: none; border: none; min-height: 56px;
}
.mobile-bar svg { width: 22px; height: 22px; color: var(--accent); }
@media (min-width: 900px) { .mobile-bar { display: none; } }
body.has-mobile-bar { padding-bottom: 78px; }
@media (min-width: 900px) { body.has-mobile-bar { padding-bottom: 0; } }

/* WhatsApp flutuante (desktop) */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: var(--accent); color: #fff;
  display: none; align-items: center; justify-content: center; box-shadow: var(--shadow-soft);
  text-decoration: none;
}
.wa-float svg { width: 26px; height: 26px; }
@media (min-width: 900px) { .wa-float { display: flex; } }

/* ==========================================================================
   Cookie consent
   ========================================================================== */
.consent-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  max-width: 560px; margin-inline: auto;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 22px; box-shadow: var(--shadow-soft);
  display: none;
}
.consent-banner.is-visible { display: block; }
.consent-banner p { font-size: 0.9rem; color: var(--muted); margin-bottom: 16px; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent-actions .btn { flex: 1; min-width: 130px; }

/* Prefs de cookies (por categoria) */
.consent-prefs { display: none; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.consent-prefs.is-open { display: block; }
.consent-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.consent-row:last-child { border-bottom: none; }
.consent-row strong { display: block; font-size: 0.92rem; }
.consent-row span { font-size: 0.8rem; color: var(--muted); }
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; margin: 0; cursor: pointer; }
.switch .track { position: absolute; inset: 0; background: var(--line-strong); border-radius: 999px; transition: background 150ms ease; }
.switch .thumb { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: transform 150ms ease; }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track + .thumb { transform: translateX(18px); }
.switch input:disabled + .track { background: var(--accent); opacity: 0.5; }

/* Click-to-load embeds */
.embed-gate {
  border: 1px dashed var(--line-strong); border-radius: var(--radius-md);
  aspect-ratio: 16/9; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; background: var(--surface); text-align: center; padding: 24px;
}
.embed-gate p { color: var(--muted); font-size: 0.85rem; max-width: 40ch; }

/* Formulário */
.form-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 600; }
.field .hint { font-size: 0.78rem; color: var(--muted); }
.field input, .field select, .field textarea {
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 12px 14px;
  font-family: inherit; font-size: 0.95rem; background: var(--bg); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field-checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: var(--muted); }
.field-checkbox input { margin-top: 4px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Breadcrumbs */
.breadcrumbs { font-size: 0.82rem; color: var(--muted); margin-bottom: 24px; }
.breadcrumbs a { text-decoration: none; color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }

/* Aviso institucional */
.notice {
  font-size: 0.82rem; color: var(--muted); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px 20px;
}

/* Selo de render / imagem ilustrativa */
.img-tag {
  position: absolute; top: 12px; left: 12px; background: rgba(20,15,25,0.72); color: #fff;
  font-size: 0.68rem; padding: 5px 10px; border-radius: 999px; letter-spacing: 0.02em;
}

/* Utilidades */
.text-muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.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;
}

/* ==========================================================================
   Animações de entrada (scroll-reveal)
   Desativadas automaticamente com prefers-reduced-motion (ver topo do
   arquivo) e via JS para quem prefere menos movimento.
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms cubic-bezier(.16,.8,.3,1), transform 700ms cubic-bezier(.16,.8,.3,1);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: translateY(0); }
[data-reveal-group] > * { --reveal-delay: 0ms; }
[data-reveal-group] > *:nth-child(2) { --reveal-delay: 80ms; }
[data-reveal-group] > *:nth-child(3) { --reveal-delay: 160ms; }
[data-reveal-group] > *:nth-child(4) { --reveal-delay: 240ms; }
[data-reveal-group] > *:nth-child(5) { --reveal-delay: 320ms; }
[data-reveal-group] > *:nth-child(6) { --reveal-delay: 400ms; }
.js-reduced-motion [data-reveal] { opacity: 1; transform: none; transition: none; }

/* Blobs do hero flutuando suavemente */
@keyframes bulb-float {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(0,-18px,0) scale(1.03); }
}
.hero__blob { animation: bulb-float 14s ease-in-out infinite; }
.hero__blob--b { animation-duration: 18s; animation-delay: -4s; }
.js-reduced-motion .hero__blob { animation: none; }

/* Zoom sutil de imagem ao passar o mouse nos cards */
.project-card__media, .gallery-grid__item { overflow: hidden; }
.project-card__media img, .gallery-grid__item img {
  transition: transform 500ms cubic-bezier(.16,.8,.3,1);
  width: 100%; height: 100%; object-fit: cover;
}
.project-card:hover .project-card__media img,
.gallery-grid__item:hover img { transform: scale(1.06); }

/* Sublinhado animado nos links de texto */
.link-underline {
  position: relative; text-decoration: none; padding-bottom: 2px;
}
.link-underline::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -1px; height: 1.5px;
  background: currentColor; transition: right 280ms cubic-bezier(.16,.8,.3,1);
}
.link-underline:hover::after, .link-underline:focus-visible::after { right: 0; }

/* Botões com leve elevação ao passar o mouse (soma ao estado já existente) */
.btn { transition: transform 180ms ease, box-shadow 180ms ease, background 150ms ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* ==========================================================================
   Galeria de projeto + Lightbox acessível
   ========================================================================== */
.gallery-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.gallery-grid__item {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  aspect-ratio: 4/5; background: var(--stone); cursor: zoom-in; border: none; padding: 0;
  display: block; width: 100%;
}
.gallery-grid__item:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.gallery-grid__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 14px;
  background: linear-gradient(0deg, rgba(20,15,25,.75), transparent);
  color: #fff; font-size: .75rem; letter-spacing: .01em; text-align: left;
  opacity: 0; transform: translateY(6px); transition: opacity 200ms ease, transform 200ms ease;
}
.gallery-grid__item:hover figcaption,
.gallery-grid__item:focus-visible figcaption { opacity: 1; transform: translateY(0); }

.lightbox {
  border: none; padding: 0; margin: auto; max-width: 92vw; max-height: 90vh;
  background: transparent; overscroll-behavior: contain;
}
.lightbox::backdrop { background: rgba(15, 10, 18, 0.86); }
.lightbox__frame { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox__frame img { max-width: 92vw; max-height: 76vh; border-radius: var(--radius-sm); display: block; }
.lightbox__caption { color: #f1eaf4; font-size: .85rem; text-align: center; max-width: 70ch; }
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: none;
  border-radius: 50%; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; backdrop-filter: blur(6px);
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: rgba(255,255,255,.24); }
.lightbox__close { top: -8px; right: -8px; }
.lightbox__prev { left: -8px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: -8px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lightbox__prev, .lightbox__next { width: 40px; height: 40px; }
  .lightbox__close { top: -44px; right: 0; background: rgba(255,255,255,.18); }
}

/* Selo de imagem ilustrativa/render, reaproveitando .img-tag já definido acima */
.render-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(20,15,25,.72); color: #fff; font-size: .68rem;
  padding: 5px 10px; border-radius: 999px; letter-spacing: .02em;
}

/* ==========================================================================
   Ajustes finos de responsividade mobile
   ========================================================================== */
@media (max-width: 420px) {
  .container { padding-inline: 18px; }
  .hero { padding-block: 40px 56px; }
  .hero__actions, .cta-band .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn, .cta-band .hero__actions .btn { width: 100%; justify-content: center; }
  .section { padding-block: 56px; }
  .cta-band { padding: 40px 22px; }
  .timeline__step { padding: 20px; }
  h1 { font-size: clamp(2.1rem, 9vw, 2.8rem); }
  .brand-lockup__word { font-size: 1.35rem; }
}

/* ==========================================================================
   v2 — Redesign inspirado na referência (Decoris / Behance):
   pill de navegação flutuante, hero em imagem cheia com título serifado
   fino + itálico, faixa de diferenciais, cards de serviço com painel
   colorido, carrossel de portfólio e rodapé claro com barra de copyright.
   Aplicado com a identidade roxo/magenta da bulb arquitetura.
   ========================================================================== */
:root {
  --page: #f2eff3;
  --panel: #e3dee7;
  --accent-bar: linear-gradient(115deg, #7f3bc4 0%, #5b2592 100%);
}

body { background: var(--page); font-size: 16px; line-height: 1.7; overflow-x: clip; }
html { overflow-x: clip; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; }
h1 { font-size: clamp(2.6rem, 5.6vw + .5rem, 5rem); line-height: 1.04; letter-spacing: -.01em; }
h1 em, h2 em { font-style: italic; font-weight: 300; }
h2 { font-size: clamp(1.9rem, 3.2vw + .8rem, 3rem); text-transform: uppercase; letter-spacing: .04em; line-height: 1.12; }
h3 { font-size: clamp(1.4rem, 1vw + 1.1rem, 1.75rem); font-weight: 600; line-height: 1.15; }
.eyebrow { font-family: var(--font-body); font-weight: 500; letter-spacing: .16em; }
.lede { font-weight: 300; }
.btn { font-family: var(--font-body); font-weight: 500; letter-spacing: .02em; }
.btn-light { background: #fff; color: var(--accent); }
.btn-light:hover { background: #f6ecfc; box-shadow: var(--shadow-soft); }
.btn-lg { padding: 17px 34px; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; }

/* Reveal: variações direcionais */
[data-reveal="left"] { transform: translateX(-34px); }
[data-reveal="right"] { transform: translateX(34px); }
[data-reveal="zoom"] { transform: scale(.94); }
[data-reveal].is-in { transform: none; }

/* ---------- Cabeçalho: pill flutuante ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; background: transparent; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; pointer-events: none; }
.site-header .container { max-width: 1240px; }
.nav-pill {
  pointer-events: auto; margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 10px 12px 10px 26px; border-radius: 999px; color: #fff; background: var(--accent-bar);
  box-shadow: 0 18px 44px -20px rgba(50, 15, 90, .7); transition: padding 250ms ease, box-shadow 250ms ease, margin 250ms ease;
}
.site-header.is-scrolled .nav-pill { margin-top: 8px; padding-block: 6px; box-shadow: 0 22px 50px -18px rgba(50, 15, 90, .85); }
.brand-lockup { color: #fff; gap: 10px; }
.brand-lockup--dark { color: var(--accent); }
.brand-lockup__icon { flex: none; }
.brand-lockup__word { background: none; -webkit-background-clip: initial; background-clip: initial; color: currentColor; font-family: var(--font-display); font-weight: 600; font-size: 1.75rem; line-height: .9; display: block; }
.brand-lockup__sub { color: currentColor; opacity: .85; font-size: .58rem; letter-spacing: .3em; margin-top: 2px; }
.nav-desktop { display: none; }
.nav-desktop ul { gap: 22px; }
.nav-desktop a { color: #fff; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; padding: 8px 2px; border-bottom: 1.5px solid transparent; }
.nav-desktop a:hover, .nav-desktop a[aria-current="page"] { color: #fff; border-bottom-color: #fff; }
.header-actions .btn-primary { display: none; }
.header-actions .btn-light { display: none; padding: 12px 22px; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.nav-pill .menu-toggle { color: #fff; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.08); width: 44px; height: 44px; border-radius: 50%; }
@media (min-width: 640px) { .header-actions .btn-light { display: inline-flex; } }
@media (min-width: 1040px) { .nav-desktop { display: block; } .nav-pill .menu-toggle { display: none; } }
@media (min-width: 900px) and (max-width: 1039px) { .menu-toggle { display: inline-flex; } .nav-mobile { display: flex; } }
@media (max-width: 420px) { .nav-pill { padding: 8px 10px 8px 18px; margin-top: 10px; } .brand-lockup__word { font-size: 1.5rem; } }
body.page-inner main { padding-top: 56px; }

/* ---------- Hero v2 ---------- */
.hero-v2 { position: relative; min-height: min(100svh, 880px); display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; overflow: hidden; padding: 140px 0 130px; isolation: isolate; }
.hero-v2__bg { position: absolute; inset: 0; z-index: -2; }
.hero-v2__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; animation: hero-zoom 26s ease-out both; }
.hero-v2::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(24, 8, 40, .62) 0%, rgba(24, 8, 40, .38) 45%, rgba(24, 8, 40, .68) 100%); }
@keyframes hero-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-v2__inner { max-width: 900px; }
.hero-v2 .eyebrow { color: #fff; justify-content: center; }
.hero-v2 .eyebrow::before { background: #fff; }
.hero-v2 h1 { color: #fff; margin-bottom: 22px; }
.hero-v2 h1 em { display: block; }
.hero-v2__lede { margin: 0 auto 32px; max-width: 54ch; font-size: 1.02rem; font-weight: 300; color: rgba(255,255,255,.94); }
.hero-v2 .hero__actions { justify-content: center; margin-top: 0; }
.hero-v2 .btn-secondary { color: #fff; border-color: rgba(255,255,255,.65); }
.hero-v2 .btn-secondary:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.hero-v2__scroll { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(255,255,255,.14); backdrop-filter: blur(6px); animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 7px); } }

.value-strip { background: var(--accent-bar); color: #fff; padding: 20px 0; }
.value-strip ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 38px; list-style: none; margin: 0; padding: 0; font-size: .76rem; letter-spacing: .04em; }
.value-strip li { display: inline-flex; align-items: center; gap: 9px; }
.value-strip svg { width: 20px; height: 20px; flex: none; }
@media (max-width: 560px) { .value-strip ul { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; justify-items: start; } .value-strip li:last-child { grid-column: 1 / -1; } }

/* ---------- Ornamento (pontos + linha) ---------- */
.deco { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); }
.deco i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.deco b { width: 72px; height: 2px; background: currentColor; margin-left: 5px; }

/* ---------- Sobre v2 ---------- */
.about-v2 { display: grid; gap: 44px; align-items: center; }
@media (min-width: 900px) { .about-v2 { grid-template-columns: .95fr 1.05fr; gap: 64px; } }
.about-v2__text p { max-width: 46ch; color: var(--muted); }
.about-v2__text p strong { color: var(--ink); font-weight: 600; }
.about-v2__text .deco { margin-bottom: 18px; }
.about-v2__imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-v2__imgs figure { margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 3/4.2; background: var(--stone); }
.about-v2__imgs figure:nth-child(2) { margin-top: 44px; }
.about-v2__imgs img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(.16,.8,.3,1); }
.about-v2__imgs figure:hover img { transform: scale(1.06); }
@media (max-width: 520px) { .about-v2__imgs { gap: 10px; } .about-v2__imgs figure { border-radius: 16px; } .about-v2__imgs figure:nth-child(2) { margin-top: 28px; } }

/* ---------- Diferenciais ---------- */
.diff { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .diff { grid-template-columns: 1fr 1fr; gap: 72px; } }
.diff__imgs { display: grid; gap: 18px; }
.diff__imgs figure { margin: 0; position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 16/10; background: var(--stone); }
.diff__imgs img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(.16,.8,.3,1); }
.diff__imgs figure:hover img { transform: scale(1.05); }
.diff__list { display: grid; gap: 34px; }
.diff__item h3 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em; font-weight: 500; font-size: 1.55rem; margin-bottom: 8px; }
.diff__item p { color: var(--muted); max-width: 44ch; margin: 0; }
.diff__item { border-left: 2px solid var(--brand-magenta); padding-left: 20px; }

/* ---------- Serviços v2 ---------- */
.services-v2 { background: var(--panel); padding-block: 88px; }
.services-v2__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.services-v2__head p { max-width: 44ch; color: var(--muted); margin: 10px 0 0; }
.svc-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .svc-grid { grid-template-columns: repeat(4, 1fr); } }
.svc-card { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--bg); text-decoration: none; color: inherit; box-shadow: 0 14px 40px -28px rgba(60, 20, 100, .5); transition: transform 300ms cubic-bezier(.16,.8,.3,1), box-shadow 300ms ease; }
.svc-card:hover { transform: translateY(-8px); box-shadow: 0 30px 54px -26px rgba(60, 20, 100, .65); }
.svc-card__media { position: relative; aspect-ratio: 4/4.4; overflow: hidden; background: var(--stone); }
.svc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(.16,.8,.3,1); }
.svc-card:hover .svc-card__media img { transform: scale(1.08); }
.svc-card__media--art { background: radial-gradient(circle at 82% 16%, rgba(255,255,255,.26) 0 20%, transparent 20.6%), radial-gradient(circle at 10% 96%, rgba(255,255,255,.34) 0 30%, transparent 30.6%), var(--brand-gradient); display: flex; align-items: center; justify-content: center; color: #fff; }
.svc-card__media--art svg { width: 64px; height: 64px; transition: transform 500ms cubic-bezier(.16,.8,.3,1); }
.svc-card:hover .svc-card__media--art svg { transform: scale(1.14) rotate(-4deg); }
.svc-card__body { background: var(--accent-bar); color: #fff; padding: 22px 22px 24px; flex: 1; }
.svc-card__body h3 { font-family: var(--font-body); font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: #fff; margin-bottom: 8px; }
.svc-card__body p { font-size: .8rem; line-height: 1.55; margin: 0; color: rgba(255,255,255,.9); font-weight: 300; }

/* ---------- Portfólio: carrossel ---------- */
.carousel { position: relative; }
.carousel__track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 4px 2px 8px; scroll-behavior: smooth; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__item { flex: 0 0 min(270px, 74%); scroll-snap-align: start; text-decoration: none; color: inherit; }
.carousel__media { position: relative; aspect-ratio: 3/4; border-radius: 14px; overflow: hidden; background: var(--stone); }
.carousel__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(.16,.8,.3,1); }
.carousel__item:hover .carousel__media img { transform: scale(1.07); }
.carousel__cap { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px 2px 0; font-size: .85rem; }
.carousel__cap strong { font-weight: 500; }
.carousel__nav { display: none; }
@media (min-width: 720px) {
  .carousel__nav { display: flex; gap: 10px; }
  .carousel__btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 180ms ease, color 180ms ease, border-color 180ms ease; }
  .carousel__btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
}

/* ---------- Rodapé v2 (claro) ---------- */
.site-footer { background: var(--panel); color: var(--ink); padding: 60px 0 0; margin-top: 0; }
.site-footer a { color: var(--ink); }
.site-footer a:hover { color: var(--accent); }
.footer-grid h4 { color: var(--ink); font-family: var(--font-body); font-weight: 600; }
.footer-grid ul { color: var(--muted); }
.footer-legal { border-top: 1px solid var(--line-strong); color: var(--muted); padding-bottom: 32px; }
.footer-bar { background: var(--accent-bar); color: #fff; padding: 15px 0; }
.footer-bar a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-bar a:hover { color: #fff; opacity: .85; }
.footer-bottom { margin-top: 0; color: #fff; font-size: .78rem; }

/* Seções da Home usam o fundo da página */
.section-plain { padding-block: 92px; }
@media (max-width: 520px) { .section-plain, .services-v2 { padding-block: 60px; } }
.cta-band h2 { text-transform: uppercase; }
