:root {
  --black: #080705;
  --panel: #14120c;
  --panel-hover: #1a1710;
  --border: #2b2415;
  --border-soft: #201b11;
  --gold: #c9a24b;
  --gold-bright: #e8c877;
  --gold-dim: #8a713a;
  --text: #f2ede1;
  --muted: #a89a7c;
  --ok: #4caf6b;
  --danger: #e0665a;
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: radial-gradient(ellipse at top, #362f22 0%, #241f16 55%, #14100a 100%);
  background-color: #14100a;
  color: var(--text);
  font: 16px/1.6 "Inter", system-ui, "Segoe UI", Arial, sans-serif;
}

/* Gentle back-and-forth breathing over the base background — lightens
   toward a warm grey, then settles back, on a slow repeating cycle. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #6b6459;
  opacity: 0;
  animation: bgBreathe 9s ease-in-out infinite;
}
@keyframes bgBreathe {
  0%, 100% { opacity: 0; }
  50% { opacity: .45; }
}
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}

h1, h2, h3, .brand {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: .2px;
}

h1 { font-size: 2.1rem; color: var(--gold-bright); margin: .2rem 0 .3rem; }
h2 { color: var(--gold-bright); }
h3 { color: var(--text); }

/* A moving sheen sweeping across the "Attorney Menu" brand lettering,
   like light glancing off polished gold. */
.gold-shine {
  background: linear-gradient(
    100deg,
    var(--gold-dim) 25%,
    var(--gold-bright) 45%,
    #fff6d9 50%,
    var(--gold-bright) 55%,
    var(--gold-dim) 75%
  );
  background-size: 250% 100%;
  background-position: 200% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: goldShine 5s ease-in-out infinite;
}
@keyframes goldShine {
  0%, 15% { background-position: 200% 0; }
  85%, 100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .gold-shine { animation: none; background-position: 0 0; }
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); text-decoration: underline; }

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(8, 7, 5, .92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(201, 162, 75, .25);
}

.nav {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  padding: .95rem 1.2rem;
  display: flex;
  gap: 1.4rem;
  align-items: center;
}

.brand {
  font-size: 1.25rem;
  color: var(--gold-bright);
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.brand:hover { text-decoration: none; color: var(--gold-bright); }
.brand .mark { color: var(--gold); font-size: 1.1em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}

.nav-links a:not(.brand) {
  color: var(--muted);
  padding: .4rem .75rem;
  border-radius: .5rem;
  border: 1px solid transparent;
  font-size: .95rem;
  white-space: nowrap;
}
.nav-links a:not(.brand):hover {
  color: var(--gold-bright);
  border-color: var(--border);
  background: var(--panel);
  text-decoration: none;
}
.nav-logout {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  padding: .4rem .75rem;
}
.nav-logout:hover { color: var(--gold-bright); }

.nav-toggle-input { display: none; }
.nav-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--gold);
  padding: .4rem .6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.nav-toggle:hover { border-color: var(--gold-dim); color: var(--gold-bright); }

/* Below ~900px, the full nav row no longer fits without wrapping or
   overflowing the viewport (true for phones in BOTH orientations), so it
   collapses into a hamburger-triggered dropdown instead. */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .5);
    padding: .4rem .8rem .8rem;
  }
  .nav-toggle-input:checked ~ .nav-links { display: flex; }
  .nav-links a:not(.brand),
  .nav-links form,
  .nav-links .nav-logout {
    width: 100%;
  }
  .nav-links a:not(.brand) {
    padding: .8rem .5rem;
    border-radius: 0;
    border-bottom: 1px solid var(--border-soft);
    white-space: normal;
  }
  .nav-links form { border-bottom: 1px solid var(--border-soft); }
  .nav-links .nav-logout { padding: .8rem .5rem; text-align: left; }
}

.container { max-width: 1040px; margin: 0 auto; padding: 2rem 1.2rem 3rem; position: relative; z-index: 1; }
/* "Wide mode": full ornamental frame + extra padding. Triggers on desktop/tablet
   width, and also on phones once they're rotated to landscape (where there's
   enough width to spare even under the 700px portrait threshold below). */
@media (min-width: 701px), (orientation: landscape) and (min-width: 480px) {
  .menu-frame { padding: 3.6rem 3.2rem 3.8rem; }
}

/* Ornamental engraved-style frame around the page content: outer rule,
   woven guilloche band, inner rule — the classic banknote/certificate
   border structure — plus flourish corners. */
.menu-frame::before,
.menu-frame::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 0;
  border: 1px solid var(--gold-dim);
}
.menu-frame::before { top: 2px; left: 2px; right: 2px; bottom: 2px; }
.menu-frame::after { top: 26px; left: 26px; right: 26px; bottom: 26px; opacity: .8; }

