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

/* --- DESIGN SYSTEM TOKENS --- */
:root {
  /* Colors */
  --color-surface: #fbf9f7;
  --color-surface-dim: #dbdad8;
  --color-surface-bright: #fbf9f7;
  --color-surface-container-lowest: #ffffff;
  --color-surface-container-low: #f5f3f1;
  --color-surface-container: #efedec;
  --color-surface-container-high: #eae8e6;
  --color-surface-container-highest: #e4e2e0;
  --color-on-surface: #1b1c1b;
  --color-on-surface-variant: #51443e;
  --color-outline: #83746c;
  --color-outline-variant: #d6c3ba;
  
  --color-primary: #7f5137;         /* Terracota principal */
  --color-primary-light: #a67357;   /* Muted Terracota para bordas/acentos */
  --color-on-primary: #ffffff;
  --color-primary-container: #9b694e;
  --color-on-primary-container: #fffbff;
  
  --color-secondary: #f29339;       /* Laranja vibrante para CTA de agendamento */
  --color-on-secondary: #ffffff;
  
  --color-tertiary: #6b4e3d;        /* Cacau profundo para títulos */
  --color-on-tertiary: #ffffff;
  
  --color-background: #fbf9f7;
  --color-on-background: #1b1c1b;
  
  --color-soft-clay: #d9c5b2;       /* Fundo do Photo-on-Matte e acentos */
  --color-earth-brown: #4a372d;     /* Sombra e contraste escuro */
  --color-surface-warm: #faf9f8;    /* Para diferenciação de seções */
  
  /* Typography */
  --font-display: 'Epilogue', sans-serif;
  --font-body: 'Manrope', sans-serif;
  
  /* Border Radius */
  --rounded-sm: 0.25rem;            /* 4px */
  --rounded-default: 0.5rem;        /* 8px - formulários/cards menores */
  --rounded-md: 0.75rem;            /* 12px */
  --rounded-lg: 1rem;               /* 16px */
  --rounded-xl: 1.5rem;             /* 24px - cards de especialidade/hero */
  --rounded-full: 9999px;           /* Pílulas */

  /* Spacing */
  --section-gap: 4.5rem;              /* 72px - Reduzido de 8rem */
  --content-gap: 2rem;              /* 32px */
  --gutter: 1.5rem;                 /* 24px */
  --margin-desktop: 5rem;
  --margin-mobile: 1rem;
  
  /* Shadows */
  --shadow-ambient: 0 20px 30px rgba(74, 55, 45, 0.04);
  --shadow-hover: 0 30px 40px rgba(74, 55, 45, 0.08);
  --shadow-glow: 0 10px 25px rgba(242, 147, 57, 0.2);
  --shadow-header: 0 4px 30px rgba(74, 55, 45, 0.02);

  /* Glow effects */
  --glow-color-1: rgba(242, 147, 57, 0.08);
  --glow-color-2: rgba(127, 81, 55, 0.06);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* Glow background blobs */
.glow-blob {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-color-1) 0%, rgba(251, 249, 247, 0) 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: multiply;
}

.glow-blob-secondary {
  background: radial-gradient(circle, var(--glow-color-2) 0%, rgba(251, 249, 247, 0) 70%);
  width: 400px;
  height: 400px;
}

/* Typography Utilities */
body {
  background-color: var(--color-background);
  color: var(--color-on-surface);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography Utilities */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-tertiary);
  font-weight: 600;
  line-height: 1.25;
}

h1 {
  font-size: 3rem; /* 48px */
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2rem; /* 32px */
  margin-bottom: var(--content-gap);
  position: relative;
}

h3 {
  font-size: 1.5rem; /* 24px */
  font-weight: 500;
}

p {
  font-size: 1.125rem; /* 18px body-lg */
  color: var(--color-on-surface-variant);
  margin-bottom: 1.25rem;
  font-weight: 400;
  line-height: 1.7;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-secondary);
}

/* Button & Link Utilities */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--rounded-full);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--color-secondary);
  color: var(--color-on-secondary);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background-color: #e07f24;
  box-shadow: 0 12px 30px rgba(242, 147, 57, 0.3);
  color: var(--color-on-secondary);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-soft-clay);
}

.btn-secondary:hover {
  background-color: var(--color-surface-container);
  color: var(--color-tertiary);
  border-color: var(--color-outline);
}

/* Section Common Styles */
section {
  padding: var(--section-gap) 0;
  width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}

