/* ==========================================================================
   Ciputra Hospital - Custom Footer Styles (Variant B - Light)
   Overrides Twenty Twenty parent footer with custom light design
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hide Twenty Twenty Parent Footer
   -------------------------------------------------------------------------- */
#site-footer,
.footer-nav-widgets-wrapper,
footer#site-footer.header-footer-group {
  display: none !important;
}

/* --------------------------------------------------------------------------
   2. Main Footer Container
   -------------------------------------------------------------------------- */
.cihos-footer {
  background: #F9F9F9;
  border-top: 1px solid #EBEBEB;
  padding: 48px 80px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 22px;
  color: #111111;
  box-sizing: border-box;
}

.cihos-footer *,
.cihos-footer *::before,
.cihos-footer *::after {
  box-sizing: border-box;
}

.cihos-footer__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.3fr 0.9fr;
  gap: 40px;
  max-width: 1270px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   3. Column Headings
   -------------------------------------------------------------------------- */
.cihos-footer .cihos-footer__heading {
  color: #3F4153 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  margin: 0 0 16px 0 !important;
  padding-bottom: 12px;
  position: relative;
  line-height: 1.4 !important;
  background: none !important;
  border: none !important;
  text-transform: none !important;
}

.cihos-footer__heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: #2B7ACC;
}

/* --------------------------------------------------------------------------
   4. Brand Column
   -------------------------------------------------------------------------- */
.cihos-footer__brand-logo {
  display: block;
  max-width: 180px;
  height: auto;
  margin-bottom: 16px;
}

.cihos-footer .cihos-footer__tagline {
  color: #8B8C8D !important;
  font-size: 13px;
  line-height: 20px;
  margin: 0 0 24px 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* --------------------------------------------------------------------------
   5. Social Icons
   -------------------------------------------------------------------------- */
.cihos-footer__social-label {
  color: #8B8C8D;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 12px 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.cihos-footer__social-icons {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cihos-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #E8F1FA;
  transition: background 0.2s ease;
  text-decoration: none;
}

.cihos-footer__social-link:hover {
  background: #D0E3F5;
}

.cihos-footer__social-link svg {
  width: 18px;
  height: 18px;
  fill: #2B7ACC;
}

/* --------------------------------------------------------------------------
   6. Link Lists (Hospitals & Clinics)
   -------------------------------------------------------------------------- */
.cihos-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cihos-footer__links li {
  margin: 0 0 10px 0;
  line-height: inherit;
}

.cihos-footer__link {
  color: #111111;
  font-size: 13px;
  line-height: 18px;
  text-decoration: none;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  transition: color 0.2s ease;
}

.cihos-footer__link:hover {
  color: #2B7ACC;
}

/* Clinic type description */
.cihos-footer__clinic-type {
  color: #8B8C8D;
  font-size: 11px;
  line-height: 15px;
  font-style: italic;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  display: inline-block;
  margin-top: 1px;
}

/* Sub-links (Cari Dokter) */
.cihos-footer__sublink {
  color: #2B7ACC;
  font-size: 12px;
  line-height: 16px;
  text-decoration: none;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  transition: color 0.2s ease;
  display: inline-block;
  margin-top: 2px;
  padding-left: 12px;
}

.cihos-footer__sublink:hover {
  color: #1A5A9E;
}

/* --------------------------------------------------------------------------
   7. Contact Column (WhatsApp CTA, Karir)
   -------------------------------------------------------------------------- */
.cihos-footer__wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #26AD61;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
  line-height: 1;
}

.cihos-footer__wa-btn:hover {
  background: #229e56;
  transform: translateY(-1px);
}

.cihos-footer__wa-btn:active {
  transform: translateY(0);
}

.cihos-footer__wa-btn svg {
  width: 18px;
  height: 18px;
  fill: #FFFFFF;
  flex-shrink: 0;
}

.cihos-footer__karir-link {
  color: #2B7ACC;
  font-size: 13px;
  text-decoration: none;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  transition: color 0.2s ease;
  display: inline-block;
  margin-top: 12px;
}

.cihos-footer__karir-link:hover {
  color: #1A5A9E;
}

/* --------------------------------------------------------------------------
   8. Bottom Bar
   -------------------------------------------------------------------------- */
.cihos-footer__bottom {
  background: #FFFFFF;
  border-top: 1px solid #EBEBEB;
  padding: 20px 80px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  box-sizing: border-box;
}

.cihos-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1270px;
  margin: 0 auto;
}

.cihos-footer .cihos-footer__copyright {
  color: #8B8C8D !important;
  font-size: 12px;
  margin: 0;
  line-height: 1.4;
}

.cihos-footer__legal {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cihos-footer__legal-link {
  color: #8B8C8D;
  font-size: 12px;
  text-decoration: none;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  transition: color 0.2s ease;
}

.cihos-footer__legal-link:hover {
  color: #3F4153;
}

/* --------------------------------------------------------------------------
   9. Responsive - Tablet (max-width: 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .cihos-footer {
    padding: 40px;
  }

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

  .cihos-footer__bottom {
    padding: 20px 40px;
  }
}

/* --------------------------------------------------------------------------
   10. Responsive - Mobile (max-width: 767px)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .cihos-footer {
    padding: 32px 20px;
  }

  .cihos-footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* Center brand column on mobile */
  .cihos-footer__col--brand {
    text-align: center;
    align-items: center;
    display: flex;
    flex-direction: column;
  }

  .cihos-footer__brand-logo {
    margin-left: auto;
    margin-right: auto;
  }

  /* Contact column last on mobile */
  .cihos-footer__col--contact {
    order: 99;
  }

  /* Full-width WhatsApp button on mobile */
  .cihos-footer__wa-btn {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  /* Two-column sub-grid for hospitals + clinics on mobile */
  .cihos-footer__mobile-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .cihos-footer__bottom {
    padding: 20px;
  }

  .cihos-footer__bottom-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .cihos-footer__legal {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* --------------------------------------------------------------------------
   11. Print Styles
   -------------------------------------------------------------------------- */
@media print {
  .cihos-footer {
    background: #FFFFFF;
    color: #111111;
    padding: 24px 0;
  }

  .cihos-footer__social-icons,
  .cihos-footer__wa-btn {
    display: none !important;
  }

  .cihos-footer__bottom {
    background: #FFFFFF;
    border-top: 1px solid #D5D5D5;
  }
}
