:root {
  --fonte-principal: 'Inter', sans-serif;
  --fonte-titulo: 'Playfair Display', serif;
  --cor-fundo-pagina: #141416;
  --cor-fundo-app: #f3f4f6;
  --cor-card: #ffffff;
  --cor-fade-card: #ffffff;
  --cor-card-primario: #111111;
  --cor-hover: #d4af37;
  --cor-texto-app: #111827;
  --cor-texto-app-sec: #4b5563;
  --cor-texto-card: #111827;
  --cor-texto-card-sec: #4b5563;
  --cor-texto-destaque: #ffffff;
  --cor-texto-destaque-sec: rgba(255, 255, 255, 0.78);
  --cor-borda: rgba(0, 0, 0, 0.08);
  --sombra-card: 0 2px 8px rgba(0, 0, 0, 0.06);
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--fonte-principal);
  background-color: var(--cor-fundo-pagina);
  color: var(--cor-texto-app);
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

/* Container Mobile-First: ocupa 100% no celular e centraliza no desktop */
.container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background-color: var(--cor-fundo-app);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.25);
  padding-bottom: 32px;
}

.container.transparent-bg {
  box-shadow: none;
}

/* Cabeçalho / Hero estilo Banner do YouTube */
.hero {
  position: relative;
  width: 100%;
  height: 190px;
  background-color: #111111;
  overflow: hidden;
}

.banner-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.08) 15%,
    rgba(0, 0, 0, 0.75) 70%,
    rgba(0, 0, 0, 0.95) 100%
  );
}

.profile-header {
  position: absolute;
  bottom: 16px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  z-index: 2;
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.avatar-img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background-color: #27272a;
  flex-shrink: 0;
}

.profile-titles {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.profile-name {
  font-family: var(--fonte-titulo);
  font-size: 2.3rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.06em;
  line-height: 1;
  word-break: break-word;
}

.profile-subtitle {
  font-family: var(--fonte-principal);
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.02em;
  line-height: 1.25;
}

/* Ícones de atalho no canto inferior direito da capa */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.hero-action-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.hero-action-btn:hover {
  background-color: rgba(255, 255, 255, 0.22);
  border-color: var(--cor-hover);
  box-shadow: 0 0 0 1px var(--cor-hover);
}

.hero-action-btn:active {
  transform: scale(0.92);
}

/* Área de conteúdo */
.content {
  padding: 24px 20px 0;
}

.bio-text {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--cor-texto-app-sec);
  margin-bottom: 24px;
}

/* Lista de Links */
.links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background-color: var(--cor-card);
  border-radius: 16px;
  text-decoration: none;
  color: var(--cor-texto-card);
  box-shadow: var(--sombra-card);
  border: 1px solid var(--cor-borda);
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.link-card:hover {
  border-color: var(--cor-hover);
  box-shadow: 0 0 0 1px var(--cor-hover), var(--sombra-card);
}

.link-card:active {
  transform: scale(0.98);
}

.link-card--primary {
  background-color: var(--cor-card-primario);
  color: var(--cor-texto-destaque);
  border: 1px solid transparent;
}

.link-card--primary:hover {
  border-color: var(--cor-hover);
  box-shadow: 0 0 0 1px var(--cor-hover), 0 4px 14px rgba(0, 0, 0, 0.18);
}

.link-card--primary .link-subtitle,
.link-card--primary .link-arrow {
  color: var(--cor-texto-destaque-sec);
}

.link-icon {
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  flex-shrink: 0;
}

.link-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.link-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
}

.link-subtitle {
  font-size: 0.85rem;
  color: var(--cor-texto-card-sec);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-arrow {
  font-size: 1.15rem;
  color: var(--cor-texto-card-sec);
  opacity: 0.7;
  flex-shrink: 0;
}

/* Card de E-mail */
.link-card--email {
  padding: 8px 10px 8px 16px;
  justify-content: space-between;
}

.email-main-area {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  padding: 6px 0;
}

.copy-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--cor-borda);
  background-color: rgba(128, 128, 128, 0.1);
  color: var(--cor-texto-card);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.copy-btn:hover {
  border-color: var(--cor-hover);
  box-shadow: 0 0 0 1px var(--cor-hover);
}

.copy-btn:active {
  background-color: rgba(128, 128, 128, 0.22);
}

/* =========================================================================
   CABEÇALHOS ELABORADOS DE SEÇÃO (Sobre, Trabalhos, Localização)
   ========================================================================= */
.section-block {
  margin-top: 38px;
  scroll-margin-top: 20px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.section-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background-color: var(--cor-card-primario);
  color: var(--cor-texto-destaque);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex-shrink: 0;
}

.section-eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--cor-texto-app-sec);
  line-height: 1.1;
}

.section-title {
  font-family: var(--fonte-titulo);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cor-texto-app);
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--cor-borda), transparent);
  margin-left: 4px;
}

