/* Site footer (all pages) */

.rsia-footer {
  --brand: #f3943a;
  --brand-dark: #d9771c;
  --bg: #1d2129;
  --bg-2: #252a33;
  --text: #b8bdc7;
  --heading: #ffffff;

  position: relative;
  margin-top: 90px;           /* room for the CTA card that overlaps the top edge */
  padding-bottom: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Roboto', sans-serif;
}

/* CTA card overlapping the footer's top edge */
.rsia-footer__cta {
  position: relative;
  top: -60px;
  margin-bottom: -10px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 30px 36px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 30px 50px -28px rgba(217, 119, 28, .9);
  color: #fff;
}
.rsia-footer__cta-text { display: flex; align-items: center; gap: 18px; }
.rsia-footer__cta-icon {
  flex: 0 0 58px; width: 58px; height: 58px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, .18);
  font-size: 24px;
}
.rsia-footer__cta h2 {
  margin: 0 0 4px;
  font-family: 'Roboto', sans-serif;
  font-size: 23px; line-height: 1.3; font-weight: 700;
  color: #fff;
}
.rsia-footer__cta p { margin: 0; font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .92); }
.rsia-footer__cta-actions { display: flex; flex-wrap: wrap; gap: 12px; flex: 0 0 auto; }

.rsia-fbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 2px solid #fff;
  font-size: 14px; font-weight: 700; line-height: 1;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.rsia-fbtn:hover, .rsia-fbtn:focus { text-decoration: none; transform: translateY(-2px); }
.rsia-fbtn:focus-visible { outline: 3px solid rgba(255, 255, 255, .6); outline-offset: 3px; }
.rsia-fbtn--light { background: #fff; color: var(--brand-dark); }
.rsia-fbtn--light:hover, .rsia-fbtn--light:focus { background: #fff8f1; color: var(--brand-dark); }
.rsia-fbtn--outline { background: transparent; color: #fff; }
.rsia-fbtn--outline:hover, .rsia-fbtn--outline:focus { background: rgba(255, 255, 255, .14); color: #fff; }

/* columns */
.rsia-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding: 20px 0 60px;
}
.rsia-footer h3 {
  position: relative;
  margin: 6px 0 22px;
  padding-bottom: 12px;
  font-family: 'Roboto', sans-serif;
  font-size: 16px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--heading);
}
.rsia-footer h3:after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 32px; height: 3px;
  border-radius: 3px;
  background: var(--brand);
}

.rsia-footer__logo {
  display: inline-block;
  padding: 10px 16px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: #fff;   /* logo has dark text, so it sits on a white chip */
}
.rsia-footer__logo img { display: block; height: 58px; width: auto; }
.rsia-footer__brand p { margin: 0 0 18px; font-size: 14px; line-height: 1.8; color: var(--text); }
.rsia-footer__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(243, 148, 58, .15);
  color: #f7b06d;
  font-size: 13px; font-weight: 700;
}

.rsia-footer__col ul { margin: 0; padding: 0; }
.rsia-footer__col li { margin-bottom: 11px; font-size: 14px; line-height: 1.5; }
.rsia-footer__col a {
  color: var(--text);
  text-decoration: none;
  transition: color .2s ease, padding-left .2s ease;
}
.rsia-footer__col nav a, .rsia-footer__col:not(.rsia-footer__contact) a { display: inline-block; }
.rsia-footer__col:not(.rsia-footer__contact) a:hover,
.rsia-footer__col:not(.rsia-footer__contact) a:focus { color: var(--brand); padding-left: 6px; }

.rsia-footer__contact li { display: flex; gap: 12px; margin-bottom: 16px; }
.rsia-footer__contact small {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
  color: #8a909b;
}
.rsia-footer__contact span:last-child { color: #e6e8ec; }
.rsia-footer__contact a { color: #e6e8ec; }
.rsia-footer__contact a:hover, .rsia-footer__contact a:focus { color: var(--brand); }
.rsia-footer__icon {
  flex: 0 0 38px; width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 11px;
  background: var(--bg-2);
  color: var(--brand); font-size: 16px;
}
.rsia-footer .rsia-footer__map-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 4px;
  color: var(--brand);
  font-size: 14px; font-weight: 700;
}
.rsia-footer .rsia-footer__map-link:hover { color: #f7b06d; }

/* bottom bar */
.rsia-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 20px 0;
}
.rsia-footer__bottom .container {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
/* Bootstrap's clearfix pseudo-elements would become flex items */
.rsia-footer__bottom .container:before,
.rsia-footer__bottom .container:after { display: none; }
.rsia-footer__bottom p { margin: 0; font-size: 13px; color: #8a909b; }

@media (prefers-reduced-motion: reduce) {
  .rsia-fbtn, .rsia-footer__col a { transition: none; }
}

/* responsive */
@media (max-width: 991px) {
  .rsia-footer__cta { flex-direction: column; align-items: flex-start; }
  .rsia-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px 30px; }
}
@media (max-width: 575px) {
  .rsia-footer { margin-top: 80px; }
  .rsia-footer__cta { top: -50px; padding: 24px 20px; border-radius: 20px; }
  .rsia-footer__cta-text { flex-direction: column; align-items: flex-start; gap: 14px; }
  .rsia-footer__cta h2 { font-size: 20px; }
  .rsia-footer__cta-actions, .rsia-fbtn { width: 100%; }
  .rsia-footer__grid { grid-template-columns: 1fr; padding-bottom: 40px; }
  .rsia-footer__bottom .container { flex-direction: column; text-align: center; }
}

/* Floating WhatsApp button (all pages), sits above the scroll-to-top button */
.rsia-wa-float {
  position: fixed;
  right: 15px; bottom: 62px;
  z-index: 101;
  display: inline-flex; align-items: center; gap: 10px;
  height: 54px;
  padding: 0 20px 0 16px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 14px; font-weight: 700;
  text-decoration: none;
  box-shadow: 0 14px 28px -10px rgba(37, 211, 102, .7);
  transition: transform .2s ease, box-shadow .2s ease;
}
.rsia-wa-float i { font-size: 26px; }
.rsia-wa-float:hover, .rsia-wa-float:focus {
  color: #fff; text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 18px 32px -10px rgba(37, 211, 102, .85);
}
.rsia-wa-float:focus-visible { outline: 3px solid rgba(37, 211, 102, .45); outline-offset: 3px; }
@media (max-width: 575px) {
  /* icon only on phones */
  .rsia-wa-float { width: 54px; padding: 0; justify-content: center; }
  .rsia-wa-float span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rsia-wa-float { transition: none; }
}

/* Menu "contact" scrolls here (#kontak): smooth, and leave room for the
   sticky header plus the CTA card that sticks out above the footer */
html { scroll-behavior: smooth; }
.rsia-footer { scroll-margin-top: 170px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Footer without the CTA card (appointment page): no overlap space needed */
.rsia-footer--no-cta { margin-top: 60px; scroll-margin-top: 90px; }
.rsia-footer--no-cta .rsia-footer__grid { padding-top: 60px; }
@media (max-width: 575px) {
  .rsia-footer--no-cta { margin-top: 40px; }
  .rsia-footer--no-cta .rsia-footer__grid { padding-top: 44px; }
}
