* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f9fbfc;
  color: #0d1b2a;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 100%;
  margin: 0 auto;
}

.topbar {
  background-color: #003366;
  color: white;
  font-size: 0.9rem;
  padding: 0.5rem 0;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topbar a {
  color: white;
  margin-left: 1rem;
}

.lang-switcher select {
  background: white;
  color: #0d1b2a;
  border: 1px solid #ccc;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
}

.header {
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid #f0f4f8;
}

.header-inner {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.5rem;
  gap: 2rem;
}

.logo img {
  max-height: 55px;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.20);
}

.nav-menu .social-mobile {
  display: none; 
  margin-top: 1rem;
  text-align: center;
}

.nav-menu .social-mobile a {
  font-size: 1.5rem;
  margin: 0 10px;
  color: #333;
}

.footer-col.social-col {
  display: block;
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav li {
  position: relative;
}

nav a {
  text-decoration: none;
  color: #0d1b2a;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #003366 0%, #3399ff 100%);
  transition: width 0.3s ease;
}

nav a:hover {
  color: #005b99;
}

nav a:hover::after {
  width: 100%;
}

.social-desktop {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-right: 15px;
}

.social-desktop a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f5f5f5;
  color: #333;
  font-size: 16px;
  transition: all 0.3s ease;
}

.social-desktop a:hover {
  background: #007bff;
  color: #fff;
  transform: scale(1.1);
}

.search-bar {
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid #ddd;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  height: 42px;
  transition: all 0.3s ease;
}

.search-bar:hover {
  box-shadow: 0 4px 10px rgba(0, 51, 102, 0.15);
}

.search-bar input {
  border: none;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  outline: none;
  width: 200px;
  transition: width 0.3s ease;
}

.search-bar input:focus {
  width: 240px;
}

.search-bar button {
  background: linear-gradient(90deg, #003366 0%, #3399ff 100%);
  border: none;
  padding: 0 1rem;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}
/* === A.A.S === */
.search-bar button:hover {
  background: linear-gradient(90deg, #002244 0%, #1a8cff 100%);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #003366;
  margin-left: auto;
}

.btn-primary {
  background: linear-gradient(90deg, #003366 0%, #3399ff 100%);
  color: #fff;
  padding: 0.75rem 1.6rem;
  border-radius: 32px;
  border: 1px solid #004080;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 51, 102, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(90deg, #002244 0%, #1a8cff 100%);
  box-shadow: 0 6px 18px rgba(0, 51, 102, 0.3);
  transform: translateY(-2px);
}

.btn-secondary {
  background: linear-gradient(90deg, #cce6ff 0%, #80c1ff 100%);
  color: #003366;
  padding: 0.75rem 1.6rem;
  border-radius: 32px;
  border: 1px solid #66b3ff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: linear-gradient(90deg, #b3daff 0%, #66b3ff 100%);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #0077cc;
  padding: 0.75rem 1.6rem;
  border-radius: 32px;
  border: 2px solid #0077cc;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: #0077cc;
  color: #fff;
  transform: translateY(-2px);
}

.btn-primary i {
  margin-right: 0.5rem;
}

.btn-secondary i {
  margin-right: 0.5rem;
}

.btn-outline i {
  margin-right: 0.5rem;
}

#mainCarousel {
  position: relative;
}

#mainCarousel .carousel-item {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 650px; 
  height: 74vh;      
  background-size: cover;   
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
}

#mainCarousel .carousel-item.active {
  display: flex;
}

.carousel-inner {
  overflow: hidden;
}

.banner {
  width: 100%;
  height: auto;       
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.banner img {
    width: 100%;
    height: auto; 
    object-fit: none; 
    max-height: 100%;
    display: block;
}

.banner-slide-1 {
  background-image: url('../../images/1.jpg');
}

.banner-slide-2 {
  background-image: url('../../images/2.jpg');
}

.banner-slide-3 {
  background-image: url('../../images/3.jpg');
}

.banner-slide-4 {
  background-image: url('../../images/4.jpg');
}

.banner-slide-5 {
  background-image: url('../../images/5.jpg');
}

.banner-slide-6 {
  background-image: url('../../images/6.jpg');
}

.banner-slide-7 {
  background-image: url('../../images/7.jpg');
}

.banner-slide-8 {
  background-image: url('../../images/8.jpg');
}

.banner-slide-9 {
  background-image: url('../../images/9.jpg');
}

.banner-slide-10 {
  background-image: url('../../images/10.jpg');
}

.banner-slide-11 {
  background-image: url('../../images/11.jpg');
}

.banner-slide-12 {
  background-image: url('../../images/12.jpg');
}

.banner-slide-13 {
  background-image: url('../../images/13.jpg');
}

.banner-slide-14 {
  background-image: url('../../images/14.jpg');
}

.banner-slide-15 {
  background-image: url('../../images/15.jpg');
}

.banner-slide-16 {
  background-image: url('../../images/16.jpg');
}

.banner-slide-17 {
  background-image: url('../../images/17.jpg');
}

.banner-slide-18 {
  background-image: url('../../images/18.jpg');
}

.banner-slide-19 {
  background-image: url('../../images/19.jpg');
}

.banner-slide-20 {
  background-image: url('../../images/20.jpg');
}

.banner-slide-21 {
  background-image: url('../../images/21.jpg');
}

.banner-slide-22 {
  background-image: url('../../images/22.jpg');
}

.banner-slide-23 {
  background-image: url('../../images/23.jpg');
}

.banner-slide-24 {
  background-image: url('../../images/24.jpg');
}

.banner-slide-25 {
  background-image: url('../../images/25.jpg');
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.0);
  z-index: 1;
}


.banner-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
}

