@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Roboto:wght@400;500;600;700&display=swap');

:root {
  --primary-blue: #00a8ec;
  --primary-blue-hover: #0092cf;
  --dark-bg: #000000;
  --dark-card: #080f1d;
  --text-white: #ffffff;
  --text-gray: #9ca3af;
  --text-light-gray: #cbd5e1;
  --border-dark: #181c24;
  --font-heading: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

.site-footer {
  width: 100%;
  font-family: var(--font-body);
  background: transparent;
  position: relative;
  margin-top: 100px;
}

.footer-wrapper {
  position: relative;
  width: 100%;
}

/* ---------------- Floating CTA Appointment Card ---------------- */
.footer-cta-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 10;
  margin-bottom: -90px;
}

.footer-cta-card {
  background: radial-gradient(circle at 85% 80%, #0091d0 0%, #0d2442 40%, #070d18 85%);
  border-radius: 24px;
  padding: 44px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  position: relative;
  overflow: hidden;
}

.footer-cta-card::after {
  content: '';
  position: absolute;
  right: -50px;
  top: -50px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 168, 236, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-content {
  max-width: 680px;
  position: relative;
  z-index: 1;
}

.cta-subtitle {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: 36px;
  line-height: 48px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 14px;
}

.cta-description {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 28px;
  font-weight: 400;
  color: var(--text-light-gray);
  margin: 0;
}

.cta-action {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.btn-cta-appointment {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background-color: #080e1a;
  color: #ffffff;
  padding: 10px 12px 10px 24px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-cta-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-cta-appointment:hover {
  background-color: #0d1728;
  border-color: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 168, 236, 0.3);
}

.btn-cta-appointment:hover .btn-cta-arrow {
  transform: translateX(3px);
}

/* ---------------- Main Footer Container ---------------- */
.footer-main {
  background-color: var(--dark-bg);
  color: #ffffff;
  padding-top: 145px;
  padding-bottom: 30px;
  width: 100%;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------------- 4 Columns Grid ---------------- */
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1.1fr 1fr;
  gap: 48px;
  padding-bottom: 45px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

/* Column 1: Hospital Info */
.footer-logo-wrap {
  margin-bottom: 18px;
}

.footer-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.05);
}

.footer-address {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 28px;
  font-weight: 400;
  color: #cbd5e1;
  margin-bottom: 22px;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}

.social-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--primary-blue);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.social-btn:hover {
  transform: translateY(-3px);
  background-color: #ffffff;
  color: var(--primary-blue);
}

/* Gallery inside col 1 */
.footer-gallery .gallery-title {
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 36px;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 12px;
}

.gallery-images {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gallery-item {
  width: 100px;
  height: 68px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.25s ease;
}

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

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Column 2 & 3: Links */
.footer-heading {
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 36px;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 18px;
  position: relative;
  display: inline-block;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links li a {
  font-family: var(--font-body);
  color: #a0aec0;
  text-decoration: none;
  font-size: 17px;
  line-height: 28px;
  font-weight: 400;
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: inline-block;
}

.footer-links li a:hover {
  color: var(--primary-blue);
  padding-left: 4px;
}

/* Column 4: Google Review Card */
.col-review {
  align-items: flex-start;
}

.review-card {
  width: 175px;
  max-width: 100%;
  margin-bottom: 22px;
  background: transparent;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(0, 168, 236, 0.3);
}

.google-review-link {
  display: block;
  width: 100%;
  text-decoration: none;
}

.google-review-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

/* ---------------- 24 Hours Emergency Bar ---------------- */
.emergency-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px 0;
  margin-bottom: 30px;
  gap: 30px;
}

.emergency-title {
  font-family: var(--font-heading);
  font-size: 36px;
  line-height: 48px;
  font-weight: 600;
  color: var(--primary-blue);
  letter-spacing: -0.2px;
}

.emergency-right {
  text-align: right;
}

.appointment-label {
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 36px;
  font-weight: 500;
  color: var(--primary-blue);
  margin-bottom: 6px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 28px;
  color: #cbd5e1;
}

.contact-details a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.contact-details a:hover {
  color: var(--primary-blue);
  text-decoration: underline;
}

/* ---------------- Sub-Footer / Copyright ---------------- */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  gap: 24px;
  font-family: var(--font-body);
}

.footer-copyright {
  font-size: 14px;
  line-height: 24px;
  color: #64748b;
}

.footer-copyright a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-copyright a:hover {
  color: var(--primary-blue);
}

.designer-link {
  color: var(--primary-blue) !important;
  font-weight: 500;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-legal-links a {
  font-size: 15px;
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal-links a:hover {
  color: var(--primary-blue);
}

.btn-back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #0b1424;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  padding: 8px 18px 8px 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.arrow-up-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: transform 0.25s ease;
}

.btn-back-to-top:hover {
  background-color: #122036;
  border-color: var(--primary-blue);
  transform: translateY(-2px);
}

.btn-back-to-top:hover .arrow-up-circle {
  transform: translateY(-2px);
}

/* ---------------- Responsive Footer Styles (Strict Mobile Specs) ---------------- */
@media (max-width: 1024px) {
  .footer-cta-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 32px;
  }

  .cta-title {
    font-size: 26px;
    font-weight: 600;
    line-height: 1.32;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .emergency-bar {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 16px;
  }

  .emergency-title {
    font-size: 26px;
    font-weight: 600;
    line-height: 1.32;
  }

  .emergency-right {
    text-align: left;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-legal-links {
    flex-wrap: wrap;
    gap: 14px 20px;
  }
}

@media (max-width: 768px) {
  .site-footer {
    margin-top: 70px;
  }

  .footer-cta-container {
    padding: 0 16px;
    margin-bottom: -70px;
  }

  .footer-cta-card {
    padding: 28px 20px;
    border-radius: 18px;
  }

  /* Mobile Spec: H2: 26px, 600, 1.32 */
  .cta-title {
    font-size: 26px;
    font-weight: 600;
    line-height: 1.32;
  }

  /* Mobile Spec: P: 16px, 400, 1.35 */
  .cta-description,
  .footer-address,
  .contact-details,
  .visitor-count {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.35;
  }

  .footer-main {
    padding-top: 110px;
  }

  .footer-container {
    padding: 0 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Mobile Spec: H3: 22px, 500, 1.35 */
  .footer-heading,
  .footer-gallery .gallery-title,
  .appointment-label {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.35;
  }

  /* Mobile Spec: H2: 26px, 600, 1.32 */
  .emergency-title {
    font-size: 26px;
    font-weight: 600;
    line-height: 1.32;
  }

  .btn-cta-appointment {
    width: 100%;
    justify-content: space-between;
  }
}
