/* Header nav (4 Nov 2026): four real links, a Practice Areas dropdown, and a
   call-or-book cluster set apart by one thin gold divider. Loads after
   styles.css and overrides it by specificity, never by editing it. */

/* ---------- shared: links read as links ---------- */
.site-head .nav .nav-links > a,
.site-head .nav .nav-dd-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 0; margin: 0; background: none; border: 0; border-radius: 0;
  font: 500 0.92rem/1.2 var(--sans); letter-spacing: 0.01em;
  color: #d8dee6; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: color 0.2s;
}
.site-head .nav .nav-links > a::after,
.site-head .nav .nav-dd-btn::after,
.site-head .nav .nav-panel a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: right center;
  transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.site-head .nav .nav-links > a:hover,
.site-head .nav .nav-dd-btn:hover,
.site-head .nav .nav-links > a:focus-visible,
.site-head .nav .nav-dd-btn:focus-visible,
.site-head .nav .nav-links > a.is-current,
.site-head .nav .nav-dd-btn.is-current,
.site-head .nav .nav-dd-btn[aria-expanded="true"] { color: #fff; }
.site-head .nav .nav-links > a:hover::after,
.site-head .nav .nav-dd-btn:hover::after,
.site-head .nav .nav-links > a:focus-visible::after,
.site-head .nav .nav-dd-btn:focus-visible::after,
.site-head .nav .nav-links > a.is-current::after,
.site-head .nav .nav-dd-btn.is-current::after,
.site-head .nav .nav-dd-btn[aria-expanded="true"]::after,
.site-head .nav .nav-panel a:hover::after,
.site-head .nav .nav-panel a:focus-visible::after,
.site-head .nav .nav-panel a[aria-current]::after { transform: scaleX(1); transform-origin: left center; }
.site-head .nav .nav-links > a:focus-visible,
.site-head .nav .nav-dd-btn:focus-visible,
.site-head .nav .nav-panel a:focus-visible,
.site-head .nav .nav-phone:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 3px; box-shadow: none;
}
.site-head .nav .nav-links > a:focus:not(:focus-visible),
.site-head .nav .nav-dd-btn:focus:not(:focus-visible),
.site-head .nav .nav-panel a:focus:not(:focus-visible),
.site-head .nav .nav-phone:focus:not(:focus-visible) { outline: 0; box-shadow: none; }

.nav-chev {
  width: 6px; height: 6px; flex: none; opacity: 0.8;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.25s ease;
}
.nav-dd-btn[aria-expanded="true"] .nav-chev { transform: translateY(2px) rotate(225deg); }

.nav-contact { display: none !important; }

