/* 
   Shree Sai Hospital - Custom Stylesheet
   Color Palette:
     --navy-primary: #16305C
     --navy-dark: #0F213F
     --red-accent: #E31E24
     --red-hover: #C61A1F
     --orange-accent: #F5821F
     --bg-light: #EAF2FB
     --text-dark: #2D3748
     --text-muted: #5A6A85
     --card-bg: #FFFFFF
*/

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- Reset & Variables --- */
:root {
  --navy-primary: #16305C;
  --navy-light: #1b3a6b;
  --navy-dark: #0b1a33;
  --red-accent: #E31E24;
  --red-hover: #b81419;
  --orange-accent: #F5821F;
  --orange-hover: #d97014;
  --bg-light: #EAF2FB;
  --bg-white: #FFFFFF;
  --text-dark: #1E293B;
  --text-muted: #64748B;
  --border-light: #E2E8F0;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(22, 48, 92, 0.08), 0 2px 4px -1px rgba(22, 48, 92, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(22, 48, 92, 0.1), 0 4px 6px -2px rgba(22, 48, 92, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(22, 48, 92, 0.15), 0 10px 10px -5px rgba(22, 48, 92, 0.04);
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
}

/* --- Accessibility Styles --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
  position: relative;
}

/* Scroll target offset for sticky header */
#home,
#about,
#services,
#departments,
#gallery,
#appointment,
.dept-card {
  scroll-margin-top: 72px;
}


.section-bg-white {
  background-color: var(--bg-white);
}

.section-bg-light {
  background-color: var(--bg-light);
}

.section-bg-navy {
  background-color: var(--navy-primary);
  color: var(--bg-white);
}

.section-title-container {
  text-align: center;
  margin-bottom: 50px;
}

.section-badge {
  display: inline-block;
  background-color: rgba(22, 48, 92, 0.08);
  color: var(--navy-primary);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-bg-navy .section-badge {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--bg-light);
}

.section-title {
  font-size: 36px;
  color: var(--navy-primary);
  margin-bottom: 16px;
  position: relative;
}

.section-bg-navy .section-title {
  color: var(--bg-white);
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--red-accent);
  margin: 12px auto 0;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
}

.section-bg-navy .section-subtitle {
  color: #CBD5E1;
}

/* --- Buttons & CTAs --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-red {
  background-color: var(--red-accent);
  color: var(--bg-white);
  box-shadow: 0 4px 10px rgba(227, 30, 36, 0.2);
}

.btn-red:hover {
  background-color: var(--red-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(227, 30, 36, 0.3);
}

.btn-orange {
  background-color: var(--orange-accent);
  color: var(--bg-white);
  box-shadow: 0 4px 10px rgba(245, 130, 31, 0.2);
}

.btn-orange:hover {
  background-color: var(--orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(245, 130, 31, 0.3);
}

.btn-navy {
  background-color: var(--navy-primary);
  color: var(--bg-white);
}

.btn-navy:hover {
  background-color: var(--navy-light);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--navy-primary);
  color: var(--navy-primary);
}

.btn-outline:hover {
  background-color: var(--navy-primary);
  color: var(--bg-white);
  transform: translateY(-2px);
}

.btn-outline-white {
  background-color: transparent;
  border: 2px solid var(--bg-white);
  color: var(--bg-white);
}

.btn-outline-white:hover {
  background-color: var(--bg-white);
  color: var(--navy-primary);
  transform: translateY(-2px);
}

/* --- Sticky Header / Navbar --- */
.top-bar {
  background-color: var(--navy-dark);
  color: var(--bg-white);
  font-size: 14px;
  padding: 8px 0;
  transition: var(--transition-fast);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-info {
  display: flex;
  gap: 24px;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar-item a:hover {
  color: var(--orange-accent);
}

.emergency-tag {
  background-color: var(--red-accent);
  padding: 2px 10px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  animation: pulse-border 2s infinite;
}

.header-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  padding: 16px 0;
}

.header-nav.scrolled {
  padding: 13px 0;
  background-color: var(--bg-white);
  box-shadow: var(--shadow-md);
}

.header-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 50px;
  width: auto;
  transition: var(--transition-normal);
}

.header-nav.scrolled .logo-img {
  height: 42px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy-primary);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--red-accent);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--red-accent);
  transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.phone-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--navy-primary);
  color: var(--bg-white);
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.phone-cta:hover {
  background-color: var(--red-accent);
  box-shadow: 0 4px 12px rgba(227, 30, 36, 0.3);
  transform: scale(1.05);
}

