/* =========================================
   DAVID ASTRÓLOGO — Luz das Estrelas
   CSS Design System
   ========================================= */

/* ----- TOKENS ----- */
:root {
  /* Paleta Terrena Mística (Charcoal/Blacks) */
  --color-void: #030304;
  --color-deep: #08090a;
  --color-midnight: #0d0f12;
  --color-navy: #13151a;
  --color-indigo: #1a1d24;

  /* Tons Escuros (Substituindo púrpuras por cinzas quentes e marrons escuros) */
  --color-purple-900: #0f0e0d;
  --color-purple-800: #1a1816;
  --color-purple-700: #2b2824;
  --color-purple-600: #423d38;
  --color-purple-500: #59534d;
  --color-purple-400: #7a736a;
  --color-purple-300: #9c9488;
  --color-purple-200: #c2b9ab;

  /* Dourados Antigos (Bronze/Ouro Velho) */
  --color-gold-500: #826338;
  --color-gold-400: #a37e49;
  --color-gold-300: #c9a46c;
  /* Ouro principal */
  --color-gold-200: #e0c294;
  --color-gold-100: #f5e3c6;

  /* Accent secundário */
  --color-violet-500: #a37e49;
  --color-violet-400: #c9a46c;

  /* Texto */
  --text-primary: #fcfbf8;
  /* Branco perolado / Bege muito claro para altíssimo contraste */
  --text-secondary: #e6dfd1;
  /* Bege claro de antes */
  --text-muted: #ab9e87;
  /* Mais contraste que o antigo */
  --text-gold: var(--color-gold-300);

  /* Glassmorphism */
  --glass-bg: rgba(230, 223, 209, 0.03);
  --glass-border: rgba(201, 164, 108, 0.15);
  --glass-hover: rgba(201, 164, 108, 0.25);

  /* Sombras e Brilhos (Tons dourados em vez de roxos) */
  --shadow-glow: 0 0 40px rgba(201, 164, 108, 0.15);
  --shadow-gold: 0 0 30px rgba(201, 164, 108, 0.25);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.6);

  /* Fonte */
  --font-display: 'Cinzel', serif;
  /* Mudando a fonte do corpo para serifada elegante para combinar com o visual ancestral */
  --font-body: 'Cormorant Garamond', serif;
  --font-serif: 'Cormorant Garamond', serif;

  /* Espaçamentos */
  --section-padding: 100px 0;
  --container-max: 1200px;

  /* Transições */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----- RESET & BASE ----- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 22px;
  overflow-x: hidden;
  max-width: 100%;
}

/* Compensa a navbar fixa ao navegar pelos links do menu, para as seções
   não pararem escondidas atrás dela nem com um vão vazio abaixo dela. */
section[id] {
  scroll-margin-top: 76px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-void);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ----- CANVAS (STARS) ----- */
#stars-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ----- CONTAINER ----- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ----- BOTÕES ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-purple-500), var(--color-purple-600));
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.5);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-purple-400), var(--color-purple-500));
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.6);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--glass-border);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  border-color: var(--color-purple-400);
  color: var(--color-purple-300);
  transform: translateY(-2px);
  background: var(--glass-hover);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  font-size: 1rem;
  padding: 16px 32px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  width: 100%;
  justify-content: center;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

/* ----- LABELS & TÍTULOS DE SEÇÃO ----- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold-300);
  margin-bottom: 8px;
}

.section-label::before,
.section-label::after {
  content: '✦';
  font-size: 0.6rem;
  opacity: 0.7;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section-title.light {
  color: #fff;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
}

.section-header {
  text-align: center;
  margin-bottom: 20px;
}

.section-header .section-label {
  justify-content: center;
}

.section-header .section-desc {
  margin: 0 auto;
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(4, 4, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 0;
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  transition: var(--transition);
}

.nav-logo:hover {
  color: var(--color-gold-300);
}

.logo-symbol {
  color: var(--color-gold-300);
  font-size: 1.2rem;
  animation: spin-slow 15s linear infinite;
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 50px;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--glass-hover);
}

.nav-link.nav-cta {
  color: #fff;
  background: linear-gradient(135deg, var(--color-purple-500), var(--color-purple-600));
  padding: 9px 20px;
  font-weight: 600;
}

.nav-link.nav-cta:hover {
  background: linear-gradient(135deg, var(--color-purple-400), var(--color-purple-500));
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
  display: block;
}

/* =========================================
   HERO
   ========================================= */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 60px;
  padding: 100px 60px 48px;
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(600px, 90vw);
  height: min(600px, 90vw);
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.hero-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--color-gold-300), var(--color-purple-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  padding-right: 0.15em;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  z-index: 1;
  margin-top: 48px;
}