/* --- Texto lateral --- */
.banner-text {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  max-width: 500px;
  padding: 1rem 2rem;
  color: #fff;
  gap: 1.5rem;
  display: flex;
  flex-direction: column;
}

.banner-text h1 {
  font-size: clamp(1.4rem, 5vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 0.5rem;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.banner-text p {
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  margin-bottom: 0;
  max-width: 700px; /* evita linhas muito longas em telas grandes */
  margin-inline: auto;
}

/* Texto à esquerda */
.banner-text.position-left {
  left: -20%;
  text-align: left;
  align-items: flex-start;
}

/* Texto à direita */
.banner-text.position-right {
  right: -20%;
  text-align: right;
  align-items: flex-end;
}

/* --- Botão central independente --- */
.banner-content .btn-primary.abrir-modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.8rem 1.8rem;
  border-radius: 32px;
  box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3);
  text-align: center;
  white-space: nowrap;
}

.carousel-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 6px;
  width: 0;
  background: linear-gradient(90deg, #007bff, #005b99);
  z-index: 50;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

#mainCarousel .carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  gap: 8px;
}

#mainCarousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  transition: background-color 0.3s ease;
}

#mainCarousel .carousel-indicators button.active {
  background-color: #007bff;
}

.carousel-control-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 91, 153, 0.8);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 45;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.carousel-control-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 91, 153, 0.8);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 45;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.carousel-control-prev:hover {
  background-color: #003f66;
}

.carousel-control-next:hover {
  background-color: #003f66;
}

.carousel-control-prev {
  left: 15px;
}

.carousel-control-next {
  right: 15px;
}

.carousel-control-prev-icon {
  font-size: 24px;
  color: white;
  display: inline-block;
}

.carousel-control-next-icon {
  font-size: 24px;
  color: white;
  display: inline-block;
}

.carousel-control-prev-icon::before {
  content: '\276E';
  font-size: 24px;
  color: white;
}

.carousel-control-next-icon::before {
  content: '\276F';
  font-size: 24px;
  color: white;
}

.custom-control {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  z-index: 10;
  transition: background 0.3s, transform 0.3s;
}

