/* ============================================================
   Dr. Hines Inc. - Unified site chrome (nav + footer)
   ============================================================
   ONE nav bar and ONE footer for every page on the site.

   This file is deliberately self-contained. Pages on this site
   ship three different design systems (redesign.css, style.css,
   retro93.css) plus a lot of per-page inline CSS, including bare
   `nav {}` and `footer {}` rules. Every selector here is class
   scoped under .dhx-nav / .dhx-footer so it out-specifies those
   bare element rules, and every property those rules touch is
   re-declared explicitly so nothing leaks in.

   Namespace: dhx-  (nothing else on the site uses it)
   Do not rename the classes without updating js/nav.js and
   scripts/unify-chrome.js.
   ============================================================ */

.dhx-nav,
.dhx-footer {
  --dhx-ink: #211911;
  --dhx-ink-deep: #1a140d;
  --dhx-ivory: #f5f1e6;
  --dhx-ivory-dim: #cfc7b8;
  --dhx-ivory-faint: #9a8f7d;
  --dhx-gold: #d4a843;
  --dhx-gold-soft: #ffe9b0;
  --dhx-line: rgba(245, 241, 230, 0.14);
  --dhx-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --dhx-serif: Georgia, "Times New Roman", serif;
  font-family: var(--dhx-sans);
  box-sizing: border-box;
}
.dhx-nav *,
.dhx-footer * { box-sizing: border-box; }

/* ---------------- Nav ---------------- */

header.dhx-nav,
.dhx-nav {
  display: block;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: rgba(26, 20, 13, 0.97);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: none;
  border-bottom: 1px solid var(--dhx-line);
  box-shadow: none;
  text-align: left;
  line-height: 1.5;
  font-size: 16px;
  color: var(--dhx-ivory);
}

.dhx-nav .dhx-nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: none;
  border: none;
}

.dhx-nav a.dhx-brand,
.dhx-nav .dhx-brand {
  font-family: var(--dhx-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--dhx-ivory);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
  background: none;
  border: none;
  padding: 0;
  text-transform: none;
}
.dhx-nav .dhx-brand span { color: var(--dhx-gold); }
.dhx-nav .dhx-brand:hover { color: var(--dhx-gold-soft); }

/* The link list. `nav` is a bare-styled element on ~20 pages, so
   every property those rules set is re-declared here. */
.dhx-nav nav.dhx-links,
.dhx-nav .dhx-links {
  position: static;
  top: auto;
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 26px;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  list-style: none;
  z-index: auto;
  width: auto;
  justify-content: flex-end;
}

.dhx-nav .dhx-links a {
  display: inline-block;
  font-family: var(--dhx-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--dhx-ivory-dim);
  text-decoration: none;
  letter-spacing: 0.02em;
  text-transform: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  white-space: nowrap;
  line-height: 1.4;
}
.dhx-nav .dhx-links a:visited { color: var(--dhx-ivory-dim); }
.dhx-nav .dhx-links a:hover,
.dhx-nav .dhx-links a[aria-current="page"] { color: var(--dhx-gold-soft); }

.dhx-nav .dhx-links a.dhx-cta,
.dhx-nav a.dhx-cta {
  background: var(--dhx-gold);
  color: var(--dhx-ink);
  padding: 10px 17px;
  border-radius: 5px;
  font-weight: 800;
  font-size: 13.5px;
  text-decoration: none;
  white-space: nowrap;
  border: none;
}
.dhx-nav .dhx-links a.dhx-cta:visited { color: var(--dhx-ink); }
.dhx-nav .dhx-links a.dhx-cta:hover { background: var(--dhx-gold-soft); color: var(--dhx-ink); }

.dhx-nav button.dhx-menu-btn,
.dhx-nav .dhx-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--dhx-line);
  border-radius: 5px;
  color: var(--dhx-ivory);
  font-size: 20px;
  line-height: 1;
  padding: 8px 12px;
  cursor: pointer;
  font-family: var(--dhx-sans);
  box-shadow: none;
  text-transform: none;
  width: auto;
  height: auto;
  min-width: 0;
}

