/* 
  Vivamente | Clínica Multidisciplinar
  Diretório de Estilos Principais (Vanilla CSS)
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* --- DESIGN SYSTEM TOKENS --- */
:root {
  --color-dark-blue: #292C3E;
  --color-light-beige: #E6E4E1;
  --color-rose: #DDAC8A;
  --color-terracotta: #C3875D;
  --color-white: #FFFFFF;
  --color-text-dark: #1F2232;
  --color-text-light: #5A5D75;
  --color-text-muted: #8E92B2;
  
  --font-primary: 'Poppins', sans-serif;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  --shadow-sm: 0 2px 8px rgba(41, 44, 62, 0.05);
  --shadow-md: 0 8px 24px rgba(41, 44, 62, 0.08);
  --shadow-lg: 0 16px 40px rgba(41, 44, 62, 0.12);
  --shadow-primary: 0 8px 20px rgba(195, 135, 93, 0.25);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --container-max: 1200px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Header Offset */
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-white);
  color: var(--color-text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- LAYOUT UTILITIES --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  section {
    padding: 70px 0;
  }
}

.section-bg-beige {
  background-color: var(--color-light-beige);
}

.section-bg-dark {
  background-color: var(--color-dark-blue);
  color: var(--color-white);
}

.section-bg-white {
  background-color: var(--color-white);
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.3;
}

h2 {
  font-size: 2.25rem;
  color: var(--color-dark-blue);
  margin-bottom: 16px;
  text-align: center;
}

.section-bg-dark h2 {
  color: var(--color-white);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-light);
  max-width: 700px;
  margin: 0 auto 50px auto;
  text-align: center;
  font-weight: 400;
}

.section-bg-dark .section-subtitle {
  color: var(--color-rose);
}

@media (max-width: 768px) {
  h2 {
    font-size: 1.8rem;
  }
  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 40px;
  }
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-family: var(--font-primary);
}

.btn-primary {
  background-color: var(--color-terracotta);
  color: var(--color-white);
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  background-color: #af724a;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(195, 135, 93, 0.35);
}

.btn-secondary {
  background-color: var(--color-dark-blue);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: #1a1c27;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-dark-blue);
  border: 2px solid var(--color-dark-blue);
}

.btn-outline:hover {
  background-color: var(--color-dark-blue);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-rose);
}

.btn-outline-white:hover {
  background-color: var(--color-rose);
  color: var(--color-dark-blue);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: #25D366;
  color: var(--color-white);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background-color: #1cbd54;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(37, 211, 102, 0.35);
}

/* --- FIXED HEADER --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(41, 44, 62, 0.05);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.header.scrolled {
  height: 70px;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header-logo img {
  height: 50px;
  width: auto;
  transition: all var(--transition-normal);
}

.header.scrolled .header-logo img {
  height: 44px;
}

/* Navigation Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  color: var(--color-text-dark);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-rose);
  transition: width var(--transition-normal);
}

.nav-link:hover {
  color: var(--color-terracotta);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--color-terracotta);
  font-weight: 600;
}

.nav-link.active::after {
  width: 100%;
  background-color: var(--color-terracotta);
}

.header-cta {
  display: flex;
  align-items: center;
}

.header-cta .btn {
  padding: 10px 20px;
  font-size: 0.875rem;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-dark-blue);
  margin: 6px 0;
  transition: all var(--transition-normal);
}

@media (max-width: 992px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 80px);
    background-color: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 30px;
    gap: 24px;
    box-shadow: -10px 10px 30px rgba(41, 44, 62, 0.05);
    transition: right var(--transition-normal);
    z-index: 999;
  }
  
  .nav-menu.open {
    right: 0;
  }
  
  .header.scrolled .nav-menu {
    top: 70px;
    height: calc(100vh - 70px);
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .mobile-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .mobile-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .header-cta {
    display: none; /* Hide header CTA button on mobile */
  }
}

/* --- HERO SECTION --- */
.hero {
  padding-top: 140px;
  padding-bottom: 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 10% 20%, rgba(230, 228, 225, 0.4) 0%, rgba(255, 255, 255, 1) 90%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-logo-wrapper {
  margin-bottom: 30px;
}

.hero-logo-wrapper img {
  height: 90px;
  width: auto;
  display: block;
}

.hero-content h1 {
  font-size: 2.8rem;
  color: var(--color-dark-blue);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.hero-content .highlight {
  color: var(--color-terracotta);
}

.hero-description {
  font-size: 1.125rem;
  color: var(--color-text-light);
  margin-bottom: 32px;
  max-width: 580px;
}

.hero-cta-box {
  margin-bottom: 35px;
}

.hero-cta-box h3 {
  font-size: 1.25rem;
  color: var(--color-dark-blue);
  margin-bottom: 12px;
  font-weight: 600;
}

.hero-trust-elements {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 500px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.925rem;
  color: var(--color-text-dark);
  font-weight: 500;
  text-align: left;
  line-height: 1.35;
}

.trust-item svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--color-rose);
  margin-top: 2px;
}

