:root {
  --ink: #241c23;
  --ink-soft: #5e535a;
  --cream: #fbf7f0;
  --paper: #ffffff;
  --plum: #33232f;
  --plum-2: #4a3344;
  --gold: #c89e63;
  --gold-light: #ead7b8;
  --line: #e7ddd1;
  --success: #236746;
  --warning: #9c5a16;
  --shadow: 0 18px 55px rgba(49, 34, 46, .11);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

/* Accessibility: visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute; left: -999px; top: auto;
  background: var(--plum); color: #fff; padding: 12px 18px;
  border-radius: 0 0 10px 0; z-index: 100; font-weight: 700;
}
.skip-link:focus {
  left: 0; top: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.container { width: min(calc(100% - 36px), var(--max)); margin-inline: auto; }
.section { padding: 86px 0; }
.section-sm { padding: 56px 0; }
.eyebrow { color: var(--gold); font-weight: 750; letter-spacing: .16em; text-transform: uppercase; font-size: .78rem; }
.title-xl { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.5rem, 6vw, 5.7rem); line-height: .98; letter-spacing: -.04em; margin: 14px 0 20px; }
.title-lg { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1.04; letter-spacing: -.03em; margin: 10px 0 18px; }
.title-md { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.45rem, 2.5vw, 2.15rem); line-height: 1.2; margin: 0 0 10px; }
.lead { font-size: clamp(1.02rem, 1.5vw, 1.25rem); color: var(--ink-soft); max-width: 750px; }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(231, 221, 209, .85);
  background: rgba(251, 247, 240, .91);
  backdrop-filter: blur(16px);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 20px; }
.brand { display: flex; align-items: center; min-width: 245px; }
.brand img { width: 238px; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: .95rem; font-weight: 650; }
.nav-links a { color: #4e4249; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--gold); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.menu-toggle { display: none; border: 1px solid var(--line); background: white; border-radius: 999px; padding: 10px 14px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 12px 20px; border: 1px solid transparent; font-weight: 750; transition: .2s ease; }
.btn-primary { background: var(--plum); color: white; }
.btn-primary:hover { background: var(--plum-2); transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #24170d; }
.btn-gold:hover { filter: brightness(1.04); transform: translateY(-1px); }
.btn-outline { border-color: var(--line); background: rgba(255,255,255,.65); }
.btn-outline:hover { border-color: var(--gold); }
.btn-sm { padding: 9px 14px; font-size: .9rem; }

.hero { position: relative; overflow: hidden; padding: 92px 0 76px; }
.hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(circle at 78% 20%, rgba(200,158,99,.14), transparent 28%),
  radial-gradient(circle at 12% 72%, rgba(90,56,82,.09), transparent 30%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.12fr .88fr; gap: 56px; align-items: center; }
.hero-copy .actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 26px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 12px 24px; color: var(--ink-soft); font-size: .94rem; }
.hero-proof span::before { content: "✓"; color: var(--success); font-weight: 900; margin-right: 7px; }

/* Tasteful image placeholders — used wherever real photography will later go.
   Never contains invented statistics, names or data. */
.img-placeholder {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center;
  background: repeating-linear-gradient(135deg, #eee4da, #eee4da 12px, #e7ddd1 12px, #e7ddd1 24px);
  border: 1.5px dashed #c7b9ab;
  border-radius: var(--radius);
  color: var(--ink-soft);
  padding: 28px;
  overflow: hidden;
}
.img-placeholder .ph-icon { font-size: 1.9rem; opacity: .55; }
.img-placeholder .ph-label { font-weight: 750; color: var(--ink); font-size: .95rem; }
.img-placeholder .ph-note { font-size: .82rem; max-width: 320px; }
.img-placeholder--hero { min-height: 460px; border-radius: 34px; }
.img-placeholder--wide { aspect-ratio: 16 / 9; }
.img-placeholder--square { aspect-ratio: 1 / 1; }
.img-placeholder--portrait { aspect-ratio: 3 / 4; }

.logo-strip { border-block: 1px solid var(--line); background: rgba(255,255,255,.55); }
.logo-strip .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-block: 24px; text-align: center; color: #766a70; font-size: .9rem; font-weight: 700; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 10px 35px rgba(49,34,46,.055); }
.card h3 { margin-top: 0; }
.icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--gold-light); color: var(--plum); font-weight: 900; margin-bottom: 20px; }
.list-check { list-style: none; padding: 0; margin: 18px 0 0; }
.list-check li { padding: 7px 0 7px 28px; position: relative; }
.list-check li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 900; }

