/* ==========================================================================
   SERENA TERAPIAS & SPA URBANO - JUNDIAÍ / SP
   Design System & Impeccable Polished Styles
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,400;1,600&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --color-brand-dark: #1A2B23;
  --color-brand-primary: #29473B;
  --color-brand-medium: #4D6E5D;
  --color-brand-light: #E2ECE5;
  --color-brand-accent: #C29648;
  --color-brand-accent-hover: #AA8138;
  --color-brand-accent-light: #F8F3EA;
  --color-bg-base: #FAF8F5;
  --color-surface-card: #FFFFFF;
  --color-surface-alt: #F3EFE7;
  --color-surface-soft: #FBF9F6;
  --color-text-main: #1D2622;
  --color-text-muted: #57635C;
  --color-text-light: #89968F;
  --color-border-subtle: #E6DFD3;
  --color-border-hover: #C5BCAD;
  --color-whatsapp: #25D366;
  --color-whatsapp-hover: #1EBE5D;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  --shadow-elevated: 0 16px 36px -6px rgba(0, 0, 0, 0.08);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--color-bg-base);
  color: var(--color-text-main);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: var(--color-bg-base);
}

.font-serif {
  font-family: var(--font-serif);
}

.font-sans {
  font-family: var(--font-sans);
}

/* Escala Tipográfica Semântica com Contraste Proporcional */
h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.15;
}

h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  line-height: 1.25;
}

h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.35;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-base);
}
::-webkit-scrollbar-thumb {
  background: #CBD6CF;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-brand-medium);
}

/* Header & Cards */
.glass-header {
  background: rgba(250, 248, 245, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(230, 223, 211, 0.7);
}

.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(230, 223, 211, 0.85);
}

/* Architectural Arch & Modern Editorial Hero */
.arch-frame {
  border-radius: 140px 140px 20px 20px;
}

@media (min-width: 640px) {
  .arch-frame {
    border-radius: 200px 200px 28px 28px;
  }
}

/* Interactive Hero Capsule Pill */
.hero-intent-btn {
  transition: var(--transition-smooth);
}

.hero-intent-btn.active {
  background: var(--color-brand-primary) !important;
  color: #FFFFFF !important;
  border-color: var(--color-brand-primary) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Button & Interactive styles */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--color-brand-primary);
  color: #FFFFFF;
  font-weight: 600;
  padding: 0.875rem 1.85rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transition: var(--transition-smooth);
  text-decoration: none;
  cursor: pointer;
  border: none;
  min-height: 44px;
}

.btn-primary:hover {
  background: var(--color-brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
  color: #FFFFFF;
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--color-brand-accent);
  color: #1A2B23; /* Alto contraste (5.8:1 - WCAG AA) */
  font-weight: 700;
  padding: 0.875rem 1.85rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transition: var(--transition-smooth);
  text-decoration: none;
  cursor: pointer;
  border: none;
  min-height: 44px;
}

.btn-accent:hover {
  background: var(--color-brand-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
  color: #1A2B23;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: transparent;
  color: var(--color-brand-primary);
  font-weight: 600;
  padding: 0.8125rem 1.75rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-brand-primary);
  transition: var(--transition-smooth);
  text-decoration: none;
  cursor: pointer;
  min-height: 44px;
}

.btn-outline:hover {
  background: var(--color-brand-primary);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: #FFFFFF;
  min-height: 44px;
}
.btn-whatsapp:hover {
  background: var(--color-whatsapp-hover);
  color: #FFFFFF;
}

/* Card hover animation */
.therapy-card {
  transition: var(--transition-smooth);
  border: 1px solid var(--color-border-subtle);
}

.therapy-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
  border-color: rgba(194, 150, 72, 0.35);
}

/* Floating WhatsApp Button & Pulse Rings */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.floating-whatsapp:hover {
  transform: scale(1.06) translateY(-2px);
  background: #1EBE5D;
  color: white;
}

.floating-whatsapp::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.5;
  z-index: -1;
  animation: pulse-ring 2.4s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.35);
    opacity: 0;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

/* WhatsApp Tooltip Bubble */
.whatsapp-tooltip {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-brand-dark);
  color: #FFFFFF;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.floating-whatsapp:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(-4px);
}

/* Scroll Reveal Classes */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
  will-change: auto; /* Libera buffers de composição da GPU */
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Filter Pill Buttons - Acessibilidade de Toque 44px */
.filter-btn {
  padding: 10px 22px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  background: #FFFFFF;
  border: 1px solid var(--color-border-subtle);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover {
  color: var(--color-brand-primary);
  border-color: var(--color-brand-medium);
  background: var(--color-surface-soft);
}

.filter-btn.active {
  background: var(--color-brand-primary);
  color: #FFFFFF;
  border-color: var(--color-brand-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* FAQ Accordion Styling using Grid Template Rows */
.faq-item {
  border-bottom: 1px solid var(--color-border-subtle);
  transition: var(--transition-smooth);
}

.faq-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text-main);
  transition: color 0.2s ease;
  min-height: 48px;
}

.faq-button:hover {
  color: var(--color-brand-primary);
}

.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--color-brand-medium);
  transition: transform 0.3s ease, background-color 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background: var(--color-brand-light);
  color: var(--color-brand-primary);
}

.faq-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-wrapper {
  grid-template-rows: 1fr;
}

.faq-content {
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.faq-item.active .faq-content {
  opacity: 1;
  padding-bottom: 22px;
}

/* Modal Overlay & Card */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.modal-box {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
  transform: scale(0.96) translateY(8px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.modal-backdrop.open .modal-box {
  transform: scale(1) translateY(0);
}

/* Star rating golden sparkle */
.star-rating {
  color: #DDA73A;
}

/* Top Notification Bar */
.top-notice-bar {
  background: var(--color-brand-dark);
  color: #DDE7E1;
  font-size: 13px;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Suporte Acessível para Usuários com Sensibilidade a Movimento */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .floating-whatsapp::before {
    animation: none !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }
  .therapy-card:hover {
    transform: none !important;
  }
}
