/* Monsireaux Estate Company — site stylesheet
   Institutional, quiet, and built around a single gold accent. */

:root {
  --bg: #0f1115;
  --bg-2: #14171d;
  --panel: #171b22;
  --panel-2: #1c212a;
  --fg: #ece9e2;
  --muted: #a8a69d;
  --faint: #77786f;
  --gold: #c2a15c;
  --gold-bright: #e0c27c;
  --gold-deep: #8c6f32;
  --metallic-gold: #d4af37;
  --obsidian-purple: #4a2f5c;
  --line: rgba(236, 233, 226, 0.12);
  --line-strong: rgba(194, 161, 92, 0.35);
  --heading: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --body: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wordmark: "Times New Roman", Times, serif;
  --max: 1120px;
  --radius: 16px;
  --nav-h: 76px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(900px 520px at 8% -8%, rgba(194, 161, 92, 0.11), transparent 62%),
    radial-gradient(760px 520px at 100% 8%, rgba(92, 116, 158, 0.08), transparent 60%),
    var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: clamp(15px, 0.45vw + 13.9px, 17px);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }

a {
  color: var(--gold);
  text-decoration: none;
  text-underline-offset: 3px;
}

a:hover { text-decoration: underline; }

p { margin: 0 0 1rem; }

::selection {
  background: rgba(194, 161, 92, 0.35);
  color: #fff;
}

.container {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--gold);
  color: #111;
  border-radius: 0 0 10px 0;
  font-weight: 700;
}

.skip:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: linear-gradient(180deg, #4b4f56 0%, #646973 48%, #3b3e44 100%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 8px 24px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.site-header.scrolled {
  background: linear-gradient(180deg, #3f4349 0%, #565b64 48%, #303338 100%);
  border-bottom-color: rgba(212, 175, 55, 0.65);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--fg);
  text-decoration: none;
  flex: none;
}

.brand:hover { text-decoration: none; }

.brand.wordmark {
  align-items: stretch;
  font-family: var(--wordmark);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
}

.wm-msx,
.wm-estate {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px 4px;
}

.wm-msx {
  color: var(--metallic-gold);
  border: 2px solid var(--obsidian-purple);
  border-right: 0;
  border-radius: 5px 0 0 5px;
  background: rgba(20, 14, 26, 0.18);
}

.wm-estate {
  color: var(--obsidian-purple);
  border: 2px solid var(--metallic-gold);
  border-radius: 0 5px 5px 0;
  background: rgba(255, 255, 255, 0.09);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14),
    0 -1px 0 rgba(0, 0, 0, 0.32);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  color: #f5f2ea;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
  transition: color 0.15s ease, background 0.15s ease;
}

.site-nav a:hover {
  color: var(--metallic-gold);
  background: rgba(20, 14, 26, 0.22);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--metallic-gold);
  background: rgba(20, 14, 26, 0.28);
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.38);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.menu-toggle:hover { border-color: var(--gold); }

/* ---------- Buttons ---------- */

.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--gold);
  color: #12140f;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:disabled,
.btn[disabled] {
  background: var(--panel-2);
  border-color: var(--line-strong);
  color: var(--faint);
  cursor: not-allowed;
  transform: none;
  opacity: 0.72;
}

.btn:disabled:hover,
.btn[disabled]:hover {
  background: var(--panel-2);
  border-color: var(--line-strong);
}

.btn.ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-strong);
}

.btn.ghost:hover {
  background: rgba(194, 161, 92, 0.08);
  border-color: var(--gold);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 11vw, 148px) 0 clamp(56px, 8vw, 96px);
}

