/* Elk Run Homes — global components
   Buttons, header + navigation, footer. Each block is self-contained so it can be
   lifted into an Elementor section or a theme part later. */

/* ============================================================
   Buttons and links
   ============================================================ */

.btn {
  --btn-bg: var(--c-brass);
  --btn-fg: var(--c-ink);
  --btn-bd: var(--c-brass);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: 1.05rem 1.9rem;
  overflow: hidden;
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius-s);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  isolation: isolate;
  transition:
    background-color var(--t-micro) var(--ease),
    border-color var(--t-micro) var(--ease),
    color var(--t-micro) var(--ease),
    transform var(--t-micro) var(--ease),
    box-shadow var(--t-base) var(--ease);
}

/* nowrap keeps a button on one line, but a long label then either clips against
   the button's own overflow:hidden or pushes the document wider than the
   viewport. Below desktop, let the label wrap instead. */
@media (max-width: 900px) {
  .btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }
}

/* Sheen that sweeps across on hover. */
.btn::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -60%;
  z-index: -1;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: skewX(-18deg);
  transition: transform var(--t-slow) var(--ease-out);
}
.btn:hover::before { transform: skewX(-18deg) translateX(420%); }

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -14px rgba(30, 36, 31, .55);
}

.btn:active { transform: translateY(0); }

.btn .btn-arrow { transition: transform var(--t-micro) var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

.btn-primary:hover { --btn-bg: var(--c-brass-deep); --btn-bd: var(--c-brass-deep); }

.btn-ghost {
  --btn-bg: rgba(255, 255, 255, .06);
  --btn-fg: var(--c-white);
  --btn-bd: rgba(255, 255, 255, .42);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { --btn-bg: rgba(255, 255, 255, .16); --btn-bd: var(--c-white); }

.btn-outline {
  --btn-bg: transparent;
  --btn-fg: var(--c-ink);
  --btn-bd: var(--line-strong);
}
.btn-outline:hover { --btn-bg: var(--c-ink); --btn-fg: var(--c-cream); --btn-bd: var(--c-ink); }

.btn-dark { --btn-bg: var(--c-forest); --btn-fg: var(--c-cream); --btn-bd: var(--c-forest); }
.btn-dark:hover { --btn-bg: var(--c-forest-deep); --btn-bd: var(--c-forest-deep); }

.btn-sm { padding: .8rem 1.35rem; font-size: .72rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-l);
}

.btn-row-center { justify-content: center; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding-bottom: .22rem;
  border-bottom: 1px solid var(--c-brass);
  color: var(--text-strong);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: .01em;
  transition: gap var(--t-micro) var(--ease), border-color var(--t-micro) var(--ease), color var(--t-micro) var(--ease);
}
.text-link::after { content: "\2192"; transition: transform var(--t-micro) var(--ease); }
.text-link:hover { gap: .8rem; color: var(--c-bark); }
.text-link:hover::after { transform: translateX(2px); }

.section-dark .text-link { color: var(--text-on-dark); border-color: var(--c-brass); }
.section-dark .text-link:hover { color: var(--c-brass); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: var(--space-s);
  padding: .45rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--c-white);
  color: var(--c-bark);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-brass);
}

/* ============================================================
   Scroll progress
   ============================================================ */

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: calc(var(--z-header) + 5);
  height: 2px;
  background: var(--c-brass);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
  pointer-events: none;
}
body.has-scrolled .scroll-progress { opacity: 1; }

/* ============================================================
   Site header
   ============================================================ */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-header);
  transition: transform var(--t-base) var(--ease);
}

/* The blurred bar lives on its own layer. Keeping backdrop-filter off .site-header
   matters: a filtered ancestor would become the containing block for the
   position:fixed fly-out panel and pin it inside the header. */
.header-bg {
  position: absolute;
  inset: 0;
  background: rgba(24, 33, 27, .9);
  backdrop-filter: blur(16px) saturate(1.15);
  box-shadow: 0 10px 40px -28px rgba(0, 0, 0, .9);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease), background-color var(--t-base) var(--ease);
  pointer-events: none;
}

.header-bg::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--line-on-dark);
}

.site-header.is-stuck .header-bg { opacity: 1; }

/* Solid surface whenever a mega panel is open, so bar and panel read as one. */
.site-header.menu-open .header-bg { opacity: 1; background: rgba(24, 33, 27, .97); }

