/* ==========================================================================
   MOTOR DO TEMPLATE - ESTILOS VISUAIS (style.css)
   ========================================================================== */

/* Reset & Variáveis Base */
:root {
  --primary-color: #0d9488;
  /* Cor padrão caso o cliente não defina */
  --primary-hover: #0f766e;
  --primary-light: #ccfbf1;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-page: #f8fafc;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --star-color: #f59e0b;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.07);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.08);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-full: 9999px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 16px;
  /* Espaçamento agradável em telas maiores e no topo/fundo do celular */
}

/* Container principal - centralizado, responsivo e que agrupa os cards */
.app-container {
  width: 100%;
  max-width: 500px;
  background-color: transparent;
  /* O fundo geral é suave e cada seção será seu próprio card */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 20px;
  /* Espaçamento perfeito e elegante entre cada card de seção */
}

/* Classe base para todos os cards de seção */
.section-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.section-card:hover {
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   SEÇÃO 1: BANNER, FOTO DE PERFIL E INFORMAÇÕES
   ========================================================================== */

.hero-section {
  position: relative;
  width: 100%;
}

/* Banner / Capa que ocupa toda a largura */
.banner-container {
  width: 100%;
  height: 170px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-color), #0f172a);
}

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

/* Informações do Perfil */
.profile-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px 16px 20px;
  text-align: center;
  margin-top: -55px;
  /* Faz a foto sobrepor o banner com elegância */
  position: relative;
}

.avatar-wrapper {
  width: 106px;
  height: 106px;
  border-radius: var(--radius-full);
  background: #ffffff;
  padding: 4px;
  box-shadow: var(--shadow-md);
  margin-bottom: 12px;
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
  display: block;
}

.profile-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.profile-category {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
  background-color: var(--primary-light);
  padding: 3px 12px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 10px;
}

.profile-bio {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 90%;
  line-height: 1.45;
  white-space: pre-line;
}

.profile-bio strong,
.profile-bio b {
  color: var(--text-main);
  font-weight: 700;
}

/* Classes utilitárias para você usar dentro dos textos: <span class="cor-primaria"> ou <mark> */
.cor-primaria {
  color: var(--primary-color) !important;
  font-weight: inherit;
}

mark,
.destaque {
  background: transparent;
  color: var(--primary-color);
  font-weight: 700;
}

/* ==========================================================================
   SEÇÃO 2: BOTÕES PRINCIPAIS DE CONTATO E LINKS
   ========================================================================== */

.links-section {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  transition: all 0.2s ease-in-out;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.action-btn:active {
  transform: translateY(0);
}

.btn-left-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.btn-chevron {
  display: flex;
  align-items: center;
  opacity: 0.45;
}

/* Estilos de Destaque para Botões Específicos */
.action-btn.btn-whatsapp {
  background-color: #25D366;
  color: #ffffff;
  border-color: #25D366;
}

.action-btn.btn-whatsapp .btn-chevron {
  opacity: 0.85;
}

.action-btn.btn-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff;
  border: none;
}

.action-btn.btn-instagram .btn-chevron {
  opacity: 0.85;
}

.action-btn.btn-primary-highlight {
  background-color: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

/* Efeito de pulso para botões super importantes */
.pulse-animation {
  animation: subtle-pulse 2.2s infinite;
}

@keyframes subtle-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ==========================================================================
   SEÇÃO 3: AVALIAÇÕES GOOGLE & CARROSSEL
   ========================================================================== */

.reviews-section {
  padding: 24px 20px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16px;
}

.section-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-main);
}

.score-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  background-color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
  font-size: 0.9rem;
}

/* Carrossel */
.carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 14px 2px;
  scrollbar-width: none;
  /* Firefox */
}

.carousel-track::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari */
}

.review-card {
  flex: 0 0 85%;
  scroll-snap-align: center;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reviewer-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: var(--primary-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.reviewer-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-main);
}

.review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 8px;
}

.review-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
  font-style: italic;
}

/* Controles de Navegação do Carrossel */
.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.carousel-arrow {
  background: #ffffff;
  border: 1px solid var(--border-color);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  color: var(--text-main);
  transition: all 0.2s ease;
}

.carousel-arrow:hover {
  background: var(--primary-light);
  color: var(--primary-color);
}

/* Botão "Avaliar no Google" */
.review-cta-box {
  margin-top: 16px;
  text-align: center;
}

.btn-google-review {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  background-color: #ffffff;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.btn-google-review:hover {
  background-color: #f1f5f9;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

/* ==========================================================================
   SEÇÃO DE SERVIÇOS / ESPECIALIDADES COM MODAL
   ========================================================================== */

.services-section {
  padding: 24px 20px;
}

.services-instruction {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.services-instruction svg {
  color: var(--primary-color);
  flex-shrink: 0;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.service-tag {
  background-color: #ffffff;
  border: 1.5px solid var(--border-color);
  color: var(--text-main);
  padding: 9px 15px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  user-select: none;
}

.service-tag:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

.service-tag:active {
  transform: translateY(0);
}

.service-tag::before {
  content: "✦";
  color: var(--primary-color);
  font-size: 0.85rem;
}

/* Modal de Detalhes do Serviço */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #ffffff;
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-color);
  background-color: #fafbfd;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background-color: #f1f5f9;
  color: var(--text-main);
}

.modal-body {
  padding: 22px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.modal-footer {
  padding: 16px 22px;
  border-top: 1px solid var(--border-color);
  background-color: #fafbfd;
}

.modal-btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px;
  background-color: #25D366;
  color: #ffffff;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.modal-btn-whatsapp:hover {
  filter: brightness(0.95);
}

/* ==========================================================================
   SEÇÃO 4: GOOGLE MAPS & LOCALIZAÇÃO
   ========================================================================== */

.location-section {
  padding: 24px 20px 24px 20px;
}

.location-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.map-embed-wrapper {
  width: 100%;
  height: 190px;
  background-color: #e2e8f0;
}

.map-embed-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.location-details {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.location-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.location-icon {
  color: var(--primary-color);
  margin-top: 2px;
  flex-shrink: 0;
}

.location-item strong {
  color: var(--text-main);
  display: block;
  font-weight: 600;
}

.btn-route {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px;
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  margin-top: 6px;
}

.btn-route:hover {
  background-color: var(--primary-color);
  color: #ffffff;
}

/* Rodapé / Assinatura sutil */
.page-footer {
  margin-top: auto;
  padding: 20px;
  text-align: center;
  font-size: 0.78rem;
  color: #94a3b8;
  border-top: 1px solid #f1f5f9;
}