/* RBB Serviços: estilos do site */

@font-face {
  font-family: "Archivo";
  src: url("assets/archivo-var.woff") format("woff");
  font-weight: 400 700;
  font-stretch: 100% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Layout: coluna de texto à esquerda e o site em 3D fixo à direita.
     No celular, o 3D fica no alto da tela e o texto vem em cartões translúcidos. */
  --bg: #15120e;          /* café torrado: fundo da página */
  --bg-deep: #0c0a07;
  --surface: #1f1a14;
  --glass: rgba(21, 17, 12, 0.8);
  --text: #f2ebdf;        /* papel */
  --muted: #b9af9e;
  --faint: #918877;
  --line: rgba(242, 235, 223, 0.12);
  --line-strong: rgba(242, 235, 223, 0.26);
  --gold: #d7b16b;        /* latão: cor da marca */
  --gold-hi: #ecd29d;
  --gold-wash: rgba(215, 177, 107, 0.1);
  --gold-edge: rgba(215, 177, 107, 0.48);
  --on-gold: #1c150b;
  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --header-h: 64px;
  --gutter: clamp(16px, 4.5vw, 56px);
  --col: 40rem;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(110% 55% at 50% 22%, #2a2116 0%, rgba(21, 18, 14, 0) 65%),
    radial-gradient(70% 45% at 0% 100%, #1c160f 0%, rgba(21, 18, 14, 0) 70%),
    var(--bg);
}

#cena {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  pointer-events: none;
}

main, .site-footer { position: relative; z-index: 2; }

::selection { background: rgba(215, 177, 107, 0.35); color: var(--text); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1.25em; height: 1.25em; flex: none; }

.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;
}

.skip {
  position: absolute; left: 12px; top: -120px; z-index: 50;
  padding: 0.7rem 1rem; border-radius: 10px;
  background: var(--text); color: var(--bg);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

/* ---------- Tipografia ---------- */

h1, h2, h3 { margin: 0; font-weight: 640; text-wrap: balance; }
h1 {
  font-size: clamp(2.3rem, min(1.15rem + 4.6vw, 10.5vh), 4.5rem);
  line-height: 1.02;
  font-stretch: 125%;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.8rem, min(1.2rem + 2.3vw, 8vh), 2.95rem);
  line-height: 1.07;
  font-stretch: 120%;
  letter-spacing: -0.015em;
}
h3 { font-size: 1.15rem; line-height: 1.3; font-stretch: 110%; font-weight: 620; }
p { margin: 0; }

.lead {
  color: var(--muted);
  font-size: clamp(1.04rem, 0.98rem + 0.3vw, 1.18rem);
  line-height: 1.55;
  max-width: 34rem;
  text-wrap: pretty;
}
.small { color: var(--faint); font-size: 0.9rem; line-height: 1.5; text-wrap: pretty; }

.link {
  color: var(--gold-hi);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(236, 210, 157, 0.4);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
  transition: text-decoration-color 0.2s;
}
.link:hover { text-decoration-color: currentColor; }

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0 1.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  font-stretch: 106%;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn .i { width: 20px; height: 20px; }
.btn-gold {
  background: var(--gold);
  color: var(--on-gold);
  box-shadow: 0 14px 34px -16px rgba(215, 177, 107, 0.75);
}
.btn-gold:hover { background: var(--gold-hi); transform: translateY(-1px); }
.btn-line { border-color: var(--line-strong); color: var(--text); background: rgba(21, 17, 12, 0.3); }
.btn-line:hover { border-color: var(--gold-edge); color: var(--gold-hi); }
.btn-sm { min-height: 44px; padding: 0 0.85rem; font-size: 0.93rem; }
.btn-sm span { display: none; }

/* ---------- Topo ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}
.site-header.is-scrolled,
.site-header.menu-open {
  background: rgba(16, 13, 9, 0.8);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.nav {
  position: relative;
  height: var(--header-h);
  width: min(1240px, 100% - 2 * var(--gutter));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--text); text-decoration: none; }
.brand-mark { width: 34px; height: 34px; color: var(--text); flex: none; }
.brand-name { font-weight: 700; font-stretch: 118%; font-size: 0.86rem; letter-spacing: 0.05em; white-space: nowrap; }
.brand-name b { color: var(--gold); font-weight: 700; }

.menu { display: none; }
.site-header.menu-open .menu {
  position: absolute;
  top: 100%;
  left: calc(-1 * var(--gutter));
  right: calc(-1 * var(--gutter));
  display: flex;
  flex-direction: column;
  padding: 0.25rem var(--gutter) 1.25rem;
  background: rgba(16, 13, 9, 0.97);
  border-bottom: 1px solid var(--line);
}
.menu a { color: var(--text); text-decoration: none; }
.site-header.menu-open .menu a { padding: 0.95rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }

.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.menu-btn {
  display: inline-grid;
  place-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(21, 17, 12, 0.3);
  color: var(--text);
  cursor: pointer;
}
.menu-btn span { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform 0.25s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ---------- Estrutura das seções ---------- */

