:root {
  /* Cores Principais - Tons pasteis e elegantes (Design System Original) */
  --color-primary: #9DB4AB; /* Soft Sage Green */
  --color-primary-dark: #7A9087;
  --color-secondary: #E3D9D5; /* Nude / Warm Beige */
  --color-accent: #C2A594; /* Soft Terracotta */
  
  /* Neutras */
  --color-background: #FAFAFA;
  --color-surface: #FFFFFF;
  --color-text-main: #3E4B45;
  --color-text-light: #76817C;
  --color-border: #E8EBE9;

  /* Tipografia */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  /* Estética */
  --radius-pill: 50px;
  --radius-full: 50px; /* Conserta o menu e botões quadrados */
  --radius-lg: 16px;
  --shadow-base: 0 10px 30px rgba(62, 75, 69, 0.05);
  --shadow-hover: 0 15px 35px rgba(62, 75, 69, 0.08);
  --transition: 0.3s ease;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--color-background);
  color: var(--color-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ================== TYPOGRAPHY ================== */
h1, h2, .hero h1 {
  font-family: var(--font-heading);
  font-size: 3.8rem;
  line-height: 1.1;
  color: var(--color-text-main);
  margin-bottom: 1.5rem;
  font-weight: 500;
  font-style: italic;
  text-shadow: 0 4px 20px rgba(255,255,255,0.8);
}

/* ================== NAVEGAÇÃO ================== */
.pill-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 1rem;
  justify-content: center;
  padding: 1.5rem;
  flex-wrap: wrap;
  z-index: 100;
}

.pill {
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--color-text-main);
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.4);
  white-space: nowrap;
}

.pill:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  color: var(--color-primary-dark);
}

/* ================== BOTÕES ================== */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-surface);
  padding: 1rem 2.5rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(157, 180, 171, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 25px rgba(157, 180, 171, 0.5);
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
}

/* ================== HERO SECTION (FUNDO COM IMAGEM) ================== */
.hero {
  position: relative;
  background-color: var(--color-background); 
  background-image: url('assets/dra-maisa.jpg');
  background-size: 65%; /* Aumentado a escala da foto */
  background-position: right -80px; /* Sobe a imagem um pouco além do limite superior */
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Difusão colando na cor sólida de fundo */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  /* Gradiente mais forte na área do corte da imagem (que começa em ~35%) para mascarar a linha dura */
  background: linear-gradient(to right, var(--color-background) 30%, rgba(250,250,250, 0.95) 40%, rgba(250,250,250, 0.4) 55%, transparent 80%);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.hero-content {
  max-width: 550px;
}

.hero-subtitle {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.5rem;
  color: var(--color-primary-dark);
  font-weight: 600;
}

.hero p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.hero-content strong {
  color: var(--color-primary-dark);
  font-weight: 600;
}

/* ================== SERVICES SECTION ================== */
.services {
  background-color: var(--color-background);
  padding: 6rem 2rem;
  text-align: center;
}

.services-title {
  font-size: 3.5rem;
  color: var(--color-text-main);
  margin-bottom: 2rem;
  font-style: italic;
}

.services-desc {
  max-width: 800px;
  margin: 0 auto 4rem auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text-light);
}

.services-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem 2rem;
}

.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 2rem;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-item:hover {
  transform: translateY(-12px);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border-color: #fff;
}

.service-icon {
  font-size: 3.5rem;
  color: var(--color-primary-dark);
  margin-bottom: 1.2rem;
}

.service-item h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--color-text-main);
}

.service-item p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ================== ABOUT SECTION ================== */
.about {
  background-color: var(--color-background);
  padding: 8rem 2rem;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  height: 100%;
}

.about-image img {
  width: 100%;
  height: 100%;
  max-height: 600px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  display: block;
}

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

.about-content h2 {
  font-size: 3.2rem;
  margin-bottom: 0.5rem;
  font-style: italic;
  color: var(--color-text-main);
}

.about-crm {
  font-size: 1rem;
  color: var(--color-primary-dark);
  margin-bottom: 2.5rem;
  display: block;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.about-content p {
  margin-bottom: 1.5rem;
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--color-text-light);
}

/* ================== LOCATION & CLINIC ================== */
.location {
  background-color: var(--color-surface);
  padding: 6rem 2rem;
}

.gallery {
  max-width: 1200px;
  margin: 0 auto 4rem auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.gallery img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-base);
}

.contact-card {
  background-color: var(--color-background);
  max-width: 1000px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--color-border);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  min-height: 350px;
}

.contact-info {
  background-color: var(--color-surface);
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
}

.contact-info h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.contact-info p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.contact-info .btn {
  margin-top: 1.5rem;
  align-self: flex-start;
}

/* ================== RESPONSIVE ================== */
@media (max-width: 900px) {
  .hero {
    background-size: 150%; /* Aumenta a foto para preencher bem o topo */
    background-position: right top; /* Mantém ela alinhada no topo */
    align-items: flex-end; /* Empurra o contêiner do texto para a base da tela */
    padding-bottom: 3rem;
  }

  .hero::before {
    /* Difusão que vem de BAIXO para CIMA: fundo sólido no texto e vai apagando até revelar a foto no topo */
    background: linear-gradient(to top, var(--color-background) 30%, rgba(250, 250, 250, 0.95) 50%, rgba(250, 250, 250, 0.4) 65%, transparent 85%);
  }
  
  .hero-container {
    text-align: center;
    padding-top: 50vh; /* Dá um super espaço vazio no topo para a foto dela aparecer sozinha e inteira */
  }

  .hero-content {
    margin: 0 auto;
  }
  
  .hero h1 {
    font-size: 2.3rem;
  }
  
  .contact-card {
    grid-template-columns: 1fr;
  }
  
  .contact-info {
    padding: 2rem;
    align-items: center;
    text-align: center;
  }
  
  .contact-info .btn {
    align-self: center;
  }
}

/* ================== ANIMATIONS ================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger para grids */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }
.delay-7 { transition-delay: 0.7s; }
