/*
 * Urban Spine and Joint: "Boutique Wellness" header & footer (2026-10-14).
 * Replaces the Franklin Square theme header/footer. The theme still ships generic
 * header/footer rules with !important, so selectors here are scoped to
 * header.usj-header / footer.usj-footer and use !important where they must win.
 */
:root {
  --usj-taupe: #645B58;
  --usj-taupe-d: #4E4644;
  --usj-brown: #997C60;
  --usj-brown-d: #7E644C;
  --usj-cream: #F7F2EC;
  --usj-sand: #EDE3D8;
  --usj-yellow: #FFEB3B;
  --usj-serif: 'Playfair Display', Georgia, serif;
  --usj-sans: 'Inter', Arial, sans-serif;
}

/* ---------- Header ---------- */
.usj-header-shell { background: var(--usj-cream); padding: 14px 24px; position: relative; z-index: 1000; }
header.usj-header {
  background: #fff !important; background-image: none !important;
  max-width: 1320px; margin: 0 auto; border-radius: 999px;
  padding: 10px 12px 10px 26px !important;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  box-shadow: 0 6px 24px rgba(100, 91, 88, .14);
  font-family: var(--usj-sans);
}
.usj-logo { display: block; flex: 0 0 auto; line-height: 0; }
.usj-logo img {
  height: 50px; width: auto; display: block;
  /* only a white logo file exists: recolor it to brand taupe */
  filter: brightness(0) saturate(100%) invert(36%) sepia(8%) saturate(565%) hue-rotate(323deg) brightness(92%) contrast(88%);
}
header.usj-header nav.usj-nav { width: auto !important; margin: 0 !important; }
.usj-menu, .usj-sub { list-style: none; margin: 0; padding: 0; }
.usj-menu { display: flex; align-items: center; gap: 2px; }
.usj-menu > li { position: relative; }
.usj-menu > li > .usj-link {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font: 500 14.5px/1.2 var(--usj-sans); color: var(--usj-taupe-d) !important;
  padding: 9px 11px; border-radius: 12px; background: none; border: 0; cursor: pointer;
  text-decoration: none !important; transition: background .2s, color .2s;
}
.usj-menu > li > .usj-link:hover, .usj-menu > li:focus-within > .usj-link { background: var(--usj-cream); color: var(--usj-brown-d) !important; }
.usj-menu > li.is-current > .usj-link { color: var(--usj-brown-d) !important; }
.usj-menu > li.is-current > .usj-link::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--usj-brown); flex: 0 0 auto;
}
.usj-caret { font-size: 10px; opacity: .65; transition: transform .2s; }

/* dropdowns (desktop) */
.usj-sub {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 6px);
  background: #fff; border-radius: 18px; padding: 12px; min-width: 240px;
  box-shadow: 0 14px 40px rgba(78, 70, 68, .18); border: 1px solid var(--usj-sand);
  opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s; z-index: 1001;
}
.usj-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* hover bridge */
.usj-sub.is-wide { columns: 2; column-gap: 8px; width: 620px; }
.usj-sub li { break-inside: avoid; }
.usj-sub a {
  display: block; padding: 8px 12px; border-radius: 10px; text-decoration: none !important;
  font: 400 14px/1.35 var(--usj-sans); color: var(--usj-taupe-d) !important;
}
.usj-sub a:hover, .usj-sub a:focus, .usj-sub li.is-current > a { background: var(--usj-cream); color: var(--usj-brown-d) !important; }
@media (min-width: 1181px) {
  .usj-menu > li:hover > .usj-sub, .usj-menu > li:focus-within > .usj-sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .usj-menu > li:hover .usj-caret { transform: rotate(180deg); }
}

.usj-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.usj-call {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--usj-sand); color: var(--usj-brown-d) !important; text-decoration: none !important; transition: background .2s;
}
.usj-call:hover { background: #e3d5c6; }
.usj-book, .usj-footer .usj-book {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: var(--usj-yellow); color: #1a1a1a !important; text-decoration: none !important;
  font: 600 15px/1 var(--usj-sans); padding: 13px 20px; border-radius: 999px; transition: transform .15s, box-shadow .15s;
}
.usj-book:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 0, 0, .12); }
.usj-burger {
  display: none; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--usj-cream); color: var(--usj-taupe-d); font-size: 17px;
}