.section-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem; /* 20px accent-script */
  color: var(--color-primary-light);
  margin-bottom: 0.75rem;
  display: block;
}

/* --- HEADER & STICKY NAVIGATION --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1.5rem 0;
  background: transparent;
}

header.scrolled {
  padding: 1rem 0;
  background: rgba(251, 249, 247, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-header);
  border-bottom: 1px solid rgba(214, 195, 186, 0.2);
}

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

.logo {
  display: flex;
  align-items: center;
  transition: opacity 0.3s ease;
}

.logo:hover {
  opacity: 0.9;
}

.logo img {
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  color: #ffffff; /* Branca no topo */
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s ease;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4); /* Sombra leve para garantir legibilidade no fundo */
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-secondary); /* Laranja */
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover {
  color: var(--color-secondary); /* Laranja */
}

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

.nav-link.active {
  color: var(--color-secondary); /* Laranja */
  font-weight: 600;
}

/* Estilos para o menu quando a página rolar (fundo claro) */
header.scrolled .nav-link {
  color: var(--color-tertiary);
  text-shadow: none; /* Remove a sombra no fundo claro */
}

header.scrolled .nav-link:hover,
header.scrolled .nav-link.active {
  color: var(--color-secondary);
}

.btn-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--rounded-full);
  background-color: var(--color-primary);
  color: var(--color-on-primary);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-ambient);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-header-cta:hover {
  background-color: var(--color-tertiary);
  transform: translateY(-2px);
  color: var(--color-on-primary);
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1010;
}

.mobile-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #ffffff; /* Branco no topo para destacar no fundo escuro */
  margin: 5px 0;
  transition: all 0.3s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Quando der scroll e o header ficar claro, o ícone do mobile volta a ficar escuro */
header.scrolled .mobile-nav-toggle span {
  background-color: var(--color-tertiary);
  box-shadow: none;
}

/* --- HERO SECTION (FULLSCREEN LAYOUT) --- */
.hero-fullscreen {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Alinhamento à esquerda, ou center para centralizado */
  background-color: var(--color-surface);
  background-image: url('../assets/images/Design-sem-nome-10.png');
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
  padding-top: 6rem;
  padding-bottom: 5rem;
  overflow: hidden;
}

/* Camada escura sobre a imagem para garantir a leitura do texto */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 1;
}

.hero-fullscreen-container {
  position: relative;
  z-index: 2; /* Fica acima do overlay */
  width: 100%;
  display: flex;
  flex-direction: column;
}

.hero-fullscreen-text {
  max-width: 700px;
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-seo-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-primary-light);
  margin-bottom: 1.25rem;
  background: rgba(166, 115, 87, 0.1);
  padding: 0.4rem 1rem;
  border-radius: var(--rounded-full);
}

.hero-seo-tag-light {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.15;
  color: var(--color-tertiary);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.hero-title-light {
  color: #ffffff;
}

.hero-title em {
  font-style: italic;
  font-weight: 600;
  color: var(--color-primary); /* Terracota primary */
}

.hero-title-light em {
  color: var(--color-secondary); /* Laranja destaca melhor no fundo escuro */
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--color-on-surface-variant);
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-subtitle-light {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 992px) {
  .hero-fullscreen {
    padding-top: 8rem;
    min-height: auto;
    padding-bottom: 6rem;
    background-position: center;
    justify-content: center;
  }
  
  .hero-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.8) 100%);
  }

  .hero-fullscreen-text {
    text-align: center;
    margin: 0 auto;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas {
    justify-content: center;
  }
}

