/* ==========================================================================
   Dammy Cabeleireira | Link-in-Bio Design System
   Aesthetic Light / Nude Theme & Mobile-First
   Color Palette: Warm Sand/Beige (#FAF5EF), Dark Lead/Brown (#332B29), Terracotta/Cappuccino (#A0522D / #8B5A2B)
   ========================================================================== */

:root {
  /* Fundo Bege Claro / Areia */
  --bg-color: #FAF5EF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F6EFE7;
  --bg-modal: #FAF5EF;
  
  /* Paleta Terracota & Capuccino Luxo */
  --terracotta: #A0522D;
  --cappuccino: #8B5A2B;
  --terracotta-hover: #8F4625;
  --terracotta-light: #F2E3D8;
  --terracotta-gradient: linear-gradient(135deg, #A0522D 0%, #8B5A2B 100%);
  
  /* Textos com Alto Contraste */
  --text-main: #332B29;
  --text-muted: #6E5D57;
  --text-light: #FFFFFF;
  
  /* Tags & Badges */
  --tag-bg: rgba(160, 82, 45, 0.08);
  --tag-text: #8B5A2B;
  --tag-border: rgba(139, 90, 43, 0.25);
  
  /* Bordas e Sombras */
  --border-terracotta: rgba(160, 82, 45, 0.35);
  --border-subtle: rgba(139, 90, 43, 0.12);
  --shadow-primary: 0 10px 25px -5px rgba(160, 82, 45, 0.35);
  --shadow-card: 0 4px 20px rgba(51, 43, 41, 0.05);
  
  /* Tipografia */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Spacings e Radius */
  --radius-btn: 14px;
  --radius-card: 16px;
  --max-width: 440px;
}

/* Reset Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background-color: var(--bg-color);
  background-image: radial-gradient(circle at 50% 0%, rgba(160, 82, 45, 0.06) 0%, transparent 65%);
  padding: 24px 16px 40px;
}

/* Container Principal Mobile First */
.mini-site-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 1. PERFIL / HERO BANNER FULL-WIDTH COM FADE DEGRADÊ BEGE */
.profile-hero {
  position: relative;
  width: calc(100% + 32px);
  margin-left: -16px;
  margin-right: -16px;
  margin-top: -24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.hero-image-container {
  position: relative;
  width: 100%;
  height: 410px;
  background-color: #FAF5EF;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(250, 245, 239, 0) 0%,
    rgba(250, 245, 239, 0) 55%,
    rgba(250, 245, 239, 0.4) 78%,
    rgba(250, 245, 239, 0.92) 93%,
    #FAF5EF 100%
  );
  pointer-events: none;
}

.badge-verified.hero-badge {
  position: absolute;
  bottom: 25px;
  right: 20px;
  z-index: 3;
}

.badge-verified {
  width: 28px;
  height: 28px;
  background: var(--terracotta-gradient);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid #FAF5EF;
  box-shadow: 0 3px 10px rgba(160, 82, 45, 0.3);
}

.hero-text-content {
  position: relative;
  z-index: 3;
  margin-top: -45px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  width: 100%;
}

.profile-title {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-main);
  margin-top: 4px;
}

.profile-subtitle {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-muted);
  max-width: 340px;
  line-height: 1.45;
}

.profile-subtitle .divider {
  color: var(--cappuccino);
  margin: 0 4px;
}

.trust-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  background: var(--tag-bg);
  color: var(--tag-text);
  border: 1px solid var(--tag-border);
  padding: 5px 12px;
  border-radius: 20px;
  text-transform: uppercase;
}

/* 2. BOTÃO PRINCIPAL (CTA PRIMÁRIO TERRACOTA) */
.cta-primary-section {
  width: 100%;
}

.btn-primary-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 20px;
  background: var(--terracotta-gradient);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-decoration: none;
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-primary);
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-primary-cta:active {
  transform: scale(0.98);
}

.btn-pulse-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--radius-btn);
  animation: pulseAura 2.5s infinite;
  pointer-events: none;
}

@keyframes pulseAura {
  0% {
    box-shadow: 0 0 0 0 rgba(160, 82, 45, 0.5);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(160, 82, 45, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(160, 82, 45, 0);
  }
}

/* 3. BOTÕES SECUNDÁRIOS (OUTLINE TERRACOTA) */
.secondary-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 18px;
  background-color: var(--bg-card);
  color: var(--text-main);
  border: 1.5px solid var(--terracotta);
  border-radius: var(--radius-btn);
  font-family: var(--font-sans);
  font-size: 0.93rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}

.btn-outline:hover, .btn-outline:focus {
  background-color: rgba(160, 82, 45, 0.08);
  border-color: var(--terracotta-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(160, 82, 45, 0.2);
}

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

/* 4. GALERIA GRID 2x2 */
.gallery-section {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-card);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--cappuccino);
  font-weight: 600;
}

.section-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background-color: #F6EFE7;
  border: 1px solid var(--border-subtle);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(160, 82, 45, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.gallery-item:hover .gallery-overlay,
.gallery-item:active .gallery-overlay {
  opacity: 1;
}

/* 5. RODAPÉ */
.site-footer {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding-bottom: 12px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #F4EBE2;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.social-icon:hover {
  color: var(--terracotta);
  border-color: var(--terracotta);
  background: rgba(160, 82, 45, 0.12);
  transform: translateY(-2px);
}

.copyright {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.agency-credit {
  font-size: 0.72rem;
  color: #8C7B74;
}

.agency-credit a {
  color: var(--cappuccino);
  text-decoration: none;
  font-weight: 600;
}

.agency-credit a:hover {
  text-decoration: underline;
}

/* MODAIS E LIGHTBOX */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(51, 43, 41, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.modal-content {
  width: 100%;
  max-width: var(--max-width);
  max-height: 85vh;
  background: var(--bg-modal);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  border: 1px solid var(--border-terracotta);
  box-shadow: 0 -10px 30px rgba(51, 43, 41, 0.2);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.modal-backdrop.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.modal-header h3 {
  font-family: var(--font-serif);
  color: var(--cappuccino);
  font-size: 1.15rem;
}

.btn-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

/* Score Summary Card */
.score-summary-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  background: rgba(160, 82, 45, 0.08);
  border: 1px solid var(--border-terracotta);
  border-radius: 12px;
  gap: 4px;
}

.score-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--terracotta);
}

.score-stars {
  font-size: 1.1rem;
}

.score-count {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-main);
  font-size: 0.88rem;
}

.review-stars {
  font-size: 0.8rem;
}

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

.btn-modal {
  margin-top: 8px;
}

/* Modal Localização */
.location-box {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.location-address strong {
  color: var(--terracotta);
}

.location-hours {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.location-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.btn-location-action {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 10px;
  background: rgba(160, 82, 45, 0.08);
  border: 1px solid var(--border-terracotta);
  color: var(--terracotta);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  transition: background 0.2s ease;
}

.btn-location-action:hover {
  background: rgba(160, 82, 45, 0.18);
}

/* Lightbox Gallery */
.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 16px;
  border: 1.5px solid var(--terracotta);
  box-shadow: 0 10px 30px rgba(51, 43, 41, 0.3);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 1.8rem;
}

.lightbox-caption {
  margin-top: 10px;
  color: #FFFFFF;
  font-size: 0.85rem;
  text-align: center;
  font-weight: 500;
}