/* ---------- Mobile / tablet header ---------- */
@media (max-width: 1180px) {
  .usj-header-shell { padding: 10px 12px; }
  header.usj-header { border-radius: 26px; flex-wrap: wrap; padding: 8px 8px 8px 18px !important; gap: 8px; }
  .usj-logo img { height: 40px; }
  .usj-burger { display: grid; place-items: center; order: 3; }
  .usj-actions { order: 2; margin-left: auto; }
  header.usj-header nav.usj-nav { order: 4; flex: 1 0 100%; display: none; padding: 6px 4px 10px; }
  header.usj-header.is-open nav.usj-nav { display: block; }
  .usj-menu { flex-direction: column; align-items: stretch; gap: 0; }
  .usj-menu > li { border-top: 1px solid var(--usj-sand); }
  .usj-menu > li > .usj-link { width: 100%; justify-content: flex-start; padding: 13px 10px; border-radius: 10px; font-size: 16px; }
  .usj-sub, .usj-sub.is-wide {
    position: static; transform: none; width: auto; columns: 1; box-shadow: none; border: 0;
    padding: 0 0 8px 10px; opacity: 1; visibility: visible; display: none; border-radius: 0;
  }
  .usj-sub::before { display: none; }
  .usj-menu > li.is-expanded > .usj-sub { display: block; }
  .usj-menu > li.is-expanded .usj-caret { transform: rotate(180deg); }
  .usj-menu > li > .usj-link .usj-caret { margin-left: auto; }
}
@media (max-width: 480px) {
  .usj-book { padding: 11px 14px; font-size: 14px; }
  .usj-book .usj-book-icon { display: none; }
  .usj-call { width: 38px; height: 38px; }
}

/* ---------- Footer ---------- */
footer.usj-footer {
  background: transparent !important; color: #f1eae5 !important; padding: 0 !important; margin-top: 40px;
  font-family: var(--usj-sans); position: relative;
}
.usj-wave { display: block; width: 100%; height: 64px; margin-bottom: -1px; }
.usj-footer-body { background: var(--usj-taupe); padding: 36px 24px 0; }
.usj-footer-grid { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; padding-bottom: 40px; }
.usj-card {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px; padding: 26px;
}
.usj-card .usj-flogo { height: 50px; width: auto; display: block; margin-bottom: 16px; }
footer.usj-footer h2.usj-card-title {
  font: 500 21px/1.2 var(--usj-serif) !important; color: #fff !important; margin: 0 0 14px !important;
  text-transform: none !important; letter-spacing: 0;
}
footer.usj-footer p { color: rgba(241, 234, 229, .88) !important; font-size: 14.5px !important; line-height: 1.65 !important; margin: 0 0 18px !important; }
.usj-social { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.usj-social a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--usj-cream); color: var(--usj-taupe-d) !important; text-decoration: none !important; transition: transform .15s, background .15s;
}
.usj-social a:hover { transform: translateY(-2px); background: #fff; }
.usj-pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.usj-pills a {
  display: inline-block; background: rgba(255, 255, 255, .1); color: #fff !important; text-decoration: none !important;
  border-radius: 999px; padding: 8px 14px; font-size: 13.5px; transition: background .15s;
}
.usj-pills a:hover { background: rgba(255, 255, 255, .2); }
.usj-visit { list-style: none; margin: 0 0 18px; padding: 0; }
.usj-visit li { display: flex; gap: 10px; margin: 0 0 11px; font-size: 14.5px; line-height: 1.5; }
.usj-visit i { color: #d9c3ad; width: 16px; margin-top: 4px; text-align: center; flex: 0 0 16px; }
.usj-visit a { color: #f1eae5 !important; text-decoration: none !important; }
.usj-visit a:hover { color: #fff !important; text-decoration: underline !important; }
.usj-footer-bottom {
  text-align: center; padding: 18px 16px; font-size: 13px; color: rgba(241, 234, 229, .8);
  border-top: 1px solid rgba(255, 255, 255, .12); max-width: 1120px; margin: 0 auto;
}
.usj-footer-bottom a { color: rgba(241, 234, 229, .9) !important; margin: 0 6px; text-decoration: none !important; }
.usj-footer-bottom a:hover { color: #fff !important; text-decoration: underline !important; }
@media (max-width: 900px) { .usj-footer-grid { grid-template-columns: 1fr 1fr; } .usj-footer-grid > .usj-card:first-child { grid-column: 1 / -1; } }
@media (max-width: 600px) { .usj-footer-grid { grid-template-columns: 1fr; } .usj-wave { height: 40px; } .usj-footer-body { padding: 24px 16px 0; } }

/* keep the floating Zocdoc / accessibility widgets from covering the footer bottom bar on phones */
@media (max-width: 600px) { .usj-footer-bottom { padding-bottom: 80px; } }

.usj-skip { position: absolute; left: -9999px; top: 8px; z-index: 2000; background: #fff; color: var(--usj-taupe-d); padding: 10px 16px; border-radius: 999px; }
.usj-skip:focus { left: 16px; }

/* About Us banner: keep the heading inside the screen on phones */
@media (max-width: 767px) {
  .elementor-6864 .elementor-element-cd7b4dc .elementor-heading-title { font-size: 42px !important; line-height: 1.1 !important; }
  .elementor-6864 .elementor-element-cd7b4dc { padding-left: 20px !important; padding-right: 20px !important; }
}