/* Map Card */
.hero-map-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(41, 44, 62, 0.03);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform var(--transition-normal);
}

.hero-map-card:hover {
  transform: translateY(-4px);
}

.map-container {
  width: 100%;
  height: 250px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(41, 44, 62, 0.08);
}

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

.map-address {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.map-address svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--color-terracotta);
  margin-top: 2px;
}

.map-address p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.4;
}

.map-address strong {
  color: var(--color-dark-blue);
  display: block;
  margin-bottom: 2px;
}

@media (max-width: 992px) {
  .hero {
    padding-top: 120px;
    padding-bottom: 60px;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .hero-logo-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
  }
  
  .hero-logo-wrapper img {
    height: 80px;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-trust-elements {
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .hero-trust-elements {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* --- QUEM SOMOS --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-content h2 {
  text-align: left;
}

.about-text {
  color: var(--color-text-light);
  font-size: 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-quote {
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 500;
  color: var(--color-terracotta);
  border-left: 3px solid var(--color-rose);
  padding-left: 16px;
  margin-top: 10px;
  line-height: 1.5;
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 12px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
  border-radius: var(--radius-lg);
}

.about-image {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.about-image-wrapper:hover .about-image {
  transform: scale(1.03);
}

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-content h2 {
    text-align: center;
  }
  
  .about-image {
    height: 350px;
  }
}

/* --- DIFERENCIAIS --- */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}

.diff-card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(41, 44, 62, 0.02);
  text-align: center;
  transition: all var(--transition-normal);
}

.diff-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(221, 172, 138, 0.3);
}

.diff-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-terracotta);
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.diff-number svg {
  width: 28px;
  height: 28px;
  color: #FFC107; /* Golden Star */
}

.diff-card h4 {
  font-size: 1.1rem;
  color: var(--color-dark-blue);
  margin-bottom: 12px;
  font-weight: 600;
}

.diff-card p {
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

/* Visual Placeholders for Awards/Google Reviews */
.proof-gallery-placeholder {
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px dashed rgba(195, 135, 93, 0.3);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.proof-gallery-placeholder svg {
  width: 48px;
  height: 48px;
  color: var(--color-rose);
}

.proof-gallery-placeholder p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  font-weight: 500;
  max-width: 500px;
}

.proof-gallery-badges {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.proof-badge {
  background-color: var(--color-white);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--color-dark-blue);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

@media (max-width: 576px) {
  .diff-grid {
    grid-template-columns: 1fr;
  }
}

/* --- ESPECIALIDADES --- */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
}

.spec-card {
  grid-column: span 2;
}

.spec-card:nth-child(7) {
  grid-column: 3 / span 2;
}

@media (max-width: 992px) {
  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .spec-card {
    grid-column: auto;
  }
  .spec-card:nth-child(7) {
    grid-column: 1 / span 2;
    max-width: calc(50% - 15px);
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .specs-grid {
    grid-template-columns: 1fr;
  }
  .spec-card:nth-child(7) {
    grid-column: auto;
    max-width: 100%;
    margin: 0;
  }
}

.spec-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(41, 44, 62, 0.02);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all var(--transition-normal);
}

.spec-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(221, 172, 138, 0.2);
}

.spec-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background-color: rgba(221, 172, 138, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-terracotta);
  transition: all var(--transition-normal);
}

.spec-card:hover .spec-icon-wrapper {
  background-color: var(--color-terracotta);
  color: var(--color-white);
  transform: scale(1.05);
}

.spec-icon-wrapper svg {
  width: 30px;
  height: 30px;
}

.spec-card h3 {
  font-size: 1.35rem;
  color: var(--color-dark-blue);
  font-weight: 600;
}

.spec-card p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.6;
  flex-grow: 1; /* Pushes the button to the bottom */
}

.spec-card .btn {
  width: 100%;
  padding: 12px 20px;
  font-size: 0.9rem;
}

/* --- CONVÊNIOS --- */
.partners-block {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.partners-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.partner-card {
  background-color: var(--color-white);
  padding: 16px 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-dark-blue);
  min-width: 180px;
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(41, 44, 62, 0.02);
  transition: all var(--transition-normal);
}