.custom-control:hover {
  background: rgba(0,0,0,0.7);
  transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev.custom-control {
  left: 20px;
}

.carousel-control-next.custom-control {
  right: 20px;
}

.custom-arrow {
  font-size: 2rem;
  color: #fff;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.consultas-menu {
  display: block;
}

.especialidades-toggle {
  display: none; 
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 2rem;
  color: #003d66;
  background-color: #f0f0f0;
  padding: 0.75rem 1rem;
  border: none;
  width: 100%;
  text-align: left;
  border-radius: 12px; 
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.especialidades-toggle:hover,
.especialidades-toggle:focus {
  background-color: #e6f3ff; 
  transform: translateY(-1px);
}

.especialidades-toggle::after {
  content: '▼';
  float: right;
  transition: transform 0.3s ease;
}

.especialidades-toggle.active::after {
  transform: rotate(-180deg);
}

.consultas-menu.active .especialidades-toggle::after {
  transform: rotate(-180deg);
}

.consultas-menu ul {
  list-style: none;
  margin-top: 1rem;
  padding-left: 0;
}

.consultas-menu li {
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.2s ease;
}

.consultas-menu li:hover,
.consultas-menu li.active {
  background-color: #e0e0e0;
}
.consultas-inner {
  display: flex;
  flex-wrap: nowrap;
  gap: 2rem;
  align-items: flex-start;
}

.consultas-menu {
  flex: 1 1 250px;
  order: 1;
}

.consultas-img-container {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  order: 2;
}

.consultas-img {
  width: 100%;
  max-width: 350px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.consultas-text {
  flex: 2 1 400px;
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  order: 3;
}

.services {
  padding: 2rem 1rem;
  background-color: white;
  text-align: center;
}

.services h2 {
  color: #005b99;
  margin-bottom: 2rem;
}

.carousel-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.services-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1rem;
  padding-bottom: 1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}


.services-carousel::-webkit-scrollbar {
  display: none;
}

.service-item {
  flex: 0 0 calc((100% - 3rem) / 4); 
  scroll-snap-align: start;
  background-color: #f0f4f8;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
  min-height: 220px;
  transition: transform 0.3s ease;
}

.service-item i {
  font-size: 2rem;
  color: #005b99;
  margin-bottom: 1rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 91, 153, 0.8);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 10;
  transition: background-color 0.3s ease;
}

.carousel-btn:hover {
  background: #003f66;
}

.carousel-btn.prev {
  left: -24px;
}

.carousel-btn.next {
  right: -24px;
}

.carousel-btn svg {
  width: 24px;
  height: 24px;
  fill: white;
  transition: transform 0.3s ease;
  animation: bounce 2s infinite;
}

.carousel-btn:hover svg {
  transform: scale(1.2);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.about {
  padding: 2rem 1rem;
  background-color: #f9fbfc;
}

.about-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  align-items: stretch;
}

/* Texto */
.about-text {
  flex: 1;
  text-align: justify;
  background: #ffffff;       
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 8px 0 15px -5px rgba(0, 102, 255, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  z-index: 0; 
}

.about-text::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -50px;
  width: calc(100% + 100px);
  height: 100px;
  background: #e6f3ff;
  transform: skewY(-20deg);
  transform-origin: top left;
  z-index: 0; 
}

.about-text * {
  position: relative;
  z-index: 1; 
}

.about-text::after {
  content: '';
  position: absolute;
  bottom: -15px;          
  right: -50px;   
  width: calc(100% + 100px); 
  height: 100px;
  background: #e6f3ff; 
  transform: skewY(-20deg); 
  transform-origin: bottom right;
  z-index: 0;  
}

.about-text h2 {
  color: #005b99;
  margin-bottom: 2rem;
  text-align: left;
  font-size: 1.8rem; 
}

.about-text h3 {
  font-size: 1.5rem; 
  margin-top: 1.5rem;
  color: #003d66;
}

.about-text p {
  margin-bottom: 1rem;
  line-height: 1.8;
  text-align: justify;
  font-size: 1.125rem; 
}

.about-img {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body:not(.home) .banner {
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  color: white;
  overflow: hidden;
  height: 70vh;
  min-height: 500px;
  max-height: 1200px;
}

body:not(.home) .banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

body:not(.home) .banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2.5rem 1rem;
  width: 90%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

body:not(.home) .banner-text h1 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  margin-bottom: 1rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

body:not(.home) .banner-text p {
  font-size: clamp(1rem, 3vw, 1.2rem);
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

/* Botões no banner */
body:not(.home) .banner-buttons .btn-primary {
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  width: auto;
  max-width: 220px;
  display: inline-block;
  text-align: center;
}

footer {
  width: 100%;
  background: linear-gradient(135deg, #003355 0%, #005599 60%, #3399ff 100%);
  color: white;
  padding: 2.5rem 1.5rem 1rem;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  border-top-left-radius: 25px;
  border-top-right-radius: 25px;
}

footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
  pointer-events: none;
  border-radius: 25px 25px 0 0;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

/* COLUNAS */
.footer-section {
  flex: 1 1 200px;
  min-width: 180px;
  background: rgba(255,255,255,0.05);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  backdrop-filter: blur(4px);
  transition: transform 0.3s ease;
}

.footer-section:hover {
  transform: translateY(-4px);
}

.logo-section {
  flex: 2 1 260px;
  background: rgba(255,255,255,0.08);
}

.footer-title-main {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #ffffff;
  text-transform: uppercase;
}

.footer-icon {
  width: 32px;
  height: auto;
  flex-shrink: 0;
}

.footer-section h3 {
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  font-weight: 600;
  color: #ffffff;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 0.4rem;
}

.footer-section p {
  margin-top: 0.5rem;
  line-height: 1.6;
  font-size: 0.85rem;
  color: #d6e6f9;
}

/* LINKS */
.footer-links li {
  list-style: none;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.footer-links a {
  color: #eaf4ff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #66b3ff;
  text-shadow: 0 0 5px rgba(102, 179, 255, 0.6);
}


.socials {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.socials a {
  width: 30px;
  height: 30px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.socials a:hover {
  background: linear-gradient(135deg, #3399ff, #003366);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 4px 10px rgba(0, 51, 102, 0.35);
}


.footer-bottom {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.8rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  z-index: 1;
  font-size: 0.8rem;
  color: #cdd9e8;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom-links a {
  color: #a9d2ff;
  text-decoration: none;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.footer-bottom-links a:hover {
  color: #ffffff;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
}


.dev-link {
  color: #66b3ff;
  font-weight: 600;
}

.dev-link:hover {
  color: #ffffff;
  text-decoration: underline;
}


.footer-bottom-index {
  width: 100%;
  font-size: 14px;
  margin-top: 20px;
}

.footer-bottom-inner-index {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 45px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #eaf4ff;
  overflow: hidden; 
}


.footer-bottom-inner-index::before,
.footer-bottom-inner-index::after {
  content: "";
  position: absolute;
  width: 200%;
  height: 100%;
  top: 0;
  left: -50%;
  background: rgba(255, 255, 255, 0.1); 
  transform: skewY(-10deg); 
  z-index: 0;
}

.footer-bottom-inner-index::after {
  background: rgba(255, 255, 255, 0.08); 
  transform: skewY(10deg);
}

.footer-left,
.footer-right {
  position: relative;
  z-index: 1; 
}

.footer-left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  font-weight: 500;
  color: #eaf4ff;
  transition: color 0.3s ease; 
}

.footer-left:hover {
  color: #ffffff; 
}

.footer-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  font-weight: 500;
  color: #ffffff; 
  transition: color 0.3s ease; 
}

.footer-right:hover {
  color: #eaf4ff; 
}


.marquee-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
   margin-top: 50px;
}

.marquee-wrapper p {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 15s linear infinite;
  padding-left: 100%;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}


.banner-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  align-items: center;
  justify-content: center; 
}


.btn-secondary {
  background: #25d366;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.3s ease;
}

.btn-secondary:hover {
  background: #1ebc59;
}

#agendar-modal {
  display: none;           
  position: fixed;         
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6); 
  z-index: 1000;
  justify-content: center; 
  align-items: center;     
  padding: 20px;
  box-sizing: border-box;
}

#agendar-modal.open {
  display: flex !important;
}

#agendar-modal .modal-content {
  background: #fff;
  max-width: 600px;
  width: 90%;
  border-radius: 12px;
  padding: 20px;
  position: relative;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
  max-height: 90vh; 
}
#agendar-modal .modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}
.status-message.sending {
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-message.sending .loader {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.status-message.success { color: green; }
.status-message.error { color: red; }
.modal-content {
  background-color: #fff;
  border-radius: 10px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
  position: relative;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}
.modal-logo {
      width: 100%;
      background-color: #f0f4f8; 
      text-align: center;
      padding: 5px 0;
      margin-bottom: 5px;
      border-radius: 6px 6px 0 0;
}
.modal-logo img {
      max-width: 50px; 
      height: 50;
      display: inline-block;
}
#escolha-clinica {
  text-align: center;
  padding: 20px 10px;
}
#escolha-clinica img {
  max-width: 160px;
  margin-bottom: 25px;
  filter: drop-shadow(0px 3px 5px rgba(0,0,0,0.15));
  transition: transform 0.3s ease;
  display: inline-block;
}
#escolha-clinica img:hover {
  transform: scale(1.05);
}
.opcoes-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: nowrap;
  margin-top: 20px;
}
.btn-opcao {
  padding: 14px 28px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  min-width: 260px;
  background: linear-gradient(135deg, #0077b6, #00b4d8);
  box-shadow: 0 6px 15px rgba(0, 119, 182, 0.3);
  transition: all 0.35s ease;
  user-select: none;
}
.btn-opcao:hover {
  background: linear-gradient(135deg, #0096c7, #00b4d8);
  box-shadow: 0 8px 20px rgba(0, 150, 199, 0.4);
  transform: translateY(-3px);
}
.btn-opcao:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0, 119, 182, 0.25);
}
.modal.open {
  opacity: 1;
  pointer-events: all;
}
.modal-content {
  background: #fff;
  padding: 2rem;
  max-width: 700px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  position: relative;
}
.modal-content h2 {
  margin-bottom: 1rem;
  color: #005b99;
  font-size: 1.6rem;
  text-align: center;
}
.modal-content label {
  display: block;
  font-weight: 600;
  margin-top: 0.8rem;
  color: #333;
}
.modal-content input,
.modal-content select,
.modal-content textarea {
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.3rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}
.modal-content button {
  margin-top: 0rem;
  width: 100%;
}
.modal-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  background: #005b99 url('../../images/logo.jpg') no-repeat center center;
  background-size: contain;
  border: none;
  border-radius: 1px;
  cursor: pointer;
  color: transparent;
  font-size: 0;
  padding: 0;
}
.modal-close:hover {
  background-color: #003f66;
  background-image: url('../../images/logo.jpg');
}
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  background-color: #25D366;
  color: #fff;
  border: none;
  padding: 10px 16px;
  margin-top: 8px;
  margin-left: 5px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s;
}
.btn-whatsapp i {
  margin-right: 8px;
  font-size: 18px;
}
.btn-whatsapp:hover {
  background-color: #1ebe5d;
  text-decoration: none;
  color: #fff;
}
.clinica-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.clinica-container .btn-whatsapp {
  margin-top: 10px;
  min-width: 180px;
  text-align: center;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
}

