/* Home seleção de serviço — mobile (max-width via <link media>) */
:root {
  --home-bg: #0a0b0e;
  --home-surface: #14161b;
  --home-surface-2: #1c1f26;
  --home-border: #2a2e38;
  --home-fg: #f5f5f7;
  --home-muted: #a3a7b3;
  --home-gold: #d4a73c;
  --home-gold-soft: #f0cf72;
  --home-violet: #8b5cf6;
}

/* Atmosfera mobile — imagem estática (vídeo só no desktop) */
body.orc-atmosfera {
  background: var(--home-bg);
  color: var(--home-fg);
  min-height: 100vh;
  position: relative;
  isolation: isolate;
}

.orc-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background: url("/orcamentoV2/images/home-bg.png") center / cover no-repeat;
  filter: blur(2px) saturate(1.1);
  transform: scale(1.03);
}

.orc-bg-video {
  display: none;
}

body.orc-bg-modo-video .orc-bg {
  background-image: none;
  filter: none;
  transform: none;
}

body.orc-bg-modo-video .orc-bg-video {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.orc-bg-modo-imagem .orc-bg-video {
  display: none;
}

.orc-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(139, 92, 246, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(8, 9, 12, 0.82) 0%, rgba(8, 9, 12, 0.88) 45%, rgba(8, 9, 12, 0.96) 100%);
}

body.home-selecao-ativa #app-top-logo,
body.home-selecao-ativa #container-botoes-principais,
body.home-selecao-ativa #conteudo-dinamico,
body.home-selecao-ativa #informacoes-evento {
  display: none !important;
}

#home-selecao {
  display: none;
}

body.home-selecao-ativa #home-selecao {
  display: flex;
}

.home-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 100vh;
  box-sizing: border-box;
  color: var(--home-fg);
}

.home-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.home-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.14em;
  font-weight: 600;
  font-size: 12px;
  color: var(--home-fg);
  text-decoration: none;
}

.home-logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.home-logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--home-gold);
  color: var(--home-gold);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0;
  background: rgba(0, 0, 0, 0.3);
}


.home-main,
.home-main[data-layout="wide"] {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
  flex: 1;
}

.home-intro .home-hello {
  font-size: 14px;
  color: var(--home-muted);
  margin: 0;
}

.home-intro .home-hello strong {
  color: var(--home-fg);
}

#home-titulo,
.home-main[data-layout="wide"] #home-titulo {
  font-size: 32px;
  line-height: 1.1;
  font-weight: 800;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--home-fg);
}

#home-titulo span {
  color: var(--home-gold);
}

.home-pick {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.home-intro p.home-lead {
  color: var(--home-muted);
  line-height: 1.55;
  font-size: 14px;
  max-width: none;
  margin: 0;
}

.home-divider {
  height: 1px;
  margin: 20px 0;
  background: linear-gradient(90deg, var(--home-violet), rgba(139, 92, 246, 0));
}

.home-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  font-size: 13px;
  line-height: 1;
  color: #d0d3db;
  margin: 0;
  padding: 0;
}

.home-perks li {
  display: flex;
  gap: 10px;
  align-items: center;
  line-height: 1;
  margin: 0;
  padding: 0;
}

.home-perks svg {
  flex: none;
  color: var(--home-gold);
  margin-top: 0;
}

.home-main[data-layout="wide"] .home-intro {
  display: block;
}

.home-main[data-layout="wide"] .home-intro .home-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-main[data-layout="wide"] .home-intro .home-divider {
  display: block;
}

.home-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.home-card,
.home-main[data-layout="wide"] .home-card {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--home-border);
  background: var(--home-surface);
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  padding: 0;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.9);
}

.home-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.3s ease;
  filter: saturate(0.9) brightness(0.85);
}

.home-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0.85) 70%, #000 100%);
}

.home-card:hover,
.home-card:focus-visible {
  transform: translateY(-3px);
  border-color: #4a4f5c;
  outline: none;
}

.home-card:focus-visible {
  box-shadow: 0 0 0 2px var(--home-bg), 0 0 0 4px var(--home-gold);
}

.home-card:hover img {
  transform: scale(1.04);
  filter: saturate(1.05) brightness(1);
}

.home-card[aria-pressed="true"] {
  border-color: var(--home-gold);
  box-shadow: 0 0 0 1px var(--home-gold), 0 16px 40px -16px rgba(212, 167, 60, 0.45);
}

.home-card[aria-pressed="true"] img {
  filter: saturate(1.1) brightness(1);
}

.home-check {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  transition: all 0.2s;
}

.home-check svg {
  opacity: 0;
  transition: opacity 0.2s;
}

.home-card[aria-pressed="true"] .home-check {
  background: var(--home-gold);
  border-color: var(--home-gold);
}

.home-card[aria-pressed="true"] .home-check svg {
  opacity: 1;
}

.home-card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 16px;
}

.home-card-body h2 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
  color: var(--home-fg);
}

.home-card-body p {
  font-size: 13px;
  color: #c4c7cf;
  margin-top: 4px;
  margin-bottom: 0;
}

.home-footer-wrap {
  margin-top: auto;
}

