/*
 * VIPRateReserve.com — stylesheet (PAUL1-1010), laid out after ratereserve-2026.png.
 * Brand: DBA "vip", V.I.P. Mortgage, Inc. base layer. Colour and type VALUES come from the
 * brand authority (vip-style-guide-v2.3.md = G, brand-tokens.json = T); the mockup gives the
 * layout. Where the two differ, the brand value is used and the difference is reported:
 *   - Every page heading (H1, section headings, sub-heads, column heads): Literata Bold, upright,
 *     as on www.vipmtginc.com (Paul, 2026-10-27). G 254 specifies Inter Bold for H1 and G 257
 *     Literata Semi-Bold; Paul's ruling sets both. Footer headings stay in the brand heading face.
 *   - Buttons: the mockup's pill shape and word-case label (Paul, 2026-10-27), Gibson/Mukta 600.
 *     G 315-331 specifies uppercase 13px.
 *   - Header "Apply Now": Ocean fill, as in the mockup and on www.vipmtginc.com (Paul, 2026-10-27);
 *     white on Ocean is 3.2:1, below AA for normal text.
 * Never hand-type a hex below :root.
 */

:root {
  --vipmtginc-poseidon: #13375E;      /* G 136 */
  /* Hover shades: hex from G 330 prose, no brand token yet (open with Paul since 2026-09-23),
     so site-local names, not --vipmtginc-* (brand review M1). */
  --rr-hover-primary: #0E2B4B;
  --vipmtginc-ocean: #009CD0;         /* G 137: large/display/UI only */
  --vipmtginc-blue-chip: #1B5D93;     /* G 138 */
  --rr-hover-accent: #14496F;
  --vipmtginc-gold: #FCAF17;          /* G 147: decorative only */
  --vipmtginc-ink: #20303F;           /* G 559 */
  --vipmtginc-paper: #F6F7F9;         /* G 557 */
  --vipmtginc-rule: #D5DEE7;          /* G 560 */
  --vipmtginc-hush-aa: #566472;       /* T 241, provisional; light grounds only */
  --vipmtginc-white: #FFFFFF;

  --vipmtginc-sans: 'Gibson', 'Mukta', 'Segoe UI', system-ui, sans-serif;
  --vipmtginc-cond: 'Roboto Condensed', 'Arial Narrow', sans-serif;

  --vipmtginc-serif: 'Literata', Georgia, serif;

  --heading-font: var(--vipmtginc-sans);    /* brand heading face: footer headings */
  --display-font: var(--vipmtginc-serif);   /* every page heading: Literata Bold, upright, as
                                               the www.vipmtginc.com primary type (Elementor kit
                                               post-8.css: Literata 700) (Paul, 2026-10-27). Never italic. */

  --wrap: 1236px;       /* 1140px content (the mockup's table and image width) + gutters */
  --wrap-header: 1500px;
  --gutter: 48px;
  --radius-card: 12px;  /* the brand store has no radius token */
  --shadow-card: 0 10px 30px -8px rgb(19 55 94 / 0.25);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 120px; } /* 104px sticky header + margin: focus and anchors stay visible (a11y review 2) */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Brand focus ring on every focusable element (G 332): 2px Ink outline, 2px offset, White halo.
   Ink carries it on light grounds (13.5:1), the halo on Poseidon. The halo replaces the
   element's own box-shadow while focused. */
:focus-visible { outline: 2px solid var(--vipmtginc-ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--vipmtginc-white); }