.form-full {
  grid-column: 1 / 3; 
}
.form-actions {
  text-align: center;
}
.form-actions .btn-primary {
  padding: 10px 20px;
  font-size: 16px;
  background: #0077b6;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}
.form-actions .btn-primary:hover {
  background: #005f87;
}
.status-message .loader {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  border-top-color: #3498db;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}
#form-agendamento .form-grid .form-group:nth-child(5),
#form-agendamento .form-grid .form-group:nth-child(6) {
}
.info-confirmacao {
  font-size: 0.95rem;          
  color: #b71c1c;             
  text-align: justify;          
  margin-bottom: 12px;         
  font-weight: 600;       
  line-height: 1.5;            
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
  text-shadow: 0 1px 2px rgba(0,0,0,0.1); 
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.status-message.sending {
  background-color: #e8f4fd;
  color: #007bff;
  padding: 10px;
  margin-top: 10px;
  border-left: 4px solid #007bff;
  border-radius: 4px;
  font-size: 0.95rem;
}
.status-message.success {
  background-color: #d4edda;
  color: #155724;
  border-left: 4px solid #28a745;
}
.status-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border-left: 4px solid #dc3545;
}
.menu-header,
.menu-footer {
  display: none;
}
.menu-title {
  display: none;
}
@media (min-width: 1201px) {
  .container { padding: 0 2rem; }
  .service-item { flex: 0 0 calc((100% - 3rem) / 4); }
  .about-inner {
    display: flex;
    align-items: stretch; 
    gap: 4rem;
  }
  .about-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 8px 0 15px -5px rgba(0, 102, 255, 0.35);
  }
  .about-img {
    display: flex;
    align-items: center;
  }
  .about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .clinica-container { display: flex; flex-direction: column; align-items: center; }
  .btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background-color: #25d366;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
    min-width: 180px;
    text-align: center;
  }
  .btn-whatsapp:hover { background-color: #1ebe5b; transform: translateY(-2px); }
  .btn-whatsapp i { font-size: 1.2rem; }
  body:not(.home) .banner {
    height: 80vh;   
    min-height: 600px;
    max-height: 1000px; 
  }
  body:not(.home) .banner-text h1 {
    font-size: 2.8rem;
  }
  body:not(.home) .banner-text p {
    font-size: 1.4rem;
  }
}