@media (max-width: 860px) {
  .dhx-nav nav.dhx-links,
  .dhx-nav .dhx-links { display: none; }

  .dhx-nav nav.dhx-links.open,
  .dhx-nav .dhx-links.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--dhx-ink-deep);
    border-bottom: 1px solid var(--dhx-line);
    padding: 8px 20px 20px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    z-index: 9001;
  }
  .dhx-nav .dhx-links.open a {
    display: block;
    padding: 15px 4px;
    border-bottom: 1px solid var(--dhx-line);
    font-size: 16px;
    white-space: normal;
  }
  .dhx-nav .dhx-links.open a.dhx-cta {
    margin-top: 14px;
    padding: 15px 18px;
    text-align: center;
    border-bottom: none;
    font-size: 16px;
  }
  .dhx-nav button.dhx-menu-btn,
  .dhx-nav .dhx-menu-btn { display: block; }
  .dhx-nav .dhx-nav-inner { position: relative; }
}

/* ---------------- Footer ---------------- */

footer.dhx-footer,
.dhx-footer {
  display: block;
  position: static;
  clear: both;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 46px 0 32px;
  background: var(--dhx-ink-deep);
  color: var(--dhx-ivory-dim);
  border: none;
  border-top: 1px solid var(--dhx-line);
  box-shadow: none;
  text-align: left;
  font-family: var(--dhx-sans);
  font-size: 14px;
  line-height: 1.7;
}

.dhx-footer .dhx-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 22px;
}

.dhx-footer .dhx-footer-cta {
  display: block;
  margin: 0 auto 38px;
  max-width: 420px;
  text-align: center;
  background: var(--dhx-gold);
  color: var(--dhx-ink);
  font-size: 17px;
  font-weight: 800;
  padding: 16px 24px;
  border-radius: 7px;
  text-decoration: none;
  border: none;
}
.dhx-footer .dhx-footer-cta:visited { color: var(--dhx-ink); }
.dhx-footer .dhx-footer-cta:hover { background: var(--dhx-gold-soft); color: var(--dhx-ink); }

.dhx-footer .dhx-footer-cols {
  display: grid;
  gap: 28px 24px;
  grid-template-columns: 1fr;
  margin-bottom: 34px;
}
@media (min-width: 640px) {
  .dhx-footer .dhx-footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 940px) {
  .dhx-footer .dhx-footer-cols { grid-template-columns: repeat(4, 1fr); }
}

.dhx-footer .dhx-col h2 {
  font-family: var(--dhx-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dhx-gold);
  margin: 0 0 12px;
  padding: 0;
  border: none;
  background: none;
  line-height: 1.4;
}
.dhx-footer .dhx-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dhx-footer .dhx-col li {
  list-style: none;
  margin: 0 0 9px;
  padding: 0;
  background: none;
}
.dhx-footer .dhx-col li::before { content: none; }
.dhx-footer .dhx-col a {
  font-family: var(--dhx-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--dhx-ivory-dim);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  text-transform: none;
}
.dhx-footer .dhx-col a:visited { color: var(--dhx-ivory-dim); }
.dhx-footer .dhx-col a:hover { color: var(--dhx-gold-soft); text-decoration: underline; }

.dhx-footer .dhx-footer-meta {
  border-top: 1px solid var(--dhx-line);
  padding-top: 22px;
  margin: 0;
  font-family: var(--dhx-sans);
  font-size: 12.5px;
  color: var(--dhx-ivory-faint);
  line-height: 1.85;
  text-align: left;
}
.dhx-footer .dhx-footer-meta a {
  color: var(--dhx-ivory-dim);
  text-decoration: none;
  font-size: 12.5px;
}
.dhx-footer .dhx-footer-meta a:visited { color: var(--dhx-ivory-dim); }
.dhx-footer .dhx-footer-meta a:hover { color: var(--dhx-gold-soft); }
.dhx-footer .dhx-footer-meta strong { color: var(--dhx-ivory-dim); }
