/* ============================================================
   RK HEALTH — FOOTER-ONLY STYLESHEET
   Extracted from the global style.css. Load this on any page that
   uses the shared footer markup (footer.html):
     <link rel="stylesheet" href="css/footer.css">
   Includes: footer grid, inquiry form, map card, bottom bar,
   the appointment popup (modal) and its animations.
   Safe to load together with header.css (shared tokens/buttons
   are duplicated identically in both).
   Breakpoints: Desktop ≥1100px · Tablet 768–1099px · Mobile <768px
   ============================================================ */

/* ---------- Design tokens (shared) ---------- */
:root {
  --navy:        #0a1f4d;
  --navy-900:    #0a1f4d;   /* alias used by the modal */
  --royal:       #09318A;
  --blue:        #2a7fd4;
  --blue-600:    #2a7fd4;   /* alias used by the modal */
  --blue-dark:   #1f6bb8;
  --sky:         #7fb0e6;
  --gold:        #EFBB4B;
  --gold-light:  #f3c869;
  --green:       #25d366;
  --font: 'Inter', system-ui, sans-serif;
}

/* ---------- Minimal base the footer relies on ---------- */
.site-footer img { max-width: 100%; display: block; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a { text-decoration: none; transition: color .2s ease; }
.site-footer input,
.site-footer textarea,
.modal input,
.modal textarea { font-family: inherit; }

/* Container (matches the global one; footer.html uses .container) */
.site-footer .container { max-width: 1600px; margin: 0 auto; padding: 0 56px; }

/* Anchor offset for #inquiry links */
#inquiry { scroll-margin-top: 120px; }

/* ---------- Buttons (used by form submit + modal) ---------- */
.site-footer .btn,
.modal .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 44px;
  padding: 0 24px;
  border: none;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, filter .2s ease;
}
.btn--blue { background: var(--blue); color: #ffffff; width: 100%; height: 46px; }
.btn--blue:hover {
  background: var(--blue-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(42, 127, 212, .6);
}
/* Modal submit button */
.modal .btn--primary { background: var(--blue); color: #ffffff; width: 100%; }
.modal .btn--primary:hover {
  background: var(--blue-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(42, 127, 212, .6);
}

/* ---------- Social icons (bottom bar) ---------- */
.social {
  width: 36px; height: 36px;
  border-radius: 9px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease;
}
.social:hover { color: #ffffff; transform: translateY(-2px); }
.social--facebook  { background: #1877f2; }
.social--instagram { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af); }
.social--youtube   { background: #ff0000; }
.social--whatsapp  { background: var(--green); }
.social--sm {
  width: 22px; height: 22px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 800;
}
.social--yt-wide { width: 24px; height: 18px; font-size: 10px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy); }

.site-footer__top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.1fr 1.2fr;
  gap: 44px;
  padding-top: 80px !important;
  padding-bottom: 64px !important;
}

.site-footer h3 { font-size: 21px; font-weight: 800; color: #ffffff; margin: 0 0 24px; letter-spacing: -.02em; }

/* Brand column */
.footer-brand { display: flex; flex-direction: column; gap: 32px; }
.footer-brand__logo {
  width: 300px;
  height: auto;
  background: #ffffff;
  padding: 14px 18px;
  border-radius: 14px;
}

.footer-contacts { display: flex; flex-direction: column; gap: 18px; max-width: 320px; }
.footer-contacts li { display: flex; align-items: center; gap: 16px; }
.footer-contacts__icon {
  width: 54px; height: 54px;
  flex-shrink: 0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-contacts__icon--blue { background: rgba(42, 127, 212, .16); color: var(--sky); }
.footer-contacts__icon--green { background: rgba(67, 196, 99, .16); color: #43c463; }
.footer-contacts strong { display: block; font-size: 15px; font-weight: 800; color: #ffffff; }
.footer-contacts a { display: block; font-size: 14.5px; font-weight: 600; color: #aebbd2; margin-top: 3px; }
.footer-contacts a:hover { color: #ffffff; }

/* Link columns */
.footer-links__col + .footer-links__col { margin-top: 36px; }
.footer-links__col ul { display: flex; flex-direction: column; gap: 18px; }
.footer-links__col li a {
  position: relative;
  display: inline-block;
  padding-left: 18px;
  font-size: 15.5px;
  font-weight: 600;
  color: #c3cee0;
  line-height: 1.5;
}
.footer-links__col li a::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
}
.footer-links__col li a:hover { color: #ffffff; }

/* Inquiry form */
.footer-form {
  background: #0e2750;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  padding: 22px;
  align-self: start;
}
.footer-form h3 { font-size: 17px; font-weight: 700; margin-bottom: 16px; }
.footer-form form { display: flex; flex-direction: column; gap: 12px; }
.footer-form input,
.footer-form textarea {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: var(--navy);
  color: #ffffff;
  font-size: 14.5px;
  outline: none;
}
.footer-form input { height: 44px; padding: 0 14px; }
.footer-form textarea { resize: none; }
.footer-form input:focus,
.footer-form textarea:focus { border-color: var(--blue); }
.footer-form ::placeholder { color: #8fa3ca; }

/* Map + address */
.footer-map {
  align-self: start;
  background: linear-gradient(160deg, #102a58, #0c2049);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  padding: 30px 30px 24px;
}
.footer-map__frame {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, .12);
}
.footer-map__frame iframe { border: 0; display: block; }
.footer-map h3 { font-size: 17px; margin-bottom: 14px; }
.footer-map p { margin: 0; font-size: 15px; line-height: 1.7; color: #aebbd2; }

/* Bottom bar */
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.site-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 26px !important;
  padding-bottom: 26px !important;
}
.site-footer__bottom p { margin: 0; font-size: 15px; font-weight: 600; color: #c3cee0; }
.site-footer__bottom strong { color: #ffffff; font-weight: 700; }

.site-footer__socials { display: flex; align-items: center; gap: 28px; }
.site-footer__socials a {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
}
.site-footer__socials a:hover { color: var(--gold-light); }

/* ============================================================
   APPOINTMENT MODAL  (markup lives inside footer.html)
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(6,18,42,.72); backdrop-filter: blur(3px); animation: modal-fade .2s ease; }
.modal__dialog {
  position: relative; width: 100%; max-width: 440px;
  max-height: calc(100vh - 48px); overflow-y: auto;
  background: #0e2750; border: 1px solid rgba(255,255,255,.10);
  border-radius: 20px; padding: 30px 28px 28px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7);
  animation: modal-rise .25s cubic-bezier(.2,.7,.2,1);
}
.modal__close {
  position: absolute; top: 12px; right: 14px; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 50%; background: rgba(255,255,255,.08);
  color: #fff; font-size: 24px; line-height: 1; cursor: pointer; transition: background .2s ease;
}
.modal__close:hover { background: rgba(255,255,255,.18); }
.modal__title { margin: 0; font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.modal__sub { margin: 8px 0 0; font-size: 14px; line-height: 1.55; color: #9fb4d4; }
.modal__form { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.modal__form input, .modal__form textarea {
  padding: 0 14px; height: 46px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14); background: var(--navy-900);
  color: #fff; font-size: 14.5px; font-family: inherit; outline: none;
}
.modal__form textarea { height: auto; padding: 12px 14px; resize: none; }
.modal__form input::placeholder, .modal__form textarea::placeholder { color: #7f8db0; }
.modal__form input:focus, .modal__form textarea:focus { border-color: var(--blue-600); }
.modal__form .btn { height: 48px; font-size: 15px; margin-top: 4px; }
body.modal-open { overflow: hidden; }

@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) { .modal__backdrop, .modal__dialog { animation: none; } }

/* ============================================================
   TABLET — 768px to 1099px
   ============================================================ */
@media (max-width: 1099px) {
  .site-footer .container { padding-left: 32px; padding-right: 32px; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   MOBILE — below 768px
   ============================================================ */
@media (max-width: 767px) {
  .site-footer .container { padding-left: 16px; padding-right: 16px; }

  .site-footer__top {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 44px;
    padding-bottom: 36px;
  }
  .footer-brand { gap: 22px; }
  .footer-brand__logo { width: 240px; padding: 12px 15px; border-radius: 12px; }
  .footer-contacts { gap: 14px; }
  .footer-contacts__icon { width: 44px; height: 44px; border-radius: 12px; }
  .footer-contacts__icon svg { width: 21px; height: 21px; }
  .footer-contacts strong { font-size: 13.5px; }
  .footer-contacts a { font-size: 13px; margin-top: 2px; }

  /* Specialities + Useful Links side by side on mobile */
  .footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-links__col + .footer-links__col { margin-top: 0; }
  .site-footer h3 { font-size: 16px; margin-bottom: 14px; }
  .footer-links__col ul { gap: 11px; }
  .footer-links__col li a { font-size: 13px; padding-left: 14px; }
  .footer-links__col li a::before { width: 5px; height: 5px; top: 7px; }

  .footer-form { border-radius: 16px; padding: 20px; }
  .footer-form h3 { font-size: 16px; margin-bottom: 14px; }
  .footer-form form { gap: 10px; }
  .footer-form input { font-size: 14px; }
  .footer-form textarea { font-size: 14px; }

  .footer-map { border-radius: 16px; padding: 20px; }
  .footer-map__frame { margin-bottom: 16px; }
  .footer-map__frame iframe { height: 170px; }
  .footer-map h3 { font-size: 15px; margin-bottom: 10px; }
  .footer-map p { font-size: 13.5px; }

  .site-footer__bottom-inner {
    flex-direction: column-reverse;
    align-items: center;
    gap: 12px;
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .site-footer__bottom p { font-size: 12.5px; text-align: center; }
  .site-footer__socials { gap: 18px; }
  .site-footer__socials a { font-size: 13px; }
  .social--sm { width: 20px; height: 20px; font-size: 11px; }
  .social--yt-wide { width: 22px; height: 16px; font-size: 9px; }

  /* Modal on small screens */
  .modal { padding: 16px; align-items: center; }
  .modal__dialog { max-width: none; border-radius: 18px; padding: 26px 20px 22px; }
  .modal__title { font-size: 20px; }
}
