/* =====================================================
   THEME TOKENS — the whole visual identity lives here.
   Seeded from VSS Brand Style Guide v2.2 (Camp B palette).
   To reskin: change this block only.
   ===================================================== */
:root {
  /* Palette */
  --color-slate: #2B3A47;     /* primary: hero, headings, primary surfaces */
  --color-forest: #3D5A4E;    /* secondary: section labels, accents */
  --color-tan: #C19A6B;       /* warmth: sub-headings, borders */
  --color-amber: #E07A2F;     /* CTA only — one per composition */
  --color-charcoal: #1A1A1A;  /* body text */
  --color-cream: #F7F5F2;     /* page background */
  --color-paper: #FFFFFF;     /* card surfaces */
  --color-border: #DFD9D2;    /* hairlines, dividers */

  /* Type */
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Scale (mobile-first; desktop overrides below) */
  --size-h1: 2.4rem;
  --size-h2: 1.75rem;
  --size-h3: 1.35rem;
  --size-h4: 1.15rem;
  --size-body: 1.0625rem;   /* 17px */
  --size-small: 0.875rem;
  --size-eyebrow: 0.75rem;

  /* Spacing */
  --space-section: 3.5rem;
  --space-gutter: 1.5rem;
  --measure: 70ch;
}

/* ============ Reset & base ============ */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: 1.65;
  color: var(--color-charcoal);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  color: var(--color-slate);
}

h1 { font-size: var(--size-h1); font-weight: 700; }
h2 { font-size: var(--size-h2); font-weight: 600; }
h3 { font-size: var(--size-h3); font-weight: 600; }
h4 { font-size: var(--size-h4); font-weight: 600; }

p { margin: 0 0 1rem; max-width: var(--measure); }

a { color: var(--color-forest); }

/* ============ Shared pieces ============ */
.eyebrow {
  font-size: var(--size-eyebrow);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-forest);
  margin-bottom: 0.75rem;
}

.button-primary {
  display: inline-block;
  background: var(--color-amber);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.75rem;
  border-radius: 4px;
  transition: filter 120ms ease;
}
.button-primary:hover { filter: brightness(0.93); }

section {
  padding: var(--space-section) var(--space-gutter);
  max-width: 52rem;
  margin: 0 auto;
}

/* ============ Header ============ */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--space-gutter);
  max-width: 52rem;
  margin: 0 auto;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-slate);
  margin: 0;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-cta {
  font-size: var(--size-small);
  font-weight: 600;
  color: var(--color-slate);
  text-decoration: none;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 0.45rem 0.9rem;
  white-space: nowrap;
}

.wordmark-link {
  color: inherit;
  text-decoration: none;
}

/* ============ Hero ============ */
.hero { padding-top: 3.5rem; }

.hero h1 { margin-bottom: 1rem; }

.hero-sub {
  font-size: 1.15rem;
  color: var(--color-charcoal);
  margin-bottom: 2rem;
}

/* ============ Belief ============ */
.belief blockquote {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--color-tan);
}

.belief blockquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.35;
  color: var(--color-slate);
  margin: 0;
}

/* ============ Services ============ */
.services h2::before {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  background: var(--color-tan);
  margin-bottom: 0.85rem;
}

.section-intro { margin-bottom: 2.5rem; }

.service-group { margin-bottom: 3rem; }
.service-group:last-child { margin-bottom: 0; }

.service-group h3 {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
}

.group-note {
  font-size: var(--size-small);
  color: var(--color-forest);
  margin-bottom: 1.5rem;
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-list li {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
}
.service-list li:last-child { border-bottom: none; }

.service-list h4 { margin-bottom: 0.5rem; }

.service-list p:last-child { margin-bottom: 0; }

/* ============ Contact ============ */
.contact {
  scroll-margin-top: 2rem;
  background: var(--color-slate);
  border-radius: 8px;
  color: var(--color-cream);
  text-align: center;
  padding: 3.5rem var(--space-gutter);
  width: min(100% - 2rem, 52rem);
  margin-inline: auto;
  margin-bottom: var(--space-section);
}

.contact h2 { color: var(--color-cream); }
.contact p { margin-left: auto; margin-right: auto; margin-bottom: 1.75rem; }

/* ============ Portal ============ */
.portal { padding-top: 3.5rem; }

.portal-form {
  margin: 2.5rem 0 3rem;
  padding: 1.75rem;
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  max-width: 34rem;
}

.portal-form label {
  display: block;
  font-size: var(--size-small);
  font-weight: 600;
  color: var(--color-slate);
  margin-bottom: 0.5rem;
}

.portal-input-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.portal-input-row input {
  flex: 1 1 12rem;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  color: var(--color-charcoal);
  background: var(--color-cream);
  min-width: 0;
}
.portal-input-row input:focus {
  outline: 2px solid var(--color-forest);
  outline-offset: 1px;
  border-color: var(--color-forest);
}

.portal-suffix {
  font-size: var(--size-small);
  font-weight: 500;
  color: var(--color-forest);
  white-space: nowrap;
}

.portal-hint {
  font-size: var(--size-small);
  color: var(--color-forest);
  margin: 1rem 0 0;
}

.portal-security h2 { font-size: var(--size-h3); }

.portal-security ul {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.portal-security li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--color-border);
  max-width: var(--measure);
}
.portal-security li:last-child { border-bottom: none; }

/* ============ Footer ============ */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem var(--space-gutter);
  text-align: center;
}

.site-footer p {
  font-size: var(--size-small);
  color: var(--color-forest);
  max-width: none;
  margin: 0 0 0.35rem;
}

/* ============ Desktop ============ */
@media (min-width: 720px) {
  :root {
    --size-h1: 3.25rem;   /* 52px */
    --size-h2: 2.25rem;   /* 36px */
    --size-h3: 1.5rem;    /* 24px */
    --size-h4: 1.25rem;   /* 20px */
    --space-section: 4.5rem;
    --space-gutter: 2rem;
  }

  .hero { padding-top: 5rem; }
  .belief blockquote p { font-size: 1.7rem; }
}