body {
  margin: 0;
  background: var(--vipmtginc-white);
  color: var(--vipmtginc-ink);
  font-family: var(--vipmtginc-sans);
  font-size: 17px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a { color: var(--vipmtginc-blue-chip); }
.icon { flex: none; vertical-align: middle; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 900px; }
.center { text-align: center; }
.ground-paper { background: var(--vipmtginc-paper); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--vipmtginc-white); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Typography — brand scale (G 237-248). One font and one colour per headline (G 250-256). */
h1, h2, h3 { color: var(--vipmtginc-poseidon); margin: 0 0 16px; }
h1 { font-family: var(--display-font); font-weight: 700; font-style: normal; font-size: 40px; line-height: 1.1; letter-spacing: -0.01em; }
h1 sup { font-size: 0.5em; vertical-align: super; line-height: 0; }
.display-head { font-family: var(--display-font); font-weight: 700; font-style: normal; font-size: 34px; line-height: 40px; letter-spacing: -0.01em; }
.sub-head, h3 { font-family: var(--display-font); font-weight: 700; font-style: normal; font-size: 26px; line-height: 32px; }
@media (min-width: 1024px) {
  h1 { font-size: 60px; line-height: 65px; }          /* H1 60/65 */
  .display-head { font-size: 48px; line-height: 52px; } /* H2 48/52 */
  .sub-head, h3 { font-size: 36px; line-height: 42px; } /* H3 36/42 */
}
p { margin: 0 0 16px; }

/* Eyebrow — Roboto Condensed 700 at 20px, as in the mockup (Paul, 2026-10-27: "keep the eyebrow
   at 20px"; G 247 sets 12px). At 20px bold it is large text, where Ocean on white is a permitted
   accent (G 182); at 12px Ocean would fail, so keep the size and the colour together. */
.eyebrow {
  margin: 0 0 8px; color: var(--vipmtginc-ocean);
  font-family: var(--vipmtginc-cond); font-weight: 700; font-size: 20px; line-height: 26px;
  letter-spacing: 0.2em; text-transform: uppercase;
}

/* Buttons — pill shape and word-case label, as in the mockup (Paul, 2026-10-27). */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 34px; border-radius: 999px; border: 0;
  font-family: var(--vipmtginc-sans); font-weight: 600; font-size: 16px; line-height: 1;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease;
}
.btn sup { font-size: 0.8em; line-height: 0; }
.btn-primary { background: var(--vipmtginc-poseidon); color: var(--vipmtginc-white); }
.btn-primary:hover { background: var(--rr-hover-primary); }
.btn-accent { background: var(--vipmtginc-blue-chip); color: var(--vipmtginc-white); }
.btn-accent:hover { background: var(--rr-hover-accent); }
/* Header Apply Now: Ocean fill, as on www.vipmtginc.com (Paul, 2026-10-27). White on Ocean is 3.2:1,
   below the AA 4.5:1 floor for 16px text (G 141: Ocean is large/display/UI only). Hover: Blue Chip, 6.9:1. */
.btn-ocean { background: var(--vipmtginc-ocean); color: var(--vipmtginc-white); }
.btn-ocean:hover { background: var(--vipmtginc-blue-chip); }
.btn.is-pending { cursor: default; }

/* Placeholders and review flags — remove before launch. */
.tbd {
  display: inline-block; font-family: var(--vipmtginc-cond); font-weight: 700; font-size: 12px; line-height: 18px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--vipmtginc-hush-aa);
}
.tbd-under { display: block; margin-top: 10px; }
.media-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; text-align: center;
  background: repeating-linear-gradient(45deg, var(--vipmtginc-paper) 0 18px, var(--vipmtginc-white) 18px 36px);
  border: 1px dashed var(--vipmtginc-hush-aa);
}
.media-placeholder .tbd { background: var(--vipmtginc-white); padding: 4px 10px; border-radius: 4px; }

/* Header — Poseidon bar as on www.vipmtginc.com: white logo, white menu, accent pill.
   The vertical RateReserve® logo sets the height: 88px logo + 8px above and below = 104px. */
