/* ---------- Design tokens ---------- */
:root {
  --color-navy: #10263f;
  --color-navy-dark: #0a1a2c;
  --color-gold: #c99a3b;
  --color-gold-dark: #a97e28;
  --color-text: #1f2933;
  --color-text-muted: #52606d;
  --color-bg: #ffffff;
  --color-bg-muted: #f4f6f8;
  --color-border: #e2e6ea;
  --radius: 6px;
  --max-width: 1120px;
  font-size: 16px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ul, figure { margin: 0; }
img { max-width: 100%; display: block; }
a { color: var(--color-navy); }
ul { padding: 0; list-style: none; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
}

h1, h2, h3 { color: var(--color-navy); line-height: 1.2; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-bottom: 0.75rem; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Accessibility helpers ---------- */
.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;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-navy);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}
.btn--accent {
  background: var(--color-gold);
  color: var(--color-navy-dark);
}
.btn--accent:hover { background: var(--color-gold-dark); }
.btn--outline {
  background: transparent;
  border-color: #fff;
  color: #fff;
}
.hero .btn--outline:hover { background: rgba(255,255,255,0.1); }
.btn--small { padding: 0.4rem 0.9rem; font-size: 0.9rem; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 50;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--color-navy);
}
.brand__logo { height: 42px; width: auto; object-fit: contain; }
.brand__name { font-weight: 700; font-size: 1.1rem; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle__bar {
  width: 24px; height: 2px;
  background: var(--color-navy);
}

.primary-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}
.primary-nav a { text-decoration: none; color: var(--color-navy); font-weight: 500; }
.primary-nav a:hover { color: var(--color-gold-dark); }
.primary-nav.is-open { display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding-bottom: 1rem; }

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .primary-nav { display: flex; }
}

/* ---------- Messages ---------- */
.messages { margin: 1rem 0; }
.message { padding: 0.75rem 1rem; border-radius: var(--radius); margin-bottom: 0.5rem; }
.message--success { background: #e3f6e8; color: #1c5c31; }
.message--error { background: #fbe4e4; color: #7d2222; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-dark));
  color: #fff;
  padding: 4.5rem 0;
}
.hero__inner { max-width: 720px; }
.hero h1 { color: #fff; }
.hero__lede { margin-top: 1rem; font-size: 1.15rem; color: #d7dee6; }
.hero__actions { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 3.5rem 0; }
.section--muted { background: var(--color-bg-muted); }

.features {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .features { grid-template-columns: repeat(3, 1fr); }
}
.feature p { color: var(--color-text-muted); }

/* ---------- Contact section ---------- */
.contact-section {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .contact-section { grid-template-columns: 0.9fr 1.1fr; }
}
.contact-details { margin-top: 1rem; }
.contact-details li { margin-bottom: 0.4rem; }
.disclosure-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  border-left: 3px solid var(--color-gold);
  padding-left: 0.9rem;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.form-row { margin-bottom: 1.1rem; }
.form-row label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font: inherit;
}
.form-row--checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.form-row--checkbox label { font-weight: 400; margin: 0; }
.form-row--checkbox input { margin-top: 0.3rem; }
.form-row .errorlist {
  color: #b3261e;
  font-size: 0.85rem;
  margin: 0.3rem 0 0;
  padding: 0;
  list-style: none;
}
.form-legal { font-size: 0.8rem; color: var(--color-text-muted); margin-top: 1rem; }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
.team-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}
.team-card__photo {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
}
.team-card__title { color: var(--color-text-muted); margin-bottom: 0.75rem; }
.team-card .btn { margin-top: 1rem; }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 72ch; }
.prose h1 { margin-bottom: 1.5rem; }
.prose p, .prose ul, .prose ol { margin-bottom: 1rem; color: var(--color-text); }
.prose ul, .prose ol { padding-left: 1.5rem; list-style: revert; }

.lede { max-width: 72ch; font-size: 1.1rem; color: var(--color-text-muted); }

/* ---------- Error page ---------- */
.error-page { text-align: center; padding: 3rem 0; }
.error-page .btn { margin-top: 1.5rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-navy-dark);
  color: #cfd8e3;
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}
.footer-heading { color: #fff; font-size: 1.05rem; margin-bottom: 0.75rem; }
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  padding-bottom: 2rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
.site-footer a { color: #cfd8e3; }
.site-footer a:hover { color: var(--color-gold); }
.footer-list li { margin-bottom: 0.4rem; }
.equal-housing {
  font-size: 0.85rem;
  color: #9aa7b5;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  margin-top: 0.5rem;
}
.copyright { font-size: 0.8rem; color: #7c8a99; margin-top: 0.75rem; }