.hero::after {
  content: "";
  position: absolute;
  right: -12%;
  top: 4%;
  width: min(54vw, 620px);
  aspect-ratio: 1;
  border: 1px solid rgba(194, 161, 92, 0.11);
  border-radius: 50%;
  box-shadow:
    0 0 0 40px rgba(194, 161, 92, 0.028),
    0 0 0 80px rgba(194, 161, 92, 0.018);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.kicker,
.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 16ch;
  margin: 0 0 24px;
  font-family: var(--heading);
  font-size: clamp(2.7rem, 6.4vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.02;
}

.rule {
  width: 64px;
  height: 2px;
  margin: 0 0 28px;
  border: 0;
  background: var(--gold);
}

.lede {
  max-width: 56ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  line-height: 1.7;
}

.hero .lede { max-width: 52ch; }

.hero.hero-center { text-align: center; }

.hero.hero-center h1 {
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}

.hero.hero-center .lede {
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

.hero.hero-center .rule {
  margin-left: auto;
  margin-right: auto;
}

.hero .rule-full {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.hero.hero-center .btns { justify-content: center; }

/* Home hero: live pixel-art banner. */
.hero-pixels-section {
  background: #0f1115;
}

.hero-pixels-section::after {
  display: none;
}

.hero-pixels {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  opacity: 0.92;
}

.hero-pixels-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(15, 17, 21, 0.88) 0%, rgba(15, 17, 21, 0.68) 34%, rgba(15, 17, 21, 0.28) 66%, rgba(15, 17, 21, 0.48) 100%),
    linear-gradient(180deg, rgba(15, 17, 21, 0.16), rgba(15, 17, 21, 0.52));
}

.hero-pixels-section .container {
  position: relative;
  z-index: 1;
}

/* ---------- Sections ---------- */

main { flex: 1 0 auto; }

.block {
  padding: clamp(56px, 8.5vw, 92px) 0;
  border-top: 1px solid var(--line);
}

.block:first-of-type { border-top: 0; }

.section-head {
  max-width: 62ch;
  margin-bottom: 36px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-family: var(--heading);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.section-head .sub {
  margin: 0;
  color: var(--muted);
}

.section-head .eyebrow { margin-bottom: 12px; }

.measure { max-width: 64ch; }

.narrow { max-width: 780px; }

.legal-section {
  padding: 0 0 28px;
  margin: 0 0 28px;
  border-bottom: 1px solid var(--line);
}

.legal-section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.legal-section h2 {
  margin: 0 0 10px;
  font-family: var(--heading);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 400;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
}

.contact-title {
  margin: 0 0 12px;
  font-family: var(--heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
}

.contact-intro { margin-bottom: 28px; }

/* ---------- Cards and grids ---------- */

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), rgba(23, 27, 34, 0.55));
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(194, 161, 92, 0.55), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.card:hover::before { opacity: 1; }

.card h3 {
  margin: 0 0 8px;
  font-family: var(--heading);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.card .meta {
  margin: 0 0 6px;
  color: var(--faint);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.card .card-link:hover { color: var(--gold-bright); text-decoration: none; }

.tag {
  display: inline-block;
  align-self: flex-start;
  margin: 0 0 14px;
  padding: 4px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Lists ---------- */

.list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.list li {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--muted);
}

.list li b {
  color: var(--fg);
  font-weight: 600;
}

.list.tight li { padding: 12px 14px; }

/* ---------- Entity table ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.entity-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.entity-table th,
.entity-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.entity-table th {
  color: var(--faint);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.entity-table td { color: var(--muted); }

.entity-table td:first-child { color: var(--fg); font-weight: 600; }

.entity-table tr:last-child td { border-bottom: 0; }

.entity-table a { font-weight: 600; }

/* ---------- Organisation tree ---------- */

.org {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), rgba(23, 27, 34, 0.55));
}

.org-root {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
  background: var(--panel-2);
  font-family: var(--heading);
  font-size: 1.15rem;
}

.org-root span,
.org-node span {
  color: var(--faint);
  font-family: var(--body);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.org ul {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0 0 0 22px;
  border-left: 1px solid var(--line-strong);
  list-style: none;
}

.org li { position: relative; }

.org li::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 19px;
  width: 16px;
  height: 1px;
  background: var(--line-strong);
}

.org-node {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.015);
}

.org-node a {
  color: var(--fg);
  font-weight: 600;
  text-decoration: none;
}

.org-node a:hover { color: var(--gold); text-decoration: none; }

.org ul ul { margin-top: 8px; }

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.stat {
  padding: 24px;
  background: var(--panel);
}

.stat b {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
  font-family: var(--heading);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 400;
  line-height: 1;
}

