/* Hide the native Blocksy footer only while the custom footer is enabled. */
body.dr-custom-footer-enabled footer.ct-footer,
body.dr-custom-footer-enabled #footer.ct-footer {
  display: none !important;
}

/* =========================================================
   RedSer custom footer v2.2.0 — compact layout
   Based on child theme v2.1.0.
   ========================================================= */

.dr-footer {
  position: relative;
  overflow: hidden;
  margin-top: 0;
  background: var(--dr-graphite-950);
  color: #b9c2cf;
}

.dr-footer__glow {
  position: absolute;
  inset: -240px auto auto -170px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--dr-accent), transparent 79%), transparent 67%);
  pointer-events: none;
}

/* Main navigation: same information, noticeably less vertical space. */
.dr-footer__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(250px, 1.25fr) repeat(4, minmax(145px, 0.72fr));
  gap: 24px 30px;
  padding-block: clamp(30px, 3.4vw, 40px) 24px;
}

.dr-footer h2 {
  margin: 0 0 11px;
  color: #fff;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.dr-footer a {
  color: #dce3ec;
  text-decoration: none;
}

.dr-footer a:hover {
  color: #fff;
}

.dr-footer__brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: #fff !important;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.dr-footer__mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 9px;
  background: linear-gradient(145deg, var(--dr-graphite-700), var(--dr-graphite-900));
  box-shadow: var(--dr-shadow-dark);
  transform: rotate(45deg);
}

.dr-footer__mark span {
  width: 12px;
  height: 12px;
  border: 3px solid var(--dr-accent);
  border-radius: 3px;
}

.dr-footer__brand > p {
  max-width: 390px;
  margin: 0 0 10px;
  color: #b9c2cf;
  font-size: 14px;
  line-height: 1.52;
}

.dr-footer__email {
  display: inline-flex;
  width: fit-content;
  color: #e8edf4 !important;
  font-size: 13px;
}

.dr-footer__links {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dr-footer__links li {
  margin: 0;
}

.dr-footer__links a {
  color: #b9c2cf;
  font-size: 13px;
  line-height: 1.36;
}

/* Compact contact rail. */
.dr-footer__contact-rail {
  position: relative;
  display: grid;
  grid-template-columns: auto auto minmax(230px, 1fr) auto;
  align-items: center;
  gap: 10px 22px;
  padding-block: 12px;
  border-top: 1px solid var(--dr-border-dark);
  border-bottom: 1px solid var(--dr-border-dark);
}

.dr-footer__phones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.dr-footer__phone-block {
  display: grid;
  min-width: 132px;
  gap: 1px;
  color: #fff !important;
}

.dr-footer__phone-block strong {
  color: #fff;
  font-size: 16px;
  font-weight: 790;
  line-height: 1.18;
}

.dr-footer__contact-caption {
  color: #8f9baa;
  font-size: 10px;
  line-height: 1.2;
}

.dr-footer__messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.dr-footer__messengers a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border: 1px solid var(--dr-border-dark);
  border-radius: 999px;
  color: #dce3ec;
  font-size: 11px;
  font-weight: 720;
}

.dr-footer__messengers a:hover {
  border-color: color-mix(in srgb, var(--dr-accent), transparent 35%);
  background: color-mix(in srgb, var(--dr-accent), transparent 84%);
}

.dr-footer__availability {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3px 7px;
  color: #aab5c2;
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
}

.dr-footer__availability span {
  position: static;
}

.dr-footer__availability span + span::before {
  display: none;
}

.dr-footer__availability-separator {
  color: var(--dr-accent);
  font-size: 11px;
  line-height: 1;
}

.dr-footer__cta {
  width: fit-content;
  min-height: 40px;
  padding: 9px 16px;
  white-space: nowrap;
}

/* Cities: reduce top/bottom whitespace as requested. */
.dr-footer__cities {
  position: relative;
  display: grid;
  grid-template-columns: minmax(195px, auto) 1fr;
  align-items: center;
  gap: 8px 26px;
  padding-block: 9px 10px;
}

.dr-footer__cities-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 12px;
}

.dr-footer__cities-heading strong {
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.dr-footer__cities-heading a {
  width: fit-content;
  color: #8fb4ff;
  font-size: 11px;
}

.dr-footer__cities > .dr-footer__links,
.dr-footer__cities > ul.dr-footer__links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 2px 0;
}

.dr-footer__cities > .dr-footer__links li,
.dr-footer__cities > ul.dr-footer__links li {
  display: inline-flex;
  align-items: center;
}

.dr-footer__cities > .dr-footer__links li:not(:last-child)::after,
.dr-footer__cities > ul.dr-footer__links li:not(:last-child)::after {
  content: "·";
  margin-inline: 8px;
  color: #586474;
}