/* Seção Sobre / História */
.story-card {
  background-color: var(--cor-card);
  border-radius: 16px;
  box-shadow: var(--sombra-card);
  overflow: hidden;
  border: 1px solid var(--cor-borda);
}

/* Carrossel da seção Sobre (Proporção quadrada 1:1) */
.story-carousel-wrapper {
  position: relative;
  width: 100%;
  background-color: #111111;
}

.story-carousel-track {
  display: flex;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}

.story-carousel-track:active {
  cursor: grabbing;
}

.story-carousel-track::-webkit-scrollbar {
  display: none;
}

.story-slide {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 1 / 1;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background-color: #111111;
  overflow: hidden;
}

.story-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.story-carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background-color: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
}

.story-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.story-dot.active {
  background-color: #ffffff;
  transform: scale(1.25);
}

/* Texto expansível da seção Sobre */
.story-body {
  padding: 16px;
}

.story-text-wrapper {
  position: relative;
  transition: max-height 0.35s ease;
}

.story-text-wrapper.collapsed {
  max-height: 115px;
  overflow: hidden;
}

.story-text-wrapper.collapsed::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 44px;
  background: linear-gradient(to bottom, transparent, var(--cor-fade-card) 90%);
  pointer-events: none;
}

.story-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--cor-texto-card-sec);
  white-space: pre-line;
}

.story-toggle-btn {
  margin-top: 10px;
  margin-left: -10px;
  background: none;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--cor-texto-card);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 5px 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.story-toggle-btn:hover {
  border-color: var(--cor-hover);
  box-shadow: 0 0 0 1px var(--cor-hover);
}

.story-toggle-btn i {
  font-size: 0.95rem;
  transition: transform 0.25s ease;
}

.story-toggle-btn.expanded i {
  transform: rotate(180deg);
}

/* Carrossel de Trabalhos (Posts do Instagram e Imagens Enviadas) */
.carousel-wrapper {
  position: relative;
  width: 100%;
}

.gallery-grid {
  display: flex;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-radius: 16px;
  box-shadow: var(--sombra-card);
}

.gallery-grid::-webkit-scrollbar {
  display: none;
}

.insta-card {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background-color: var(--cor-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--cor-borda);
  display: flex;
  align-items: center;
  justify-content: center;
}

.insta-iframe {
  width: 100%;
  height: 560px;
  border: none;
  display: block;
}

.gallery-photo-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background-color: #111111;
}

/* Contador superior (ex: 1/7) */
.carousel-counter {
  position: absolute;
  top: 64px;
  right: 12px;
  background-color: rgba(17, 24, 39, 0.75);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 10;
  pointer-events: none;
}

/* Setas laterais do carrossel */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid transparent;
  background-color: rgba(255, 255, 255, 0.92);
  color: #111827;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 10;
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.15s ease;
}

.carousel-btn:hover {
  border-color: var(--cor-hover);
  box-shadow: 0 0 0 1px var(--cor-hover), 0 2px 10px rgba(0, 0, 0, 0.25);
}

.carousel-btn:active {
  transform: translateY(-50%) scale(0.92);
}

.carousel-btn--prev {
  left: 10px;
}

.carousel-btn--next {
  right: 10px;
}

/* Bolinhas de paginação abaixo do carrossel */
.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background-color: rgba(128, 128, 128, 0.4);
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.carousel-dot.active {
  background-color: var(--cor-texto-app);
  transform: scale(1.25);
}

/* =========================================================================
   MAPA MINIMALISTA (LEAFLET + CARTODB DARK MATTER)
   ========================================================================= */
.map-card {
  width: 100%;
  background-color: var(--cor-card);
  border-radius: 16px;
  box-shadow: var(--sombra-card);
  border: 1px solid var(--cor-borda);
  overflow: hidden;
}

.map-visual-wrapper {
  position: relative;
  width: 100%;
  height: 250px;
  background-color: #121214;
  overflow: hidden;
}

.leaflet-map {
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: #121214;
}

/* Ajustes visuais nos controles e créditos do Leaflet */
.leaflet-control-zoom {
  border: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

.leaflet-control-zoom a {
  background-color: rgba(20, 20, 22, 0.88) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.leaflet-control-zoom a:hover {
  background-color: #27272a !important;
}

.leaflet-control-attribution {
  background-color: rgba(15, 15, 17, 0.72) !important;
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 9px !important;
}

.leaflet-control-attribution a {
  color: rgba(255, 255, 255, 0.65) !important;
}

/* Marcador customizado com pulso animado */
.custom-map-pin {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pin-pulse {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.35);
  animation: mapPinPulse 2s ease-out infinite;
}

.pin-core {
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 3px solid #111111;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
  z-index: 2;
}

@keyframes mapPinPulse {
  0% {
    transform: scale(0.45);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.65);
    opacity: 0;
  }
}

/* Fallback estilizado caso a geocodificação falhe */
.map-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.map-iframe--styled {
  filter: grayscale(100%) invert(92%) contrast(90%);
}

.map-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.map-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.map-studio-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--cor-texto-card);
}

