/**
 * Global Ortho Hospital - Main Stylesheet
 * Colors:
 * Primary Blue: #0a3d62
 * Primary Bright: #0d6efd
 * Accent Teal: #00a896
 * Soft Gray: #f8f9fa
 * Dark Slate: #1e293b
 */

:root {
  --primary: #0a3d62;
  --primary-hover: #072c47;
  --secondary: #00a896;
  --secondary-hover: #028073;
  --accent: #0284c7;
  --dark: #0f172a;
  --body-color: #334155;
  --light-bg: #f8fafc;
  --border-color: #e2e8f0;
  --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
  --hover-shadow: 0 20px 30px -10px rgba(10, 61, 98, 0.15);
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--body-color);
  background-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  transition: all 0.25s ease;
}

/* Top Emergency Bar */
.top-bar {
  background: #062338;
  color: #e2e8f0;
  font-size: 0.875rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar a {
  color: #e2e8f0;
}

.top-bar a:hover {
  color: #00a896;
}

.top-bar .emergency-badge {
  background: #dc3545;
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.75; }
  100% { opacity: 1; }
}

/* Main Navigation */
.navbar-custom {
  background: #ffffff;
  padding: 12px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar-brand img {
  height: 54px;
  width: auto;
}

.navbar-nav .nav-link {
  color: #1e293b;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 16px !important;
  border-radius: 6px;
  transition: all 0.2s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--secondary) !important;
  background: rgba(0, 168, 150, 0.06);
}

.dropdown-menu {
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 8px;
}

.dropdown-item {
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  color: #334155;
}

.dropdown-item:hover {
  background: rgba(0, 168, 150, 0.08);
  color: var(--secondary);
}

/* Buttons */
.btn-ortho-primary {
  background: var(--primary);
  color: #ffffff;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 8px;
  border: 1px solid var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-ortho-primary:hover {
  background: var(--primary-hover);
  color: #ffffff;
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(10, 61, 98, 0.25);
}

.btn-ortho-secondary {
  background: var(--secondary);
  color: #ffffff;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 8px;
  border: 1px solid var(--secondary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-ortho-secondary:hover {
  background: var(--secondary-hover);
  color: #ffffff;
  border-color: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 168, 150, 0.25);
}

.btn-ortho-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  font-weight: 600;
  padding: 8px 22px;
  border-radius: 8px;
}

.btn-ortho-outline:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Hero Carousel */
.hero-slider-section {
  position: relative;
  background: #061e31;
  overflow: hidden;
}

.carousel-item {
  height: 560px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(6, 30, 49, 0.92) 0%, rgba(6, 30, 49, 0.75) 50%, rgba(6, 30, 49, 0.4) 100%);
}

.carousel-caption-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
  max-width: 680px;
}

.carousel-caption-content .badge-hero {
  display: inline-block;
  background: rgba(0, 168, 150, 0.25);
  color: #5eead4;
  border: 1px solid rgba(0, 168, 150, 0.5);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
  width: fit-content;
}

.carousel-caption-content h1 {
  color: #ffffff;
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
}

.carousel-caption-content p {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 28px;
}

/* Quick Features Highlight Strip */
.features-strip {
  margin-top: -50px;
  position: relative;
  z-index: 10;
}

.strip-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  transition: all 0.3s;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

.strip-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
  border-color: var(--secondary);
}

.strip-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(0, 168, 150, 0.1);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* Section Common */
.section-padding {
  padding: 70px 0;
}

.section-title {
  margin-bottom: 45px;
}

.section-title .subtitle {
  color: var(--secondary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 8px;
}

.section-title h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-title p {
  color: #64748b;
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto;
}

/* Service Cards */
.service-card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  transition: all 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--hover-shadow);
  border-color: var(--secondary);
}

.service-img-wrap {
  height: 200px;
  overflow: hidden;
  position: relative;
  background: #0f172a;
}

.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-img-wrap img {
  transform: scale(1.06);
}

.service-icon-badge {
  position: absolute;
  bottom: -20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--secondary);
  color: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 10px rgba(0, 168, 150, 0.3);
}

.service-card-body {
  padding: 28px 24px 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.service-card-body p {
  color: #64748b;
  font-size: 0.925rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-link {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-link:hover {
  color: var(--secondary);
  gap: 10px;
}

/* Statistics Counter Bar */
.counter-section {
  background: linear-gradient(135deg, #0a3d62 0%, #061e31 100%);
  color: #ffffff;
  padding: 60px 0;
}

.counter-box {
  text-align: center;
  padding: 15px;
}

.counter-box .number {
  font-size: 2.75rem;
  font-weight: 800;
  color: #5eead4;
  line-height: 1;
  margin-bottom: 8px;
}

.counter-box .label {
  font-size: 1rem;
  color: #cbd5e1;
  font-weight: 500;
}

/* Gallery Filter Tabs & Lightbox */
.gallery-filter-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 30px;
  margin: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.gallery-item-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  height: 240px;
  margin-bottom: 24px;
  cursor: pointer;
}

.gallery-item-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item-card:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 61, 98, 0.85);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h5 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.gallery-overlay p {
  font-size: 0.85rem;
  color: #e2e8f0;
  margin: 0;
}

/* Testimonial Cards */
.testimonial-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 30px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testimonial-quote {
  font-size: 2.5rem;
  color: rgba(0, 168, 150, 0.2);
  line-height: 1;
  margin-bottom: 12px;
}

.testimonial-card p {
  color: #475569;
  font-size: 0.95rem;
  font-style: italic;
  flex-grow: 1;
  margin-bottom: 24px;
}

.patient-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.patient-info img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.patient-name {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
}

.treatment-badge {
  font-size: 0.8rem;
  color: var(--secondary);
  font-weight: 600;
}

.star-rating {
  color: #f59e0b;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

/* Appointment Quick Banner */
.cta-appointment-banner {
  background: linear-gradient(135deg, #0a3d62 0%, #00a896 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 50px;
  box-shadow: 0 15px 30px rgba(10, 61, 98, 0.2);
}

.cta-appointment-banner h2 {
  color: #ffffff;
  font-size: 2.2rem;
}

/* Footer */
.footer-main {
  background: #051928;
  color: #94a3b8;
  padding: 70px 0 25px;
  font-size: 0.925rem;
}

.footer-main h4 {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 10px;
}

.footer-main h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #94a3b8;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--secondary);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-contact-item i {
  color: var(--secondary);
  font-size: 1.1rem;
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 25px;
  margin-top: 50px;
}

/* Breadcrumb Page Header */
.page-banner-header {
  background: linear-gradient(135deg, #0a3d62 0%, #072c47 100%);
  color: #ffffff;
  padding: 50px 0;
  text-align: center;
}

.page-banner-header h1 {
  color: #ffffff;
  font-size: 2.4rem;
  margin-bottom: 8px;
}

.breadcrumb-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.breadcrumb-nav a {
  color: #5eead4;
}

@media (max-width: 768px) {
  .carousel-item {
    height: 460px;
  }
  .carousel-caption-content h1 {
    font-size: 1.85rem;
  }
  .features-strip {
    margin-top: 20px;
  }
  .cta-appointment-banner {
    padding: 30px 20px;
    text-align: center;
  }
}