.phone-cta i {
  background-color: rgba(255, 255, 255, 0.2);
  padding: 6px;
  border-radius: 50%;
  font-size: 14px;
}

.burger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger-bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--navy-primary);
  transition: var(--transition-normal);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  background-color: var(--navy-primary);
  color: var(--bg-white);
  overflow: hidden;
  padding: 80px 0 100px;
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.hero-wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
  fill: var(--bg-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  padding-right: 20px;
}

.hero-emergency-alert {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(227, 30, 36, 0.15);
  border: 1px solid rgba(227, 30, 36, 0.3);
  color: #FECACA;
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 24px;
}

.hero-emergency-alert i {
  color: var(--red-accent);
  animation: pulse 1s infinite alternate;
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--orange-accent);
}

.hero-welcome {
  font-size: 20px;
  margin-bottom: 16px;
  color: var(--bg-light);
}

.hero-desc {
  font-size: 16px;
  color: #CBD5E1;
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 30px;
}

.stat-item h3 {
  font-size: 32px;
  color: var(--orange-accent);
  margin-bottom: 4px;
}

.stat-item p {
  font-size: 14px;
  color: #94A3B8;
  font-weight: 500;
}

.hero-image-wrapper {
  position: relative;
}

.hero-image-border {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid rgba(255, 255, 255, 0.1);
  transform: perspective(1000px) rotateY(-5deg);
  transition: var(--transition-slow);
}

.hero-image-border:hover {
  transform: perspective(1000px) rotateY(0deg);
}

.hero-image {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

.hero-badge-overlay {
  position: absolute;
  top: 30px;
  left: -20px;
  background-color: var(--bg-white);
  color: var(--navy-primary);
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 10;
}

.hero-badge-overlay i {
  font-size: 28px;
  color: var(--red-accent);
  background-color: rgba(227, 30, 36, 0.1);
  padding: 10px;
  border-radius: 50%;
}

.hero-badge-text {
  display: flex;
  flex-direction: column;
}

.hero-badge-title {
  font-weight: 800;
  font-size: 18px;
  line-height: 1.1;
}

.hero-badge-sub {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- Intro Video Section --- */
.video-section {
  padding: 80px 0;
  background-color: var(--bg-white);
}

.video-container {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 6px solid var(--bg-light);
  position: relative;
  background-color: #000;
  aspect-ratio: 16/9;
}

.video-player {
  width: 100%;
  height: 100%;
  display: block;
}

.video-custom-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(22, 48, 92, 0.4) 0%, rgba(22, 48, 92, 0.8) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--bg-white);
  transition: opacity var(--transition-normal);
  z-index: 5;
}

.video-custom-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.video-play-btn {
  background-color: var(--red-accent);
  color: var(--bg-white);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(227, 30, 36, 0.4);
  transition: all var(--transition-fast);
  margin-bottom: 20px;
}

.video-play-btn:hover {
  transform: scale(1.1);
  background-color: var(--red-hover);
}

.video-play-btn i {
  margin-left: 6px;
}

.video-overlay-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.video-overlay-sub {
  font-size: 15px;
  color: #E2E8F0;
}

/* --- Commitment Strip --- */
.commitment-section {
  background-color: var(--navy-primary);
  color: var(--bg-white);
  padding: 60px 0;
  border-bottom: 5px solid var(--orange-accent);
}

.commitment-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.commitment-card {
  text-align: center;
  padding: 24px 16px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition-normal);
}

.commitment-card:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--orange-accent);
  transform: translateY(-5px);
}

.commitment-icon-wrapper {
  background-color: rgba(245, 130, 31, 0.15);
  border: 1px solid rgba(245, 130, 31, 0.3);
  color: var(--orange-accent);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
  transition: var(--transition-fast);
}

.commitment-card:hover .commitment-icon-wrapper {
  background-color: var(--orange-accent);
  color: var(--navy-primary);
}

.commitment-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.commitment-desc {
  font-size: 13px;
  color: #94A3B8;
}

/* --- Departments Section --- */
.departments-section {
  background-color: var(--bg-light);
  padding: 80px 0;
}

.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 24px;
}

.dept-card {
  background-color: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
}

.dept-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--navy-primary);
  transition: var(--transition-fast);
}

