/* ================= VARIABLES / RESETS ==================== */
:root {
  /* Cores Principais */
  --dark-blue: #0F2A44;
  --gold: #C6A75E;
  --gold-hover: #b3924f;
  
  /* Cores de Apoio */
  --bg-main: #F8F8F9;
  --white: #FFFFFF;
  --text-dark: #1B1B1F;
  --text-muted: #4F5B73;
  --border-light: rgba(15, 42, 68, 0.06);
  
  /* Efeitos e Bordas */
  --shadow-sm: 0 10px 30px rgba(15, 42, 68, 0.06);
  --shadow-md: 0 18px 40px rgba(15, 42, 68, 0.08);
  --shadow-lg: 0 32px 75px rgba(15, 42, 68, 0.12);
  --radius: 24px;
  
  /* Fontes */
  --font-title: 'Montserrat', sans-serif;
  --font-body: 'Public Sans', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden; /* Evita qualquer quebra ou rolagem lateral */
}

/* Regra de ouro para imagens ficarem inteiras e responsivas */
img {
  width: 100%;
  height: auto; 
  display: block;
  object-fit: contain; /* Garante que a imagem apareça 100% inteira */
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* ================= COMPONENTES / ELEMENTOS ==================== */
.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto; /* Centraliza perfeitamente o conteúdo na tela */
}

h1, h2, h3, .brand strong {
  font-family: var(--font-title), sans-serif;
  color: var(--dark-blue);
  font-weight: 700;
}

/* Botões */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border-radius: 999px;
  padding: 0.95rem 1.6rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gold);
  color: var(--dark-blue);
  box-shadow: 0 10px 25px rgba(198, 167, 94, 0.2);
}

.btn-primary:hover {
  background: var(--gold-hover);
}

.btn-secondary {
  background: transparent;
  border-color: rgba(15, 42, 68, 0.2);
  color: var(--dark-blue);
}

.btn-secondary:hover {
  background: rgba(15, 42, 68, 0.04);
}

.btn-block {
  width: 100%;
}

/* Títulos de Seção */
.section-heading {
  text-align: center;
  margin: 5rem 0 3rem;
  width: 100%;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.section-heading h2, .about-copy h2, .contact-info h2 {
  margin-top: 0.5rem 0 0;
  font-size: clamp(2rem, 3vw, 2.5rem);
  line-height: 1.2;
  text-align: inherit; /* Herda o alinhamento do pai */
}

/* Ícones */
.icon-circle {
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important; /* Força o círculo perfeito eliminando o quadrado */
  display: flex !important;       /* Alinha a imagem perfeitamente ao centro */
  align-items: center !important;
  justify-content: center !important;
  background: rgba(15, 42, 68, 0.06);
  color: var(--dark-blue);
  flex-shrink: 0 !important;      /* Impede distorções em telas menores */
  overflow: hidden !important;    /* Corta qualquer rebarba da imagem para fora do círculo */
}

.icon-circle.primary {
  background: rgba(198, 167, 94, 0.18);
  color: var(--gold);
}

.icon-circle img {
  width: 60% !important;          /* Faz a imagem ocupar o tamanho ideal dentro do círculo */
  height: 60% !important;
  object-fit: contain !important; /* Impede que a foto fique esticada ou amassada */
}

/* Animações (Fade In) */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================= ESTRUTURA ==================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 246, 247, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-icon {
  width: 50px;
  height: 50px;
  border-radius: 50% !important;
  background: linear-gradient(135deg, var(--gold), #f8e9c7);
  color: var(--dark-blue);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 15px rgba(198, 167, 94, 0.2);
  flex-shrink: 0; /* Garante que o ícone não encolha em telas menores */
  font-size: 1.3rem; 
}

.brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.brand strong {
  display: block;
  font-family: var(--font-title);
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--dark-blue);
}

.nav-toggle {
  border: none;
  background: transparent;
  color: var(--dark-blue);
  font-size: 1.5rem;
  cursor: pointer;
}

.nav-menu {
  display: none;
}

.site-footer {
  padding: 3rem 0;
  background: var(--dark-blue);
  color: var(--white);
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}

.footer-socials {
  display: flex;
  gap: 1.2rem;
}

.footer-socials a:hover {
  color: var(--gold);
}

/* ================= Ajuste da logo ==================== */

.procedure-logo {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Faz a logo caber inteira sem cortar */
  padding: 6px;        
}

.header-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  border-radius: 50%; 
}

.icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50% !important; /* Força o circulo perfeito */
  display: flex !important; /* Garante o alinhamento */
  align-items: center !important; /* Alinha o conteúdo verticalmente */
  justify-content: center !important;
  background: rgba(15, 42, 68, 0.06);
  color: var(--dark-blue);
  font-size: 1.3rem;
  flex-shrink: 0; /* Garante que o ícone não encolha em telas menores */
  overflow: hidden; /* Garante que o conteúdo dentro do círculo não ultrapasse os limites */
}


/* ================= CONTEÚDO ==================== */

/* Estrutura base dos Grids Globais */
.hero-grid,
.about-card,
.procedures-grid,
.highlights-grid,
.gallery-grid,
.contact-grid {
  display: grid;
  gap: 2rem;
  width: 100%;
}

/* Hero */
.hero {
  padding: 4rem 0 2rem;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.1;
}

.hero p {
  max-width: 42rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

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

.hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white); /* Caso a imagem seja menor, ganha fundo limpo */
}

/* Sobre */
.about-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  align-items: center;
}

.about-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.about-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.about-copy p {
  color: var(--text-muted);
}

.about-copy strong {
  margin-top: 0.5rem;
  color: var(--dark-blue);
  font-size: 1.1rem;
  font-family: var(--font-title);
}

/* Procedimentos */
.procedure-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  
  /* Centralização */
  
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.procedure-card .icon-circle {
  margin: 0 auto;
}

.procedure-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.procedure-card h3 {
  margin: 1.2rem 0 0.8rem;
  font-size: 1.25rem;
}

.procedure-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.procedure-card, .section-heading {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Diferenciais */
.highlight-card {
  background: var(--white);
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.highlight-card i {
  color: var(--gold);
  font-size: 1.5rem;
}

.highlight-card h3 {
  font-size: 1.05rem;
}

/* Galeria */
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3; /* Cria uma proporção perfeita (Retângulo clássico) */
  object-fit: cover;    /* Preenche o espaço cortando sobras de forma inteligente sem distorcer */
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background: var(--white);
  transition: transform 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.02); /* Aumenta ligeiramente a imagem ao passar o mouse por cima */
}

/* Contato */
.contact-grid {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  margin-top: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2rem;
}

.contact-info h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.contact-info p {
  color: var(--text-muted);
}

.contact-info a {
  color: var(--dark-blue);
  font-weight: 600;
}

.contact-info a:hover {
  color: var(--gold);
}

.map-frame {
  height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

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

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

/* Telas de Celular (Abaixo de 768px) */
@media (max-width: 767px) {
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
    align-items: center;
  }

  .nav-menu a {
    font-weight: 600;
    color: var(--dark-blue);
    width: 100%;
    text-align: center;
  }

  .btn-whatsapp {
    display: none; /* Ocultado para evitar desalinhamento */
  }

  /* Ajustes de Grid para uma coluna no mobile */
  .hero-grid, .about-card, .procedures-grid, .highlights-grid, .gallery-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .highlight-card {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
}

/* Tablets e Computadores (Acima de 768px) */
@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    display: flex;
    gap: 1.8rem;
  }

  .nav-menu a {
    font-weight: 600;
    color: var(--dark-blue);
  }

  .nav-menu a:hover {
    color: var(--gold);
  }

  /* Organização das colunas lado a lado */
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .about-card {
    grid-template-columns: 1fr 1.2fr;
  }

  .procedures-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .highlights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

/* Telas Grandes / Desktops Premium (Acima de 1024px) */
@media (min-width: 1024px) {
  .hero {
    padding: 6rem 0 4rem;
  }

  .procedures-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .highlights-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}