@media (min-width: 992px) {
  .menu-toggle { display: none !important; }
  .nav-menu {
    position: static;
    height: auto;
    width: auto;
    display: flex;
    flex-direction: row;
    background: transparent;
    box-shadow: none;
    transition: none;
  }
  .menu-overlay { display: none !important; }
}

@media (max-width: 1024px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
  }
  nav ul { gap: 1.2rem; flex-wrap: wrap; justify-content: center; }
  .search-bar input { width: 180px; }
  body:not(.home) .banner {
    height: 70vh;
    min-height: 600px;
    max-height: 800px;
  }
  body:not(.home) .banner-text h1 { font-size: 2.2rem; }
  body:not(.home) .banner-text p { font-size: 1.1rem; }


  .service-item { flex: 0 0 calc((100% - 2rem) / 3); }
  .btn-whatsapp { min-width: 160px; font-size: 0.9rem; padding: 0.55rem 1rem; }
}

@media (max-width: 991px) {
  html, body { overflow-x: hidden; }
  .header-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
  }
  .logo img { max-height: 55px; transition: transform 0.3s ease; }
  .menu-toggle {
    display: block;
    font-size: 1.8rem;
    cursor: pointer;
    background: none;
    border: none;
    color: #003366;
    margin-left: auto;
    z-index: 2002;
  }
  .menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 2000;
  }
  .menu-overlay.active { opacity: 1; visibility: visible; }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 12px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    z-index: 2001;
  }
  .nav-menu.active { right: 0; }
  .nav-menu .menu-header {
    width: 100%;
    background: #003366;
    padding: 0.8rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .nav-menu .menu-header img { max-height: 40px; }
  .nav-menu .menu-header .menu-close {
    font-size: 2rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.3rem 0.6rem;
  }
  .menu-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #003366;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.2rem;
    margin: 0.1rem 0 0.1rem 0.5rem;
  }
  .nav-menu .menu-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 1rem;
  }
  .nav-menu .menu-links li { border-bottom: 1px solid #f0f0f0; }
  .nav-menu .menu-links a {
    display: block;
    padding: 0.5rem 0;
    font-size: 1rem;
    color: #003366;
    text-decoration: underline;
  }
  .nav-menu .menu-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin: 0.2rem 0;
    padding: 0.2rem;
  }
  .nav-menu .social-mobile {
    display: flex;
    gap: 0.6rem;
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
  }
  .nav-menu .social-mobile a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #003366;
    color: #fff;
    font-size: 1.15rem;
    transition: all 0.3s ease;
  }
  .nav-menu .social-mobile a:hover {
    background: #0055aa;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  }
  .nav-menu .menu-agendar {
    display: inline-block;
    padding: 0.7rem 1.2rem;
    background-color: #003366;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    font-size: 1rem;
  }
  #mainCarousel .carousel-item {
    min-height: 250px;
    height: 65vh;
    display: none;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  .banner img { width: 100%; height: auto; object-fit: cover; display: block; }
  .banner-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.3); z-index: 1; }
  .banner-content {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 320px;
    text-align: center;
	padding-top: 4rem;
    padding: 1rem;
  }
  .banner-text h1 {font-size: 1.8rem;}
  .banner-text p {
	  font-size: 1.1rem;
	  margin-top: 5rem; 
	}
  body:not(.home) .banner {
    height: 45vh;
    min-height: 220px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  body:not(.home) .banner-content {
    padding: 2rem 1rem;
    max-width: 600px;
  }
  .about-inner { flex-direction: column; align-items: center; gap: 1.5rem; }
  .about-text { width: 100%; text-align: center; padding: 1rem; font-size: 0.9rem; }
  .about-text h2, .about-text h3 { text-align: center; }
  .about-img { width: 100%; }
  .about-img img { width: 100%; height: auto; border-radius: 10px; object-fit: cover; }
  .service-item { flex: 0 0 150px; padding: 1rem; }
  .btn-primary, .btn-secondary, .btn-outline { font-size: 0.85rem; padding: 0.45rem 0.75rem; }
  .footer-title { font-size: 1rem; }
  .footer-col p { font-size: 0.85rem; }
  .footer-bottom-inner, .topbar-inner { text-align: center; font-size: 0.8rem; }
  .topbar { font-size: 0.75rem; }
  .topbar-inner { flex-direction: column; gap: 0.2rem; }
  .emergency-contact { font-weight: bold; font-size: 0.8rem; }
  .lang-switcher select { font-size: 0.7rem; padding: 0.2rem 0.4rem; }
  #agendar-modal #escolha-clinica .opcoes-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  #agendar-modal #escolha-clinica .clinica-container {
    flex-direction: column !important;
    gap: 6px !important;
    width: 100%;
  }
  #agendar-modal #escolha-clinica .clinica-container .btn-opcao,
  #agendar-modal #escolha-clinica .clinica-container .btn-whatsapp {
    width: 100% !important;
    font-size: 0.8rem !important;
    padding: 0.45rem 0.75rem !important;
  }
  .search-bar, .social-desktop { display: none; }
  .consultas-menu h3, .consultas-menu ul { display: none; }
  .consultas-menu.active h3, .consultas-menu.active ul { display: block; }
  .especialidades-toggle { display: block; width: 100%; margin-bottom: 10px; }
}
@media (max-width:768px){
  .logo img{max-height:45px;}
  .header-inner{gap:0.3rem;padding:0.5rem;}
  .nav-menu{max-width:300px;width:85%;}
  #mainCarousel .carousel-item{min-height:300px;height:50vh;background-size:cover;background-position:center;background-repeat:no-repeat;}
  .banner-content .btn-primary.abrir-modal{font-size:0.85rem!important;padding:0.6rem 1.2rem!important;border-radius:24px!important;top:38%!important;transform:translate(-50%,-40%)!important;}
  .banner-text{max-width:380px;}
  .banner-text h1{font-size:1.25rem!important;margin-top:-0.5rem;margin-bottom:0.9rem;text-align:inherit;line-height:1.3;}
  .banner-text p{font-size:0.8rem!important;line-height:1.45;margin-top:1.2rem;text-align:inherit;word-break:keep-all;overflow-wrap:break-word;hyphens:none;}
  .service-item{flex:0 0 140px;}
  body:not(.home) .banner{height:40vh;min-height:200px;background-size:cover;background-position:center;}
  body:not(.home) .banner-content{padding:1.5rem 1rem;max-width:500px;}
}
@media (max-width:480px){
  .logo img{max-height:40px;}
  #mainCarousel .carousel-item{min-height:300px;height:35vh;background-size:cover;background-position:center;background-repeat:no-repeat;}
  .banner-content .btn-primary.abrir-modal{font-size:0.75rem!important;padding:0.45rem 1rem!important;border-radius:20px!important;top:37%!important;transform:translate(-50%,-45%)!important;}
  .banner-text{max-width:300px;}
  .banner-text h1{font-size:1.5rem!important;margin-top:-0.3rem;margin-bottom:0.6rem;text-align:inherit;line-height:1.25;}
  .banner-text p{font-size:0.9rem!important;line-height:1.35;margin-top:1.4rem;text-align:inherit;word-break:keep-all;overflow-wrap:break-word;hyphens:none;}
  .service-item{flex:0 0 120px;}
  .btn-primary,.btn-secondary,.btn-outline{font-size:0.8rem;padding:0.4rem 0.7rem;}
  body:not(.home) .banner{height:35vh;min-height:160px;background-size:cover;background-position:center;background-repeat:no-repeat;}
  body:not(.home) .banner-content{padding:1rem 0.8rem;max-width:320px;}
}
@media (max-width:360px){
  .logo img{max-height:35px;}
  #mainCarousel .carousel-item{min-height:300px;height:45vh;background-size:cover!important;background-position:center center;background-repeat:no-repeat;}
  .banner-content .btn-primary.abrir-modal{font-size:0.7rem!important;padding:0.4rem 0.8rem!important;border-radius:18px!important;top:44%!important;transform:translate(-50%,-45%)!important;}
  .banner-text{max-width:260px;}
  .banner-text h1{font-size:1.2rem!important;margin-top:-0.3rem;margin-bottom:0.4rem;text-align:inherit;line-height:1.25;}
  .banner-text p{font-size:0.8rem!important;line-height:1.35;margin-top:1.2rem;text-align:inherit;word-break:keep-all;overflow-wrap:break-word;hyphens:none;}
  .service-item{flex:0 0 110px;}
}
@media (max-width:320px){
  .logo img{max-height:50px;}
  #mainCarousel .carousel-item{min-height:270px;height:45vh;background-size:cover!important;background-position:center center;background-repeat:no-repeat;}
  .banner-content .btn-primary.abrir-modal{font-size:0.65rem!important;padding:0.35rem 0.7rem!important;border-radius:16px!important;top:42%!important;transform:translate(-50%,-40%)!important;}
  .banner-text{max-width:240px;}
  .banner-text h1{font-size:1rem!important;margin-top:-0.2rem;margin-bottom:0.4rem;text-align:inherit;line-height:1.2;}
  .banner-text p{font-size:0.8rem!important;line-height:1.3;margin-top:1rem;text-align:inherit;word-break:keep-all;overflow-wrap:break-word;hyphens:none;}
  .service-item{flex:0 0 100px;}
}