/* Slide the bar away when scrolling down, bring it back on the way up. */
.site-header.is-hidden { transform: translateY(-100%); }
body.nav-open .site-header { transform: none !important; }

.header-inner {
  position: relative;
  /* This is a stacking context, so the fly-out panel nested inside it can only
     clear the backdrop if the whole row sits above the backdrop too. */
  z-index: var(--z-flyout);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  padding-block: clamp(.9rem, 1.6vw, 1.35rem);
  transition: padding-block var(--t-base) var(--ease);
}

.site-header.is-stuck .header-inner { padding-block: .65rem; }

.brand { display: block; flex: none; }
.brand img {
  width: clamp(88px, 8vw, 112px);
  height: auto;
  transition: width var(--t-base) var(--ease);
}
.site-header.is-stuck .brand img { width: clamp(78px, 6.6vw, 94px); }

.header-actions { display: flex; align-items: center; gap: var(--space-s); }
.header-actions .btn { display: none; }

.header-phone {
  display: none;
  align-items: center;
  gap: .5rem;
  color: var(--text-on-dark);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  transition: color var(--t-micro) var(--ease);
}
.header-phone svg { width: 15px; height: 15px; stroke: var(--c-brass); }
.header-phone:hover { color: var(--c-brass); }

/* ---------- Hamburger ---------- */

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem .2rem;
  color: var(--text-on-dark);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.menu-toggle .bars { position: relative; width: 26px; height: 13px; }
.menu-toggle .bars span {
  position: absolute;
  left: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--t-base) var(--ease), width var(--t-base) var(--ease);
}
.menu-toggle .bars span:nth-child(1) { top: 0; width: 100%; }
.menu-toggle .bars span:nth-child(2) { top: 11.5px; width: 62%; }
.menu-toggle:hover .bars span:nth-child(2) { width: 100%; }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(1) { transform: translateY(5.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(2) { width: 100%; transform: translateY(-5.75px) rotate(-45deg); }

/* ---------- Shared nav pieces ---------- */

.nav-link {
  display: inline-flex;
  align-items: center;
  color: var(--text-on-dark);
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: .03em;
  transition: color var(--t-micro) var(--ease);
}

.nav-chev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.nav-chev svg {
  width: 11px;
  height: 11px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  transition: transform var(--t-base) var(--ease-spring);
}

.nav-item.is-open > .nav-row .nav-chev svg { transform: rotate(180deg); }

/* ============================================================
   Mobile fly-out navigation (default) — upgraded at 1200px
   ============================================================ */

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-flyout) - 1);
  background: rgba(12, 18, 13, .58);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base) var(--ease), visibility var(--t-base);
}
body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }

.nav {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: var(--z-flyout);
  display: flex;
  flex-direction: column;
  width: min(27rem, 92vw);
  padding: 1.15rem var(--gutter) 2.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--c-forest-deep);
  box-shadow: var(--shadow-menu);
  transform: translateX(102%);
  visibility: hidden;
  transition: transform var(--t-base) var(--ease-out), visibility var(--t-base);
}

.nav.is-open { transform: none; visibility: visible; }

/* Warm glow so the panel is not a flat slab. */
.nav::before {
  content: "";
  position: absolute;
  inset: -30% -40% auto -10%;
  height: 60%;
  background: radial-gradient(60% 60% at 70% 40%, var(--c-brass-glow), transparent 70%);
  pointer-events: none;
}

.flyout-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.1rem;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--line-on-dark);
}

.flyout-head .eyebrow {
  margin: 0;
  color: var(--c-brass);
}

.flyout-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-on-dark-strong);
  border-radius: 50%;
  color: var(--text-on-dark);
  transition: background-color var(--t-micro) var(--ease), transform var(--t-base) var(--ease), border-color var(--t-micro) var(--ease);
}
.flyout-close svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; fill: none; }
.flyout-close:hover { background: rgba(255, 255, 255, .08); border-color: var(--c-brass); transform: rotate(90deg); }

.nav-list { display: flex; flex-direction: column; }

.nav-item { border-bottom: 1px solid var(--line-on-dark); }

/* Staggered entry for each row when the panel opens. */
.nav.is-open .nav-item {
  animation: flyout-in 560ms var(--ease-out) backwards;
  animation-delay: calc(var(--i, 0) * 55ms + 90ms);
}

