:root {
  --background: hsl(140 20% 98%);
  --foreground: hsl(160 30% 10%);
  --card: hsl(0 0% 100%);
  --primary: hsl(155 72% 40%);
  --secondary: hsl(150 35% 95%);
  --muted: hsl(160 10% 42%);
  --border: hsl(150 15% 90%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--background);
  color: var(--foreground);
}

.container { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.hidden { display: none !important; }
.text-gradient {
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  background-image: linear-gradient(135deg, hsl(155 72% 40%), hsl(170 60% 45%));
}

.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1rem; }
.logo-link { display: flex; align-items: center; gap: .625rem; text-decoration: none; color: var(--foreground); font-size: 1.25rem; font-weight: 800; }
.logo { height: 3.2rem; width: auto; object-fit: contain; flex-shrink: 0; display: block; }
.logo.small { height: 2.8rem; width: auto; object-fit: contain; flex-shrink: 0; }
.desktop-nav { display: none; gap: 2rem; align-items: center; }
.desktop-nav > a { text-decoration: none; color: var(--muted); font-size: .875rem; font-weight: 500; transition: color 0.2s; }
.desktop-nav > a:hover { color: var(--foreground); }
.menu-toggle { border: 0; background: transparent; color: var(--foreground); display: flex; align-items: center; padding: .5rem; cursor: pointer; }

.mobile-menu { position: absolute; top: 100%; left: 0; right: 0; background: var(--card); padding: 1.5rem; border-bottom: 1px solid var(--border); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); z-index: 100; }
.mobile-links { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.mobile-menu a { text-decoration: none; color: var(--muted); font-weight: 500; }

.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem; text-decoration: none;
  background: var(--primary); color: #ffffff !important; font-weight: 700; font-size: .875rem;
  padding: .625rem 1.5rem; border-radius: 999px;
}
.btn-primary:hover { background: hsl(155 72% 35%); transform: translateY(-1px); }
.btn-primary.full { justify-content: center; width: 100%; margin-top: .5rem; }
.btn-dark {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--foreground); color: #ffffff;
  text-decoration: none; border-radius: 1rem; padding: .875rem 1.5rem; font-size: .875rem; font-weight: 700;
}