.home-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--home-border);
  border-radius: 14px;
  background: rgba(20, 22, 27, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.home-status {
  font-size: 13px;
  color: var(--home-muted);
  margin: 0;
}

.home-status strong {
  color: var(--home-fg);
}

.home-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-btn {
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  border-radius: 10px;
  padding: 12px 18px;
  cursor: pointer;
  border: 1px solid var(--home-border);
  background: var(--home-surface-2);
  color: var(--home-fg);
  transition: all 0.2s;
}

.home-btn:focus-visible {
  outline: 2px solid var(--home-gold);
  outline-offset: 2px;
}

.home-btn-primary {
  position: relative;
  border-radius: 999px;
  color: #221600;
  background:
    linear-gradient(
      145deg,
      rgba(247, 212, 126, 0.95) 0%,
      rgba(233, 180, 76, 0.92) 48%,
      rgba(154, 111, 30, 0.88) 100%
    );
  border-color: rgba(247, 212, 126, 0.55);
  box-shadow:
    0 8px 28px rgba(233, 180, 76, 0.32),
    0 0 0 1px rgba(233, 180, 76, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.home-btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow:
    0 12px 32px rgba(233, 180, 76, 0.4),
    0 0 0 1px rgba(247, 212, 126, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.home-btn-primary:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.home-btn-primary:disabled {
  transform: none;
  filter: none;
  background: var(--home-surface-2);
  border-color: var(--home-border);
  color: #5c606b;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  cursor: not-allowed;
}

.home-btn-primary.is-home-attention {
  z-index: 2;
  animation: home-btn-pulse 1.8s ease-in-out infinite;
}

.home-btn-primary.is-home-attention::before,
.home-btn-primary.is-home-attention::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 0 0 rgba(212, 167, 60, 0.28);
}

.home-btn-primary.is-home-attention::before {
  animation: home-btn-radar 1.8s ease-out infinite;
}

.home-btn-primary.is-home-attention::after {
  animation: home-btn-radar 1.8s ease-out 0.5s infinite;
}

@keyframes home-btn-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.025); }
}

@keyframes home-btn-radar {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 167, 60, 0.32);
    opacity: 1;
  }
  100% {
    box-shadow: 0 0 0 12px rgba(212, 167, 60, 0);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-btn-primary.is-home-attention,
  .home-btn-primary.is-home-attention::before,
  .home-btn-primary.is-home-attention::after {
    animation: none;
  }
  .home-btn-primary:hover,
  .home-btn-primary:active {
    transform: none;
  }
}

.home-hint {
  font-size: 11px;
  color: #7a7e89;
  text-align: center;
  margin-top: 12px;
  margin-bottom: 0;
  line-height: 1.4;
}

.home-hint kbd {
  font-family: inherit;
  font-size: 10px;
  border: 1px solid var(--home-border);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--home-muted);
}

/* Modal: painel central (não imita página) */
#modal-selecao-servico.home-modal-overlay {
  background: rgba(0, 0, 0, 0.88) !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
}

#modal-selecao-servico .home-modal-shell {
  max-width: 480px;
  width: 100%;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 16px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #16181f;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  max-height: min(92vh, 860px);
  overflow: auto;
  box-sizing: border-box;
}

#modal-selecao-servico .home-modal-intro {
  text-align: center;
}

#modal-selecao-servico .home-modal-intro .home-hello {
  font-size: 14px;
  color: var(--home-muted);
  margin: 0 0 8px;
}

#modal-selecao-servico .home-modal-intro .home-hello strong {
  color: var(--home-fg);
}

#modal-selecao-servico .home-modal-intro h1 {
  font-size: 1.2rem;
  line-height: 1.2;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  color: var(--home-fg);
}

#modal-selecao-servico .home-modal-intro h1 span {
  color: var(--home-gold);
}

#modal-selecao-servico .home-modal-intro .home-lead {
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
  font-size: 0.8rem;
  margin: 0;
}

#modal-selecao-servico .home-options {
  grid-template-columns: 1fr;
  gap: 10px;
}

#modal-selecao-servico .home-card {
  aspect-ratio: auto;
  max-height: none;
  min-height: 68px;
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: stretch;
  border-radius: 12px;
}

#modal-selecao-servico .home-card::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.75) 100%);
}

#modal-selecao-servico .home-card img {
  position: relative;
  inset: auto;
  width: 64px;
  height: 100%;
  min-height: 68px;
  object-fit: cover;
  filter: saturate(0.95) brightness(0.9);
}

#modal-selecao-servico .home-card:hover {
  transform: none;
}

#modal-selecao-servico .home-card:hover img {
  transform: none;
}

#modal-selecao-servico .home-check {
  top: 50%;
  left: auto;
  right: 10px;
  transform: translateY(-50%);
}

#modal-selecao-servico .home-card-body {
  position: relative;
  inset: auto;
  padding: 12px 40px 12px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}

#modal-selecao-servico .home-card-body h2 {
  font-size: 0.92rem;
}

#modal-selecao-servico .home-card-body p {
  font-size: 0.76rem;
  margin-top: 3px;
}

#modal-selecao-servico .home-footer {
  padding: 12px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

#modal-selecao-servico .home-actions {
  width: 100%;
}

#modal-selecao-servico .home-btn-primary {
  width: 100%;
  justify-content: center;
}

#modal-selecao-servico .home-hint {
  margin-top: 0;
}

@media (min-width: 721px) and (max-width: 1080px) {
  .home-wrap {
    padding: 24px 24px 28px;
    gap: 28px;
  }

  .home-options {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .home-card,
  .home-main[data-layout="wide"] .home-card {
    aspect-ratio: 4 / 5;
  }

  .home-footer {
    flex-direction: row;
    align-items: center;
  }

  .home-actions {
    flex-direction: row;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-card,
  .home-card img,
  .home-check,
  .home-btn {
    transition: none !important;
  }
}