.stat span {
  color: var(--muted);
  font-size: 0.8rem;
}

/* ---------- Call to action ---------- */

.cta {
  padding: clamp(48px, 7vw, 76px) 0;
  border-top: 1px solid var(--line);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta h2 {
  margin: 0 0 8px;
  font-family: var(--heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
}

.cta p {
  max-width: 52ch;
  margin: 0;
  color: var(--muted);
}

.cta.cta-light {
  background: #FFFFFF;
  border-top-color: rgba(0, 0, 0, 0.12);
}

.cta.cta-light h2 {
  color: #000000;
}

.cta.cta-light p {
  color: #111111;
}

.cta.cta-light .eyebrow {
  color: #000000;
}

.cta.cta-light .btn {
  border-color: var(--gold);
  background: var(--gold);
  color: #12140f;
}

.cta.cta-light .btn:hover {
  border-color: var(--gold-bright);
  background: var(--gold-bright);
  color: #12140f;
}

/* ---------- Contact ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.full { grid-column: 1 / -1; }

.field label {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-2);
  color: var(--fg);
  font: inherit;
  font-size: 0.94rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  outline: 2px solid rgba(194, 161, 92, 0.25);
  outline-offset: 0;
}

.field textarea {
  min-height: 170px;
  resize: vertical;
}

.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.donate-form {
  display: grid;
  gap: 16px;
  max-width: 640px;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.donation-frequency {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.donation-frequency label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.donation-frequency label:has(input:checked) {
  color: var(--fg);
  border-color: var(--gold);
  background: rgba(194, 161, 92, 0.1);
}

.donation-frequency input { accent-color: var(--gold); }

.amount-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.amount-chip {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.amount-chip:hover,
.amount-chip.active {
  color: var(--gold-bright);
  border-color: var(--gold);
}

.donation-note {
  margin: 0;
  color: var(--faint);
  font-size: 0.78rem;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 1.3em;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.form-status.ok { color: var(--gold-bright); }
.form-status.err { color: #f08a8a; }

.contact-aside {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.contact-aside h2 {
  margin: 0 0 10px;
  font-family: var(--heading);
  font-size: 1.3rem;
  font-weight: 400;
}

.contact-aside p,
.contact-aside li {
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-aside ul {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.contact-aside li {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.contact-aside a { font-weight: 600; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 56px 0 28px;
  border-top: 1px solid var(--line);
  background: rgba(10, 12, 15, 0.55);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.1fr 1fr;
  gap: 32px;
}

.footer-grid.has-info { grid-template-columns: 2.1fr 1fr 1fr; }

.footer-brand .brand { margin-bottom: 0; }

.footer-brand .wm-msx {
  color: var(--metallic-gold);
  border-color: #6d4f80;
}

.footer-brand .wm-estate {
  color: #c7b3d6;
  border-color: var(--metallic-gold);
  background: rgba(255, 255, 255, 0.04);
}

.site-footer h2 {
  margin: 0 0 12px;
  color: var(--faint);
  font-family: var(--body);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--muted);
  font-size: 0.86rem;
  text-decoration: none;
}

.site-footer a:hover { color: var(--gold); text-decoration: none; }

.footer-bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.76rem;
}

.footer-bottom p { margin: 0; }

/* ---------- Motion ---------- */

/* Content is always visible; the class is retained for future enhancements
   and for the JS observer to target without risking a blank no-JS page. */
.reveal {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .footer-grid,
  .footer-grid.has-info { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  :root { --nav-h: 68px; }

  .brand.wordmark { font-size: 1.02rem; }

  .menu-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    display: none;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--bg-2);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.35);
  }

  .site-nav.open { display: block; }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .site-nav a {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
  }

  .contact-layout { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 32px, var(--max)); }

  .hero { padding-top: 64px; }
  .hero h1 { max-width: 100%; }

  .contact-form { grid-template-columns: 1fr; }
  .contact-form-grid { grid-template-columns: 1fr; }
  .form-status { grid-column: 1; }

  .footer-grid,
  .footer-grid.has-info { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr; }
  .cta-inner { align-items: flex-start; }
  .org { padding: 16px; }
  .org-root { flex-direction: column; gap: 4px; }
  .org-node { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

@media print {
  body { background: #fff; color: #111; }
  .site-header, .site-footer, .menu-toggle, .btns { display: none; }
  .container { width: 100%; }
  a { color: #111; }
  .card, .list li, .org, .table-wrap { border-color: #ccc; background: #fff; }
}

/* ---------- Live support, chat, and FAQ ---------- */

[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.support-section { padding-bottom: clamp(48px, 8vw, 84px); }

.support-shell {
  max-width: 820px;
  margin: 0 auto;
}

.support-title {
  margin: 0 0 10px;
  text-align: center;
  font-family: var(--heading);
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 400;
}

.support-status {
  margin: 0 0 6px;
  text-align: center;
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.support-status.is-closed { color: var(--muted); }

.support-form {
  display: grid;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}

.support-form altcha-widget {
  display: block;
  justify-self: center;
  margin: 4px auto;
}

.support-offline-note {
  max-width: 54ch;
  margin: 0 auto 20px;
  text-align: center;
  color: var(--muted);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.form-actions-center { justify-content: center; }

.hours-section { text-align: center; }

.hours-title {
  margin: 0 0 26px;
  font-family: var(--heading);
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 400;
}

.hours-board {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  text-align: left;
}

.hours-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.hours-row:last-child { border-bottom: 0; }

.hours-row dt {
  color: var(--fg);
  font-weight: 600;
}

.hours-row dd {
  margin: 0;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.hours-note {
  margin: 16px 0 0;
  color: var(--faint);
  font-size: 0.8rem;
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
}

.chat-head .eyebrow { margin-bottom: 2px; }

.chat-head b {
  font-family: var(--heading);
  font-size: 1.2rem;
  font-weight: 400;
}

.chat-messages {
  display: grid;
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.chat-message {
  max-width: 82%;
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.55;
}

.chat-message .meta {
  display: block;
  margin-bottom: 4px;
  color: var(--faint);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.chat-message.from-visitor {
  justify-self: end;
  background: rgba(194, 161, 92, 0.16);
  border: 1px solid var(--line-strong);
}

.chat-message.from-staff {
  justify-self: start;
  background: var(--panel-2);
  border: 1px solid var(--line);
}

.chat-compose {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.chat-compose input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-2);
  color: var(--fg);
  font: inherit;
}

.chat-compose input:focus {
  border-color: var(--gold);
  outline: 2px solid rgba(194, 161, 92, 0.25);
}

.faq-section { text-align: center; }

.faq-title {
  margin: 0 0 26px;
  font-family: var(--heading);
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.faq-search-wrap {
  max-width: 620px;
  margin: 0 auto 30px;
}

.faq-search {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--fg);
  font: inherit;
  font-size: 0.92rem;
  text-align: center;
}

.faq-search:focus {
  border-color: var(--gold);
  outline: 2px solid rgba(194, 161, 92, 0.25);
}

.faq-board {
  display: grid;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--panel), rgba(23, 27, 34, 0.55));
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  color: var(--fg);
  font-family: var(--heading);
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  flex: none;
  color: var(--gold);
  font-family: var(--body);
  font-size: 1.3rem;
  font-weight: 400;
}

.faq-item[open] summary::after { content: "−"; }

.faq-item p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
  font-size: 0.94rem;
}

.faq-empty {
  margin: 24px 0 0;
  color: var(--muted);
}

altcha-widget {
  display: block;
  max-width: 100%;
  --altcha-color-primary: var(--gold);
  --altcha-color-primary-content: #12140f;
  --altcha-color-success: var(--gold);
  --altcha-color-success-content: #12140f;
  --altcha-border-radius: 12px;
  --altcha-color-base: var(--panel);
  --altcha-color-base-content: var(--fg);
}

@media (max-width: 640px) {
  .chat-message { max-width: 94%; }
  .chat-compose { flex-direction: column; align-items: stretch; }
  .chat-compose .btn { width: 100%; }
  .support-form .contact-form-grid { grid-template-columns: 1fr; }
}