.hero { position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(135deg, var(--secondary), var(--background), var(--secondary)); }
.hero-blob { position: absolute; border-radius: 999px; filter: blur(64px); }
.blob-1 { top: -120px; right: -120px; width: 400px; height: 400px; background: hsl(155 72% 40% / .1); }
.blob-2 { bottom: -80px; left: -80px; width: 300px; height: 300px; background: hsl(155 72% 40% / .05); }
.hero-content { position: relative; z-index: 1; padding-top: 4rem; padding-bottom: 4rem; display: grid; gap: 3rem; }
.hero h1 { font-size: 2.25rem; line-height: 1.1; margin: 0 0 1.25rem; font-weight: 800; }
.subtitle { color: var(--muted); margin: 0 0 2rem; max-width: 34rem; }
.chip { display: inline-flex; align-items: center; gap: .5rem; background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: .375rem 1rem; font-size: .75rem; font-weight: 700; margin-bottom: 1.5rem; }
.chip.secondary { background: var(--secondary); color: hsl(155 72% 28%); border: 0; }
.search-wrap { max-width: 32rem; position: relative; }
.search-bar { background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: .375rem; display: flex; box-shadow: 0 20px 30px hsl(155 72% 40% / .08); }
.search-bar input { flex: 1; border: 0; outline: 0; padding: .75rem 1rem; background: transparent; font-size: .875rem; color: var(--foreground); }
.search-bar button { display: inline-flex; align-items: center; gap: .5rem; border: 0; cursor: pointer; background: var(--primary); color: #fff; border-radius: .75rem; padding: .75rem 1.25rem; font-weight: 700; font-size: .875rem; }
.search-dropdown {
  position: absolute; left: 0; right: 0; top: calc(100% + .5rem);
  background: var(--card); border: 1px solid var(--border); border-radius: .75rem;
  overflow: auto; max-height: 15rem; box-shadow: 0 24px 48px hsl(160 30% 10% / .16);
}
.search-item { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; font-size: .875rem; color: var(--foreground); text-decoration: none; }
.search-item:hover { background: var(--secondary); }
.search-dot { width: .5rem; height: .5rem; border-radius: 999px; background: var(--primary); }
.search-empty { padding: .75rem 1rem; color: var(--muted); font-size: .875rem; }
.hero-actions { margin-top: 1.5rem; }
.stats { display: flex; gap: 1.5rem; margin-top: 2.5rem; flex-wrap: wrap; }
.stats strong { display: block; color: var(--primary); font-size: 1.5rem; font-weight: 800; }
.stats span { color: var(--muted); font-size: .75rem; }

.hero-image-box { display: block; position: relative; margin-top: 2rem; width: 100%; }
.hero-image-wrap {
  border-radius: 1.5rem; overflow: hidden; border: 1px solid var(--border); 
  box-shadow: 0 24px 40px hsl(155 72% 40% / .12); background: #000;
  position: relative; width: 100%;
}
/* Apenas o container do vídeo na Hero mantém a proporção 16:9 */
.hero-content .hero-image-wrap { aspect-ratio: 16/9; }

.hero-video, .hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-time { position: absolute; bottom: -0.5rem; left: 0.5rem; background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 0.75rem 1rem; box-shadow: 0 16px 24px hsl(160 30% 10% / .12); z-index: 10; }
.hero-time p { margin: 0 0 .25rem; font-size: .75rem; color: var(--muted); }
.hero-time strong { display: block; font-size: .875rem; margin-bottom: .125rem; }

.section { padding: 3rem 1rem; }
.card-bg { background: var(--card); }
.section h2 { font-size: 2rem; margin: 0 0 .75rem; }
.section-head.center { text-align: center; max-width: 42rem; margin: 0 auto 3rem; }
.section-head p, .muted { color: var(--muted); line-height: 1.65; }

.specialties-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.specialty-item {
  text-decoration: none; color: inherit;
  border: 1px solid var(--border); border-radius: 1rem; background: hsl(150 35% 95% / .5);
  padding: 1.25rem; text-align: center; transition: .2s;
}
.specialty-item:hover { background: var(--primary); color: #fff; border-color: hsl(155 72% 40% / .2); box-shadow: 0 12px 24px hsl(155 72% 40% / .2); }
.specialty-icon { width: 3rem; height: 3rem; margin: 0 auto .75rem; border-radius: .75rem; background: var(--card); display: grid; place-items: center; }
.specialty-item h3 { margin: 0 0 .25rem; font-size: .875rem; }
.specialty-item p { margin: 0; font-size: .75rem; color: var(--muted); }
.specialty-item:hover p { color: hsl(0 0% 100% / .78); }

.exams-layout, .about-layout { display: grid; gap: 3rem; align-items: center; }
.exams-image { display: none; position: relative; }
.tag-box { position: absolute; top: -.75rem; right: -.75rem; background: var(--primary); color: #fff; border-radius: 1rem; padding: .75rem 1.25rem; }
.tag-box strong { display: block; font-size: 1.5rem; }
.tag-box span { font-size: .75rem; }
.exam-list { display: grid; gap: .75rem; }
.exam-item {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--border);
  border-radius: .75rem; padding: 1rem 1.25rem;
}
.exam-item:hover { border-color: hsl(155 72% 40% / .3); box-shadow: 0 8px 18px hsl(160 30% 10% / .08); }
.exam-item .left { display: flex; gap: .75rem; align-items: center; }
.exam-dot { width: .625rem; height: .625rem; border-radius: 999px; background: var(--primary); }
.exam-item p { margin: 0; }
.exam-item .name { font-size: .875rem; font-weight: 700; }
.exam-item .desc { font-size: .75rem; color: var(--muted); }
.arrow { opacity: 0; color: var(--muted); }
.exam-item:hover .arrow { opacity: 1; color: var(--primary); }

.about-images { display: block; position: relative; width: 100%; margin-top: 2rem; }
.about-images .hero-image-wrap { aspect-ratio: 4/5; max-height: 380px; }
.about-small { position: absolute; width: 35%; left: -5%; bottom: 5%; border: 3px solid var(--card); border-radius: 0.75rem; overflow: hidden; box-shadow: 0 14px 24px rgba(0,0,0,0.15); z-index: 2; }
.about-small img { width: 100%; height: 100%; display: block; object-fit: cover; aspect-ratio: 4/3; }
.features-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 1.5rem; }
.feature-item { display: flex; gap: .75rem; align-items: flex-start; }
.feature-icon { width: 2.5rem; height: 2.5rem; border-radius: .75rem; background: var(--secondary); display: grid; place-items: center; color: var(--primary); }
.feature-item strong { display: block; font-size: .875rem; margin-bottom: .25rem; }
.feature-item p { margin: 0; font-size: .75rem; color: var(--muted); }

.location-layout { display: grid; gap: 2rem; }
.location-cards { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.loc-card { background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 1.5rem; }
.loc-card:hover { box-shadow: 0 8px 18px hsl(160 30% 10% / .08); }
.loc-icon { width: 2.5rem; height: 2.5rem; border-radius: .75rem; background: var(--secondary); display: grid; place-items: center; color: var(--primary); margin-bottom: .75rem; }
.loc-title { margin: 0 0 .25rem; font-size: .875rem; font-weight: 700; }
.loc-body { margin: 0; font-size: .75rem; color: var(--muted); line-height: 1.6; }
.loc-body a { color: var(--primary); font-weight: 600; text-decoration: none; }
.map-wrap { border-radius: 1rem; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 16px 24px hsl(160 30% 10% / .14); min-height: 20rem; }

.footer { background: var(--foreground); padding: 3rem 1rem; }
.footer-grid { display: grid; gap: 2rem; margin-bottom: 2rem; }
.footer-brand { display: flex; gap: .625rem; align-items: center; margin-bottom: .75rem; color: #fff; font-weight: 800; }
.footer p { color: hsl(0 0% 100% / .5); font-size: .75rem; line-height: 1.7; margin: 0; }
.footer h3 { margin: 0 0 .75rem; color: hsl(0 0% 100% / .7); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.footer a, .footer-contact-info { color: hsl(0 0% 100% / .5); text-decoration: none; font-size: .875rem; display: flex; gap: .5rem; align-items: center; margin-bottom: .5rem; transition: color .2s; }
.footer-contact-info { align-items: flex-start; }
.footer a:hover { color: hsl(0 0% 100% / .8); }
.footer-bottom { border-top: 1px solid hsl(0 0% 100% / .1); padding-top: 1.5rem; text-align: center; }
.footer-bottom p { color: hsl(0 0% 100% / .3); }

.whatsapp-fab {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 50;
  width: 3.5rem; height: 3.5rem; border-radius: 999px; display: grid; place-items: center;
  background: hsl(142 70% 45%); color: #fff; box-shadow: 0 10px 24px hsl(142 70% 45% / .3);
}
.whatsapp-fab:hover { transform: scale(1.1); }

i[data-lucide] { width: 1rem; height: 1rem; stroke-width: 2.2; }

@media (min-width: 768px) {
  .desktop-nav { display: flex; }
  .menu-toggle { display: none; }
  .logo { height: 4.2rem; }
  .section { padding: 6rem 1rem; }
  .hero-content { grid-template-columns: 1fr 1.4fr; align-items: center; padding-top: 6rem; padding-bottom: 6rem; }
  .hero h1 { font-size: 3.4rem; }
  .hero-image-box { margin-top: 0; }
  .hero-time { bottom: 2rem; left: -2.5rem; z-index: 10; }
  .exams-image { display: block; }
  .about-images { margin-top: 0; max-width: 400px; justify-self: flex-end; }
  .about-images .hero-image-wrap { aspect-ratio: 4/5; max-height: 550px; }
  .about-small { display: block; position: absolute; width: 40%; left: -5%; bottom: 5%; border: 4px solid var(--card); border-radius: 1rem; overflow: hidden; box-shadow: 0 14px 24px rgba(0,0,0,0.2); z-index: 2; }
  .about-layout { grid-template-columns: 1.4fr 1fr; gap: 4rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .specialties-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .exams-layout, .location-layout { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .location-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (min-width: 1024px) {
  .specialties-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
}