@keyframes flyout-in {
  from { opacity: 0; transform: translateX(28px); }
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.nav-row .nav-link {
  flex: 1;
  padding: 1.05rem 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  font-variation-settings: "opsz" 72, "SOFT" 30, "WONK" 0;
  letter-spacing: -.015em;
}

.nav-row .nav-chev {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-on-dark-strong);
  border-radius: 50%;
  color: var(--c-brass);
  transition: background-color var(--t-micro) var(--ease), border-color var(--t-micro) var(--ease);
}
.nav-item.is-open > .nav-row .nav-chev { background: var(--c-brass); border-color: var(--c-brass); color: var(--c-ink); }

/* Accordion body */
.dropdown {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-base) var(--ease);
}
.nav-item.is-open > .dropdown { grid-template-rows: 1fr; }

.dropdown-inner { overflow: hidden; }

.dropdown-grid { padding-bottom: 1.1rem; }

.dropdown-col + .dropdown-col { margin-top: 1.1rem; }

.dropdown-col h5 {
  margin: 0 0 .7rem;
  color: var(--c-brass);
  font-family: var(--font-text);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
}

.dropdown-col ul { display: grid; gap: .1rem; }

/* The number column is only reserved when a number is actually present. The label
   is a bare text node, so on an unnumbered link it auto-placed into the 1.5rem
   track and wrapped one word per line under its own description. */
.dropdown-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: baseline;
  gap: .15rem .6rem;
  padding: .5rem 0;
  color: var(--text-on-dark-muted);
  font-size: .95rem;
  font-weight: 500;
  transition: color var(--t-micro) var(--ease), transform var(--t-micro) var(--ease);
}
.dropdown-link:has(.idx) { grid-template-columns: 1.5rem minmax(0, 1fr); }
.dropdown-link:hover { color: var(--c-white); transform: translateX(4px); }
.dropdown-link .idx {
  color: var(--c-brass);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
}
.dropdown-link small {
  display: block;
  grid-column: -2;
  color: rgba(237, 233, 223, .45);
  font-size: .78rem;
  font-weight: 400;
  line-height: 1.45;
}

.dropdown-feature { display: none; }

.flyout-foot {
  margin-top: auto;
  padding-top: 1.8rem;
}
.flyout-foot .btn { width: 100%; }

.flyout-contact {
  display: grid;
  gap: .55rem;
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-on-dark);
  color: var(--text-on-dark-muted);
  font-size: .88rem;
}
.flyout-contact a { transition: color var(--t-micro) var(--ease); }
.flyout-contact a:hover { color: var(--c-brass); }

body.nav-open { overflow: hidden; }

/* ============================================================
   Desktop navigation bar + mega panels
   ============================================================ */

