/* Land of Enchantment Law — shared site chrome
   Used by every page. Brand tokens, layout primitives, nav, buttons. */

:root {
  --ink: #1F4945;
  --ink-soft: #2c5e58;
  --ink-2: #143230;
  --clay: #B08568;
  --clay-soft: #d6b89e;
  --cream: #F5EFE3;
  --cream-2: #EDE4D2;
  --paper: #FAF6EC;
  --sky: #7FBED1;
  --sky-soft: #B7D6DD;
  --sun: #D8703A;
  --sun-text: #B65A23;
  --sun-soft: #E89B6E;
  --agave: #2D7A78;
  --rule: rgba(31,73,69,0.18);
  --rule-strong: rgba(31,73,69,0.45);
  --rule-faint: rgba(31,73,69,0.10);
  --serif: "Instrument Serif", "Source Serif 4", Georgia, serif;
  --sans: "Geist", "Inter Tight", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }
html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); scroll-behavior: smooth; font-size: 16px; line-height: 1.5; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.container.narrow { max-width: 920px; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 8px; padding: 8px 12px;
  background: var(--ink); color: var(--cream); font-family: var(--mono); font-size: 12px;
  text-decoration: none; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* Type primitives */
.mono-label {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.12em;
  font-weight: 500;
}
.serif { font-family: var(--serif); font-weight: 400; }
.numeric { font-family: var(--sans); font-feature-settings: "tnum","ss01"; font-variant-numeric: tabular-nums; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }

/* Rules */
.hr { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* ============ NAVIGATION ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,246,236,0.94); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 16px;
}
.brand-link { display: flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer; transition: opacity .15s; }
.brand-link:hover { opacity: 0.78; }
.brand-link img { height: 30px; width: auto; pointer-events: none; }
.brand-link .seal { height: 36px; }

.desktop-nav { display: flex; gap: 22px; align-items: center; }
.nav-a {
  font-size: 13.5px; color: var(--ink); opacity: 0.72; text-decoration: none;
  font-weight: 500; padding: 8px 0; transition: opacity .15s;
  position: relative;
}
.nav-a:hover { opacity: 1; }
.nav-a.current { opacity: 1; }
.nav-a.current::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px;
  height: 2px; background: var(--sun);
}
.nav-a.accent { color: var(--sun-text); }

.has-menu { position: relative; }
.has-menu > .nav-a::after { content: " ▾"; opacity: 0.5; font-size: 9px; }
.has-menu .submenu {
  position: absolute; top: 100%; left: -16px; min-width: 240px;
  background: var(--paper); border: 1px solid var(--rule);
  padding: 12px 0; opacity: 0; pointer-events: none;
  transform: translateY(-4px); transition: opacity .15s, transform .15s;
  box-shadow: 0 12px 30px rgba(31,73,69,0.08);
}
.has-menu:hover .submenu, .has-menu:focus-within .submenu {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}
.submenu a {
  display: block; padding: 8px 18px; text-decoration: none; color: var(--ink);
  font-size: 13px; transition: background .12s, color .12s;
}
.submenu a:hover { background: var(--cream); color: var(--sun-text); }
.submenu .sub-label {
  display: block; padding: 4px 18px 6px; font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--clay);
}

/* Mobile nav toggle — modernized */
.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--rule-strong);
  padding: 10px 14px; border-radius: 999px; color: var(--ink);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; cursor: pointer; align-items: center; gap: 10px;
  font-weight: 500;
  transition: border-color .15s, background .15s;
}
.nav-toggle:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.nav-toggle .bars {
  display: inline-flex; flex-direction: column; gap: 3px; width: 16px;
}
.nav-toggle .bars span {
  display: block; height: 1.5px; background: currentColor; width: 16px; border-radius: 1px;
}

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ============ MOBILE DRAWER (modernized full-screen) ============ */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink); color: var(--cream);
  display: flex; flex-direction: column;
  transform: translateY(-100%);
  transition: transform .35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.mobile-drawer.open { transform: translateY(0); }
.mobile-drawer .drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid rgba(245,239,227,0.14);
  flex-shrink: 0; background: var(--ink);
}
.mobile-drawer .drawer-head img {
  height: 28px; width: auto;
  filter: brightness(0) invert(1) sepia(0.2) saturate(0.4); /* Render logo cream-ish on ink */
}
.mobile-drawer .drawer-close {
  background: transparent; border: 1px solid rgba(245,239,227,0.3);
  color: var(--cream); padding: 8px 12px; border-radius: 999px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .15s, border-color .15s;
}
.mobile-drawer .drawer-close:hover { background: rgba(245,239,227,0.1); border-color: var(--cream); }

.mobile-drawer .drawer-body {
  flex: 1; overflow-y: auto;
  padding: 16px 24px 96px;
  -webkit-overflow-scrolling: touch;
}

.mobile-drawer .drawer-cta-top {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--sun); color: var(--ink);
  padding: 18px 22px; border-radius: 8px;
  text-decoration: none; margin: 18px 0 28px;
  font-family: var(--sans); font-size: 16px; font-weight: 500;
  transition: filter .15s;
}
.mobile-drawer .drawer-cta-top:hover { filter: brightness(1.05); }
.mobile-drawer .drawer-cta-top .ctaArrow { font-size: 18px; }