.hero-logo {
  position: relative;
  z-index: 1;
  width: 280px;
}

.hero-logo img {
  display: block;
  width: 100%;
  height: auto;
}

/* Desktop: centraliza as duas colunas verticalmente — sem o badge e as
   estatísticas o texto ficou curto e ficava colado no topo. */
@media (min-width: 1025px) {
  .hero-content,
  .hero-visual {
    align-self: center;
  }

  .hero-visual {
    margin-top: 0;
  }
}

.photo-frame {
  position: relative;
  width: 380px;
  height: 380px;
}

.photo-rings {
  position: absolute;
  inset: -60px;
  pointer-events: none;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(139, 92, 246, 0.2);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ring-1 {
  width: 420px;
  height: 420px;
  animation: pulse-ring 4s ease-in-out infinite;
}

.ring-2 {
  width: 480px;
  height: 480px;
  animation: pulse-ring 4s ease-in-out infinite 0.8s;
  border-color: rgba(251, 191, 36, 0.12);
}

.ring-3 {
  width: 540px;
  height: 540px;
  animation: pulse-ring 4s ease-in-out infinite 1.6s;
}

@keyframes pulse-ring {

  0%,
  100% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1.02);
  }
}

/* Foto do astrólogo */
.photo-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(212, 160, 23, 0.35);
  box-shadow:
    0 0 0 6px rgba(8, 6, 20, 0.6),
    0 20px 60px rgba(0, 0, 0, 0.45),
    0 0 70px rgba(139, 92, 246, 0.25);
  background: linear-gradient(135deg, var(--color-purple-900), var(--color-midnight));
}

.photo-placeholder img {
  position: absolute;
  top: -3%;
  left: 50%;
  width: 118%;
  height: 118%;
  transform: translateX(-50%);
  object-fit: cover;
  z-index: 2;
  filter: sepia(25%) saturate(115%) contrast(1.02);
}

/* Overlay mostrado quando a imagem não existe */
.photo-placeholder .placeholder-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--color-purple-900), var(--color-midnight));
  z-index: 1;
}

.photo-placeholder:not(.no-photo) .placeholder-overlay {
  display: none;
}

.photo-placeholder.no-photo img {
  display: none;
}

.placeholder-icon {
  font-size: 4rem;
  opacity: 0.6;
  line-height: 1;
}

.placeholder-text {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* =========================================
   SOBRE
   ========================================= */
.sobre {
  padding: var(--section-padding);
  padding-top: 12px;
  position: relative;
  z-index: 1;
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.sobre-image-wrapper {
  position: relative;
  margin-top: 0;
}

.sobre-photo-placeholder {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 1/1;
  background: linear-gradient(160deg, var(--color-purple-900), var(--color-midnight), var(--color-navy));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
  position: relative;
}

.sobre-photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.placeholder-icon-lg {
  font-size: 3.5rem;
  opacity: 0.5;
}

/* Texto sobre */
.about-lead {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 16px;
}

/* =========================================
   SERVIÇOS
   ========================================= */
.servicos {
  padding: var(--section-padding);
  padding-top: 12px;
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(13, 13, 43, 0.6), transparent);
}

.servicos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.servico-card {
  display: flex;
  flex-direction: column;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 32px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.servico-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-purple-500), transparent);
  opacity: 0;
  transition: var(--transition);
}

.servico-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.servico-card:hover::before {
  opacity: 1;
}

.servico-card.featured {
  background: linear-gradient(160deg, rgba(124, 58, 237, 0.2), rgba(109, 40, 217, 0.1));
  border-color: rgba(139, 92, 246, 0.4);
}

.featured-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  display: inline-block;
  background: linear-gradient(135deg, var(--color-gold-400), var(--color-gold-500));
  color: var(--color-void);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.servico-icon {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 14px;
  display: block;
}

.servico-card h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 12px;
  min-height: 2.6em;
  overflow-wrap: break-word;
  hyphens: auto;
}

.servico-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--color-purple-300);
  margin-bottom: 12px;
}

.servico-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

/* Descrição completa do serviço: fechada por padrão, o botão "Saiba mais"
   expande (via script). */
.servico-details {
  display: none;
}