.menu-frame .edge {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: .55;
}
.menu-frame .edge-top, .menu-frame .edge-bottom {
  left: 48px; right: 48px;
  height: 16px;
  background: url('/guilloche-h.svg') repeat-x left center;
  background-size: 40px 16px;
}
.menu-frame .edge-top { top: 6px; }
.menu-frame .edge-bottom { bottom: 6px; }
.menu-frame .edge-left, .menu-frame .edge-right {
  top: 48px; bottom: 48px;
  width: 16px;
  background: url('/guilloche-v.svg') repeat-y center top;
  background-size: 16px 40px;
}
.menu-frame .edge-left { left: 6px; }
.menu-frame .edge-right { right: 6px; }

.menu-frame .corner {
  position: absolute;
  width: 46px;
  height: 46px;
  color: var(--gold-dim);
  pointer-events: none;
  z-index: 0;
}
.menu-frame .corner svg { width: 100%; height: 100%; fill: none; stroke: currentColor; }
.menu-frame .corner-tl { top: 0; left: 0; }
.menu-frame .corner-tr { top: 0; right: 0; transform: scaleX(-1); }
.menu-frame .corner-bl { bottom: 0; left: 0; transform: scaleY(-1); }
.menu-frame .corner-br { bottom: 0; right: 0; transform: scale(-1, -1); }
/* Plain mode (no frame): narrow portrait phones, and any device too narrow
   to spare the frame's margins regardless of orientation. */
@media (max-width: 700px) and (orientation: portrait), (max-width: 479px) {
  .menu-frame::before, .menu-frame::after { display: none; }
  .menu-frame .corner, .menu-frame .edge { display: none; }
}

.hero { margin-bottom: 1.6rem; }
.hero .rule {
  position: relative;
  width: 130px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 25%, var(--gold) 75%, transparent);
  margin: .7rem 0 1.2rem;
}
.hero .rule::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 7px; height: 7px;
  background: var(--gold);
  transform: translate(-50%, -50%) rotate(45deg);
}
.hero p.lead { color: var(--muted); font-size: 1.05rem; max-width: 640px; }

.muted { color: var(--muted); }
.small { font-size: .88rem; }

.search-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.3rem;
  margin: 1.4rem 0 2rem;
}

.list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.1rem;
  margin: 1rem 0;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.2rem;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-dim);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45), 0 0 0 1px rgba(201, 162, 75, .12);
}
.card h3 { margin: .1rem 0 .5rem; font-size: 1.15rem; }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--gold-bright); }
.card p { margin: .5rem 0 0; }

.btn {
  display: inline-block;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  border: 1px solid var(--gold);
  border-radius: 10px;
  padding: .6rem 1.1rem;
  color: #1a1508;
  font-weight: 600;
  cursor: pointer;
  font-size: .95rem;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn.secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn.secondary:hover { border-color: var(--gold-dim); color: var(--gold-bright); }
.btn.danger {
  background: transparent;
  border: 1px solid #5a2a24;
  color: var(--danger);
}
.btn.danger:hover { background: rgba(224, 102, 90, .1); border-color: var(--danger); }

input, textarea, select {
  width: 100%;
  padding: .65rem .8rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0d0b07;
  color: var(--text);
  outline: none;
  font: inherit;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, .18);
}
input[type="file"] { padding: .5rem; }
input[type="file"]::file-selector-button {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: .45rem .8rem;
  margin-right: .8rem;
  cursor: pointer;
  font: inherit;
}
input[type="file"]::file-selector-button:hover {
  border-color: var(--gold-dim);
  color: var(--gold-bright);
}
label { display: block; margin: .8rem 0 .35rem .05rem; color: var(--muted); font-size: .88rem; letter-spacing: .2px; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }

footer { border-top: 1px solid var(--border); margin-top: 3rem; position: relative; z-index: 1; background: var(--black); }
footer .container { padding-top: 1.3rem; padding-bottom: 1.6rem; }

.badge {
  display: inline-block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: .2rem .55rem;
  border-radius: 999px;
  border: 1px solid var(--gold-dim);
  background: rgba(201, 162, 75, .08);
  color: var(--gold-bright);
  margin-bottom: .3rem;
}

.empty {
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 2.2rem;
  text-align: center;
  color: var(--muted);
}

ul.details { list-style: none; padding: 0; margin: 1.2rem 0; }
ul.details li {
  padding: .6rem 0;
  border-bottom: 1px solid var(--border-soft);
}
ul.details li:last-child { border-bottom: none; }
ul.details strong { color: var(--gold-bright); font-weight: 600; margin-right: .4rem; }

