/* ============================================
   Hospital Beneficência Chapada do Araripe
   CSS Global - Identidade Visual
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ============ VARIÁVEIS ============ */
:root {
  --verde-escuro: #0B5D2A;
  --verde-medio: #118C3A;
  --verde-claro: #9ACD00;
  --vermelho: #E10600;
  --branco: #FFFFFF;
  --cinza-claro: #F5F5F5;
  --cinza-escuro: #222222;
  --sombra: 0 4px 20px rgba(0, 0, 0, 0.08);
  --sombra-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s ease;
}

/* ============ RESET & BASE ============ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--cinza-escuro);
  background-color: var(--branco);
  overflow-x: hidden;
  line-height: 1.6;
  padding-top: 5rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--verde-escuro);
}

a {
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--cinza-claro);
}

::-webkit-scrollbar-thumb {
  background: var(--verde-medio);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--verde-escuro);
}

/* ============ NAVBAR ============ */
.navbar-hospital {
  background-color: var(--branco);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  padding: 0.8rem 0;
  transition: var(--transition);
  z-index: 1050;
}

.navbar-hospital.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-hospital .navbar-brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--verde-escuro);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-hospital .navbar-brand .brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--verde-escuro), var(--verde-medio));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--branco);
  font-size: 1.2rem;
}

.logo-navbar {
  width: 100px;
}

.navbar-hospital .nav-link {
  color: var(--cinza-escuro);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}

.navbar-hospital .nav-link:hover,
.navbar-hospital .nav-link.active {
  color: var(--verde-medio);
}

.navbar-hospital .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--verde-medio);
  transition: var(--transition);
}

.navbar-hospital .nav-link:hover::after,
.navbar-hospital .nav-link.active::after {
  width: 60%;
}

.navbar-hospital .btn-agendar {
  background-color: var(--verde-medio);
  color: var(--branco);
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.navbar-hospital .btn-agendar:hover {
  background-color: var(--verde-escuro);
  color: var(--branco);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(11, 93, 42, 0.3);
}

/* ============ HERO ============ */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-section .hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.hero-section .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgb(11, 93, 42) 20%, rgba(17, 140, 58, 0) 90%);
}

.hero-section .hero-content {
  position: relative;
  z-index: 2;
  color: var(--branco);
}

.hero-section h1 {
  color: var(--branco);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  text-wrap: balance;
}

.hero-section h1 span {
  color: var(--verde-claro);
}

.hero-section .hero-subtitle {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 500px;
  line-height: 1.7;
}

.hero-section .hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.hero-section .hero-stats .stat-item {
  text-align: center;
}

.hero-section .hero-stats .stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--verde-claro);
  display: block;
}

.hero-section .hero-stats .stat-label {
  font-size: 0.85rem;
  opacity: 0.8;
}

.hero-image-wrapper {
  position: relative;
  z-index: 2;
}