.wrap { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.sec { position: relative; padding-bottom: 1.25rem; }

.stage { display: none; }
.has-3d .stage { display: block; height: 42svh; touch-action: pan-y pinch-zoom; }
.has-3d .hero .stage { height: 47svh; }
.no-3d .hero { padding-top: calc(var(--header-h) + 2rem); }

.copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
  max-width: var(--col);
}
.panel {
  margin-inline: auto;
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  backdrop-filter: blur(12px) saturate(1.15);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.5rem 1.25rem 1.6rem;
}

.actions { align-self: stretch; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-top: 0.35rem; }
.actions .btn { flex: 1 1 100%; padding-inline: 1.1rem; }

.hint { display: flex; align-items: flex-start; gap: 0.55rem; color: var(--faint); font-size: 0.9rem; line-height: 1.45; margin-top: 0.25rem; }
.hint .i { width: 18px; height: 18px; margin-top: 0.05rem; color: var(--gold); }
.hint-touch { display: none; }
.only-2d { display: none; }
.no-3d .only-2d { display: inline; }
.no-3d .only-3d { display: none; }
.no-3d .seg { display: none; }
.no-3d .fields { grid-template-columns: minmax(0, 1fr); }
@media (hover: none) {
  .hint-mouse { display: none; }
  .hint-touch { display: inline; }
}
.no-3d .hint { display: none; }

/* ---------- Tipos de site ---------- */

.types {
  align-self: stretch;
  min-width: 0;
  margin: 0.25rem 0 0;
  padding: 0;
  border: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.type {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 0.7rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.015);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.type:hover { border-color: var(--line-strong); }
.type input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.type::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.type.is-checked { border-color: var(--gold-edge); background: var(--gold-wash); }
.type.is-checked::before { border-color: var(--gold); background: var(--gold); box-shadow: inset 0 0 0 3px #201a12; }
.type:has(input:focus-visible) { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.type-name { font-weight: 600; font-stretch: 108%; line-height: 1.25; font-size: 0.98rem; }
.type-desc { display: none; grid-column: 2; color: var(--muted); font-size: 0.95rem; line-height: 1.45; margin-top: 0.2rem; }
.type-note { color: var(--muted); font-size: 0.98rem; line-height: 1.45; min-height: 2.9em; }

.fields { align-self: stretch; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 0.75rem; }
.field { display: grid; gap: 0.45rem; min-width: 0; }
.field-label { font-size: 0.85rem; color: var(--faint); font-weight: 500; }
.field input {
  width: 100%;
  height: 50px;
  padding: 0 1rem;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(10, 8, 6, 0.4);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder { color: var(--faint); opacity: 1; }
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(215, 177, 107, 0.22); }

.seg { margin: 0; padding: 0; border: 0; min-width: 0; }
.seg legend { padding: 0; margin-bottom: 0.45rem; }
.seg-track { display: inline-flex; gap: 2px; padding: 4px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(10, 8, 6, 0.4); }
.seg label { position: relative; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg label span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 46px;
  height: 40px;
  padding: 0 0.7rem;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--muted);
  transition: background-color 0.2s, color 0.2s;
}
.seg label .i { width: 20px; height: 20px; }
.seg em {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; font-style: normal;
}
.seg input:checked + span { background: var(--text); color: var(--bg); }
.seg input:focus-visible + span { outline: 2px solid var(--gold-hi); outline-offset: 2px; }

/* ---------- Trabalhos ---------- */

.works { align-self: stretch; display: grid; gap: 2rem; margin-top: 0.6rem; }
.work { display: grid; gap: 0.9rem; min-width: 0; }
.work-shot {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  max-width: 100%;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.work-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.6s; }
.work:hover .work-shot img { transform: scale(1.025); }
.work-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  padding: 1rem;
  text-align: center;
  font-weight: 640;
  font-stretch: 120%;
  font-size: 1.3rem;
  color: var(--gold-hi);
  background: radial-gradient(80% 70% at 70% 30%, rgba(215, 177, 107, 0.2), transparent 70%), var(--surface);
}
.work-shot.is-missing .work-fallback { display: grid; }
.work-shot.is-missing img { display: none; }
.work-info { display: grid; gap: 0.3rem; }
.work-info p { color: var(--muted); font-size: 0.98rem; }
.work-info .link { justify-self: start; margin-top: 0.25rem; }

/* ---------- Planos ---------- */

.plan-tabs {
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(10, 8, 6, 0.4);
}
.plan-tabs button {
  min-height: 42px;
  padding: 0 0.3rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.plan-tabs button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.plan:not(.is-active) { display: none; }

.plans { align-self: stretch; display: grid; gap: 0.6rem; margin-top: 0.4rem; }
.plan {
  display: grid;
  gap: 0.5rem;
  padding: 1.1rem 1.2rem 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s;
}
.plan.is-active { background: var(--gold-wash); border-color: var(--gold-edge); }
.plan-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.2rem 1rem; }
.plan h3 { transition: color 0.25s; }
.plan.is-active h3 { color: var(--gold-hi); }
.plan-tag { font-size: 0.86rem; color: var(--faint); }
.plan p { color: var(--muted); font-size: 0.98rem; }
.plan .link { justify-self: start; }

/* ---------- Como funciona ---------- */

.process { padding-bottom: 0; }
.steps { display: grid; }
.step { position: relative; padding-bottom: 1.25rem; }
.step-body { align-self: stretch; display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: baseline; }
.step-num { font-weight: 650; font-stretch: 125%; font-size: 1.05rem; color: var(--gold); font-variant-numeric: tabular-nums; }
.step-body h3 { margin-bottom: 0.3rem; }
.step-body p { color: var(--muted); }
.step:first-child .step-body { margin-top: 0.4rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }

/* ---------- Contato e rodapé ---------- */

.phone { color: var(--muted); font-size: 0.95rem; }
.phone span { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

.site-footer { margin-top: 2rem; background: var(--bg-deep); border-top: 1px solid var(--line); }
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.75rem calc(1.75rem + env(safe-area-inset-bottom, 0px));
  color: var(--faint);
  font-size: 0.9rem;
}

/* ---------- Etiqueta das peças 3D ---------- */

.tip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 40;
  width: max-content;
  max-width: min(16rem, calc(100vw - 24px));
  padding: 0.7rem 0.85rem 0.75rem;
  border-radius: 12px;
  background: rgba(19, 15, 10, 0.94);
  border: 1px solid var(--gold-edge);
  box-shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.7);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s;
}
.tip.is-on { opacity: 1; }
.tip strong { display: block; color: var(--gold-hi); font-weight: 620; font-stretch: 110%; font-size: 0.95rem; line-height: 1.3; }
.tip span { display: block; margin-top: 0.15rem; color: var(--muted); font-size: 0.86rem; line-height: 1.4; }