.site-header { background: var(--vipmtginc-poseidon); position: sticky; top: 0; z-index: 50; }
.header-row { max-width: var(--wrap-header); display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 104px; }
.brand { display: flex; align-items: center; padding: 8px 0; }
.brand img { width: 86px; }
.nav-list, .submenu { list-style: none; margin: 0; padding: 0; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list > li { position: relative; }
.nav-list > li > a:not(.btn), .nav-parent {
  display: block; padding: 40px 12px; background: none; border: 0; cursor: pointer; /* fills the 104px bar, so a submenu opens at its bottom edge */
  color: var(--vipmtginc-white); font-family: var(--vipmtginc-sans); font-weight: 400; font-size: 16px; line-height: 24px; text-decoration: none;
}
.nav-list > li > a:not(.btn):hover, .nav-parent:hover { text-decoration: underline; }
.nav-list > .nav-apply { margin-left: 8px; }
.nav-list > .nav-apply > a { padding: 13px 22px; }
.submenu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 260px; padding: 8px 0;
  background: var(--vipmtginc-white); border-radius: 0 0 8px 8px; box-shadow: var(--shadow-card);
}
.has-menu:hover > .submenu, .has-menu:focus-within > .submenu, .has-menu.is-open > .submenu { display: block; }
/* Escape closes a desktop drop-down even while focus stays inside it (site.js; a11y review 5). */
@media (min-width: 1200px) { .has-menu.is-dismissed > .submenu { display: none; } }
.nav-list > li:nth-last-child(2) > .submenu { left: auto; right: 0; } /* About Us: keep it inside the viewport */
.submenu a { display: block; padding: 8px 18px; color: var(--vipmtginc-ink); font-size: 15px; line-height: 22px; text-decoration: none; }
.submenu a:hover { background: var(--vipmtginc-paper); color: var(--vipmtginc-poseidon); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; width: 24px; height: 2px; background: var(--vipmtginc-white); position: relative; content: ''; }
.nav-toggle-bar::before { position: absolute; top: -7px; }
.nav-toggle-bar::after { position: absolute; top: 7px; }

/* Hero — white, centred. */
.hero { padding: 150px 0 120px; }
.hero h1 { margin-bottom: 20px; }
.hero-lede { margin-bottom: 32px; font-size: 18px; line-height: 28px; color: var(--vipmtginc-hush-aa); }

/* Video band — Poseidon, centred 16:9 frame. */
.video-band { background: var(--vipmtginc-poseidon); padding: 48px 0; }
.video-frame { position: relative; max-width: 800px; margin: 0 auto; aspect-ratio: 16 / 9; }
.video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--rr-hover-primary); }
.video-frame .play { display: flex; align-items: center; justify-content: center; width: 72px; height: 50px; border-radius: 12px; background: var(--vipmtginc-poseidon); color: var(--vipmtginc-white); }
.video-frame .play .icon { width: 28px; height: 28px; fill: currentColor; }

/* Sections. */
.section { padding: 80px 0; }
.section-head { max-width: 820px; margin: 0 auto 56px; text-align: center; }
.section-head p { margin: 0; color: var(--vipmtginc-ink); }
.icon-disc {
  display: inline-flex; align-items: center; justify-content: center; width: 112px; height: 112px; margin-bottom: 20px;
  border-radius: 50%; background: var(--vipmtginc-blue-chip); color: var(--vipmtginc-white);
}
.icon-disc .icon { width: 52px; height: 52px; stroke-width: 1.6; }

/* A Smarter Way — two feature columns. */
.feature-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 64px; }
.feature-head { text-align: center; margin-bottom: 32px; }
.feature-head h3 { font-size: 30px; line-height: 36px; margin-bottom: 12px; }
.feature-lede { max-width: 420px; margin: 0 auto; font-size: 17px; line-height: 26px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; }
.checklist .icon { width: 18px; height: 18px; margin-top: 4px; color: var(--vipmtginc-blue-chip); stroke-width: 3; }
.checklist-light li { color: var(--vipmtginc-white); font-size: 18px; line-height: 28px; }
.checklist-light .icon { color: var(--vipmtginc-ocean); margin-top: 5px; } /* Ocean as a UI glyph on Poseidon: 3.8:1 */
.fine-note { margin: 12px 0 0 28px; font-size: 12px; line-height: 18px; color: var(--vipmtginc-hush-aa); }

