/* ==========================================================
   Landmark Charter Group — shared design tokens & components
   Navy + Gold theme. Edit the variables below to re-theme.
   ========================================================== */
:root {
  --navy-950: #050f1f;
  --navy-900: #081a33;
  --navy-800: #0b2447;
  --navy-700: #12315e;
  --navy-600: #1c4278;
  --navy-100: #e9edf3;
  --gold-600: #a9822f;
  --gold-500: #c9a24b;
  --gold-400: #ddbb6a;
  --gold-300: #ead79b;
  --ivory: #f8f5ee;
  --ink: #1a2233;
  --ink-soft: #5b6577;
  --line: #e2e5ea;
  --white: #ffffff;
  --success: #1f8a5b;
  --warn: #c27c0e;
  --danger: #b8392f;
  /* semantic tokens (light) — dark values live in theme.css.
     Neutral greys carry most of the page; navy and gold are used sparingly. */
  --bg: #f5f6f8;
  --page-grad: #f5f6f8;
  --admin-bg: #f3f4f7;
  --alt-bg: #eff1f4;
  --surface: #ffffff;
  --surface-grad: #ffffff;
  --surface-2: #f6f7f9;
  --line-soft: #eceef2;
  --row-hover: #f6f7f9;
  --heading: #0f2142;
  --link: #1c3560;
  --chart-rev: #3b5784;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-md: 0 4px 16px rgba(16, 24, 40, .07);
  --shadow-lg: 0 16px 40px rgba(16, 24, 40, .14);
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background-color: var(--bg); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--page-grad);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--navy-600); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--heading); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 .95rem/1 var(--font-body);
  padding: .85rem 1.4rem;
  border-radius: 8px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--navy-800); color: #fff; }   /* primary action */
.btn-gold:hover { background: var(--navy-700); color: #fff; }
.btn-navy { background: var(--navy-100); color: var(--heading); border-color: var(--line); }   /* secondary action */
.btn-navy:hover { background: #dde3ec; color: var(--heading); }
.btn-outline { background: var(--surface); color: var(--heading); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy-800); color: var(--heading); }
.btn-outline-light { background: var(--surface); color: var(--heading); border-color: var(--line); }
.btn-outline-light:hover { border-color: var(--navy-800); color: var(--heading); }
.btn-ghost { background: transparent; color: var(--link); }
.btn-ghost:hover { background: var(--navy-100); color: var(--heading); }
.btn-danger { background: transparent; color: var(--danger); border-color: rgba(184, 57, 47, .4); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-sm { padding: .55rem .9rem; font-size: .85rem; border-radius: 7px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- Forms ---------- */
label { display: block; font-size: .82rem; font-weight: 600; color: var(--heading); margin-bottom: .35rem; letter-spacing: .01em; }
.field { margin-bottom: 1rem; }
input:not([type]), input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date],
input[type=number], input[type=time], input[type=url], input[type=search], select, textarea {
  width: 100%;
  font: inherit; font-size: .95rem;
  padding: .72rem .85rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 96px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(28, 66, 120, .14); }
.row { display: grid; gap: 1rem; }
.row.two { grid-template-columns: repeat(2, 1fr); }
.row.three { grid-template-columns: repeat(3, 1fr); }
.row.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 720px) { .row.two, .row.three, .row.four { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.hint { font-size: .8rem; color: var(--ink-soft); margin-top: .3rem; }
.form-error { background: #fdecea; color: var(--danger); border: 1px solid #f3c1bc; padding: .7rem .9rem; border-radius: 8px; font-size: .9rem; margin-bottom: 1rem; }
.form-ok { background: #e8f6ef; color: var(--success); border: 1px solid #b9e3cf; padding: .7rem .9rem; border-radius: 8px; font-size: .9rem; margin-bottom: 1rem; }

/* ---------- Badges ---------- */
.badge { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--navy-100); color: var(--navy-700); white-space: nowrap; }
.badge.gold { background: #f6efdc; color: #7a5a14; }
.badge.green { background: #dcf3e8; color: #17694a; }
.badge.red { background: #fbe0dd; color: #98302a; }
.badge.amber { background: #fdefd3; color: #8e5a07; }
.badge.blue { background: #dfe9fb; color: #1f4a94; }
.badge.gray { background: #eceff4; color: #5b6578; }