.dr-footer__cities > .dr-footer__links a,
.dr-footer__cities > ul.dr-footer__links a {
  color: #aeb9c6;
  font-size: 11.5px;
  line-height: 1.3;
}

/* Bottom row: legal links + author on the same compact line. */
.dr-footer__bottom {
  border-top: 1px solid var(--dr-border-dark);
  background: rgba(0, 0, 0, 0.16);
}

.dr-footer__bottom-inner {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  padding-block: 8px;
  font-size: 12px;
}

.dr-footer__bottom p {
  margin: 0;
  white-space: nowrap;
}

.dr-footer__bottom nav .dr-footer__links {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px 18px;
}

.dr-footer__bottom nav .dr-footer__links a {
  font-size: 11.5px;
}

/* Existing mobile contact widget. */
.dr-mobile-contact,
.dr-mobile-cta {
  display: none;
}

@media (max-width: 1260px) {
  .dr-footer__grid {
    grid-template-columns: minmax(250px, 1.1fr) repeat(2, minmax(170px, 0.8fr));
  }

  .dr-footer__brand {
    grid-row: span 2;
  }

  .dr-footer__contact-rail {
    grid-template-columns: 1fr auto;
    gap: 10px 18px;
  }

  .dr-footer__phones {
    grid-column: 1 / 2;
  }

  .dr-footer__messengers {
    grid-column: 1 / 2;
  }

  .dr-footer__availability {
    grid-column: 1 / 2;
    justify-content: flex-start;
    text-align: left;
  }

  .dr-footer__cta {
    grid-column: 2 / 3;
    grid-row: 1 / span 3;
  }
}

@media (max-width: 860px) {
  .dr-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-block-start: 30px;
  }

  .dr-footer__brand {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .dr-footer__contact-rail {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .dr-footer__phones,
  .dr-footer__messengers,
  .dr-footer__availability,
  .dr-footer__cta {
    grid-column: auto;
    grid-row: auto;
  }

  .dr-footer__availability {
    justify-content: flex-start;
    text-align: left;
  }

  .dr-footer__cities {
    grid-template-columns: 1fr;
    gap: 5px;
    padding-block: 9px;
  }
}

@media (max-width: 700px) {
  body.dr-mobile-cta-enabled {
    padding-bottom: 72px;
  }

  .dr-footer__grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-block: 28px 21px;
  }

  .dr-footer__brand {
    grid-column: auto;
  }

  .dr-footer__contact-rail {
    gap: 12px;
    padding-block: 13px;
  }

  .dr-footer__phones {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .dr-footer__phone-block {
    min-width: 0;
  }

  .dr-footer__messengers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .dr-footer__availability {
    display: flex;
    gap: 3px 7px;
  }

  .dr-footer__availability-separator {
    display: inline;
  }

  .dr-footer__cta {
    width: 100%;
  }

  .dr-footer__cities {
    padding-block: 8px 9px;
  }

  .dr-footer__cities-heading {
    justify-content: space-between;
  }

  .dr-footer__bottom-inner {
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    padding-block: 12px;
  }

  .dr-footer__bottom nav {
    width: 100%;
  }

  .dr-footer__bottom nav .dr-footer__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 16px;
    justify-content: start;
  }

  .dr-mobile-contact {
    position: fixed;
    z-index: 9998;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
  }

  .dr-mobile-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1px;
    padding: 7px;
    padding-bottom: max(7px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, 0.11);
    background: rgba(13, 15, 18, 0.97);
    box-shadow: 0 -14px 36px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .dr-mobile-cta a,
  .dr-mobile-cta button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0 12px;
    border: 0;
    border-radius: 9px;
    color: #fff !important;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
  }

  .dr-mobile-cta__call {
    background: var(--dr-graphite-700);
  }

  .dr-mobile-cta__message {
    background: var(--dr-accent);
  }

  .dr-mobile-messengers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: min(calc(100% - 14px), 520px);
    margin: 0 auto;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
    background: rgba(17, 19, 23, 0.98);
    box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.24);
  }

  .dr-mobile-messengers[hidden] {
    display: none;
  }

  .dr-mobile-messengers a {
    display: grid;
    min-height: 58px;
    place-items: center;
    gap: 2px;
    padding: 7px 5px;
    border: 1px solid var(--dr-border-dark);
    border-radius: 10px;
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
  }

  .dr-mobile-messengers a span {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--dr-accent), transparent 58%);
    font-size: 11px;
  }
}

@media (max-width: 430px) {
  .dr-footer__phones {
    grid-template-columns: 1fr;
  }

  .dr-footer__messengers {
    grid-template-columns: 1fr;
  }

  .dr-footer__availability {
    display: grid;
    gap: 3px;
  }

  .dr-footer__availability-separator {
    display: none;
  }

  .dr-footer__bottom nav .dr-footer__links {
    grid-template-columns: 1fr;
  }
}