.servico-details.open {
  display: block;
}

.servico-details p {
  font-size: 0.82rem;
  line-height: 1.7;
  margin-bottom: 14px;
}

.servico-details ul {
  list-style: none;
  margin-bottom: 14px;
}

.servico-details li {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
  padding-left: 18px;
  position: relative;
  margin-bottom: 10px;
}

.servico-details li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.6rem;
  color: var(--color-gold-300);
}

.servico-details strong {
  color: var(--text-secondary);
  font-weight: 600;
}

.servico-toggle {
  background: none;
  border: none;
  padding: 0;
  margin: -6px 0 20px;
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-gold-300);
  cursor: pointer;
}

.servico-toggle:hover {
  text-decoration: underline;
}

.servico-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--glass-border);
  padding-top: 16px;
}

.servico-duration {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: var(--color-gold-300);
  font-weight: 500;
}

.servico-price {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-gold-300);
  white-space: nowrap;
}

/* =========================================
   DEPOIMENTOS
   ========================================= */
.depoimentos {
  padding: var(--section-padding);
  padding-top: 4px;
  position: relative;
  z-index: 1;
}

.depoimentos .section-header {
  margin-bottom: 12px;
}

.depoimentos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.depoimento-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 24px 24px;
  transition: var(--transition);
  position: relative;
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
}

.depoimento-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  right: 28px;
  font-family: var(--font-serif);
  font-size: 5rem;
  line-height: 1;
  color: var(--color-purple-500);
  opacity: 0.2;
}

.depoimento-card:hover {
  border-color: rgba(139, 92, 246, 0.25);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.depoimento-card.featured-depo {
  background: linear-gradient(150deg, rgba(124, 58, 237, 0.15), rgba(13, 13, 43, 0.8));
  border-color: rgba(139, 92, 246, 0.3);
  grid-row: span 1;
}

.depo-stars {
  color: var(--color-gold-300);
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.depoimento-card blockquote {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-primary);
  line-height: 1.55;
  margin-bottom: 14px;
  font-style: italic;
}

/* Depoimentos longos vêm truncados em algumas linhas; o botão "Ver mais"
   (inserido via script apenas nos que excedem o limite) expande o texto. */
.depoimento-card blockquote.clamped {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.depo-toggle {
  background: none;
  border: none;
  padding: 0;
  margin: -6px 0 16px;
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-gold-300);
  cursor: pointer;
}

.depo-toggle:hover {
  text-decoration: underline;
}

.depo-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.depo-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}

.depo-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.depo-sign {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* =========================================
   CONTATO
   ========================================= */
.contato {
  padding: var(--section-padding);
  padding-top: 12px;
  position: relative;
  z-index: 1;
}

.contato-card {
  background: linear-gradient(135deg, rgba(76, 29, 149, 0.3), rgba(13, 13, 43, 0.9));
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 32px;
  padding: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.contato-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(124, 58, 237, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.section-label.light {
  color: var(--color-gold-300);
}

.contato-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.8;
  margin-bottom: 32px;
}

.contato-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.info-icon {
  display: flex;
  color: var(--color-gold-300);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Lado direito */
.contato-right {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contato-actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.social-link {
  width: 48px;
  height: 48px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
  flex: 1;
}

.social-link:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--color-purple-500);
  color: var(--color-purple-300);
  transform: translateY(-3px);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--glass-border);
  padding: 64px 0 32px;
  background: linear-gradient(180deg, transparent, rgba(4, 4, 15, 0.8));
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.footer-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-social-link:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--color-purple-500);
  color: var(--color-purple-300);
  transform: translateY(-2px);
}

.footer-links h3 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links li a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-links li a:hover {
  color: var(--color-purple-300);
}

.footer-contact h3 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: #25d366;
  font-weight: 600;
  margin-bottom: 8px;
  transition: var(--transition);
}

.footer-whatsapp:hover {
  color: #34d399;
}

.footer-email {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

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

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-craft {
  letter-spacing: 0.05em;
}

/* =========================================
   WHATSAPP FLUTUANTE
   ========================================= */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.5);
  z-index: 999;
  transition: var(--transition);
  /* Só aparece depois que o hero — que já tem o CTA principal de
     WhatsApp — sai de vista, para não competir com ele (via script). */
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}

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

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 40px rgba(37, 211, 102, 0.6);
}

.whatsapp-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.4);
  animation: whatsapp-pulse 2.5s ease-out infinite;
}

