/* Shared shell for legislativelift.com. Page-specific layout lives in each page's <style>. */
:root {
  --black: #000;
  --nav-bg: #191919;
  --white: #fff;
  --text-hover: #f1f1f1;
  --muted: #bfbfbf;
  --display: 'Raleway', sans-serif;
  /* Avenir LT 35 Light on the Wix site; Nunito Sans Light is the free stand-in. */
  --body: 'Nunito Sans', 'Avenir Next', Avenir, 'Helvetica Neue', Arial, sans-serif;
  --helvetica: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --page-w: 980px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--black); color: var(--white); font: 300 14px/1.875 var(--body); }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-weight: 400; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: #fff; color: #000; padding: 8px 12px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid #116dff; outline-offset: 2px; }

/* Header: black brand bar (95px) over a 40px dark nav strip and a 6px black gap = 141px, matching Wix. */
.site-header { background: var(--black); padding-bottom: 6px; }
.brand-bar { height: 95px; padding-top: 10px; display: flex; align-items: center; justify-content: center; position: relative; }
.brand { font: 400 22px/1.41 var(--display); color: var(--white); text-decoration: underline; text-underline-offset: 2px; text-align: center; }
.site-nav { height: 40px; background: var(--nav-bg); display: flex; justify-content: center; align-items: center; gap: 0; }
.site-nav a { font: 300 14px/25px var(--body); color: var(--white); text-decoration: none; padding: 2px 10px; transition: color .4s ease; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text-hover); }
.menu-toggle { display: none; }

/* Wix footer: black band 160px tall (98px on phones), 14px (12px) Avenir-light text. */
.site-footer { height: 160px; padding-top: 114px; text-align: center; }
.site-footer p { font: 300 14px/20px var(--body); }

/* Wix "FadeIn" entrance: elements start transparent and fade in once on entering the viewport. */
.fade-in { opacity: 0; transition: opacity 1.2s ease; }
.fade-in.is-visible { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .fade-in { opacity: 1; transition: none; } }

/* Shared form styling (volunteer and resource forms). */
.form label { display: block; font: 300 14px/1.6 var(--body); margin: 0 0 6px; }
.form input, .form textarea { width: 100%; height: 44px; margin: 0 0 22px; padding: 0 12px; border: 1px solid #fff; border-radius: 0; background: transparent; color: #fff; font: 300 14px var(--body); }
.form textarea { height: 96px; padding: 10px 12px; resize: vertical; }
.form input::placeholder { color: #bfbfbf; }
.form button { width: 100%; height: 47px; border: 0; background: #fff; color: #000; font: 300 16px var(--body); cursor: pointer; transition: background .2s, color .2s; }
.form button:hover { background: #bfbfbf; }
.form button[disabled] { opacity: .6; cursor: progress; }
.form .status { min-height: 1.6em; margin-top: 12px; font: 300 14px var(--body); }
.form .hp { position: absolute; left: -9999px; }

/* Phone layout: Wix's mobile site is a 320px black column centred on white. */
@media (max-width: 760px) {
  body { background: var(--white); }
  .page { max-width: 320px; margin: 0 auto; background: var(--black); }
  .site-header { padding-bottom: 0; }
  .brand-bar { height: 141px; align-items: flex-start; padding: 28px 56px 0; }
  .site-footer { height: 98px; padding-top: 37px; }
  .site-footer p { font-size: 12px; }
  .brand { font-size: 20px; line-height: 1.4; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 7px; position: absolute; right: 12px; top: 17px; width: 46px; height: 44px; padding: 12px; background: none; border: 0; cursor: pointer; }
  .menu-toggle span { display: block; height: 2px; background: #fff; transition: transform .3s, opacity .3s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
  .site-nav { display: none; position: fixed; inset: 0; z-index: 50; height: auto; flex-direction: column; gap: 18px; background: #000; }
  .site-nav.open { display: flex; }
  .site-nav a { font-size: 20px; }
  body.nav-open { overflow: hidden; }
  body.nav-open .menu-toggle { position: fixed; z-index: 60; }
}