.hero-image-wrapper img {
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ============ BOTÕES ============ */
.btn-primary-hospital {
  background-color: var(--verde-medio);
  color: var(--branco);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary-hospital:hover {
  background-color: var(--verde-escuro);
  color: var(--branco);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(11, 93, 42, 0.3);
}

.btn-secondary-hospital {
  background-color: transparent;
  color: var(--branco);
  border: 2px solid var(--branco);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary-hospital:hover {
  background-color: var(--branco);
  color: var(--verde-escuro);
  transform: translateY(-2px);
}

.btn-vermelho {
  background-color: var(--vermelho);
  color: var(--branco);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-vermelho:hover {
  background-color: #c00500;
  color: var(--branco);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(225, 6, 0, 0.3);
}

.btn-outline-hospital {
  background-color: transparent;
  color: var(--verde-medio);
  border: 2px solid var(--verde-medio);
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.btn-outline-hospital:hover {
  background-color: var(--verde-medio);
  color: var(--branco);
  transform: translateY(-2px);
}

/* ============ SEÇÕES ============ */
.section-padding {
  padding: 5rem 0;
}

.section-bg {
  background-color: var(--cinza-claro);
}

.section-title {
  font-size: 2.2rem;
  color: var(--verde-escuro);
  margin-bottom: 0.5rem;
  text-wrap: balance;
}

.section-title span {
  color: var(--vermelho);
}

.section-subtitle {
  color: #666;
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.section-badge {
  display: inline-block;
  background-color: rgba(17, 140, 58, 0.1);
  color: var(--verde-medio);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ============ SOBRE NÓS ============ */
.sobre-content {
  padding: 2rem;
}

.sobre-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555;
}

.sobre-image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.sobre-image-wrapper img {
  border-radius: 20px;
  box-shadow: var(--sombra);
}

.sobre-image-wrapper .experience-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--verde-escuro);
  color: var(--branco);
  padding: 1rem 1.5rem;
  border-radius: 15px;
  text-align: center;
}

.sobre-image-wrapper .experience-badge .number {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  display: block;
  line-height: 1;
}

.sobre-image-wrapper .experience-badge .label {
  font-size: 0.8rem;
  opacity: 0.9;
}

/* ============ MISSÃO, VISÃO E VALORES ============ */
.mvv-card {
  background-color: var(--branco);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--sombra);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 100%;
}

.mvv-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--sombra-hover);
}

.mvv-card .icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.5rem;
}

.mvv-card .icon-wrapper.missao {
  background-color: rgba(17, 140, 58, 0.1);
  color: var(--verde-medio);
}

.mvv-card .icon-wrapper.visao {
  background-color: rgba(154, 205, 0, 0.15);
  color: var(--verde-escuro);
}

.mvv-card .icon-wrapper.valores {
  background-color: rgba(225, 6, 0, 0.08);
  color: var(--vermelho);
}

.mvv-card h4 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.mvv-card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============ CARDS ESPECIALIDADES ============ */
.specialty-card {
  background-color: var(--branco);
  border-radius: 16px;
  padding: 1.8rem;
  box-shadow: var(--sombra);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.specialty-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--verde-medio);
  transition: var(--transition);
}

.specialty-card:hover::before {
  height: 100%;
}

.specialty-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--sombra-hover);
}

.specialty-card .icon-box {
  width: 55px;
  height: 55px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(17, 140, 58, 0.1), rgba(154, 205, 0, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--verde-medio);
  font-size: 1.4rem;
  transition: var(--transition);
}

.specialty-card:hover .icon-box {
  background: linear-gradient(135deg, var(--verde-medio), var(--verde-escuro));
  color: var(--branco);
}

.specialty-card h5 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  color: var(--verde-escuro);
}

.specialty-card p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* ============ EXAMES ============ */
.exam-item {
  background-color: var(--branco);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  box-shadow: var(--sombra);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.exam-item:hover {
  transform: translateX(8px);
  box-shadow: var(--sombra-hover);
  border-left: 3px solid var(--verde-medio);
}

.exam-item .exam-icon {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  background: rgba(17, 140, 58, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--verde-medio);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.exam-item h6 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
  color: var(--verde-escuro);
}

.exam-item p {
  font-size: 0.82rem;
  color: #888;
  margin: 0;
}

/* ============ GALERIA ============ */
.gallery-section .carousel-item img {
  border-radius: 16px;
  height: 650px;
  object-fit: cover;
  box-shadow: var(--sombra);
}

.gallery-section .carousel-control-prev,
.gallery-section .carousel-control-next {
  width: 50px;
  height: 50px;
  background-color: var(--verde-medio);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
}

.gallery-section .carousel-control-prev {
  left: -25px;
}

.gallery-section .carousel-control-next {
  right: -25px;
}

.gallery-section .carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--verde-medio);
  opacity: 0.5;
}

.gallery-section .carousel-indicators .active {
  opacity: 1;
}

/* ============ CONTATO ============ */
.contact-form {
  background-color: var(--branco);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--sombra);
}

.contact-form .form-control {
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  padding: 0.8rem 1.2rem;
  font-size: 0.95rem;
  transition: var(--transition);
}