.mobile-drawer .drawer-section-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--sun-soft);
  padding: 22px 0 6px; opacity: 0.85;
}
.mobile-drawer .drawer-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; border-bottom: 1px solid rgba(245,239,227,0.12);
  font-family: var(--serif); font-size: 24px; line-height: 1.15;
  color: var(--cream); text-decoration: none;
  transition: color .12s, padding-left .15s;
}
.mobile-drawer .drawer-link:active { padding-left: 6px; color: var(--sun-soft); }
.mobile-drawer .drawer-link.accent { color: var(--sun-soft); }
.mobile-drawer .drawer-link .arrow {
  font-family: var(--mono); font-size: 14px; color: rgba(245,239,227,0.45);
  transition: color .12s, transform .15s;
}
.mobile-drawer .drawer-link:hover .arrow { color: var(--sun-soft); transform: translateX(3px); }

.mobile-drawer .drawer-foot {
  margin-top: 36px; padding-top: 24px;
  border-top: 1px solid rgba(245,239,227,0.18);
}
.mobile-drawer .drawer-foot .info {
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  color: rgba(245,239,227,0.7);
}
.mobile-drawer .drawer-foot .info a { color: var(--cream); text-decoration: none; }
.mobile-drawer .drawer-foot .info a:hover { color: var(--sun-soft); }

/* ============ BUTTONS ============ */
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 6px; font-size: 13.5px; font-weight: 500;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, opacity .15s, transform .15s;
  font-family: var(--sans); line-height: 1; white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--cream); border: 1px solid var(--ink); }
.btn-primary:hover { background: var(--ink-2); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule-strong); }
.btn-ghost:hover { background: var(--cream-2); border-color: var(--ink); }
.btn-primary.lg, .btn-ghost.lg { padding: 14px 22px; font-size: 14.5px; border-radius: 8px; }
.btn-sun {
  background: var(--sun); color: var(--ink); border-color: var(--sun);
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px;
  font-size: 13.5px; font-weight: 500; text-decoration: none; border-radius: 6px;
  border: 1px solid var(--sun); transition: filter .15s;
}
.btn-sun:hover { filter: brightness(1.05); }
.btn-sun.lg { padding: 14px 22px; font-size: 14.5px; }

/* Arrow inside buttons */
.btn-arrow { transition: transform .15s; }
.btn-primary:hover .btn-arrow, .btn-ghost:hover .btn-arrow, .btn-sun:hover .btn-arrow {
  transform: translateX(2px);
}

/* ============ TILES + CARDS ============ */
.tile {
  background: var(--paper); border: 1px solid var(--rule);
  padding: 24px 26px; display: flex; flex-direction: column; gap: 12px;
  text-decoration: none; color: inherit;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.tile:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 18px 40px rgba(31,73,69,0.08); }
.tile.cream { background: var(--cream); }
.tile.cream-2 { background: var(--cream-2); }

.eyebrow-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.eyebrow-row .mono-label { font-size: 11px; color: var(--sun-text); }

/* ============ SECTION HEADS ============ */
.sec-head { margin-bottom: 36px; }
.sec-head .eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sun-text); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 10px;
}
.sec-head .eyebrow .dot { background: var(--sun); width: 6px; height: 6px; }
.sec-head h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 5vw, 56px); line-height: 1.02; letter-spacing: -0.01em;
  margin: 0 0 12px; color: var(--ink);
}
.sec-head h2 em { font-style: italic; color: var(--sun); }
.sec-head .sub {
  font-family: var(--serif); font-size: 19px; line-height: 1.4; font-style: italic;
  color: var(--ink-soft); margin: 0; max-width: 64ch;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--ink); color: rgba(245,239,227,0.85);
  border-top: 1px solid var(--rule);
  padding: 72px 0 28px;
}
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 980px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 600px) { .footer-top { grid-template-columns: 1fr; } }
.footer-top h4 {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--sun-soft);
  margin: 0 0 16px; font-weight: 500;
}
.footer-top ul { list-style: none; padding: 0; margin: 0; }
.footer-top li { margin-bottom: 10px; }
.footer-top a {
  font-size: 13.5px; line-height: 1.5; color: rgba(245,239,227,0.78);
  text-decoration: none; transition: color .12s;
}
.footer-top a:hover { color: var(--sun-soft); }
.footer-brand-block img {
  height: 32px; filter: brightness(0) invert(1) sepia(0.2) saturate(0.4);
}
.footer-brand-block .blurb {
  font-size: 13px; line-height: 1.55; color: rgba(245,239,227,0.7);
  margin: 14px 0 14px; max-width: 320px;
}
.footer-brand-block .nap {
  font-style: normal; font-size: 13px; line-height: 1.65; color: rgba(245,239,227,0.85);
  display: block;
}
.footer-brand-block .nap a { color: rgba(245,239,227,0.85); }
.footer-brand-block .nap strong { color: var(--cream); font-weight: 500; }