.partner-card.particular {
  background-color: var(--color-dark-blue);
  color: var(--color-white);
}

.partner-card img {
  max-height: 48px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.partner-card {
  cursor: pointer;
}

.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-rose);
}

.partner-card.active {
  border-color: var(--color-terracotta);
  box-shadow: 0 0 0 2px var(--color-rose);
  transform: translateY(-4px);
}

.convenio-legend-box {
  margin: 30px auto 20px auto;
  padding: 24px;
  background-color: var(--color-light-beige);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-terracotta);
  font-size: 0.95rem;
  color: var(--color-text-dark);
  text-align: left;
  max-width: 600px;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
}

.legend-placeholder {
  color: var(--color-text-light);
  font-style: italic;
  text-align: center;
  margin: 0;
  width: 100%;
}

.legend-active-content strong {
  color: var(--color-dark-blue);
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
  font-weight: 600;
}

.legend-active-content span {
  color: var(--color-text-dark);
}

.partners-notice {
  font-size: 0.85rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
  font-style: italic;
}

/* --- COMO AGENDAR --- */
.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
  margin-bottom: 50px;
}

/* Connecting Line on Desktop */
.steps-container::after {
  content: '';
  position: absolute;
  top: 45px;
  left: 15%;
  right: 15%;
  height: 2px;
  background-color: var(--color-rose);
  z-index: 1;
  opacity: 0.4;
}

@media (max-width: 992px) {
  .steps-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .steps-container::after {
    display: none;
  }
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.step-number {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-full);
  background-color: var(--color-white);
  border: 3px solid var(--color-rose);
  color: var(--color-dark-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.step-card:hover .step-number {
  background-color: var(--color-rose);
  color: var(--color-white);
  transform: scale(1.05);
}

.step-card h4 {
  font-size: 1.15rem;
  color: var(--color-dark-blue);
  font-weight: 600;
}

.step-card p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  max-width: 260px;
}

.steps-cta {
  text-align: center;
}

/* --- LOCALIZAÇÃO --- */
.loc-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: flex-start;
}

@media (max-width: 992px) {
  .loc-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.loc-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.loc-info h2 {
  text-align: left;
}

@media (max-width: 992px) {
  .loc-info h2 {
    text-align: center;
  }
}

.loc-address-box {
  display: flex;
  gap: 16px;
  background-color: var(--color-white);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.loc-address-box svg {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  color: var(--color-terracotta);
}

.loc-address-box h4 {
  font-size: 1.1rem;
  color: var(--color-dark-blue);
  margin-bottom: 6px;
}

.loc-address-box p {
  font-size: 0.95rem;
  color: var(--color-text-light);
}

/* Editable info slot */
.loc-extra-card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(41, 44, 62, 0.02);
}

.loc-extra-card h4 {
  font-size: 1.15rem;
  color: var(--color-dark-blue);
  margin-bottom: 20px;
  border-bottom: 2px solid var(--color-light-beige);
  padding-bottom: 8px;
}

.loc-extra-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 576px) {
  .loc-extra-grid {
    grid-template-columns: 1fr;
  }
}

.loc-extra-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.loc-extra-item label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  font-weight: 600;
}

.loc-extra-item p, .loc-extra-item span {
  font-size: 0.925rem;
  color: var(--color-text-dark);
  font-weight: 500;
}

.loc-extra-item .placeholder-editable {
  font-style: italic;
  color: var(--color-text-muted);
  background-color: rgba(230, 228, 225, 0.3);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px dashed rgba(41, 44, 62, 0.15);
  font-size: 0.85rem;
}

.loc-cta-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.loc-map-wrapper {
  background-color: var(--color-white);
  padding: 16px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(41, 44, 62, 0.03);
}

.loc-map-wrapper .map-container {
  height: 400px;
}

@media (max-width: 768px) {
  .loc-map-wrapper .map-container {
    height: 300px;
  }
}

/* --- CHAMADA FINAL --- */
.cta-final {
  text-align: center;
  position: relative;
}

.cta-final .container {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.cta-final h2 {
  font-size: 2.5rem;
  margin-bottom: 0;
}

.cta-final p {
  font-size: 1.15rem;
  color: var(--color-rose);
  max-width: 600px;
  line-height: 1.6;
}

.cta-final .btn {
  margin-top: 10px;
  padding: 18px 40px;
}

@media (max-width: 768px) {
  .cta-final h2 {
    font-size: 1.85rem;
  }
  .cta-final p {
    font-size: 1rem;
  }
}

/* --- FOOTER --- */
.footer {
  background-color: #1c1d29;
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 30px 0;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

@media (max-width: 992px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo img {
  height: 55px;
  width: auto;
  filter: brightness(0) invert(1); /* Forces logo to display white/gray on dark bg */
}

.footer-quote {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--color-rose);
  border-left: 2px solid var(--color-rose);
  padding-left: 12px;
}

.footer-links-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links-box h4 {
  color: var(--color-white);
  font-size: 1.05rem;
  font-weight: 600;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-rose);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact h4 {
  color: var(--color-white);
  font-size: 1.05rem;
  font-weight: 600;
}

.footer-contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.footer-contact-item svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--color-rose);
  margin-top: 2px;
}