.band { background: var(--plum); color: white; }
.band .muted { color: #d8ccd4; }
.metric-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 34px; }
.metric { border: 1px solid rgba(255,255,255,.15); border-radius: 18px; padding: 20px; background: rgba(255,255,255,.06); }
.metric strong { font-size: 2rem; font-family: Georgia, serif; display: block; }

.process { counter-reset: step; display: grid; gap: 14px; }
.process-item { display: grid; grid-template-columns: 58px 1fr; gap: 16px; align-items: start; background: white; border: 1px solid var(--line); padding: 20px; border-radius: 18px; }
.process-item::before { counter-increment: step; content: counter(step); width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--plum); color: white; font-weight: 800; }

.cta { background: linear-gradient(120deg, #30212d, #543d4e); color: white; border-radius: 32px; padding: 52px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.cta p { color: #ddd1d9; }

.page-hero { padding: 74px 0 54px; background: radial-gradient(circle at 85% 10%, rgba(200,158,99,.16), transparent 28%); }
.breadcrumbs { color: var(--ink-soft); font-size: .9rem; }
.breadcrumbs span { margin: 0 7px; }

.form-card { background: white; border: 1px solid var(--line); border-radius: 26px; padding: 30px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 700; font-size: .92rem; }
input, select, textarea { width: 100%; border: 1px solid #d9cfc5; background: #fff; color: var(--ink); border-radius: 12px; padding: 12px 13px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,158,99,.15); }
textarea { min-height: 130px; resize: vertical; }
.form-note { margin-top: 14px; font-size: .87rem; color: var(--ink-soft); }
.success-message { display: none; margin-top: 16px; padding: 14px 16px; background: #e9f6ef; color: var(--success); border-radius: 12px; }

/* Preview / development-mode notices — used instead of any false "submitted" message */
.notice { margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-size: .92rem; }
.notice-preview { background: #fff3df; color: var(--warning); border: 1px solid #ead7b8; }
.notice-dev { background: #eee9e4; color: #4e4249; border: 1px solid var(--line); }

/* "In development" status badge, used on the login page instead of live links */
.dev-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: .78rem; font-weight: 800; background: #fff3df; color: var(--warning); border: 1px solid #ead7b8; }

/* Placeholder for people who will be introduced later (owner/manager bios) */
.bio-placeholder { display: flex; gap: 18px; align-items: flex-start; }
.bio-placeholder .img-placeholder { width: 96px; height: 96px; flex: none; border-radius: 50%; padding: 0; }
.bio-placeholder .img-placeholder .ph-icon { font-size: 1.3rem; margin: 0; }

/* Legal / registration detail placeholders in the footer */
.legal-block { font-size: .85rem; color: #bfb1ba; }
.legal-block .ph { color: #9c8fa0; font-style: italic; }

.portal-shell { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; background: #f4efe8; }
.sidebar { background: #261c25; color: white; padding: 24px 18px; }
.sidebar .mini-brand { font-family: Georgia, serif; font-size: 1.32rem; padding: 4px 10px 22px; }
.sidebar nav { display: grid; gap: 6px; }
.sidebar a, .sidebar button { color: #e9dfe6; background: transparent; border: 0; text-align: left; padding: 11px 12px; border-radius: 10px; width: 100%; }
.sidebar a.active, .sidebar a:hover, .sidebar button:hover { background: rgba(255,255,255,.09); }
.portal-main { padding: 28px; overflow: hidden; }
.portal-top { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 24px; }
.portal-top h1 { margin: 0; font-family: Georgia, serif; }
.portal-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.portal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.portal-card { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.portal-card .number { font-family: Georgia, serif; font-size: 2rem; }
.portal-section { background: white; border: 1px solid var(--line); border-radius: 20px; margin-top: 18px; overflow: hidden; }
.portal-section header { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.portal-section header h2 { font-family: Georgia, serif; font-size: 1.35rem; margin: 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: .92rem; }
th { color: var(--ink-soft); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; background: #fcfaf6; }
.badge { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; font-size: .78rem; font-weight: 800; }
.badge-live { color: var(--success); background: #e9f6ef; }
.badge-warn { color: var(--warning); background: #fff3df; }
.badge-muted { color: #685e64; background: #eee9e4; }
.location-switcher { display: flex; gap: 8px; flex-wrap: wrap; }
.location-switcher button { border: 1px solid var(--line); background: white; border-radius: 999px; padding: 8px 12px; }
.location-switcher button.active { background: var(--plum); color: white; border-color: var(--plum); }
.org-tree { display: grid; gap: 16px; }
.org-parent, .org-child { border: 1px solid var(--line); background: white; border-radius: 16px; padding: 18px; }
.org-children { margin-left: 38px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; position: relative; }
.org-children::before { content: ""; position: absolute; left: -20px; top: -18px; bottom: 50%; width: 1px; background: var(--gold); }

.footer { background: #211820; color: #f3eaf0; padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .7fr .7fr .9fr; gap: 36px; }
.footer h4 { margin-top: 0; }
.footer a { color: #d7ccd3; display: block; margin: 8px 0; }
.footer a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 38px; padding-top: 20px; display: flex; justify-content: space-between; gap: 20px; color: #bfb1ba; font-size: .88rem; }

@media (max-width: 980px) {
  .nav-links, .nav-actions { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header.open .nav { align-items: flex-start; flex-wrap: wrap; padding: 16px 0; }
  .site-header.open .nav-links { display: grid; width: 100%; gap: 6px; }
  .site-header.open .nav-links a { padding: 10px 0; }
  .site-header.open .nav-actions { display: flex; width: 100%; padding-bottom: 8px; }
  .hero-grid, .grid-2, .cta { grid-template-columns: 1fr; }
  .img-placeholder--hero { min-height: 320px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .metric-row, .portal-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .portal-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .org-children { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 24px), var(--max)); }
  .section { padding: 64px 0; }
  .hero { padding-top: 58px; }
  .grid-3, .grid-2, .metric-row, .portal-grid, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .img-placeholder--hero { min-height: 260px; padding: 20px; }
  .cta { padding: 32px 24px; }
  .footer-bottom { flex-direction: column; }
  .logo-strip .container { grid-template-columns: 1fr 1fr; }
  .portal-main { padding: 16px; }
  .portal-top { align-items: flex-start; flex-direction: column; }
  .bio-placeholder { flex-direction: column; align-items: flex-start; }
}

/* --- Stage 2.5 (updated 2.5.2): form additions (honeypot, error summary,
   privacy/usage note). Additive only — no existing rule above was changed. --- */
.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.error-summary {
  border: 2px solid #9c3b30;
  background: #fdecea;
  color: #6e241b;
  padding: 16px 18px;
  border-radius: 14px;
  margin-bottom: 18px;
}
.error-summary h3 { margin: 0 0 8px; font-size: 1rem; }
.error-summary ul { margin: 0; padding-left: 20px; }
.error-summary a { color: #6e241b; text-decoration: underline; font-weight: 700; }
.form-privacy-note { font-size: .85rem; color: var(--ink-soft); margin: 16px 0; }
.form-privacy-note a { text-decoration: underline; }