/* --- CLINICAL CREDENTIALS (NUMBERS) --- */
.credentials-bar {
  background-color: var(--color-surface-container-low);
  padding: 3rem 0;
  border-top: 1px solid rgba(214, 195, 186, 0.3);
  border-bottom: 1px solid rgba(214, 195, 186, 0.3);
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.credential-item h4 {
  font-size: 2.5rem;
  color: var(--color-primary);
  font-family: var(--font-display);
  margin-bottom: 0.25rem;
}

.credential-item p {
  font-size: 0.95rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0;
}

/* --- BIOGRAPHY (SOBRE MIM) --- */
.about-section {
  background-color: var(--color-surface-warm);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-matte {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-matte::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  right: 15px;
  bottom: 15px;
  background-color: var(--color-soft-clay);
  border-radius: var(--rounded-xl);
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-matte-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--rounded-xl);
  overflow: hidden;
  box-shadow: var(--shadow-ambient);
  z-index: 2;
  border: 4px solid var(--color-surface-container-lowest);
  background-color: var(--color-surface-container);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.about-matte-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Efeito de movimento ao passar o cursor */
.about-matte:hover .about-matte-inner {
  transform: translate(-8px, -8px);
  box-shadow: var(--shadow-hover);
}

.about-matte:hover::before {
  transform: translate(8px, 8px);
}

.about-matte:hover .about-matte-inner img {
  transform: scale(1.05);
}

.about-content h2 {
  margin-bottom: 1.5rem;
}

.about-bullets {
  list-style: none;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-bullets li {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--color-on-surface-variant);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.about-bullets li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-primary-light);
  flex-shrink: 0;
  margin-top: 0.5rem;
}

.crm-badge {
  display: inline-block;
  background-color: rgba(127, 81, 55, 0.08);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.4rem 1rem;
  border-radius: var(--rounded-sm);
  margin-top: 1.5rem;
}

/* --- SPECIALIZATIONS (ÁREAS DE ATUAÇÃO) --- */
.specialties-section {
  background-color: var(--color-surface);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.section-header h2 {
  font-size: 2.25rem;
}

.specialties-grid {
  display: grid;
  grid-template-columns: 1fr; /* 1 coluna no mobile */
  gap: 2.5rem;
}

.specialty-card {
  background-color: var(--color-surface-container-lowest);
  border-radius: var(--rounded-xl);
  padding: 3rem 2rem;
  box-shadow: var(--shadow-ambient);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(214, 195, 186, 0.15);
  display: flex;
  flex-direction: column;
}

/* Bento Grid Specialty card styles */
@media (min-width: 992px) {
  .specialties-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 colunas no desktop */
  }
  
  .specialty-card.bento-featured {
    grid-column: span 2; /* Ocupa as duas colunas inteiras na segunda linha */
    flex-direction: row;
    gap: 3rem;
    align-items: center;
    border-color: rgba(242, 147, 57, 0.2);
    background: linear-gradient(135deg, var(--color-surface-container-lowest) 0%, var(--color-surface-container-low) 100%);
  }
  
  .specialty-card.bento-featured .specialty-icon {
    margin-bottom: 0;
    flex-shrink: 0;
  }
}

.specialty-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-soft-clay);
}

.specialty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: rgba(127, 81, 55, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  color: var(--color-primary);
  transition: all 0.3s ease;
}

.specialty-card:hover .specialty-icon {
  background-color: var(--color-primary);
  color: var(--color-on-primary);
}

.specialty-icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.5;
}

.specialty-card h3 {
  margin-bottom: 1rem;
}

.specialty-card p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.specialty-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.specialty-list li {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-on-surface-variant);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.specialty-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-soft-clay);
}

/* --- LOCATIONS (CONSULTÓRIOS) --- */
.locations-section {
  background-color: var(--color-surface-warm);
}

.locations-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.location-tabs {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.location-tab {
  background: var(--color-surface-container-lowest);
  border: 1px solid rgba(214, 195, 186, 0.2);
  border-radius: var(--rounded-lg);
  padding: 1.75rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-ambient);
}

.location-tab:hover {
  border-color: var(--color-primary-light);
  transform: translateY(-2px);
}

.location-tab.active {
  border-color: var(--color-primary);
  background-color: var(--color-surface-container-low);
  box-shadow: inset 4px 0 0 0 var(--color-primary), var(--shadow-ambient);
}

.location-tab h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.location-tab.active h3 {
  color: var(--color-primary);
}

.location-tab p {
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.5;
}

/* Interactive Map Visual */
.map-container {
  position: relative;
  background-color: var(--color-surface-container-lowest);
  border-radius: var(--rounded-xl);
  overflow: hidden;
  box-shadow: var(--shadow-ambient);
  border: 4px solid var(--color-surface-container-lowest);
  aspect-ratio: 16 / 10;
  height: 100%;
  min-height: 380px;
}

.map-pane {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.map-pane.active {
  opacity: 1;
  visibility: visible;
}

.map-pane iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(20%) sepia(10%) contrast(90%);
}

/* --- FAQ SECTION --- */
.faq-section {
  background-color: var(--color-surface);
  border-top: 1px solid rgba(214, 195, 186, 0.2);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  background-color: var(--color-surface-container-lowest);
  border-radius: var(--rounded-lg);
  border: 1px solid rgba(214, 195, 186, 0.2);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-ambient);
}