@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.whatsapp-tooltip {
  position: absolute;
  right: 72px;
  background: rgba(4, 4, 15, 0.9);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  opacity: 0;
  transform: translateX(8px);
  transition: var(--transition);
  pointer-events: none;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* =========================================
   ANIMAÇÕES DE SCROLL
   ========================================= */
[data-aos] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-aos].aos-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   RESPONSIVIDADE
   ========================================= */

/* Entre o menu hambúrguer (≤768px) e telas largas, a navbar completa —
   logo, 4 links e o CTA — não cabe com a fonte base de 22px e o botão
   "Agendar Consulta" quebrava em duas linhas. Compacta tudo na faixa. */
@media (min-width: 769px) and (max-width: 1100px) {
  .nav-container {
    padding: 0 16px;
  }

  .nav-logo {
    font-size: 0.85rem;
    gap: 6px;
  }

  .logo-symbol {
    font-size: 0.95rem;
  }

  .nav-menu {
    gap: 2px;
  }

  .nav-link {
    font-size: 0.75rem;
    padding: 7px 10px;
  }

  .nav-link.nav-cta {
    padding: 8px 14px;
  }
}

/* A coluna de texto do hero vai de ~420px (viewport de 1025px) até no
   máximo 510px (container limitado a 1200px), e os dois botões em tamanho
   cheio somam ~512px com a fonte base de 22px — ou seja, quebravam em
   duas linhas em qualquer desktop. Compacta os botões para caberem lado
   a lado; abaixo de 1025px a query seguinte já cuida disso. */
@media (min-width: 1025px) {
  .hero-actions {
    flex-wrap: nowrap;
    gap: 12px;
  }

  .hero-actions .btn {
    padding: 13px 24px;
    font-size: 0.9rem;
  }
}

/* Faixa em que a coluna ainda é estreita: botões um pouco menores. */
@media (min-width: 1025px) and (max-width: 1180px) {
  .hero-actions .btn {
    padding: 12px 16px;
    font-size: 0.82rem;
  }
}