.dept-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.dept-card:hover::before {
  background-color: var(--red-accent);
  width: 8px;
}

/* Specialty highlight styling */
.dept-card.highlighted {
  border: 1.5px solid rgba(245, 130, 31, 0.4);
}

.dept-card.highlighted::after {
  content: 'FLYER FOCUS';
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: var(--orange-accent);
  color: var(--bg-white);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.dept-card-header {
  padding: 24px 24px 12px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.dept-icon-box {
  background-color: rgba(22, 48, 92, 0.06);
  color: var(--navy-primary);
  width: 50px;
  height: 50px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.dept-card:hover .dept-icon-box {
  background-color: rgba(227, 30, 36, 0.1);
  color: var(--red-accent);
}

.dept-card.highlighted:hover .dept-icon-box {
  background-color: rgba(245, 130, 31, 0.15);
  color: var(--orange-accent);
}

.dept-title {
  font-size: 18px;
  color: var(--navy-primary);
  font-weight: 700;
}

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

.dept-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.dept-procedures-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  margin-top: auto;
}

.dept-procedures {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dept-procedure-badge {
  background-color: var(--bg-light);
  color: var(--navy-primary);
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 4px;
}

.dept-card.highlighted .dept-procedure-badge {
  background-color: rgba(22, 48, 92, 0.05);
}

/* --- Facilities Strip --- */
.facilities-strip {
  background-color: var(--bg-white);
  padding: 40px 0;
}

.facilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.facility-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
}

.facility-item:not(:last-child) {
  border-right: 1px solid var(--border-light);
}

.facility-icon-wrapper {
  background-color: rgba(227, 30, 36, 0.1);
  color: var(--red-accent);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.facility-text-box h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-primary);
}

.facility-text-box p {
  font-size: 13px;
  color: var(--text-muted);
}

/* --- Gallery Section --- */
.gallery-section {
  background-color: var(--bg-white);
  padding: 80px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  height: 480px;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
  height: 100%;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

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

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(15, 33, 63, 0.85) 0%, rgba(15, 33, 63, 0) 100%);
  padding: 24px;
  color: var(--bg-white);
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}

.gallery-title {
  font-size: 18px;
  font-weight: 700;
}

.gallery-desc {
  font-size: 13px;
  color: #CBD5E1;
}

/* --- Appointment Section --- */
.appointment-section {
  background-color: var(--bg-light);
  padding: 80px 0;
}

.appointment-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: flex-start;
}

.appointment-info-card {
  background-color: var(--navy-primary);
  color: var(--bg-white);
  padding: 40px;
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  border-bottom: 5px solid var(--red-accent);
}

.appointment-info-card h3 {
  font-size: 28px;
  margin-bottom: 16px;
}

.appointment-info-card p {
  color: #CBD5E1;
  margin-bottom: 30px;
}

.info-bullet-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-bullet-item {
  display: flex;
  gap: 16px;
}

.info-bullet-icon {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--orange-accent);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.info-bullet-text h4 {
  font-size: 16px;
  font-weight: 700;
}

.info-bullet-text p {
  font-size: 14px;
  color: #94A3B8;
  margin-bottom: 0;
}

.appointment-form-container {
  background-color: var(--bg-white);
  padding: 40px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.appointment-form h3 {
  font-size: 24px;
  color: var(--navy-primary);
  margin-bottom: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-primary);
}

.form-control {
  border: 1px solid var(--border-light);
  background-color: #F8FAFC;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 15px;
  color: var(--text-dark);
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--navy-primary);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(22, 48, 92, 0.1);
}

.form-submit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  gap: 20px;
}

.form-success-msg {
  display: none;
  background-color: #DCFCE7;
  color: #15803D;
  border: 1px solid #BBF7D0;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 16px;
  align-items: center;
  gap: 8px;
}

/* --- Contact & Footer --- */
.contact-section {
  background-color: var(--navy-dark);
  color: var(--bg-white);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1.2fr;
  gap: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 60px;
  margin-bottom: 30px;
}

.footer-col h3 {
  font-size: 20px;
  margin-bottom: 24px;
  color: var(--bg-white);
  position: relative;
  padding-bottom: 8px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--orange-accent);
}

.footer-brand p {
  font-size: 14px;
  color: #94A3B8;
  margin-bottom: 24px;
  margin-top: 16px;
}

.footer-logo {
  height: 48px;
  width: auto;
}