.footer-contact-item span {
  line-height: 1.4;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 576px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* --- PRIVACY POLICY MODAL --- */
.modal {
  position: fixed;
  inset: 0;
  background-color: rgba(41, 44, 62, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

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

.modal-content {
  background-color: var(--color-white);
  width: 90%;
  max-width: 750px;
  max-height: 80vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

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

.modal-header {
  padding: 24px;
  border-bottom: 1px solid var(--color-light-beige);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--color-white);
}

.modal-header h3 {
  font-size: 1.35rem;
  color: var(--color-dark-blue);
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-light);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: var(--color-terracotta);
}

.modal-close svg {
  width: 24px;
  height: 24px;
}

.modal-body {
  padding: 30px;
  overflow-y: auto;
  font-size: 0.925rem;
  color: var(--color-text-light);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-body h4 {
  color: var(--color-dark-blue);
  margin-top: 10px;
  font-weight: 600;
  font-size: 1.05rem;
}

.modal-body ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* --- FLOATING WHATSAPP BUTTON --- */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform var(--transition-normal);
}

.whatsapp-icon-circle {
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  color: var(--color-white);
  position: relative;
  transition: all var(--transition-normal);
}

.whatsapp-icon-circle svg {
  width: 32px;
  height: 32px;
}

/* Pulse animation */
.whatsapp-icon-circle::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: var(--radius-full);
  border: 2px solid #25D366;
  opacity: 0;
  animation: whatsapp-pulse 2s infinite;
}

.floating-whatsapp:hover {
  transform: scale(1.08);
}

.floating-whatsapp:hover .whatsapp-icon-circle {
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55);
}

/* Notification badge */
.whatsapp-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  background-color: #FF3B30;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-white);
  z-index: 10;
}

/* Interactive notification popup bubble */
.whatsapp-tooltip {
  position: absolute;
  right: 75px;
  background-color: var(--color-white);
  padding: 12px 18px;
  border-radius: var(--radius-md) var(--radius-md) 0 var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(41, 44, 62, 0.05);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-dark-blue);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all var(--transition-normal);
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  bottom: 12px;
  width: 12px;
  height: 12px;
  background-color: var(--color-white);
  transform: rotate(45deg);
  border-right: 1px solid rgba(41, 44, 62, 0.05);
  border-top: 1px solid rgba(41, 44, 62, 0.05);
}

.floating-whatsapp.show-tooltip .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    opacity: 0;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .floating-whatsapp {
    bottom: 20px;
    right: 20px;
  }
  .whatsapp-icon-circle {
    width: 50px;
    height: 50px;
  }
  .whatsapp-icon-circle svg {
    width: 26px;
    height: 26px;
  }
  .whatsapp-tooltip {
    display: none; /* Hide tooltip on small mobile screens to prevent overlaying text */
  }

  /* Otimização da Hero para Celulares */
  .hero {
    padding-top: 100px;
    padding-bottom: 40px;
  }
  .hero-content h1 {
    font-size: 1.85rem;
  }
  .hero-trust-elements {
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 300px;
    margin: 0 auto;
  }
  .hero-map-card {
    padding: 16px;
    margin-bottom: 10px;
  }
  .map-container {
    height: 200px;
  }

  /* Otimização dos Convênios para Celulares */
  .partners-grid {
    gap: 12px;
    width: 100%;
  }
  .partner-card {
    min-width: calc(50% - 6px);
    height: 70px;
    padding: 10px;
  }
  .partner-card.particular {
    min-width: 100%;
  }
  .partner-card img {
    max-height: 38px;
  }
  .convenio-legend-box {
    margin-top: 20px;
    padding: 16px;
    font-size: 0.9rem;
  }

  /* Otimização de Botões de Localização para Celulares */
  .loc-cta-buttons {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .loc-cta-buttons .btn {
    width: 100%;
    margin: 0;
  }
  .loc-map-wrapper {
    padding: 10px;
  }
  .loc-map-wrapper .map-container {
    height: 260px;
  }
}
