/* Hale Counsel - layout chrome */

/* Overlay nav used on hero pages */
.site-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-nav--solid {
  position: sticky;
  top: 0;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-nav__inner {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  min-height: 44px;
}

.brand__mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  background: var(--gold-500);
  color: var(--navy-900);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand__name {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand__tag {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.2rem;
}

body.is-discreet .brand__name,
body.is-discreet .discreet-blur {
  filter: blur(5px);
  user-select: none;
}

body.is-discreet .brand__name::after {
  content: none;
}

body.is-discreet .brand__tag {
  letter-spacing: 0.12em;
}

body.is-discreet .phone-chip,
body.is-discreet .phone-prominent {
  opacity: 0.35;
  filter: blur(1px);
}

.privacy-chip {
  display: none;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-500);
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.08);
  border-radius: var(--radius);
  padding: 0.3rem 0.55rem;
}

body.is-discreet .privacy-chip {
  display: inline-flex;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.5rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--white);
}

.phone-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  color: var(--white);
  backdrop-filter: blur(8px);
  transition: background var(--transition);
}

.phone-chip:hover {
  background: rgba(255, 255, 255, 0.2);
}

.discreet-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.75);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 0.45rem 0.65rem;
  min-height: 40px;
}

.discreet-toggle[aria-pressed="true"] {
  color: var(--gold-500);
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.1);
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 13, 24, 0.55);
  z-index: calc(var(--z-drawer) - 1);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(20rem, 88vw);
  height: 100%;
  background: var(--navy-900);
  color: var(--white);
  z-index: var(--z-drawer);
  transform: translateX(100%);
  transition: transform var(--transition);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.drawer nav a {
  padding: 0.85rem 0.75rem;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.85);
  min-height: 44px;
}

.drawer nav a:hover,
.drawer nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.drawer-close {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  background: transparent;
  color: var(--white);
  display: grid;
  place-items: center;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-bottom-nav);
  height: var(--bottom-nav-h);
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--slate-200);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  backdrop-filter: blur(10px);
}

@media (min-width: 1024px) {
  .bottom-nav {
    display: none;
  }
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--slate-500);
  min-height: 44px;
}

.bottom-nav a[aria-current="page"],
.bottom-nav a.is-active {
  color: var(--navy-900);
}

.bottom-nav .icon {
  width: 1.15rem;
  height: 1.15rem;
}

.page-main {
  min-height: 60vh;
}

.page-hero {
  background: var(--navy-900);
  color: var(--white);
  padding: 5.5rem 0 3.5rem;
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--white);
}

.page-hero p {
  margin: 0;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-lg);
  font-weight: 300;
}

.site-footer {
  background: var(--slate-100);
  color: var(--slate-600);
  border-top: 1px solid var(--slate-200);
  padding: 4rem 0 6rem;
  font-size: var(--text-sm);
}

@media (min-width: 1024px) {
  .site-footer {
    padding-bottom: 4rem;
  }
}

.site-footer__grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.site-footer h4 {
  margin: 0 0 1.25rem;
  color: var(--navy-900);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.site-footer a:hover {
  color: var(--gold-600);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--navy-900);
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-brand .icon {
  color: var(--gold-500);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer-social a {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--slate-200);
  display: grid;
  place-items: center;
  color: var(--slate-600);
  transition: background var(--transition), color var(--transition);
}

.footer-social a:hover {
  background: var(--gold-500);
  color: var(--navy-900);
  border-color: var(--gold-500);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--slate-200);
  font-size: 0.7rem;
  color: var(--slate-500);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.attorney-disclaimer {
  max-width: 48rem;
  margin-inline: auto;
  line-height: 1.5;
}

.toast-stack {
  position: fixed;
  right: 1rem;
  bottom: calc(var(--bottom-nav-h) + 1rem);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: min(22rem, calc(100vw - 2rem));
  pointer-events: none;
}

@media (min-width: 1024px) {
  .toast-stack {
    bottom: 1.25rem;
  }
}

.toast {
  pointer-events: auto;
  background: var(--navy-900);
  color: var(--white);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1rem;
  font-size: var(--text-sm);
  box-shadow: var(--shadow-lg);
}

.toast--success {
  border-color: rgba(21, 128, 61, 0.5);
}

.toast--error {
  border-color: rgba(185, 28, 28, 0.5);
}