.footer-contacts-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  font-size: 14px;
}

.footer-contact-item i {
  color: var(--orange-accent);
  margin-top: 4px;
  font-size: 16px;
}

.footer-contact-item a:hover {
  color: var(--orange-accent);
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  color: #CBD5E1;
}

.footer-links-list a:hover {
  color: var(--orange-accent);
  transform: translateX(5px);
}

.map-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 3px solid rgba(255, 255, 255, 0.1);
  height: 220px;
}

.review-section-box {
  display: flex;
  gap: 20px;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 12px;
  margin-top: 24px;
}

.footer-qr-img {
  width: 100px;
  height: auto;
  border-radius: 8px;
  background-color: var(--bg-white);
  padding: 4px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.footer-qr-img:hover {
  transform: scale(1.08);
}

.review-cta-text h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.review-cta-text p {
  font-size: 12px;
  color: #94A3B8;
  margin-bottom: 12px;
}

.copyright-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #64748B;
}

.copyright-bar a:hover {
  color: var(--bg-light);
}

/* --- KEYFRAME ANIMATIONS --- */
@keyframes pulse {
  from {
    transform: scale(1);
    opacity: 1;
  }
  to {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

@keyframes pulse-border {
  0% {
    box-shadow: 0 0 0 0 rgba(227, 30, 36, 0.4);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(227, 30, 36, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(227, 30, 36, 0);
  }
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-content {
    padding-right: 0;
    text-align: center;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .hero-image-border {
    transform: perspective(1000px) rotateY(0deg);
    max-width: 600px;
    margin: 0 auto;
  }
  .hero-image {
    height: 400px;
  }
  .commitment-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .appointment-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-col:last-child {
    grid-column: span 2;
  }
  .map-wrapper {
    height: 250px;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    height: auto;
    gap: 16px;
  }
  .gallery-item {
    height: 300px;
  }
}

@media (max-width: 768px) {
  #home,
  #about,
  #services,
  #departments,
  #gallery,
  #appointment,
  .dept-card {
    scroll-margin-top: 62px;
  }

  .top-bar {
    display: none;
  }
  .header-nav {
    padding: 12px 0;
  }
  .header-nav.scrolled {
    padding: 10px 0;
  }
  .nav-menu {
    position: fixed;
    top: 75px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 75px);
    background-color: var(--bg-white);
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
    gap: 24px;
    box-shadow: var(--shadow-lg);
    transition: left var(--transition-normal);
  }
  .nav-menu.active {
    left: 0;
  }
  .burger-menu {
    display: block;
  }
  .burger-menu.active .burger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .burger-menu.active .burger-bar:nth-child(2) {
    opacity: 0;
  }
  .burger-menu.active .burger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  .header-actions {
    gap: 10px;
  }
  .phone-cta span {
    display: none;
  }
  .phone-cta {
    padding: 8px 10px;
  }
  .phone-cta i {
    padding: 6px;
    margin: 0;
  }
  .hero-title {
    font-size: 38px;
  }
  .hero-welcome {
    font-size: 18px;
  }
  .commitment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .facilities-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .facility-item {
    border-right: none !important;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
    height: auto;
  }
  .gallery-item:first-child {
    grid-row: auto;
    height: 300px;
  }
  .gallery-item {
    height: 250px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-col:last-child {
    grid-column: auto;
  }
  .copyright-bar {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .commitment-grid {
    grid-template-columns: 1fr;
  }
  .facilities-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full-width {
    grid-column: auto;
  }
  .form-submit-row {
    flex-direction: column;
    align-items: stretch;
  }
  .form-submit-row button {
    width: 100%;
  }
  .review-section-box {
    flex-direction: column;
    text-align: center;
  }
  .hero-badge-overlay {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }
}

/* --- Our Services Grid Section --- */
.services-section {
  background-color: var(--bg-white);
  padding: 80px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.service-image-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
  background-color: var(--bg-white);
  text-decoration: none;
  height: 100%;
}

.service-img-wrapper {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-light);
}

.service-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-normal);
}

.service-card-footer {
  background-color: var(--navy-primary);
  padding: 14px 10px;
  text-align: center;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
}

.service-card-footer h4 {
  color: var(--bg-white);
  font-size: 13px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.service-image-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--orange-accent);
}

.service-image-card:hover .service-card-footer {
  background-color: var(--orange-accent);
}

.service-image-card:hover img {
  transform: scale(1.05);
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
}
