/* Doc Matt Homes — Locked Brand Tokens
   Source: Doc-Matt-Homes-Visual-Identity-System.md */

:root {
  /* Brand */
  --brand-navy: #0D2437;
  --brand-gold: #CBA04A;
  --brand-white: #FFFFFF;

  /* Neutrals */
  --ink-900: #15223A;
  --ink-700: #3A465B;
  --ink-500: #6E7686;
  --ink-300: #C8CCD3;
  --paper-100: #FAF8F2;
  --paper-200: #F2EFE8;
  --rule: #E2DDD0;

  /* Semantic */
  --state-success: #3F7D52;
  --state-warning: #B97A1F;
  --state-danger: #9B3A2F;
  --state-info: #3D5278;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-accent: 'Montserrat', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --max-width: 1200px;
}

/* Reset-ish */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }

/* Type defaults */
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--paper-100);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink-900);
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: 56px; line-height: 1.1; letter-spacing: -0.01em; }
h2 { font-size: 40px; line-height: 1.15; letter-spacing: -0.005em; }
h3 { font-family: var(--font-body); font-weight: 600; font-size: 24px; line-height: 1.25; }
h4 { font-family: var(--font-body); font-weight: 500; font-size: 20px; line-height: 1.4; }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-accent);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-gold);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-accent);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 24px;
  min-width: 140px;
  border: none;
  border-radius: var(--radius-sm);
  transition: background 150ms ease, color 150ms ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand-navy);
  color: var(--brand-white);
}
.btn-primary:hover { background: var(--ink-900); }

.btn-gold {
  background: var(--brand-gold);
  color: var(--brand-navy);
}
.btn-gold:hover { filter: brightness(1.05); }

.btn-secondary {
  background: transparent;
  color: var(--brand-navy);
  border: 1px solid var(--brand-navy);
}
.btn-secondary:hover { background: var(--paper-200); }

.btn-on-dark-secondary {
  background: transparent;
  color: var(--brand-white);
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-on-dark-secondary:hover { background: rgba(255,255,255,0.08); }

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
@media (min-width: 768px) {
  .container { padding-left: 64px; padding-right: 64px; }
}

.section { padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 96px 0; } }

.section-navy { background: var(--brand-navy); color: var(--brand-white); }
.section-navy h1, .section-navy h2, .section-navy h3, .section-navy h4 { color: var(--brand-white); }
.section-paper-200 { background: var(--paper-200); }

/* Forms */
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-row label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-900);
}
.form-row input, .form-row select, .form-row textarea {
  font-family: var(--font-body);
  font-size: 16px;
  height: 48px;
  padding: 0 12px;
  border: 1px solid var(--ink-300);
  border-radius: var(--radius-sm);
  background: var(--brand-white);
  color: var(--ink-900);
  transition: border-color 120ms ease;
}
.form-row textarea { height: auto; padding: 12px; min-height: 96px; resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--brand-navy);
  box-shadow: 0 0 0 3px rgba(13,36,55,0.08);
}
.form-helper { font-size: 13px; color: var(--ink-500); }

/* Hairline */
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* Mobile type scale */
@media (max-width: 767px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
  h4 { font-size: 18px; }
  body { font-size: 16px; }
  .btn { width: 100%; }
}
