:root {
  --preto: #0a0a0a;
  --preto-fundo: #050505;
  --latao: #b89b6a;
  --latao-claro: #ddc59a;
  --latao-escuro: #7a6540;
  --branco: #f2f2ee;
  --cinza: #6b6b64;
  --linha: rgba(184, 155, 106, 0.3);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--preto-fundo);
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--branco);
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  background: #000;
}

.screen {
  width: 100%;
  max-width: 390px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ===================== QUADRANTE SUPERIOR — LOGO ===================== */

.logo-zone {
  flex: 0 0 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(201, 162, 75, 0.08), transparent 60%),
    var(--preto);
  padding: 16px;
  box-sizing: border-box;
}

.logo-img {
  max-width: 80%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ===================== QUADRANTE INFERIOR — SARRADEX ===================== */

.dex-zone {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--preto-fundo);
  overflow: hidden;
}

/* ORELHAS */

.tabs-stack {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 6px 6px 0;
}

.tab {
  background: linear-gradient(180deg, #4d4d4d, #333333 60%, #262626);
  border: 1px solid #262626;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  padding: 4px 6px;
  cursor: pointer;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.35);
  transition: background 0.3s ease, border-color 0.3s ease;
  width: 100%;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tab-sublabel {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.2px;
  color: var(--branco);
  white-space: nowrap;
}

.tab-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--branco);
  white-space: nowrap;
}

.tab[aria-expanded="true"] {
  background: #ffffff;
  border-color: #ffffff;
}

.tab[aria-expanded="true"] .tab-label,
.tab[aria-expanded="true"] .tab-sublabel {
  color: var(--preto);
}

.tab.is-dimmed {
  filter: brightness(0.8);
}

/* CONTAINER DAS FICHAS */

.card-stack {
  position: relative;
  flex: 1;
  overflow: hidden;
  border-top: 1px solid #ffffff;
}

/* FICHA */

.card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--preto);
  clip-path: inset(0 0 100% 0);
  opacity: 0;
  transition: clip-path 0.55s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.card.is-open {
  clip-path: inset(0 0 0 0);
  opacity: 1;
}

/* SEGUNDO TERÇO — TEXTO */

.card-text {
  flex: 2;
  padding: 28px 20px 20px;
  border-bottom: 1px solid var(--linha);
  overflow-y: auto;
}

.card-text,
.luthieria-scroll-text,
.card-luthier-content {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.card-text::-webkit-scrollbar,
.luthieria-scroll-text::-webkit-scrollbar,
.card-luthier-content::-webkit-scrollbar {
  display: none;
}

.card-text-fixed-photo {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card-text-fixed-photo .photo-crossfade {
  flex: 0 0 auto;
}

.luthier-photo-cover .crossfade-img {
  object-fit: cover;
}

.names-reel {
  position: relative;
  height: 360px;
  margin-top: 18px;
  overflow: hidden;
}

.product-badge {
  display: block;
  max-width: 220px;
  width: 60%;
  height: auto;
  margin-bottom: 16px;
  border-radius: 6px;
}

#card-criacoes .card-text {
  display: flex;
  flex-direction: column;
}

.product-view {
  flex: 0 0 auto;
}

.product-detail {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-detail[hidden],
.product-view[hidden],
.product-badges-row[hidden] {
  display: none;
}

.product-detail-photo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--linha);
}

.product-detail-text {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--branco);
}

.product-detail-text > * + * {
  margin-top: 16px;
}

.product-detail-intro {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--branco);
  text-align: center;
}

.product-detail-intro > * + * {
  margin-top: 4px;
}

.product-detail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-detail-list li {
  padding-left: 16px;
  position: relative;
}

.product-detail-photo-small {
  width: 60%;
  margin: 0 auto;
}

.product-detail-photo-bleed {
  width: calc(100% + 40px);
  max-width: none;
  margin: 0 -20px;
  border-radius: 0;
  border-left: none;
  border-right: none;
}

.product-detail-cta a {
  color: var(--latao-claro);
  font-weight: 700;
}

.product-detail-videos {
  display: flex;
  gap: 8px;
}

.product-detail-videos .video-block {
  flex: 1;
  min-width: 0;
}

.product-detail-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--latao-claro);
}

.detail-back {
  align-self: flex-start;
  padding: 8px 0;
  border: none;
  background: none;
  color: var(--latao-claro);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
}

.product-badges-row {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--linha);
}

.product-badge-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.product-badge-item .product-badge-wrap {
  display: flex;
}

.product-badge-caption {
  font-size: 13px;
  font-weight: 700;
  color: var(--branco);
  text-align: center;
  line-height: 1.3;
}

.product-badge-text {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--branco);
  text-align: left;
  margin-top: 4px;
}

.product-badge-wrap {
  width: 100%;
  height: 64px;
  padding: 10px 20px;
  border: 1px solid var(--linha);
  border-radius: 999px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.25s ease, border-color 0.25s ease;
}

.product-badge-wrap[aria-expanded="true"] {
  border-color: var(--latao-claro);
}

.product-badge-small {
  width: auto;
  height: 32px;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 0;
}

/* Compensação manual de peso visual: cada fonte de logo tem espessura/proporção
   diferente, então a mesma altura de arquivo não lê como "mesmo tamanho".
   Mira Pro (traço fino) recebe +6px, Plug (traço largo) recebe -4px em relação
   ao Bravo (32px, referência). Ajustar aqui se os logos forem substituídos. */
.badge-mirapro {
  height: 38px;
}

.badge-plug {
  height: 28px;
}


.names-reel-track {
  list-style: none;
  animation: names-reel-scroll 45s linear infinite;
}

.names-reel-track li {
  text-align: center;
  padding: 10px 0;
  font-weight: 700;
  color: var(--branco);
  white-space: nowrap;
}

