/* Warwick Estates brand tokens — taken from the BOSS Warwick theme (logo ink + gold). */
:root {
  --ink: #171717;
  --ink-2: #2b2a29;
  --text: #2f2d2b;
  --muted: #6c6862;
  --line: #e6e1d7;
  --line-strong: #d3ccbe;
  --paper: #f7f5f0;
  --surface: #ffffff;
  --gold: #c1922f;          /* brand gold — decorative, fills, borders */
  --gold-deep: #8c6a1f;     /* accessible gold for text on white (≥4.5:1) */
  --gold-tint: #f8f1e1;
  --gold-tint-2: #fbf7ee;
  --danger: #a3261b;
  --danger-tint: #fbecea;
  --ok: #2e6b46;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(23, 23, 23, .04), 0 8px 24px -12px rgba(23, 23, 23, .12);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; margin: 0 0 .4em; }
h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); }
h2 { font-size: 1.6rem; }
.h3, h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--gold-deep); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.muted { color: var(--muted); }
.small { font-size: .875rem; }
.strong { font-weight: 600; color: var(--ink); }
.nowrap { white-space: nowrap; }
.eyebrow {
  font: 600 .75rem/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 .75rem;
}
.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; }

/* ---------- Masthead ---------- */
.masthead { background: var(--ink); color: #fff; border-bottom: 3px solid var(--gold); }
.masthead__inner {
  max-width: 1180px; margin: 0 auto; padding: 0 24px; height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 16px; color: #fff; text-decoration: none; min-width: 0; }
.brand:hover { color: #fff; }
.brand img { height: 24px; width: auto; display: block; }
.brand__divider { width: 1px; height: 26px; background: rgba(255, 255, 255, .25); }
.brand__product { font: 500 .8rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #e9dcc0; white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 .95rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #000; color: #fff; box-shadow: inset 0 -3px 0 var(--gold); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--danger { background: transparent; color: var(--danger); border-color: #e3b6b1; }
.btn--danger:hover { background: var(--danger-tint); color: var(--danger); }
.btn--sm { min-height: 34px; padding: 0 14px; font-size: .85rem; }
.btn--block { width: 100%; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .45; pointer-events: none; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }

/* ---------- Inputs ---------- */
.input, .textarea, .select {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); font: 400 1rem/1.4 var(--sans);
  transition: border-color .15s, box-shadow .15s;
}
.textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.select { appearance: none; padding-right: 44px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23171717' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 16px center; }
.input:hover, .textarea:hover, .select:hover { border-color: #b9b0a0; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(193, 146, 47, .28); }
.input::placeholder, .textarea::placeholder { color: #a39d93; }
.field__label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 8px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.alert { background: var(--danger-tint); color: var(--danger); border-radius: var(--radius-sm); padding: 10px 14px; font-weight: 500; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--gold-tint); color: var(--gold-deep); font: 600 .75rem/1.4 var(--sans); white-space: nowrap; }
.tag--quiet { background: #f1eee8; color: var(--muted); }

@media (max-width: 640px) {
  .masthead__inner { padding: 0 16px; height: 60px; }
  .brand img { height: 20px; }
  .brand__divider, .brand__product { display: none; }
  .card { padding: 20px; }
}