@media (min-width: 1200px) {
  .menu-toggle,
  .flyout-head,
  .flyout-foot,
  .nav-backdrop { display: none; }

  .header-actions .btn { display: inline-flex; }

  .nav {
    position: static;
    flex-direction: row;
    align-items: center;
    width: auto;
    padding: 0;
    overflow: visible;
    background: none;
    box-shadow: none;
    transform: none;
    visibility: visible;
  }
  .nav::before { display: none; }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: clamp(.9rem, 1.8vw, 2rem);
  }

  .nav-item { border: 0; animation: none !important; }

  .nav-row { position: relative; gap: .32rem; }

  .nav-row .nav-link {
    padding: 1.4rem 0;
    font-family: var(--font-text);
    font-size: .86rem;
    font-weight: 600;
    font-variation-settings: normal;
    letter-spacing: .03em;
    white-space: nowrap;
  }

  .nav-row .nav-chev,
  .nav-item.is-open > .nav-row .nav-chev {
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--c-brass);
    pointer-events: none;
  }

  /* Underline indicator */
  .nav-row::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1.05rem;
    height: 1px;
    background: var(--c-brass);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-base) var(--ease);
  }
  .nav-item:hover > .nav-row::after,
  .nav-item.is-open > .nav-row::after,
  .nav-item.is-current > .nav-row::after { transform: scaleX(1); }
  .nav-item:hover > .nav-row .nav-link,
  .nav-item.is-open > .nav-row .nav-link { color: var(--c-white); }

  /* ---------- Mega panel — spans the page wrap, anchored to .header-inner ---------- */
  .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    padding: 0;
    border: 1px solid var(--line-on-dark);
    border-radius: 0 0 var(--radius-l) var(--radius-l);
    background: linear-gradient(180deg, #202A23 0%, #1A231C 100%);
    box-shadow: var(--shadow-menu);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px);
    transition:
      opacity var(--t-base) var(--ease),
      transform var(--t-base) var(--ease-out),
      visibility var(--t-base);
  }

  .nav-item.is-open > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .dropdown-inner { overflow: visible; }

  .dropdown-grid {
    display: grid;
    gap: 0;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 20rem;
    padding: 0;
  }

  .dropdown-col {
    margin: 0 !important;
    padding: 2rem 2.1rem 2.2rem;
    border-right: 1px solid var(--line-on-dark);
  }

  .dropdown-col ul { gap: 0; }

  .dropdown-link {
    display: block;
    padding: .62rem .7rem;
    margin-left: -.7rem;
    border-radius: var(--radius-m);
    transition: background-color var(--t-micro) var(--ease), color var(--t-micro) var(--ease), transform var(--t-micro) var(--ease);
  }
  .dropdown-link:hover { background: rgba(255, 255, 255, .05); transform: translateX(3px); }

  .dropdown-link .idx { display: none; }

  /* ---------- Feature card inside the panel ---------- */
  .dropdown-feature {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.9rem;
    overflow: hidden;
    border-radius: 0 0 var(--radius-l) 0;
    color: var(--c-white);
    isolation: isolate;
  }

  .dropdown-feature img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow) var(--ease-out);
  }
  .nav-item.is-open .dropdown-feature img { transform: scale(1.04); }

  .dropdown-feature::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(20, 28, 22, .25) 0%, rgba(20, 28, 22, .82) 70%, rgba(20, 28, 22, .95) 100%);
  }

  .dropdown-feature .eyebrow { color: var(--c-brass); margin-bottom: .55rem; }
  .dropdown-feature h5 {
    margin: 0 0 .5rem;
    color: var(--c-white);
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 400;
    font-variation-settings: "opsz" 72, "SOFT" 30, "WONK" 0;
    letter-spacing: -.015em;
    line-height: 1.2;
  }
  .dropdown-feature p { color: rgba(255, 255, 255, .72); font-size: .85rem; line-height: 1.55; }
  .dropdown-feature .text-link { margin-top: 1rem; color: var(--c-white); align-self: flex-start; }

  /* Where-We-Build panel: two region columns, no numbered list */
  .dropdown-areas .dropdown-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 20rem; }

  .nav .flyout-contact { display: none; }
}

@media (min-width: 1200px) and (prefers-reduced-motion: reduce) {
  .dropdown { transition: opacity 1ms, visibility 1ms; transform: none; }
}

/* Six nav items plus a CTA already fill the bar at 1200px; the phone only fits wider. */
@media (min-width: 1340px) {
  .header-phone { display: inline-flex; }
}

/* ============================================================
   Site footer
   ============================================================ */

.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--c-forest-night);
  color: var(--text-on-dark-muted);
  font-size: var(--fs-small);
  isolation: isolate;
}

/* Animated contour lines — a quiet nod to the terrain Elk Run builds on. */
.footer-topo {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 62%;
  opacity: .5;
  pointer-events: none;
}
.footer-topo svg { width: 100%; height: 100%; }
.footer-topo path {
  fill: none;
  stroke: var(--c-brass);
  stroke-width: 1;
  opacity: .22;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: topo-draw 4.5s var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 260ms);
}

@keyframes topo-draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .footer-topo path { animation: none; stroke-dashoffset: 0; }
}

.footer-top {
  display: grid;
  gap: var(--space-xl) var(--space-l);
  grid-template-columns: 1fr;
  padding-block: var(--space-2xl) var(--space-xl);
}

@media (min-width: 720px) { .footer-top { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .footer-top { grid-template-columns: 1.5fr 1fr 1fr; gap: var(--space-2xl); } }

.footer-brand { display: inline-block; margin-bottom: var(--space-m); }
.footer-brand img { width: 178px; height: auto; }

.footer-intro { max-width: 36ch; line-height: 1.75; }

.footer-contact { display: grid; gap: .75rem; margin-top: var(--space-l); }

.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--text-on-dark);
  font-size: 1rem;
  font-weight: 600;
  transition: color var(--t-micro) var(--ease);
}
.footer-contact a svg { width: 16px; height: 16px; flex: none; stroke: var(--c-brass); stroke-width: 1.6; fill: none; }
.footer-contact a:hover { color: var(--c-brass); }

