/* ============================================================
   Vocus Fire Safety — referral scheme shared styles
   Reuses the live site's design tokens, fonts, buttons + header/footer
   so /refer, /card and /referral-terms look native to the site.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:ital,wght@0,300..800;1,400&family=Spline+Sans+Mono:wght@400;500&display=swap');

:root {
  --navy: #0B1F3A; --navy-2: #112A4A; --navy-soft: rgba(255,255,255,.12);
  --amber: #C2410C; --amber-deep: #9A3309; --amber-soft: #FBE3D8; --ember: #C2410C;
  --white: #FFFFFF; --paper: #F6F7F9; --paper-2: #ECEFF3;
  --ink: #1A2230; --body: #3A424E; --muted: #6B7480; --line: #E6E9ED; --line-2: #D7DCE3;
  --radius: 18px; --radius-sm: 12px; --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(11,31,58,.06), 0 1px 3px rgba(11,31,58,.05);
  --shadow: 0 4px 14px rgba(11,31,58,.07), 0 14px 40px rgba(11,31,58,.08);
  --shadow-lg: 0 10px 30px rgba(11,31,58,.12), 0 30px 70px rgba(11,31,58,.14);
  --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Spline Sans Mono', ui-monospace, 'SFMono-Regular', monospace;
  --maxw: 1200px; --gut: clamp(20px, 5vw, 48px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.62; color: var(--body); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(48px, 8vw, 96px); }
.band-paper { background: var(--paper); }
.band-navy { background: linear-gradient(150deg, var(--navy-2) 0%, var(--navy) 55%, #07172E 100%); color: #C2CAD6; }

.eyebrow { font-family: var(--mono); font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--amber-deep); font-weight: 500; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--amber); display: inline-block; }
.band-navy .eyebrow { color: var(--amber); }
.h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -0.03em; color: var(--ink); }
.h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); letter-spacing: -0.025em; }
.h3 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--muted); line-height: 1.55; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; font-size: 16px; line-height: 1; padding: 15px 24px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .2s, box-shadow .2s, color .2s, border-color .2s; min-height: 48px; white-space: nowrap; text-align: center; }
.btn svg { width: 17px; height: 17px; }
.btn--primary { background: var(--amber); color: #fff; box-shadow: 0 1px 2px rgba(11,31,58,.16); }
.btn--primary svg { color: #fff; }
.btn--primary:hover { background: #A8350A; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(11,31,58,.22); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--amber); background: var(--white); transform: translateY(-1px); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-2); transform: translateY(-1px); }
.btn--sm { padding: 11px 18px; min-height: 42px; font-size: 15px; }
.btn:disabled, .btn.is-busy { opacity: .6; pointer-events: none; }

/* Header */
.site-nav { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.9); backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line); }
.site-nav__inner { display: flex; align-items: center; gap: 16px; height: 72px; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; }
.site-brand img { width: 32px; height: 32px; }
.site-brand__txt { display: flex; flex-direction: column; gap: 3px; line-height: 1; white-space: nowrap; }
.site-brand__name { font-weight: 800; color: var(--ink); font-size: 16.5px; letter-spacing: -.015em; }
.site-brand__strap { font-family: var(--mono); font-size: 8px; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; }
.site-nav__spacer { flex: 1; }
.site-nav__links { display: flex; align-items: center; gap: 6px; }
.site-nav__links a { padding: 9px 12px; border-radius: 9px; font-weight: 600; font-size: 15px; color: #283443; }
.site-nav__links a:hover { color: var(--navy); background: var(--paper); }
@media (max-width: 620px) { .site-nav__links a.hide-sm { display: none; } }

/* Footer */
.site-foot { background: linear-gradient(170deg, #0B1F3A 0%, #07172E 100%); color: #AEB7C4; padding: clamp(40px,6vw,64px) 0 26px; }
.site-foot__top { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; align-items: flex-start; }
.site-foot img { width: 160px; border-radius: 12px; }
.site-foot__links { display: flex; gap: 40px; flex-wrap: wrap; }
.site-foot__col h4 { color: #fff; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; font-family: var(--mono); font-weight: 500; margin-bottom: 14px; }
.site-foot__col a, .site-foot__col span { display: block; padding: 5px 0; font-size: 14.5px; color: #AEB7C4; }
.site-foot__col a:hover { color: var(--amber); }
.site-foot__bottom { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--navy-soft); font-size: 13px; color: #8893A3; }

/* Referral hero */
.rhero { position: relative; overflow: hidden; background: var(--white); }
.rhero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(52% 52% at 92% -8%, rgba(11,31,58,.05) 0%, transparent 60%); }
.rhero .wrap { position: relative; z-index: 1; padding-block: clamp(44px, 7vw, 84px); max-width: 820px; }
.rhero .h1 { margin-top: 18px; }
.rhero .lead { margin-top: 18px; max-width: 60ch; }
.rhero__actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.step__n { width: 38px; height: 38px; border-radius: 999px; background: var(--amber-soft); color: var(--amber-deep); display: grid; place-items: center; font-family: var(--mono); font-weight: 500; font-size: 15px; }
.step h3 { margin: 16px 0 6px; font-size: 1.1rem; }
.step p { color: var(--muted); font-size: 15px; line-height: 1.5; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Forms */
.form-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px,4vw,38px); box-shadow: var(--shadow-sm); max-width: 620px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field .req { color: var(--amber-deep); }
.field input, .field textarea { font-family: inherit; font-size: 15px; color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; width: 100%; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(194,65,12,.18); }
.consent { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 11px; font-size: 14px; color: var(--body); line-height: 1.5; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--amber); flex: none; }
.consent a { color: var(--amber-deep); text-decoration: underline; }
.form__actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.form__note { font-family: var(--mono); font-size: 11.5px; color: var(--muted); letter-spacing: .03em; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { display: none; width: 100%; font-size: 13.5px; color: var(--amber-deep); line-height: 1.4; }
.form-error[hidden] { display: none; }
.form-error.show { display: block; }
.form-error a { color: var(--amber-deep); text-decoration: underline; }
@media (max-width: 560px) { .form__grid { grid-template-columns: 1fr; } }

/* Notices */
.notice { border-radius: var(--radius); padding: 16px 18px; font-size: 14.5px; line-height: 1.5; margin-bottom: 22px; }
.notice--info { background: var(--amber-soft); color: var(--amber-deep); border: 1px solid #f3cdbe; }