/* ---------- panel ---------- */
.site-head .nav .nav-panel a {
  position: relative; display: inline-block; padding: 5px 0;
  color: #c8d0da; font-size: 0.9rem; font-weight: 400; text-decoration: none; white-space: nowrap;
  transition: color 0.2s;
}
.site-head .nav .nav-panel a:hover,
.site-head .nav .nav-panel a:focus-visible { color: #fff; }
.site-head .nav .nav-panel a[aria-current] { color: var(--gold-soft); }
.nav-panel ul { list-style: none; margin: 0; padding: 0; }
.site-head .nav .nav-panel .nav-col-head {
  padding: 0; font-family: var(--serif); font-size: 1.4rem; font-weight: 600;
  line-height: 1.2; color: var(--gold-soft);
}
.site-head .nav .nav-panel .nav-col-head:hover,
.site-head .nav .nav-panel .nav-col-head:focus-visible { color: #fff; }

/* ---------- desktop ---------- */
@media (min-width: 961px) {
  .head-row { position: relative; }
  html .site-head .nav { gap: 0; margin-left: 0; flex: 1; min-width: 0; }
  .site-head .nav .nav-links { display: flex; align-items: center; gap: 26px; margin: 0 auto; }
  .nav-dd { display: flex; align-items: center; }

  .site-head .nav .nav-phone {
    position: relative; margin-left: 32px; padding: 8px 0;
    color: var(--gold-soft) !important; font-size: 0.9rem; font-weight: 400 !important;
    letter-spacing: 0.02em; font-variant-numeric: tabular-nums;
    transition: color 0.2s;
  }
  .site-head .nav .nav-phone::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: var(--gold); transform: scaleX(0); transform-origin: right center;
    transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .site-head .nav .nav-phone:hover,
  .site-head .nav .nav-phone:focus-visible { color: #fff !important; }
  .site-head .nav .nav-phone:hover::after,
  .site-head .nav .nav-phone:focus-visible::after { transform: scaleX(1); transform-origin: left center; }
  .site-head .nav .nav-phone::before {
    content: ""; position: absolute; left: -17px; top: 50%; width: 1px; height: 30px;
    background: rgba(194, 161, 76, 0.55); transform: translateY(-50%);
  }
  .site-head .nav .lang { margin-left: 16px; }

  .nav-panel {
    position: absolute; top: calc(100% + 1px); left: var(--nav-px, 50%); z-index: 2;
    width: min(660px, 100%); box-sizing: border-box;
    display: grid; grid-template-columns: 1fr 1fr;
    padding: 30px 0 28px;
    background: var(--navy-950);
    border: 1px solid rgba(194, 161, 76, 0.25); border-top: 0;
    box-shadow: 0 24px 48px rgba(4, 10, 18, 0.5);
    opacity: 0; visibility: hidden; transform: translate(var(--nav-tx, -50%), -6px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
  }
  .nav-dd.is-open .nav-panel {
    opacity: 1; visibility: visible; transform: translate(var(--nav-tx, -50%), 0);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s;
  }
  .nav-col { padding: 0 40px; }
  .nav-col + .nav-col { border-left: 1px solid rgba(194, 161, 76, 0.25); }
  .nav-col-head { margin-bottom: 14px; }
  .nav-col-head + ul { padding-top: 14px; border-top: 1px solid rgba(194, 161, 76, 0.25); }
  .nav-col-head { display: inline-block; }
}
@media (min-width: 961px) and (max-width: 1180px) {
  html:lang(es) .site-head .nav .nav-links { gap: 22px; }
}
@media (min-width: 1181px) {
  .site-head .nav .nav-links { gap: 32px; }
  html .site-head .head-cta { margin-left: 4px; }
}
@media (min-width: 1280px) {
  .site-head .nav .nav-links { gap: 38px; }
}

/* ---------- phone menu (<= 960 px) ---------- */
@media (max-width: 960px) {
  .site-head .nav { max-height: calc(100vh - 76px); max-height: calc(100dvh - 76px); overflow-y: auto; }
  .site-head .nav .nav-links { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .nav-dd { display: block; }
  .site-head .nav .nav-links > a,
  .site-head .nav .nav-dd-btn {
    display: flex; width: 100%; justify-content: space-between; box-sizing: border-box;
    padding: 13px 24px; font-size: 1rem; text-align: left;
  }
  .site-head .nav .nav-links > a::after,
  .site-head .nav .nav-dd-btn::after { display: none; }
  .site-head .nav .nav-links > a.is-current,
  .site-head .nav .nav-dd-btn.is-current { color: var(--gold-soft); }
  .site-head .nav .nav-links > .nav-contact { display: flex !important; }
  .site-head .nav .nav-dd-btn:focus-visible,
  .site-head .nav .nav-links > a:focus-visible,
  .site-head .nav .nav-panel a:focus-visible { outline-offset: -4px; }

  .nav-panel { display: none; padding: 4px 0 10px; background: rgba(255, 255, 255, 0.03); }
  .nav-dd.is-open .nav-panel { display: block; animation: nav-fade 0.2s ease; }
  .nav-col + .nav-col { margin-top: 6px; }
  .site-head .nav .nav-panel .nav-col-head {
    display: block; padding: 12px 24px 4px; font-size: 1.2rem; white-space: normal;
  }
  .site-head .nav .nav-panel li a {
    display: block; padding: 9px 24px 9px 40px; font-size: 0.95rem;
  }
  .site-head .nav .nav-panel a::after { display: none; }
  .site-head .nav .nav-panel li a[aria-current] { color: var(--gold-soft); }
  .site-head .nav .nav-phone { color: var(--gold) !important; }
}
@keyframes nav-fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .site-head .nav .nav-links > a,
  .site-head .nav .nav-dd-btn,
  .site-head .nav .nav-panel a,
  .site-head .nav .nav-phone,
  .site-head .nav .nav-links > a::after,
  .site-head .nav .nav-dd-btn::after,
  .site-head .nav .nav-panel a::after,
  .nav-chev, .nav-panel, .nav-dd.is-open .nav-panel { transition: none; animation: none; }
}

/* Practice Areas panel: the same practice icons as the homepage lists (4 Nov 2026) */
.site-head .nav .nav-panel li a { display: inline-flex; align-items: center; gap: 10px; }
.nav-panel .nav-ic { flex: none; display: inline-flex; width: 18px; height: 18px; color: var(--gold); }
.nav-panel .nav-ic svg { width: 100%; height: 100%; }
/* the hover/current underline sits under the words, not the icon */
.site-head .nav .nav-panel li a:has(.nav-ic)::after { left: 28px; }