@media (max-width: 1024px) {
  .servicos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    padding: 96px 40px 48px;
    gap: 40px;
  }

  .hero-actions {
    flex-wrap: nowrap;
  }

  .hero-actions .btn {
    padding: 12px 20px;
    font-size: 0.85rem;
  }

  .photo-frame {
    width: 320px;
    height: 320px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  section[id] {
    scroll-margin-top: 76px;
  }

  .hero {
    min-height: 100vh;
    /* svh (small viewport height) é estável: não muda quando a barra de
       endereço do navegador mobile aparece/some ao rolar. Com dvh (dinâmico)
       a hero crescia durante a rolagem e empurrava a seção Sobre para baixo. */
    min-height: 100svh;
    grid-template-columns: 1fr;
    align-items: start;
    /* Com menos elementos na hero, centraliza o conjunto verticalmente
       no espaço disponível em vez de acumular tudo no topo. */
    align-content: center;
    text-align: center;
    padding: 80px 20px 24px;
    /* Mais respiro entre o bloco visual (foto + logo) e o bloco de texto:
       antes ficava tudo colado, sem separação clara. */
    gap: 32px;
  }

  /* Divisor delicado entre o visual e o texto — uma linha fina dourada
     que esmaece nas pontas, marcando a transição sem pesar. */
  .hero-content::before {
    content: "";
    display: block;
    width: 140px;
    height: 1px;
    margin: 0 auto 16px;
    background: linear-gradient(90deg, transparent, rgba(201, 164, 108, 0.55), transparent);
  }

  /* Halo decorativo (anéis pulsantes) removido no mobile: seus deslocamentos
     fixos não escalam com o frame menor e furavam o espaçamento, colidindo
     com a navbar e com o badge. */
  .photo-rings {
    display: none;
  }

  .hero-content,
  .hero-visual {
    min-width: 0;
  }

  .hero-title {
    /* Menor e menos pesado no mobile: o branco puro em peso 900 competia
       demais com a foto e a logo logo acima. Tom perolado mais quente
       (text-secondary) integra o título ao clima dourado da página. */
    font-size: clamp(1.35rem, 6vw, 1.85rem);
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 14px;
  }

  .hero-subtitle {
    max-width: 34ch;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 10px;
  }

  /* Botões empilhados e com a mesma largura: mais limpo do que dois
     botões de tamanhos diferentes lado a lado. */
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  /* Linha divisória espelhada antes dos botões — fecha o bloco de texto
     assim como a linha acima do título o abre. Vira um item do flex
     column, então o gap de 10px já a separa do primeiro botão. */
  .hero-actions::before {
    content: "";
    width: 140px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 164, 108, 0.55), transparent);
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
    padding: 11px 20px;
    font-size: 0.88rem;
  }

  .hero-visual {
    order: -1;
    margin-top: 0;
    margin-bottom: 0;
    gap: 12px;
  }

  .photo-frame {
    width: 200px;
    height: 200px;
  }

  .hero-logo {
    /* No mobile o logo vira um banner full-bleed (cena completa), ocupando
       toda a largura da tela logo abaixo da foto. Estoura o padding do hero
       com a técnica de largura 100vw + margem negativa. As bordas superior/
       inferior do webp já têm fade para dissolver na cor da página. */
    width: 100vw;
    max-width: 100vw;
    margin-top: 0;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    transform: none;
  }

  .ring-1 {
    width: 190px;
    height: 190px;
  }

  .ring-2 {
    width: 215px;
    height: 215px;
  }

  .ring-3 {
    width: 240px;
    height: 240px;
  }

  .placeholder-overlay {
    gap: 4px;
  }

  .placeholder-icon {
    font-size: 1.8rem;
  }

  .placeholder-text {
    font-size: 0.55rem;
  }

  :root {
    --section-padding: 64px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .servico-card,
  .depoimento-card {
    padding: 24px 20px;
  }

  .sobre-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sobre-image-wrapper {
    margin-top: 0;
  }

  .sobre-photo-placeholder {
    aspect-ratio: 4/3;
  }



  .servicos-grid {
    grid-template-columns: 1fr;
  }

  .depoimentos-grid {
    grid-template-columns: 1fr;
  }

  .contato-card {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(4, 4, 15, 0.97);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    padding: 16px 24px 24px;
    gap: 4px;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-link {
    justify-content: flex-start;
    border-radius: 8px;
  }

  .nav-container {
    position: relative;
    padding: 0 16px;
  }

  .navbar {
    position: fixed;
  }

  .nav-logo {
    font-size: 0.95rem;
    gap: 8px;
  }

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

  /* Texto corrido menor no mobile: com a fonte base de 22px os parágrafos
     ficavam enormes e alongavam demais a página. Títulos ficam como estão. */
  .about-lead {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .about-body {
    font-size: 0.82rem;
    line-height: 1.7;
  }

  .section-desc {
    font-size: 0.88rem;
  }

  .servico-card p {
    font-size: 0.82rem;
    line-height: 1.65;
  }

  .depoimento-card blockquote {
    font-size: 0.92rem;
  }

  .contato-desc {
    font-size: 0.85rem;
  }

  .info-item {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  section[id] {
    scroll-margin-top: 68px;
  }

  .nav-logo {
    font-size: 0.8rem;
    gap: 6px;
  }

  .logo-symbol {
    font-size: 1rem;
  }

  .hero {
    padding: 76px 20px 20px;
    gap: 24px;
  }

  .hero-content::before {
    margin-bottom: 14px;
  }

  .hero-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    padding: 0 10px;
  }

  .hero-subtitle {
    font-size: 0.88rem;
    margin-bottom: 8px;
  }

  .hero-visual {
    margin-bottom: 0;
    gap: 10px;
  }

  .photo-frame {
    width: 180px;
    height: 180px;
  }

  .ring-1 {
    width: 120px;
    height: 120px;
  }

  .ring-2 {
    width: 136px;
    height: 136px;
  }

  .ring-3 {
    width: 152px;
    height: 152px;
  }

  .placeholder-overlay {
    gap: 2px;
  }

  .placeholder-icon {
    font-size: 1.1rem;
  }

  .placeholder-text {
    font-size: 0.42rem;
  }

  :root {
    --section-padding: 48px 0;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 0.88rem;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
}

/* Telas curtas (ex: iPhone SE) — encolhe o hero para caber até os
   botões sem cortar nada nem invadir a próxima seção. */
@media (max-width: 768px) and (max-height: 732px) {
  .hero {
    padding-top: 60px;
    padding-bottom: 20px;
    gap: 18px;
  }

  .hero-content::before {
    margin-bottom: 12px;
  }

  .photo-frame {
    width: 138px;
    height: 138px;
  }

  .hero-title {
    margin-bottom: 8px;
  }

  .hero-subtitle {
    margin-bottom: 14px;
  }
}