@keyframes names-reel-scroll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

.luthieria-scroll-text {
  flex: 1;
  overflow-y: auto;
  margin-top: 14px;
}

.card-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--latao-claro);
}

.card-luthieria-intro {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--branco);
}

.card-divider {
  height: 1px;
  margin: 16px 0 20px;
  background: linear-gradient(90deg, var(--latao), transparent);
}

.services-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 14px;
}

.services-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.service-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--branco);
  margin-top: 1px;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-text {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--branco);
}

.service-text strong {
  font-weight: 700;
}

.card-text-placeholder {
  font-size: 15px;
  font-weight: 300;
  color: var(--cinza);
  font-style: italic;
}

.card-text-full {
  flex: 1;
  border-bottom: none;
}

.card-depoimento-content {
  padding-top: 0;
}

.subtabs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.subtab {
  padding: 14px 8px;
  border: 1px solid var(--linha);
  border-radius: 8px;
  background: transparent;
  color: var(--branco);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-align: center;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.subtab[aria-expanded="true"] {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--preto);
}

.subtab-panel {
  display: none;
}

.subtab-panel.is-open {
  display: block;
}

.subtab-panel p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--branco);
}

.gratidao-header {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  flex: 0 0 auto;
}

.card-title-white {
  color: var(--branco);
  text-align: center;
}

.card-luthier-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
}

.card-luthier-fixed-photo {
  overflow-y: hidden;
}

.card-luthier-fixed-photo .photo-crossfade {
  flex: 0 0 auto;
}

.luthier-photo {
  flex: 0 0 auto;
  width: 100%;
  max-height: 42%;
  object-fit: contain;
  background: var(--preto);
  border-radius: 8px;
  margin-bottom: 16px;
  filter: grayscale(1) contrast(1.05);
  border: 1px solid var(--linha);
}

.luthier-bio {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 8px;
}

.photo-crossfade {
  position: relative;
  height: 38vh;
  max-height: none;
  overflow: hidden;
}

.photo-crossfade-small {
  height: 24vh;
}

.crossfade-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(1) contrast(1.05);
  opacity: 0;
  transition: opacity 3s ease-in-out;
}

.crossfade-img.is-active {
  opacity: 1;
}

.bio-more {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bio-toggle {
  align-self: flex-start;
  padding: 8px 0;
  border: none;
  background: none;
  color: var(--latao-claro);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: underline;
  cursor: pointer;
}

.photo-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  flex: 0 0 auto;
}

.photo-btn .luthier-photo {
  margin-bottom: 0;
}

.luthier-videos {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
  padding-bottom: 8px;
}

.video-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.luthier-video {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--linha);
  background: var(--preto);
}

.video-caption {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--branco);
}

.luthier-video-vertical {
  width: 60%;
  display: block;
  margin: 0 auto;
}

.luthier-bio p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--branco);
}

.depoimento-gallery {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.trabalhos-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 24px;
}

.trabalhos-gallery .gallery-thumb {
  aspect-ratio: 1 / 1;
}

.trabalhos-gallery .gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: none;
}

.gallery-thumb {
  flex: 1;
  padding: 0;
  border: 1px solid var(--linha);
  border-radius: 10px;
  background: none;
  cursor: pointer;
  overflow: hidden;
  line-height: 0;
}

.gallery-thumb img {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}

/* MODAL: FOTO AMPLIADA */

.photo-modal-overlay {
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
}

.photo-modal-sheet {
  position: relative;
  max-width: 92%;
  max-height: 88%;
}

.photo-modal-img {
  display: block;
  max-width: 100%;
  max-height: 88vh;
  border-radius: 10px;
}

.photo-modal-overlay .modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  background: var(--preto);
}

.luthier-quote {
  border-left: 2px solid var(--latao-claro);
  padding-left: 14px;
  margin-top: 4px;
}

.luthier-quote p {
  font-size: 14px;
  font-weight: 700;
  font-style: italic;
  line-height: 1.6;
  color: var(--branco);
}

.luthier-quote cite {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-style: normal;
  color: var(--cinza);
}

/* TERCEIRO TERÇO — CONTATO */

.card-contact {
  flex: 0 0 auto;
  padding: 20px 20px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.info-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--linha);
}

.contact-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--latao);
}

.icon-actions {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.site-footer-icons {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  padding: 12px 0;
  border-top: 1px solid #ffffff;
  background: var(--preto);
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  color: var(--branco);
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

a.icon-btn:active,
button.icon-btn:active {
  transform: scale(0.92);
  opacity: 0.8;
}

.icon-btn-glyph {
  width: 34px;
  height: 34px;
  color: var(--latao-claro);
}

.icon-btn-glyph svg {
  width: 100%;
  height: 100%;
}

/* MODAL DE LOCALIZAÇÃO */

.modal-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  background: rgba(0, 0, 0, 0.6);
}

.modal-overlay[hidden] {
  display: none;
}

.modal-sheet {
  position: relative;
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
  background: var(--preto);
  border-top: 1px solid var(--latao);
  padding: 28px 20px 32px;
  animation: sheet-up 0.3s ease;
}

@keyframes sheet-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--linha);
  border-radius: 50%;
  background: transparent;
  color: var(--branco);
  font-size: 14px;
  cursor: pointer;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--latao-claro);
  margin-bottom: 20px;
}

.modal-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--linha);
}

.modal-text {
  font-size: 15px;
  font-weight: 300;
  color: var(--branco);
  line-height: 1.5;
}

.modal-maps-btn {
  display: block;
  text-align: center;
  margin-top: 8px;
  padding: 14px;
  border: 1px solid var(--latao);
  border-radius: 8px;
  color: var(--latao-claro);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.modal-maps-btn:active {
  background: var(--linha);
}