/* Marketing assets and rate menu — wide image cards. */
.showcase-link { display: block; max-width: 1140px; margin: 0 auto; border-radius: var(--radius-card); }
.showcase { display: block; width: 100%; max-width: 1140px; margin: 0 auto; border-radius: var(--radius-card); box-shadow: var(--shadow-card); }

/* Sell Smarter — Poseidon band, white text only. */
.ground-dark { background: var(--vipmtginc-poseidon); padding: 120px 0; }
.ground-dark .display-head { color: var(--vipmtginc-white); max-width: 460px; margin-bottom: 40px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split-photo { display: block; width: 100%; border-radius: var(--radius-card); }

/* Comparison table. */
.table-scroll { overflow-x: auto; }
/* Phones: the 6-column table scrolls sideways; say so (a11y review 4). */
.table-hint { display: none; margin: 0 0 8px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--vipmtginc-hush-aa); text-align: right; }
@media (max-width: 800px) { .table-hint { display: block; } }
.compare { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; line-height: 22px; text-align: center; }
.compare th, .compare td { padding: 16px 12px; border: 1px solid var(--vipmtginc-rule); }
.compare thead th { background: var(--vipmtginc-poseidon); color: var(--vipmtginc-white); font-weight: 600; border-color: var(--vipmtginc-poseidon); }
.compare tbody th { font-weight: 400; }
.compare tbody tr:nth-child(odd) { background: var(--vipmtginc-paper); }
.table-note { max-width: 1140px; margin: 12px auto 0; font-size: 13px; line-height: 22px; font-style: italic; text-align: center; color: var(--vipmtginc-hush-aa); }
.tagline { margin: 24px 0 0; font-size: 20px; line-height: 28px; font-weight: 600; text-align: center; color: var(--vipmtginc-hush-aa); }

/* Ready to Offer. */
.section-ready { padding-top: 40px; }
.ready-text { margin-bottom: 32px; font-size: 20px; line-height: 30px; color: var(--vipmtginc-hush-aa); }