.faq-question {
  width: 100%;
  padding: 1.5rem 2rem;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-tertiary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-primary-light);
  transition: transform 0.3s ease;
}

.faq-item.active {
  border-color: var(--color-primary-light);
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
  content: '+';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background-color: var(--color-surface-warm);
}

.faq-answer-inner {
  padding: 0 2rem 1.5rem 2rem;
  font-family: var(--font-body);
  font-size: 1rem;
}

.faq-answer p {
  font-size: 1rem;
  margin-bottom: 0;
}

/* --- CONTACT & SCHEDULING SECTION --- */
.contact-section {
  background-color: var(--color-surface-warm);
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-info-item {
  display: flex;
  gap: 1.25rem;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(127, 81, 55, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 22px;
  height: 22px;
}

.contact-info-text h4 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.contact-info-text p, 
.contact-info-text a {
  font-size: 0.95rem;
  margin-bottom: 0;
  color: var(--color-on-surface-variant);
}

/* Form Styles */
.contact-form {
  background-color: var(--color-surface-container-lowest);
  border-radius: var(--rounded-xl);
  padding: 3rem;
  box-shadow: var(--shadow-ambient);
  border: 1px solid rgba(214, 195, 186, 0.2);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.form-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--color-tertiary);
}

.form-control {
  width: 100%;
  padding: 0.875rem 1.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: var(--rounded-default);
  border: 1px solid var(--color-soft-clay);
  background-color: var(--color-surface-warm);
  color: var(--color-on-surface);
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: var(--color-surface-container-lowest);
  box-shadow: 0 0 0 3px rgba(127, 81, 55, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-feedback {
  margin-top: 1rem;
  font-size: 0.95rem;
  font-family: var(--font-body);
  display: none;
}

.form-feedback.success {
  display: block;
  color: #2e7d32;
}

.form-feedback.error {
  display: block;
  color: var(--color-error);
}

/* --- FOOTER --- */
footer {
  background-color: var(--color-tertiary);
  color: #fffbff;
  padding: 5rem 0 2rem 0;
  border-top: 1px solid rgba(214, 195, 186, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-logo {
  display: block;
  margin-bottom: 1.5rem;
}

.footer-logo img {
  height: 48px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s ease;
}

.footer-logo img:hover {
  opacity: 0.8;
}

.footer-brand p {
  color: rgba(255, 251, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
}

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

.footer-links-list a {
  color: rgba(255, 251, 255, 0.7);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

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

.footer-contact p {
  color: rgba(255, 251, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-contact a {
  color: rgba(255, 251, 255, 0.7);
}

.footer-contact a:hover {
  color: var(--color-secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 251, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255, 251, 255, 0.5);
  margin-bottom: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  font-size: 0.85rem;
  color: rgba(255, 251, 255, 0.5);
}

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

/* --- RESPONSIVENESS (MOBILE FIRST & BREAKPOINTS) --- */

@media (max-width: 1024px) {
  :root {
    --section-gap: 6rem;
  }
  
  .about-grid,
  .locations-layout,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-section {
    background-position: 75% center;
    padding-top: 8rem;
    padding-bottom: 4rem;
    min-height: 80vh;
  }
  
  .hero-container-layout {
    justify-content: center;
  }
  
  .hero-glass-card {
    max-width: 520px;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.85); /* Mais contraste para o texto no tablet */
  }
  
  .about-image {
    order: -1;
  }
  
  .about-matte {
    max-width: 320px;
  }
  
  .specialties-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  
  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  :root {
    --section-gap: 4rem;
    --margin-desktop: 1.5rem;
    --gutter: 1.25rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }

  p {
    font-size: 1rem;
  }

  /* ---- HEADER ---- */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--color-surface-container-lowest);
    box-shadow: -10px 0 30px rgba(74, 55, 45, 0.05);
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1005;
  }
  
  .nav-menu.open {
    right: 0;
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  .mobile-nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .mobile-nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  /* ---- HERO — Card menor e mais compacto ---- */
  .hero-section {
    background-position: 72% center;
    padding-top: 5.5rem;
    padding-bottom: 2.5rem;
    min-height: 100dvh;
    align-items: flex-start;
  }

  .hero-container-layout {
    justify-content: flex-start;
    padding-top: 1rem;
  }
  
  .hero-glass-card {
    padding: 1.5rem 1.25rem;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 24px rgba(74, 55, 45, 0.08);
    border-radius: var(--rounded-lg);
  }
  
  .hero-seo-tag {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    margin-bottom: 0.75rem;
  }

  .hero-title {
    font-size: 1.55rem;
    line-height: 1.3;
    margin-bottom: 0.875rem;
  }

  .hero-subtitle {
    font-size: 0.975rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
  }
  
  .btn-hero-cta {
    padding: 0.85rem 1.75rem;
    font-size: 0.975rem;
    width: 100%;
    justify-content: center;
  }

  /* ---- CREDENTIALS BAR ---- */
  .credentials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .credential-item h4 {
    font-size: 1.85rem;
  }

  /* ---- ABOUT ---- */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image {
    order: -1;
  }

  .about-matte {
    max-width: 260px;
  }

  .about-bullets {
    margin-top: 1.25rem;
    gap: 0.75rem;
  }

  .about-bullets li {
    font-size: 0.975rem;
  }

  /* ---- SPECIALTIES ---- */
  .specialties-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .specialty-card {
    padding: 2rem 1.5rem;
  }

  /* ---- LOCATIONS ---- */
  .locations-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .location-details-card {
    padding: 1.5rem;
  }

  .map-container,
  .single-map-container {
    min-height: 280px;
    aspect-ratio: auto;
  }

  /* ---- CONTACT ---- */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .contact-form {
    padding: 1.75rem 1.25rem;
  }

  .contact-info {
    gap: 1.75rem;
  }

  /* ---- FAQ ---- */
  .faq-question {
    font-size: 1.05rem;
    padding: 1.25rem 1.5rem;
  }

  .faq-answer-inner {
    padding: 0 1.5rem 1.25rem 1.5rem;
  }

  /* ---- FOOTER ---- */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-brand {
    grid-column: span 1;
  }

  .footer-logo img {
    height: 40px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-bottom-links {
    justify-content: center;
  }
}

/* ---- EXTRA SMALL PHONES (< 480px) ---- */
@media (max-width: 480px) {
  :root {
    --section-gap: 3.5rem;
    --gutter: 1rem;
  }

  /* Hero — extremely compact */
  .hero-section {
    padding-top: 5rem;
    padding-bottom: 2rem;
    background-position: 80% center;
  }

  .hero-glass-card {
    padding: 1.25rem 1rem;
    border-radius: var(--rounded-md);
  }

  .hero-seo-tag {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
  }

  .hero-title {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
  }

  .btn-hero-cta {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  /* Credentials — full-width 2-col */
  .credentials-grid {
    gap: 1rem;
  }

  .credential-item h4 {
    font-size: 1.6rem;
  }

  /* About photo smaller */
  .about-matte {
    max-width: 220px;
  }

  /* Section headers compact */
  .section-header {
    margin-bottom: 2.5rem;
  }

  /* Map height */
  .map-container,
  .single-map-container {
    min-height: 240px;
  }

  /* Specialty card compact */
  .specialty-card {
    padding: 1.5rem 1.25rem;
  }

  /* Footer bottom text wrap */
  .footer-bottom p {
    font-size: 0.8rem;
  }
}

/* --- FLOAT WHATSAPP BUTTON --- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3), 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  text-decoration: none;
}

.whatsapp-float-icon {
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08) translateY(-4px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45), 0 6px 12px rgba(0, 0, 0, 0.15);
}

.whatsapp-float:hover .whatsapp-float-icon {
  transform: rotate(10deg);
}

/* Tooltip / Bubble */
.whatsapp-float-tooltip {
  position: absolute;
  right: 76px;
  background-color: #fff;
  color: #1b1c1b;
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(214, 195, 186, 0.3);
}

.whatsapp-float-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background-color: #fff;
  border-right: 1px solid rgba(214, 195, 186, 0.3);
  border-top: 1px solid rgba(214, 195, 186, 0.3);
}

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

/* Pulse Animation Ring */
.whatsapp-float::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #25D366;
  opacity: 0.3;
  z-index: -1;
  animation: pulse-ring 2.5s infinite;
}

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

/* Adjustments for Mobile Screens */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
  }
  
  .whatsapp-float-icon {
    width: 28px;
    height: 28px;
  }
  
  .whatsapp-float-tooltip {
    display: none; /* Hide tooltips on mobile to prevent overlapping */
  }
}