.contact-form .form-control:focus {
  border-color: var(--verde-medio);
  box-shadow: 0 0 0 0.2rem rgba(17, 140, 58, 0.15);
}

.contact-form .form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--cinza-escuro);
}

.map-wrapper {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--sombra);
  height: 100%;
  min-height: 400px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
}

/* ============ FOOTER ============ */
.footer-hospital {
  background-color: var(--verde-escuro);
  color: var(--branco);
  padding: 4rem 0 1.5rem;
}

.footer-hospital h5 {
  color: var(--verde-claro);
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  font-weight: 700;
}

.footer-hospital p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-hospital a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  transition: var(--transition);
  display: block;
  padding: 0.2rem 0;
}

.footer-hospital a:hover {
  color: var(--verde-claro);
  padding-left: 5px;
}

.logo-footer {
  width: 180px;
}

.footer-hospital .footer-brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--branco);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-hospital .footer-brand .brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--verde-claro), var(--verde-medio));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--verde-escuro);
  font-size: 1.2rem;
}

.footer-hospital .social-icons {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}

.footer-hospital .social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--branco);
  font-size: 1rem;
  transition: var(--transition);
  padding: 0;
}

.footer-hospital .social-icons a:hover {
  background: var(--verde-claro);
  color: var(--verde-escuro);
  transform: translateY(-3px);
  padding-left: 0;
}

.footer-hospital .contact-info {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.footer-hospital .contact-info i {
  color: var(--verde-claro);
  margin-top: 4px;
}

.footer-hospital hr {
  border-color: rgba(255, 255, 255, 0.15);
  margin: 2rem 0 1rem;
}

.footer-hospital .copyright {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ==================== TABS DE FILTRO ==================== */
.gallery-tabs {
  padding: 0 0 40px;
}

.nav-pills-custom {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  border: none;
}

.nav-pills-custom .nav-link {
  background-color: var(--branco);
  color: var(--cinza-escuro);
  border: 2px solid #e5e7eb;
  border-radius: 50px;
  padding: 10px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
  cursor: pointer;
}

.nav-pills-custom .nav-link:hover {
  border-color: var(--verde-medio);
  color: var(--verde-escuro);
  background-color: #e8f5e9;
}

.nav-pills-custom .nav-link.active {
  background-color: var(--verde-escuro);
  color: var(--branco);
  border-color: var(--verde-escuro);
}

/* ==================== GALERIA GRID ==================== */
.gallery-section {
  padding: 0 0 80px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background-color: #f0f0f0;
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.overlay .zoom-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-dark);
  font-size: 1.2rem;
}

.overlay .img-caption {
  color: var(--branco);
  font-size: 0.85rem;
  font-weight: 500;
}

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--cinza-escuro);
}

.empty-state i {
  font-size: 3rem;
  color: #d1d5db;
  margin-bottom: 16px;
}

.empty-state p {
  font-size: 1rem;
  font-weight: 500;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery-item:nth-child(1) {
  animation-delay: 0.05s;
}

.gallery-item:nth-child(2) {
  animation-delay: 0.1s;
}

.gallery-item:nth-child(3) {
  animation-delay: 0.15s;
}

.gallery-item:nth-child(4) {
  animation-delay: 0.2s;
}

.gallery-item:nth-child(5) {
  animation-delay: 0.25s;
}

.gallery-item:nth-child(6) {
  animation-delay: 0.3s;
}

.gallery-item:nth-child(7) {
  animation-delay: 0.35s;
}

.gallery-item:nth-child(8) {
  animation-delay: 0.4s;
}

.gallery-item:nth-child(9) {
  animation-delay: 0.45s;
}

/* ==================== LIGHTBOX MODAL ==================== */
.lightbox-modal .modal-dialog {
  max-width: 90vw;
  margin: auto;
  display: flex;
  align-items: center;
  min-height: 100vh;
}

.lightbox-modal .modal-content {
  background: transparent;
  border: none;
  box-shadow: none;
}

.lightbox-modal .modal-body {
  padding: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-modal .modal-body img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: var(--branco);
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  backdrop-filter: blur(10px);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: none;
  color: var(--branco);
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.35);
}