/* Get RateReserve® form — white card on Paper, the site's pill button and Literata heading. */
.form-page { padding: 96px 0; }
.form-page .section-head { margin-bottom: 40px; }
.form-card {
  max-width: 760px; margin: 0 auto; padding: 40px;
  background: var(--vipmtginc-white); border-radius: var(--radius-card); box-shadow: var(--shadow-card);
}
.lead-form { display: grid; gap: 22px; }
.tbd-block { margin: 0; padding: 12px 16px; border: 1px dashed var(--vipmtginc-hush-aa); border-radius: 8px; background: var(--vipmtginc-paper); font-size: 15px; line-height: 22px; }
.tbd-block .tbd { margin-right: 6px; }
.req-note { margin: 0; font-size: 14px; line-height: 20px; color: var(--vipmtginc-hush-aa); }
.req { color: var(--vipmtginc-blue-chip); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 8px; }
.field-label { font-weight: 600; font-size: 16px; line-height: 24px; color: var(--vipmtginc-poseidon); padding: 0; }
.field input, .field select {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--vipmtginc-hush-aa); border-radius: 8px; background: var(--vipmtginc-white); /* 6.1:1 on white, WCAG 1.4.11 (a11y review 1) */
  color: var(--vipmtginc-ink); font: inherit; font-size: 16px;
}
.field input::placeholder { color: var(--vipmtginc-hush-aa); }
.field input:focus-visible, .field select:focus-visible { border-color: var(--vipmtginc-ocean); } /* Ocean border plus the global ring (G 344) */
/* Invalid after a submit attempt (site.js sets aria-invalid and a text message in .form-status):
   a thicker border plus words, not colour alone (a11y review 9). */
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border: 2px solid var(--vipmtginc-ink); }
.choice { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice legend { margin-bottom: 10px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; line-height: 24px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--vipmtginc-poseidon); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-submit { justify-self: start; padding: 16px 48px; }
.btn-submit:disabled { opacity: 0.6; cursor: default; }
.form-status { margin: 0; font-weight: 600; color: var(--vipmtginc-poseidon); }
[data-rep-name][hidden] { display: none; }
.form-back { max-width: 760px; margin: 24px auto 0; text-align: center; font-weight: 600; }

/* Page disclaimer. */
.disclaimer-band { background: var(--vipmtginc-paper); padding: 72px 0; }
.disclaimer-band p { margin: 0; font-size: 14px; line-height: 24px; font-style: italic; text-align: center; color: var(--vipmtginc-ink); }

/* Footer — Poseidon, white text only (G 429-434: 85% and 70% opacity both pass). */
.site-footer { background: var(--vipmtginc-poseidon); color: var(--vipmtginc-white); padding: 80px 0 32px; font-size: 16px; line-height: 24px; }
.site-footer a { color: var(--vipmtginc-white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1.1fr; gap: 40px; }
.footer-brand img { width: 140px; margin-bottom: 20px; }
.footer-brand p { max-width: 380px; margin-bottom: 32px; }
.footer-marks { display: flex; align-items: center; gap: 32px; }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--vipmtginc-ocean); }
.social .icon { width: 20px; height: 20px; }
.footer-marks .ehl { width: 50px; margin: 0; } /* ≈50px web minimum, brand-assets/README.md:135 */
.footer-head { margin: 0 0 16px; color: var(--vipmtginc-white); font-family: var(--heading-font); font-weight: 600; font-size: 18px; line-height: 26px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer-links a { color: rgb(255 255 255 / 0.85); }
.footer-contact p { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.footer-contact .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--vipmtginc-gold); } /* Gold: decorative glyph */
.legal-links { list-style: none; margin: 64px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; font-size: 14px; line-height: 22px; }
.legal-links a { color: rgb(255 255 255 / 0.70); }
.copyright { margin: 24px 0 0; font-size: 14px; line-height: 22px; text-align: center; color: rgb(255 255 255 / 0.70); }

/* Tablet and phone. */
@media (max-width: 1199px) {
  html { scroll-padding-top: 96px; } /* 80px header below */
  .header-row { min-height: 80px; }
  .brand img { width: 62px; } /* 64px tall */
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--vipmtginc-poseidon); border-top: 1px solid rgb(255 255 255 / 0.15); max-height: calc(100vh - 80px); overflow-y: auto; }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; }
  .nav-list > li > a:not(.btn), .nav-parent { padding: 12px 0; width: 100%; text-align: left; }
  .submenu { display: block; position: static; min-width: 0; padding: 0 0 8px 16px; background: none; box-shadow: none; }
  .submenu a { color: rgb(255 255 255 / 0.85); padding: 6px 0; }
  .submenu a:hover { background: none; color: var(--vipmtginc-white); text-decoration: underline; }
  .nav-list > .nav-apply { margin: 12px 0 0; }
}
@media (max-width: 900px) {
  :root { --gutter: 16px; }
  .hero { padding: 80px 0 72px; }
  .section { padding: 64px 0; }
  .ground-dark { padding: 72px 0; }
  .feature-cols, .split, .footer-grid, .field-row { grid-template-columns: 1fr; }
  .form-page { padding: 56px 0; }
  .form-card { padding: 24px 20px; }
  .btn-submit { justify-self: stretch; }
  .icon-disc { width: 88px; height: 88px; }
  .icon-disc .icon { width: 40px; height: 40px; }
  .feature-head h3 { font-size: 24px; line-height: 30px; }
  .legal-links { justify-content: flex-start; gap: 8px 24px; margin-top: 48px; }
  .copyright { text-align: left; }
}
