/* Nivah's classic look (as the emails and the staff portal): Playfair Display headings, cream paper, gold rules, navy. */
@font-face { font-family: "Playfair Display"; src: url("fonts/PlayfairDisplay-Variable.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("fonts/PlayfairDisplay-Italic-Variable.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }

:root {
  --brand: #12306b;
  --brand-dark: #0b2150;
  --brand-light: #e8edf8;
  --accent: #f5b301;
  --gold: #b08d3c;
  --gold-soft: #8a7a55;
  --paper: #fffdf8;
  --cream: #faf6ec;
  --line: #e9e3d6;
  --text: #1f2430;
  --muted: #5f6573;
  --danger: #b42318;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.7 var(--sans); color: var(--text); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.section { padding: 64px 16px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

h1, h2, h3, legend, summary, .steps b { font-family: var(--serif); font-weight: 500; color: var(--brand); }
h1 { font-size: clamp(34px, 5.6vw, 56px); line-height: 1.1; margin: 10px 0 18px; letter-spacing: -0.01em; }
h1 em { font-style: italic; color: var(--gold); }
h2 { font-size: clamp(27px, 4vw, 38px); line-height: 1.2; margin: 6px 0 14px; }
h3 { font-size: 22px; margin: 0 0 8px; }
.eyebrow { font: 600 12px/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin: 0; }
.sub { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--gold-soft); max-width: 680px; margin: 0 auto 36px; }
.split .sub { margin-left: 0; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255, 253, 248, 0.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand); }
.brand b { font-family: var(--serif); font-size: 22px; font-weight: 600; display: block; line-height: 1; }
.brand small { display: block; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 20px; font-size: 15px; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; }
@media (max-width: 480px) { .nav a:not(.btn) { display: none; } }

/* Buttons */
.btn { display: inline-block; background: var(--brand); color: #fff; font-weight: 600; padding: 15px 26px; border-radius: 4px; text-decoration: none; border: 1px solid var(--brand); cursor: pointer; font-size: 16px; letter-spacing: 0.02em; }
.btn:hover { background: var(--brand-dark); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-small { padding: 9px 18px; font-size: 14px; }
.btn-wide { width: 100%; margin-top: 8px; }
.link { color: var(--brand); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--gold); }

/* Opening */
.hero { background: linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%); padding: 56px 0 40px; }
.hero-grid { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }
.lead { font-size: 18px; color: #3a3f4b; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin: 28px 0 24px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 15px; color: #3a3f4b; }
.ticks li::before { content: "✓"; color: var(--gold); font-weight: 700; margin-right: 10px; }
.frame { margin: 0; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 1px 0 var(--line), 0 18px 40px -28px rgba(18, 48, 107, 0.45); }
.frame img { border-radius: 3px; width: 100%; }

/* Ornamental divider */
.ornament { display: flex; align-items: center; gap: 16px; max-width: 420px; margin: 8px auto; color: var(--gold); }
.ornament::before, .ornament::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

/* Cards */
.grid { display: grid; gap: 22px; }
.three { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.card img { border-bottom: 1px solid var(--line); background: var(--cream); }
.card-body { padding: 22px 24px 26px; border-top: 3px solid var(--gold); }
.card p { margin: 0; color: #3a3f4b; font-size: 16px; }

/* Bands and split sections */
.band { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1.1fr; } }
.list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.list li { padding-left: 26px; position: relative; }
.list li::before { content: "◆"; position: absolute; left: 0; top: 1px; color: var(--gold); font-size: 12px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 26px 22px; text-align: center; }
.steps span { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); font: 500 20px var(--serif); margin-bottom: 12px; }
.steps b { display: block; font-size: 21px; }
.steps p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

/* Form */
form { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 6px; padding: 26px 22px; }
fieldset { border: 0; padding: 0; margin: 0 0 26px; }
legend { font-size: 21px; margin-bottom: 12px; padding: 0; }
label { display: block; font-size: 14px; font-weight: 600; color: #374151; margin-bottom: 14px; }
input, select, textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 13px; border: 1px solid #d6d0c2; border-radius: 4px; font: inherit; font-size: 16px; font-weight: 400; background: var(--paper); color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-light); border-color: var(--brand); background: #fff; }
.row { display: grid; gap: 0 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .row { grid-template-columns: 1fr 1fr; } .row.three { grid-template-columns: 1fr 1fr 1fr; } }
.choices { display: grid; gap: 8px; margin-bottom: 16px; }
.choice { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; border: 1px solid var(--line); border-radius: 4px; padding: 13px 14px; margin: 0; cursor: pointer; background: var(--paper); }
.choice input { width: auto; margin: 5px 0 0; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-light); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.error { background: #fef3f2; color: var(--danger); border: 1px solid #fecdca; border-radius: 4px; padding: 10px 12px; font-size: 14px; }
.done { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 6px; padding: 28px; text-align: center; }

/* Questions */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-size: 20px; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--gold); font-family: var(--sans); }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; color: #3a3f4b; }

/* Footer */
.foot { background: var(--brand-dark); color: rgba(255, 255, 255, 0.78); font-size: 14px; padding: 28px 0; border-top: 3px solid var(--gold); }
.foot-row { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.foot p { margin: 0; }
.foot a { color: #fff; }
.brand.light { color: #fff; }
.brand.light b { font-size: 20px; }