.map-address {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--cor-texto-card-sec);
}

.map-open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  background-color: var(--cor-card-primario);
  color: var(--cor-texto-destaque);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.map-open-btn:hover {
  border-color: var(--cor-hover);
  box-shadow: 0 0 0 1px var(--cor-hover);
}

.map-open-btn:active {
  transform: scale(0.98);
}

/* Rodapé */
.footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--cor-borda);
  text-align: center;
  font-size: 0.8rem;
  color: var(--cor-texto-app-sec);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-dev a {
  color: var(--cor-texto-app);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.footer-dev a:hover {
  border-bottom-color: var(--cor-hover);
}

/* Botão Flutuante do WhatsApp (FAB) */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: max(20px, calc(50% - 220px));
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid transparent;
  background-color: var(--cor-card-primario);
  color: var(--cor-texto-destaque);
  font-size: 1.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  z-index: 150;
  opacity: 0;
  transform: translateY(24px) scale(0.75);
  pointer-events: none;
  transition: opacity 0.28s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.whatsapp-fab.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.whatsapp-fab:hover {
  border-color: var(--cor-hover);
  box-shadow: 0 0 0 1px var(--cor-hover), 0 8px 24px rgba(0, 0, 0, 0.35);
}

.whatsapp-fab:active {
  transform: scale(0.92);
}

/* Toast de notificação */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background-color: #111827;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 200;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Classe utilitária para ocultar elementos vazios */
.hidden {
  display: none !important;
}

/* =========================================================================
   RESPONSIVIDADE DESKTOP (Telas maiores / 16:9 - Aumento proporcional ~20%)
   ========================================================================= */
@media (min-width: 768px) {
  .container {
    max-width: 580px;
    padding-bottom: 40px;
  }

  .hero {
    height: 230px;
  }

  .profile-header {
    bottom: 20px;
    left: 24px;
    right: 24px;
    gap: 16px;
  }

  .profile-identity {
    gap: 18px;
  }

  .avatar-img {
    width: 82px;
    height: 82px;
  }

  .profile-name {
    font-size: 2.85rem;
  }

  .profile-subtitle {
    font-size: 1.08rem;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-action-btn {
    width: 44px;
    height: 44px;
    font-size: 1.35rem;
  }

  .content {
    padding: 28px 24px 0;
  }

  .bio-text {
    font-size: 1.15rem;
    margin-bottom: 28px;
  }

  .links-list {
    gap: 14px;
  }

  .link-card {
    padding: 17px 20px;
    gap: 16px;
    border-radius: 18px;
  }

  .link-icon {
    font-size: 1.9rem;
    width: 38px;
  }

  .link-title {
    font-size: 1.2rem;
  }

  .link-subtitle {
    font-size: 1.02rem;
  }

  .link-arrow {
    font-size: 1.35rem;
  }

  .link-card--email {
    padding: 10px 12px 10px 20px;
  }

  .copy-btn {
    width: 52px;
    height: 52px;
    font-size: 1.45rem;
    border-radius: 14px;
  }

  .section-block {
    margin-top: 44px;
  }

  .section-header {
    gap: 14px;
    margin-bottom: 18px;
  }

  .section-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    font-size: 1.35rem;
  }

  .section-eyebrow {
    font-size: 0.76rem;
  }

  .section-title {
    font-size: 1.65rem;
  }

  .story-card {
    border-radius: 18px;
  }

  .story-body {
    padding: 20px;
  }

  .story-text-wrapper.collapsed {
    max-height: 138px;
  }

  .story-text {
    font-size: 1.12rem;
  }

  .story-toggle-btn {
    font-size: 1.02rem;
  }

  .insta-iframe {
    height: 670px;
  }

  .carousel-counter {
    font-size: 0.9rem;
    padding: 5px 12px;
  }

  .carousel-btn {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }

  .carousel-dots {
    gap: 8px;
    margin-top: 16px;
  }

  .carousel-dot {
    width: 9px;
    height: 9px;
  }

  .map-card {
    border-radius: 18px;
  }

  .map-visual-wrapper {
    height: 300px;
  }

  .map-info {
    padding: 20px;
    gap: 14px;
  }

  .map-studio-name {
    font-size: 1.18rem;
  }

  .map-address {
    font-size: 1.02rem;
  }

  .map-open-btn {
    padding: 14px 20px;
    font-size: 1.05rem;
    border-radius: 14px;
  }

  .footer {
    margin-top: 48px;
    padding-top: 24px;
    font-size: 0.95rem;
  }

  .whatsapp-fab {
    width: 68px;
    height: 68px;
    font-size: 2.2rem;
    bottom: 28px;
    right: max(24px, calc(50% - 266px));
  }
}