/* Network band */
.footer-network {
  border-top: 1px solid rgba(245,239,227,0.18);
  border-bottom: 1px solid rgba(245,239,227,0.18);
  padding: 28px 0; margin-bottom: 28px;
}
.footer-network-inner {
  display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center;
}
@media (max-width: 700px) {
  .footer-network-inner { grid-template-columns: 1fr; gap: 16px; }
}
.footer-network .label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--sun-soft); white-space: nowrap;
}
.footer-network .sites {
  display: flex; gap: 24px; flex-wrap: wrap;
}
.footer-network .sites a {
  display: inline-flex; flex-direction: column; gap: 2px;
  color: rgba(245,239,227,0.92); text-decoration: none;
  padding: 6px 0;
}
.footer-network .sites a:hover .name { color: var(--sun-soft); }
.footer-network .sites .name {
  font-family: var(--serif); font-size: 18px; line-height: 1.1;
  transition: color .15s;
}
.footer-network .sites .url {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em;
  color: rgba(245,239,227,0.55);
}
.footer-network .sites .name .marker {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em;
  background: var(--sun); color: var(--ink); padding: 1px 6px; border-radius: 2px;
  margin-right: 6px; vertical-align: middle; text-transform: uppercase;
}

.footer-bar {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  align-items: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(245,239,227,0.5);
}
.footer-bar a { color: inherit; text-decoration: none; }
.footer-bar a:hover { color: var(--sun-soft); }
.footer-disclaimer {
  font-family: var(--sans); font-size: 12px; line-height: 1.55;
  color: rgba(245,239,227,0.65);
  max-width: 920px; margin: 0 0 22px; text-transform: none; letter-spacing: 0;
}
.footer-social {
  display: flex; gap: 14px; align-items: center;
}
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(245,239,227,0.25);
  color: rgba(245,239,227,0.8); text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.footer-social a:hover { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.footer-social svg { width: 14px; height: 14px; }

/* ============ STICKY MOBILE CTA ============ */
.mobile-cta-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  padding: 12px 16px; background: rgba(31,73,69,0.96); backdrop-filter: blur(8px);
  border-top: 1px solid rgba(245,239,227,0.18);
  gap: 10px; align-items: center;
}
.mobile-cta-bar .btn-primary, .mobile-cta-bar .btn-ghost {
  flex: 1; justify-content: center;
}
.mobile-cta-bar .btn-primary { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.mobile-cta-bar .btn-ghost { color: var(--cream); border-color: rgba(245,239,227,0.4); }
@media (max-width: 800px) {
  .mobile-cta-bar { display: flex; }
  body { padding-bottom: 72px; }
}

/* ============ UTILITY ============ */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Pills + tags */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--rule-strong); color: var(--ink-soft);
}
.pill.sun { color: var(--sun-text); border-color: var(--sun-soft); background: rgba(216,112,58,0.08); }
.pill.agave { color: var(--agave); border-color: rgba(45,122,120,0.4); background: rgba(45,122,120,0.06); }
.pill.cream { background: var(--cream); border-color: var(--rule); }

/* Forms — sized for mobile (16px+ to avoid iOS zoom, ≥44px touch targets) */
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  font-family: var(--sans); font-size: 16px; line-height: 1.4;
  padding: 14px 16px; min-height: 48px;
  border: 1px solid var(--rule-strong); border-radius: 6px;
  background: var(--paper); color: var(--ink); width: 100%;
  appearance: none; -webkit-appearance: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
textarea { min-height: 140px; resize: vertical; font-family: var(--sans); }
input:focus, textarea:focus, select:focus {
  outline: 0; border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(216,112,58,0.18);
  background: #fff;
}
input::placeholder, textarea::placeholder { color: var(--ink-soft); opacity: 0.55; }
input:invalid:not(:placeholder-shown), textarea:invalid:not(:placeholder-shown) {
  border-color: var(--sun-text);
}
label { display: block; font-size: 13px; color: var(--ink); margin-bottom: 8px; font-weight: 500; }
label .req { color: var(--sun-text); margin-left: 3px; }
label .hint { display: block; font-size: 12px; color: var(--ink-soft); font-weight: 400; margin-top: 3px; }

/* Honeypot */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Form layouts */
.form-stack { display: flex; flex-direction: column; gap: 18px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row-2 { grid-template-columns: 1fr; } }
.form-submit-row {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  margin-top: 6px;
}
.form-submit-row button.btn-primary { padding: 16px 28px; min-height: 52px; font-size: 15px; }
.form-status {
  font-size: 14px; line-height: 1.5; padding: 14px 16px;
  border-radius: 6px; border: 1px solid var(--rule);
  background: var(--cream); color: var(--ink); margin-bottom: 18px;
}
.form-status.ok { background: rgba(45,122,120,0.08); border-color: var(--agave); color: var(--ink-2); }
.form-status.err { background: rgba(216,112,58,0.1); border-color: var(--sun); color: var(--sun-text); }
.form-status[hidden] { display: none; }