html.is-over-3d, html.is-over-3d body { cursor: grab; }
html.is-dragging-3d, html.is-dragging-3d * { cursor: grabbing !important; -webkit-user-select: none; user-select: none; }

/* ---------- Telas largas: texto à esquerda, 3D à direita ---------- */

@media (min-width: 900px), (min-width: 640px) and (orientation: landscape) {
  :root { --header-h: 72px; --col: min(35rem, 44vw); }

  body::before {
    background:
      radial-gradient(70% 75% at 76% 48%, #2a2116 0%, rgba(21, 18, 14, 0) 62%),
      radial-gradient(55% 60% at 0% 100%, #1c160f 0%, rgba(21, 18, 14, 0) 70%),
      var(--bg);
  }

  .menu { display: flex; align-items: center; gap: 1.9rem; margin-left: auto; }
  .menu a { color: var(--muted); font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
  .menu a:hover { color: var(--text); }
  .menu-btn { display: none; }
  .btn-sm { padding: 0 1.1rem; }
  .btn-sm span { display: inline; }

  .has-3d .stage { display: none; }
  .sec {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-block: calc(var(--header-h) + 3rem) 3rem;
  }
  .no-3d .hero { padding-top: calc(var(--header-h) + 3rem); }
  .panel {
    margin-inline: 0;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: 0;
    border-radius: 0;
    padding: 0;
  }
  .copy { width: var(--col); gap: 1.25rem; }
  .hero .copy { gap: 1.4rem; }

  .actions .btn { flex: 0 0 auto; padding-inline: 1.45rem; }
  .seg em { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .seg label span { padding: 0 1rem; }
  .plan-tabs { display: none; }
  .plan:not(.is-active) { display: grid; }
  .types { grid-template-columns: 1fr; }
  .type { align-items: start; padding: 0.95rem 1.1rem; }
  .type::before { grid-row: span 2; margin-top: 0.22rem; }
  .type-desc { display: block; }
  .type-note { display: none; }

  .process { display: block; padding-block: 0; }
  .step { min-height: 64vh; min-height: 64svh; display: flex; align-items: center; padding-bottom: 0; }
  .step:first-child { min-height: 100vh; min-height: 100svh; padding-top: var(--header-h); }
  .step .step-body { opacity: 0.36; transition: opacity 0.45s; }
  .step.is-active .step-body { opacity: 1; }
  .step:last-child { min-height: 80svh; }
}

@media (max-width: 380px) {
  .panel { padding-inline: 1rem; }
  .btn { font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
