/* ==========================================================================
   Site Footer — .dc-footer
   Presentation only. Markup: template-parts/footer/footer-main.php.
   `.dc-footer-cta*` is a SEPARATE component (services-page CTA band) and is not
   styled here.
   ========================================================================== */

.dc-footer {
  --dcf-ink: #ffffff;
  --dcf-muted: rgba(255, 255, 255, 0.66);
  --dcf-faint: rgba(255, 255, 255, 0.45);
  --dcf-accent: var(--dc-champagne, var(--dc-gold, #c9b89a));
  --dcf-accent-strong: var(--dc-gold, #ac8d62);
  --dcf-hairline: rgba(172, 141, 98, 0.22);
  --dcf-card: rgba(255, 255, 255, 0.045);

  background: #4a4334;
  color: var(--dcf-muted);
  border-top: 1px solid var(--dcf-hairline);
  font-size: 14px;
  line-height: 1.7;
  content-visibility: auto;
  contain-intrinsic-size: auto 640px;
}

/* Accessible section headings (WP core usually provides this — scope a copy). */
.dc-footer .screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dc-footer .dc-container {
  padding-top: clamp(72px, 9vw, 100px);
  padding-bottom: clamp(56px, 7vw, 88px);
}

/* ---- Column grid: 3 equal → 2 → 1 --------------------------------------------- */
.dc-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 72px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--dcf-hairline);
}

.dc-footer__brand,
.dc-footer__services,
.dc-footer__contact {
  min-width: 0;
}

/* ---- Brand ---------------------------------------------------------------- */
.dc-footer__logo {
  display: block;
  width: 70px;
  max-width: 100%;
  height: auto;
  margin-bottom: 32px;
  filter: brightness(0) invert(1);
}

/* Clinic description — shown in full, no truncation. */
.dc-footer__desc {
  margin: 0 0 28px;
  max-width: 46ch;
  color: var(--dcf-muted);
}

.dc-footer__desc p {
  margin: 0 0 0.6em;
}

.dc-footer__desc p:last-child {
  margin-bottom: 0;
}

.dc-footer__address {
  font-style: normal;
  display: grid;
  gap: 6px;
  margin-bottom: 30px;
}

.dc-footer__address-name {
  color: var(--dcf-ink);
  font-weight: 600;
}

.dc-footer__address-line,
.dc-footer__address-hours {
  font-size: 13.5px;
  color: var(--dcf-muted);
}

.dc-footer__address-hours {
  color: var(--dcf-faint);
}

/* Large Google Map button */
.dc-footer__map-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border: 1px solid var(--dcf-hairline);
  border-radius: 999px;
  color: var(--dcf-accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.dc-footer__map-btn:hover,
.dc-footer__map-btn:focus-visible {
  border-color: var(--dcf-accent-strong);
  background: rgba(172, 141, 98, 0.14);
  color: var(--dcf-ink);
}

.dc-footer__map-btn .material-symbols-outlined {
  font-size: 20px;
}

/* ---- Column headings ---------------------------------------------------------- */
.dc-footer__heading {
  margin: 0 0 28px;
  font-family: var(--dc-font-mono, inherit);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dcf-accent);
}

/* ---- Center: popular services ----------------------------------------------- */
.dc-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 13px;
}

.dc-footer__list a {
  color: var(--dcf-muted);
  text-decoration: none;
  font-size: 14.5px;
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.dc-footer__list a:hover,
.dc-footer__list a:focus-visible {
  color: var(--dcf-accent);
  padding-left: 6px;
}

/* ---- Right: contact cards -------------------------------------------------------- */
.dc-footer__cards {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.dc-footer__card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 17px 18px;
  border: 1px solid var(--dcf-hairline);
  border-radius: 16px;
  background: var(--dcf-card);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.dc-footer__card:hover,
.dc-footer__card:focus-visible {
  border-color: var(--dcf-accent-strong);
  background: rgba(172, 141, 98, 0.12);
  transform: translateY(-2px);
}

.dc-footer__card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--dcf-accent);
  font-size: 20px;
}

.dc-footer__card-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.dc-footer__card-label {
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dcf-faint);
}

.dc-footer__card-value {
  color: var(--dcf-ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.dc-footer__website {
  margin: 0;
  font-size: 13.5px;
}

.dc-footer__website a {
  color: var(--dcf-accent);
  text-decoration: none;
}

.dc-footer__website a:hover {
  color: var(--dcf-ink);
}

/* ---- Bottom bar ------------------------------------------------------------- */
.dc-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding: 24px 0 8px;
}

.dc-footer__copyright {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--dcf-faint);
}

.dc-footer__legal ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.dc-footer__legal a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--dcf-accent);
  text-decoration: none;
  transition: color 0.25s ease;
}

.dc-footer__legal a:hover,
.dc-footer__legal a:focus-visible {
  color: var(--dcf-ink);
}

/* ---- Tablet: 2 columns ---------------------------------------------------------- */
@media (min-width: 640px) {
  .dc-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 48px;
  }
  .dc-footer__brand {
    grid-column: 1 / -1;
  }
}

/* ---- Desktop: 3 equal columns ------------------------------------------------- */
@media (min-width: 1024px) {
  .dc-footer__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 64px;
  }
  .dc-footer__brand {
    grid-column: auto;
  }
}

/* ---- Mobile: 1 column, order Contact → Services → Brand --------------------- */
@media (max-width: 639px) {
  .dc-footer .dc-container {
    padding-bottom: calc(var(--dc-bottom-nav-height, 68px) + 24px + env(safe-area-inset-bottom));
  }
  .dc-footer__grid {
    gap: 36px;
    padding-bottom: 36px;
  }
  .dc-footer__contact {
    order: 1;
  }
  .dc-footer__services {
    order: 2;
  }
  .dc-footer__brand {
    order: 3;
  }
  .dc-footer__logo {
    height: 64px;
  }
  .dc-footer__desc {
    max-width: none;
  }
  .dc-footer__bottom {
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dc-footer * {
    transition: none !important;
  }
}