/* Decorative animated scale-of-justice watermark */
.scale-bg {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(820px, 100vw);
  height: min(902px, 110vh);
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  opacity: .16;
  color: var(--gold);
}
.scale-bg svg { width: 100%; height: 100%; display: block; }
.scale-bg .scale-static,
.scale-bg .scale-beam,
.scale-bg .scale-pan-left,
.scale-bg .scale-pan-right {
  fill: currentColor;
  stroke: currentColor;
}
.scale-bg .scale-beam {
  transform-box: view-box;
  transform-origin: 100px 40px;
  animation: scaleBeamTilt 9s ease-in-out infinite alternate;
}
.scale-bg .scale-pan-left {
  transform-box: view-box;
  animation: scalePanLeft 9s ease-in-out infinite alternate;
}
.scale-bg .scale-pan-right {
  transform-box: view-box;
  animation: scalePanRight 9s ease-in-out infinite alternate;
}
@keyframes scaleBeamTilt {
  0%   { transform: rotate(-8deg); }
  100% { transform: rotate(8deg); }
}
@keyframes scalePanLeft {
  0%   { transform: translateY(12px); }
  100% { transform: translateY(-12px); }
}
@keyframes scalePanRight {
  0%   { transform: translateY(-12px); }
  100% { transform: translateY(12px); }
}
@media (prefers-reduced-motion: reduce) {
  .scale-bg .scale-beam,
  .scale-bg .scale-pan-left,
  .scale-bg .scale-pan-right {
    animation: none;
  }
}

/* Avatars */
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gold-dim);
  background: var(--panel);
  flex-shrink: 0;
}
.avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-bright);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
}
.avatar-sm { width: 28px; height: 28px; font-size: .8rem; }
.avatar-lg { width: 84px; height: 84px; font-size: 2rem; }

/* Homepage marketing sections */
.section { margin: 3.4rem 0; }
.section-kicker {
  display: block;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--gold-dim);
  margin-bottom: .3rem;
}
.section-intro { color: var(--muted); max-width: 680px; margin: .4rem 0 1.4rem; }
.cta-row { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1rem; }
.bullets { list-style: none; padding: 0; margin: .8rem 0; }
.bullets li { padding: .28rem 0; color: var(--muted); font-size: .92rem; }
.bullets li::before { content: '—'; color: var(--gold-dim); margin-right: .5rem; }
.numbered-list { padding-left: 1.3rem; color: var(--muted); margin: .8rem 0; }
.numbered-list li { padding: .3rem 0; }
.numbered-list a { color: var(--text); }
.numbered-list a:hover { color: var(--gold-bright); }
.checkbox-row { display: flex; align-items: flex-start; gap: .6rem; margin: .9rem 0; }
.checkbox-row input[type="checkbox"] { width: auto; accent-color: var(--gold); margin-top: .3rem; }
.checkbox-row label { margin: 0; color: var(--text); font-size: .95rem; display: block; }
.checkbox-row .checkbox-desc { color: var(--muted); font-size: .85rem; display: block; }
.disclaimer {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem 1.6rem;
  background: var(--panel);
  color: var(--muted);
  font-size: .88rem;
}
.disclaimer p { margin: .6rem 0; }
.final-cta {
  text-align: center;
  padding: 2.6rem 1.5rem;
  border: 1px solid var(--gold-dim);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(201, 162, 75, .08), transparent);
}
.final-cta .cta-row { justify-content: center; }
.step-list { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 1rem; }
.step-list li { counter-increment: step; padding-left: 2.6rem; position: relative; color: var(--muted); }
.step-list li::before {
  content: counter(step);
  position: absolute; left: 0; top: -.1rem;
  width: 1.8rem; height: 1.8rem;
  border-radius: 50%;
  border: 1px solid var(--gold-dim);
  color: var(--gold-bright);
  display: flex; align-items: center; justify-content: center;
  font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: .9rem;
}
.notice-banner {
  border: 1px solid var(--gold-dim);
  border-radius: 10px;
  padding: .8rem 1rem;
  margin: 1rem 0;
  font-size: .9rem;
}
.notice-banner.ok { color: var(--ok); border-color: var(--ok); }
.notice-banner.error { color: var(--danger); border-color: var(--danger); }

/* Worldwide attorney map */
.map-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.map-img,
.map-wrap svg { width: 100%; height: 100%; display: block; object-fit: contain; }
.map-wrap .map-link {
  cursor: pointer;
  transition: filter .15s ease;
}
.map-wrap .map-link:hover,
.map-wrap .map-link:focus {
  filter: brightness(1.6);
  outline: none;
}
.map-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  z-index: 2;
}
.map-marker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, .28);
  display: inline-block;
  transition: transform .15s ease;
}
.map-marker:hover .map-marker-dot,
.map-marker:focus .map-marker-dot {
  transform: scale(1.7);
  box-shadow: 0 0 0 5px rgba(201, 162, 75, .4);
}
.map-marker.is-verified .map-marker-dot {
  background: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(232, 200, 119, .4);
}
.map-legend-dot {
  position: relative;
  margin-right: .35rem;
  vertical-align: middle;
  box-shadow: none;
}

/* Clickable US states map */
.us-map-wrap {
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
}
.us-map-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}
.us-map-wrap .state-link {
  cursor: pointer;
  transition: filter .15s ease;
}
.us-map-wrap .state-link:hover,
.us-map-wrap .state-link:focus {
  filter: brightness(1.45);
  outline: none;
}