.footer-col h4 {
  margin-bottom: var(--space-m);
  color: var(--c-white);
  font-family: var(--font-text);
  font-size: .72rem;
  font-weight: 700;
  font-variation-settings: normal;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
}

.footer-col ul { display: grid; gap: .1rem; }

.footer-col li a {
  display: inline-block;
  padding: .32rem 0;
  color: var(--text-on-dark-muted);
  transition: color var(--t-micro) var(--ease), transform var(--t-micro) var(--ease);
}
.footer-col li a:hover { color: var(--c-brass); transform: translateX(4px); }

/* ---------- Areas we serve ---------- */

.footer-areas {
  padding-block: var(--space-xl);
  border-top: 1px solid var(--line-on-dark);
  border-bottom: 1px solid var(--line-on-dark);
  background: rgba(255, 255, 255, .018);
}

.footer-areas-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-xs) var(--space-m);
  margin-bottom: var(--space-l);
}

.footer-areas-head h4 {
  margin: 0;
  color: var(--c-white);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  font-variation-settings: "opsz" 72, "SOFT" 30, "WONK" 0;
  letter-spacing: -.015em;
  text-transform: none;
}

.footer-areas-head .text-link { color: var(--text-on-dark); }
.footer-areas-head .text-link:hover { color: var(--c-brass); }

.areas-cols { display: grid; gap: var(--space-l) var(--space-2xl); grid-template-columns: 1fr; }

@media (min-width: 720px) { .areas-cols { grid-template-columns: repeat(2, 1fr); } }

.areas-state {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: var(--space-s);
  color: var(--c-brass);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
}
.areas-state::after { content: ""; flex: 1; height: 1px; background: var(--line-on-dark); }

.areas-list { display: grid; gap: .1rem; }

.areas-list a {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .45rem 0;
  color: var(--text-on-dark-muted);
  transition: color var(--t-micro) var(--ease), gap var(--t-micro) var(--ease);
}
.areas-list a::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--c-brass);
  transition: background-color var(--t-micro) var(--ease);
}
.areas-list a:hover { color: var(--c-white); gap: 1rem; }
.areas-list a:hover::before { background: var(--c-brass); }

/* ---------- Oversized wordmark ---------- */

.footer-wordmark {
  padding-top: var(--space-xl);
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 12.5vw, 11rem);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 1;
  letter-spacing: -.035em;
  line-height: .95;
  text-align: center;
  white-space: nowrap;
  -webkit-text-stroke: 1px rgba(237, 233, 223, .16);
  user-select: none;
}

/* ---------- Legal bar ---------- */

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-m);
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-xl);
  padding-block: var(--space-m);
  border-top: 1px solid var(--line-on-dark);
  font-size: .8rem;
}

.footer-licenses { display: flex; flex-wrap: wrap; gap: .5rem; }

.license-chip {
  padding: .35rem .8rem;
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-pill);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--text-on-dark);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: color var(--t-micro) var(--ease);
}
.to-top svg { width: 13px; height: 13px; stroke: var(--c-brass); stroke-width: 2; fill: none; transition: transform var(--t-base) var(--ease); }
.to-top:hover { color: var(--c-brass); }
.to-top:hover svg { transform: translateY(-3px); }

/* ---------- Policy links and build credit ---------- */

.footer-credit {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs) var(--space-m);
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: var(--space-m);
  color: var(--text-on-dark-muted);
  font-size: .78rem;
}

.footer-policy { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-m); }

.footer-policy a {
  color: var(--text-on-dark-muted);
  transition: color var(--t-micro) var(--ease);
}

.footer-policy a:hover { color: var(--c-brass); }

.footer-by { margin: 0; }

.footer-by a {
  color: var(--text-on-dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--line-on-dark-strong);
  text-underline-offset: .25em;
  transition: color var(--t-micro) var(--ease), text-decoration-color var(--t-micro) var(--ease);
}

.footer-by a:hover { color: var(--c-brass); text-decoration-color: var(--c-brass); }
