/* ==========================================================================
   Davidson RN Consulting
   Shared stylesheet. The page layouts themselves carry inline styles, exactly
   as they came out of the design files; this sheet holds everything a style
   attribute cannot express: resets, hover and focus states, the header and
   footer, the mobile navigation, form controls, and the responsive rules.

   Palette
     Navy   #0E1B27   Cream  #FDF8F2   Sand   #F3E8D6
     Gold   #B0873C   Gold+  #D0A65A   Gold-  #7E6026
     Slate  #46586A   Steel  #C3D0DD   Mute   #8FA3B5
     Rule   #22384B (on navy)          Rule-  #DCCDB4 (on cream)
   ========================================================================== */

/* --------------------------------- base --------------------------------- */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #FDF8F2;
  color: #0E1B27;
  font-family: "Instrument Sans", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

a { color: inherit; text-decoration: none; }
a:hover { color: #7E6026; }

/* The UA rule for [hidden] is display:none, which an inline `display` on the
   same element silently wins against. Several elements here are toggled with
   .hidden and also carry layout styles, so make the attribute authoritative. */
[hidden] { display: none !important; }

h1, h2, h3, h4 { margin: 0; font-family: Archivo, Helvetica, Arial, sans-serif; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
img { max-width: 100%; }
main { display: block; }

:focus-visible {
  outline: 2px solid #B0873C;
  outline-offset: 3px;
}
.site-header :focus-visible,
.site-footer :focus-visible,
[data-on-navy] :focus-visible {
  outline-color: #D0A65A;
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: #B0873C;
  color: #0E1B27;
  padding: 14px 22px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.skip-link:focus {
  left: 0;
  color: #0E1B27;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

html { scroll-behavior: smooth; }
/* Sticky header is 78px tall; keep anchored sections clear of it. */
[id] { scroll-margin-top: 96px; }

/* -------------------------------- header -------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #0E1B27;
  color: #FDF8F2;
}

.site-header__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(20px, 3.5vw, 56px);
  min-height: 78px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px clamp(20px, 3vw, 44px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-right: auto;
  padding: 10px 0;
}
.brand:hover { color: #FDF8F2; }
.brand img { width: 58px; height: auto; display: block; }
.brand__name {
  font-family: Archivo, Helvetica, Arial, sans-serif;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-transform: uppercase;
}

.nav-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px clamp(20px, 3vw, 44px);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px clamp(18px, 2.4vw, 34px);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.nav-link { padding: 8px 0; }
.nav-link:hover { color: #D0A65A; }
.nav-link.is-current { color: #D0A65A; }

.nav-toggle { display: none; }

/* --------------------------- mobile navigation --------------------------- */

@media (max-width: 900px) {
  .site-header__inner { min-height: 66px; }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: 1px solid #22384B;
    color: #FDF8F2;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 11px 16px;
    cursor: pointer;
  }
  .nav-toggle:hover { border-color: #D0A65A; color: #D0A65A; }

  .nav-toggle__bars {
    display: block;
    width: 17px;
    height: 12px;
    position: relative;
  }
  .nav-toggle__bars span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    transition: transform 160ms ease, opacity 120ms ease;
  }
  .nav-toggle__bars span:nth-child(1) { top: 0; }
  .nav-toggle__bars span:nth-child(2) { top: 5px; }
  .nav-toggle__bars span:nth-child(3) { top: 10px; }

  .nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

  .nav-panel {
    display: none;
    position: fixed;
    inset: 66px 0 0;
    background: #0E1B27;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: clamp(20px, 5vw, 36px) clamp(20px, 5vw, 40px) calc(28px + env(safe-area-inset-bottom));
    overflow-y: auto;
    border-top: 1px solid #22384B;
  }
  .nav-panel.is-open { display: flex; }

  .nav {
    flex-direction: column;
    gap: 0;
    font-size: 15px;
    letter-spacing: 0.12em;
  }
  .nav-link {
    padding: 20px 0;
    border-bottom: 1px solid #22384B;
  }

  /* The primary action sits at the bottom of the open menu. */
  .nav-cta {
    margin-top: auto;
    padding-top: 20px;
    padding-bottom: 20px;
    text-align: center;
    font-size: 14px;
  }

  body.nav-open { overflow: hidden; }
}

/* -------------------------------- buttons -------------------------------- */
/* Declared after `a:hover` so the specific hover colour wins. */

.btn-gold,
.btn-navy,
.btn-cream,
.btn-outline-light,
.btn-outline-navy {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.btn-gold { background: #B0873C; color: #0E1B27; padding: 13px 22px; letter-spacing: 0.1em; }
.btn-gold:hover { background: #D0A65A; color: #0E1B27; }

.btn-navy { background: #0E1B27; color: #FDF8F2; padding: 20px 34px; }
.btn-navy:hover { background: #B0873C; color: #0E1B27; }

/* Navy button standing on the gold CTA band. */
.btn-cream { background: #0E1B27; color: #FDF8F2; padding: 22px 40px; font-size: 14px; }
.btn-cream:hover { background: #FDF8F2; color: #0E1B27; }

.btn-outline-light { border: 1px solid #46586A; color: #FDF8F2; padding: 20px 30px; }
.btn-outline-light:hover { border-color: #D0A65A; color: #D0A65A; }

.btn-outline-navy { border: 1px solid #0E1B27; color: #0E1B27; padding: 20px 30px; }
.btn-outline-navy:hover { background: #0E1B27; color: #FDF8F2; }

.btn-lg { padding: 20px 34px; font-size: 14px; }

/* Gold underlined text link on navy. */
.link-gold {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #D0A65A;
  border-bottom: 1px solid #B0873C;
  padding-bottom: 4px;
}
.link-gold:hover { color: #FDF8F2; border-color: #FDF8F2; }

/* Inline link inside body copy on cream. */
.link-inline { border-bottom: 1px solid #B0873C; }
.link-inline:hover { color: #7E6026; border-color: #7E6026; }

/* Section jump links on navy. */
.link-jump:hover { color: #FDF8F2; }

/* -------------------------------- footer --------------------------------- */

.site-footer { background: #0E1B27; color: #C3D0DD; }

.site-footer__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(56px, 7vw, 96px) clamp(20px, 3.5vw, 56px) 40px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 44px clamp(32px, 5vw, 80px);
}

.footer-col { flex: 1 1 180px; }
.footer-col--brand { flex: 1 1 240px; }
.footer-col--brand img { width: 132px; height: auto; display: block; }

.footer-blurb {
  margin-top: 22px;
  max-width: 30ch;
  font-size: 15px;
  line-height: 1.65;
  color: #8FA3B5;
}

.footer-col__title {
  font-family: "Instrument Sans", Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #D0A65A;
}

.footer-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 15px;
}
.footer-link:hover { color: #FDF8F2; }

.footer-base {
  margin-top: clamp(48px, 6vw, 72px);
  border-top: 1px solid #22384B;
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 48px;
  justify-content: space-between;
}
.footer-legal { max-width: 84ch; font-size: 13px; line-height: 1.7; color: #8FA3B5; }
.footer-copy { font-size: 13px; color: #8FA3B5; font-variant-numeric: tabular-nums; }

/* --------------------------- responsive layout --------------------------- */

@media (max-width: 820px) {
  [data-hero] { display: flex; flex-direction: column; }
  [data-hero-portrait] {
    position: static !important;
    order: 2;
    height: auto !important;
    width: min(100%, 360px) !important;
    max-width: min(100%, 360px) !important;
    margin: 0 auto !important;
    right: auto !important;
    bottom: auto !important;
  }
  [data-hero-scrim] { display: none !important; }
  [data-hero-content] { order: 1; }
  [data-hero-stats] { order: 3; }
}

@media (max-width: 620px) {
  [data-stat] {
    border-right: none !important;
    border-bottom: 1px solid #22384B;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  [data-price-scroll] table { font-size: 15px; }
  [data-price] { font-size: 20px !important; }
}

/* Wide tables scroll inside their own box rather than the page. */
[data-price-scroll] { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ------------------------------ price tables ----------------------------- */

.price-table { min-width: 460px; font-size: 17px; }

.price-table thead th {
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #46586A;
  border-bottom: 2px solid #0E1B27;
  text-align: right;
  padding: 0 0 14px 16px;
  white-space: nowrap;
}
.price-table thead th:first-child {
  text-align: left;
  padding: 0 16px 14px 0;
  white-space: normal;
}

.price-table tbody th,
.price-table tbody td {
  border-bottom: 1px solid #DCCDB4;
  padding: clamp(18px, 1.8vw, 26px) 0 clamp(18px, 1.8vw, 26px) 16px;
}
.price-table tbody th {
  text-align: left;
  font-family: Archivo, Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 1.5vw, 22px);
  letter-spacing: -0.02em;
  padding: clamp(18px, 1.8vw, 26px) 16px clamp(18px, 1.8vw, 26px) 0;
}
.price-table tbody th .note {
  display: block;
  margin-top: 8px;
  font-family: "Instrument Sans", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: #46586A;
}
.price-table tbody td {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: #46586A;
}
.price-table td[data-price] {
  font-family: Archivo, Helvetica, Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(20px, 1.9vw, 28px);
  letter-spacing: -0.02em;
  color: #0E1B27;
}
.price-table td[data-price].is-quoted {
  font-family: "Instrument Sans", Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #46586A;
}

/* ------------------------------ verify grid ------------------------------ */
/* Six cards, separated by the container colour showing through a 1px gap. The
   column count has to divide six exactly, or the last row leaves empty cells
   that read as a stray coloured block. */

.verify-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: #DCCDB4;
}
@media (min-width: 600px) {
  .verify-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .verify-grid { grid-template-columns: repeat(3, 1fr); }
}

.verify-card {
  background: #FDF8F2;
  padding: clamp(28px, 3vw, 40px) clamp(24px, 2.5vw, 36px);
}
.verify-card__num {
  font-family: Archivo, Helvetica, Arial, sans-serif;
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #B0873C;
  font-variant-numeric: tabular-nums;
}
.verify-card h3 {
  margin-top: 22px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.verify-card p:last-child {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.6;
  color: #46586A;
}

/* ------------------------------- step list ------------------------------- */
/* The seven-step process. Hairline rules between, heavier rules top and bottom. */

.step {
  border-top: 1px solid #DCCDB4;
  padding: clamp(30px, 3.4vw, 48px) 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px clamp(32px, 4vw, 80px);
}
.step:first-of-type { border-top: 2px solid #0E1B27; }
.step:last-of-type { border-bottom: 2px solid #0E1B27; }

.step__num {
  flex: 0 0 auto;
  font-family: Archivo, Helvetica, Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 4vw, 60px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: #B0873C;
  font-variant-numeric: tabular-nums;
}
.step__head { flex: 1 1 300px; }
.step__title {
  font-weight: 800;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.step__meta {
  margin-top: 14px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #7E6026;
}
.step__body {
  flex: 1 1 380px;
  max-width: 52ch;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 17px;
  line-height: 1.65;
  color: #46586A;
}

/* ------------------------------ prose pages ------------------------------ */
/* Legal and policy pages: one measured column, no bespoke layout. */

.prose { max-width: 76ch; }
.prose > * + * { margin-top: 22px; }
.prose h2 {
  margin-top: clamp(38px, 4vw, 56px);
  font-weight: 800;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  border-top: 2px solid #0E1B27;
  padding-top: 22px;
}
.prose h3 {
  margin-top: 32px;
  font-weight: 700;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.prose p, .prose li { font-size: 17px; line-height: 1.7; color: #46586A; }
.prose strong { color: #0E1B27; font-weight: 600; }
.prose ul { display: flex; flex-direction: column; gap: 12px; padding-left: 22px; list-style: disc; }
.prose ul li { display: list-item; }
.prose ol { display: flex; flex-direction: column; gap: 12px; padding-left: 24px; }
.prose a { border-bottom: 1px solid #B0873C; }
.prose .lede { font-size: clamp(18px, 1.4vw, 21px); line-height: 1.6; color: #0E1B27; }
.prose .note {
  background: #F3E8D6;
  border-left: 3px solid #B0873C;
  padding: 22px 24px;
  font-size: 16px;
  line-height: 1.65;
  color: #46586A;
}

/* -------------------------------- forms ---------------------------------- */

input, select, textarea, button { font: inherit; color: inherit; }

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  background: #FFFDFA;
  border: 1px solid #C9B694;
  border-radius: 0;
  padding: 15px 16px;
  font-size: 16px;
  appearance: none;
  transition: border-color 140ms ease;
}
input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
select:hover,
textarea:hover { border-color: #B0873C; }

input::placeholder, textarea::placeholder { color: #667380; }
textarea { resize: vertical; min-height: 130px; }

select {
  background-image: linear-gradient(45deg, transparent 50%, #0E1B27 50%),
                    linear-gradient(135deg, #0E1B27 50%, transparent 50%);
  background-position: calc(100% - 21px) calc(50% + 2px), calc(100% - 15px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 44px;
}

input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #B0873C;
  margin: 0;
  flex: 0 0 auto;
}

.field-error {
  border-color: #9B2C2C !important;
  background: #FFF6F5;
}

.form-status {
  border-left: 3px solid #9B2C2C;
  background: #FFF1EF;
  color: #6B2020;
  padding: 16px 18px;
  font-size: 15px;
  line-height: 1.55;
}
.form-status[hidden] { display: none !important; }

.submit-btn {
  background: #0E1B27;
  color: #FDF8F2;
  border: 0;
  padding: 21px 40px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}
.submit-btn:hover { background: #B0873C; color: #0E1B27; }
.submit-btn[disabled] { opacity: 0.55; cursor: progress; }

.fm-form {
  display: flex;
  flex-direction: column;
  gap: clamp(26px, 3vw, 38px);
}

/* Off-screen, not display:none. Some bots skip hidden fields; that is the point. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cf-turnstile { min-height: 65px; }

.quote-sent {
  background: #F3E8D6;
  border-top: 3px solid #B0873C;
  padding: clamp(32px, 4vw, 52px) clamp(24px, 3vw, 44px);
}
.quote-sent[hidden] { display: none !important; }