.lightbox-prev {
  left: -70px;
}

.lightbox-next {
  right: -70px;
}

.lightbox-counter {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-weight: 500;
}

.lightbox-caption {
  position: absolute;
  bottom: -40px;
  left: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ============ BACK TO TOP ============ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--verde-medio);
  color: var(--branco);
  border: none;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(17, 140, 58, 0.3);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--verde-escuro);
  transform: translateY(-3px);
}

/* ============ PAGE HEADER (INTERNAS) ============ */
.page-header {
  background: linear-gradient(135deg, var(--verde-escuro), var(--verde-medio));
  padding: 6rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(154, 205, 0, 0.1);
}

.page-header h1 {
  color: var(--branco);
  font-size: 2.5rem;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.page-header .breadcrumb {
  position: relative;
  z-index: 1;
}

.page-header .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.7);
}

.page-header .breadcrumb-item.active {
  color: var(--verde-claro);
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

/* ============ DETALHES ESPECIALIDADE ============ */
.specialty-detail {
  background-color: var(--branco);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--sombra);
  margin-bottom: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.specialty-detail:hover {
  box-shadow: var(--sombra-hover);
}

.specialty-detail .detail-icon {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(17, 140, 58, 0.1), rgba(154, 205, 0, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--verde-medio);
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
}

.specialty-detail h3 {
  margin-bottom: 1rem;
}

.specialty-detail p {
  color: #555;
  line-height: 1.8;
}

.specialty-detail .detail-list {
  list-style: none;
  padding: 0;
}

.specialty-detail .detail-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #555;
}

.specialty-detail .detail-list li::before {
  content: '\f26a';
  font-family: 'Bootstrap Icons';
  position: absolute;
  left: 0;
  color: var(--verde-medio);
}

/* ============ EXAM DETAIL ============ */
.exam-detail-card {
  background-color: var(--branco);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--sombra);
  margin-bottom: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.exam-detail-card .exam-detail-icon {
  width: 65px;
  height: 65px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(17, 140, 58, 0.1), rgba(154, 205, 0, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--verde-medio);
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}

.exam-detail-card h4 {
  margin-bottom: 1rem;
}

.exam-detail-card p {
  color: #555;
  line-height: 1.8;
}

/* ============ ANIMAÇÕES ============ */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ RESPONSIVO ============ */
@media (max-width: 991px) {
  .hero-section {
    min-height: auto;
    padding: 6rem 0 3rem;
  }

  .hero-section h1 {
    font-size: 2.2rem;
  }

  .hero-section .hero-stats {
    gap: 1.5rem;
  }

  .hero-image-wrapper {
    margin-top: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .gallery-section .carousel-item img {
    height: 300px;
  }

  .gallery-section .carousel-control-prev,
  .gallery-section .carousel-control-next {
    display: none;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-modal .modal-dialog {
    max-width: 95vw;
  }

  .lightbox-counter {
    bottom: -36px;
  }
}

@media (max-width: 767px) {
  .hero-section h1 {
    font-size: 1.8rem;
  }

  .hero-section .hero-stats {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .hero-section .hero-stats .stat-item {
    flex: 1;
    min-width: 80px;
  }

  .section-padding {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .page-header {
    padding: 5rem 0 2rem;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .gallery-section .carousel-item img {
    height: 220px;
  }

  .page-header {
    padding: 32px 0 28px;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  .intro-section {
    padding: 40px 0 24px;
  }

  .intro-section h2 {
    font-size: 1.35rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .nav-pills-custom .nav-link {
    padding: 8px 20px;
    font-size: 0.8rem;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }
}

@media (max-width: 576px) {

  .hero-section .hero-overlay {

    background: linear-gradient(to bottom, rgb(11, 93, 42) 40%, rgba(17, 140, 58, 0) 100%);
  }

}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* Backdrop customization */
.modal-backdrop.show {
  opacity: 0.85;
}