/* Responsive Mortgage - lead magnet landing page.
   Brand colors live in :root. Swap them here when the real brand colors arrive. */

:root {
  --radius: 0.5rem;
  /* Brand colors taken from the Responsive Mortgage logo */
  --brand-navy: #07212c;
  --brand-orange: #ff7533;
  --brand-orange-dark: #e9601f;
  --brand-orange-text: #b9480f; /* orange dark enough to read as small text on white */

  --background: #fbfcfc;
  --foreground: #10262f;
  --card: #ffffff;
  --primary: var(--brand-orange-text);
  --primary-foreground: #ffffff;
  --primary-deep: var(--brand-navy);
  --secondary: #f1f5f6;
  --muted: #f3f6f7;
  --muted-foreground: #54666d;
  --accent: #e8eef0;
  --highlight: var(--brand-orange);
  --destructive: #c62828;
  --border: #dde5e8;
  --input: #cbd6da;
  --ring: var(--brand-orange);
  --shadow-card: 0 20px 50px -24px color-mix(in oklab, var(--primary-deep) 40%, transparent);
  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "Public Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.015em; font-weight: 600; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button, input, select { font: inherit; color: inherit; }
.icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 1rem; height: 1rem; }
.hidden-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.wrap { max-width: 72rem; margin: 0 auto; padding-left: 1rem; padding-right: 1rem; }
.section { padding-top: 4rem; padding-bottom: 4rem; }
.bg-secondary { background: var(--secondary); }
.bg-accent { background: var(--accent); }

.eyebrow { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; color: var(--primary); }
.h2 { margin-top: 0.5rem; font-size: 1.875rem; line-height: 1.2; color: var(--primary-deep); }
.lead { margin-top: 0.75rem; max-width: 42rem; color: color-mix(in oklab, var(--foreground) 80%, transparent); }
.body { margin-top: 1rem; max-width: 42rem; line-height: 1.625; color: color-mix(in oklab, var(--foreground) 85%, transparent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: calc(var(--radius) - 2px); padding: 0.75rem 1.25rem;
  font-weight: 600; border: 1px solid transparent; cursor: pointer; transition: background-color 0.15s;
}
.btn-primary { background: var(--brand-orange); color: var(--brand-navy); }
.btn-primary:hover { background: var(--brand-orange-dark); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--secondary); }
.btn-highlight { background: var(--highlight); color: var(--primary-deep); }
.btn-ghost-light { border-color: color-mix(in oklab, var(--primary-foreground) 40%, transparent); color: var(--primary-foreground); }

.check-list li { display: flex; align-items: flex-start; gap: 0.625rem; }
.check-list li + li { margin-top: 0.625rem; }
.check-list .icon { margin-top: 0.125rem; color: var(--primary); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--brand-navy);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding-top: 0.25rem; padding-bottom: 0.25rem; }
.logo img { height: 4.5rem; width: auto; }
.footer-logo { height: 8rem; width: auto; margin-left: -1.25rem; }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.header-phone { display: none; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 600; color: #ffffff; }
.header-phone-icon { display: flex; width: 2.25rem; height: 2.25rem; align-items: center; justify-content: center; border-radius: calc(var(--radius) - 2px); background: var(--brand-orange); color: var(--brand-navy); }
.lang-toggle { display: flex; border: 1px solid rgb(255 255 255 / 0.25); border-radius: calc(var(--radius) - 2px); background: rgb(255 255 255 / 0.08); padding: 2px; font-size: 0.875rem; font-weight: 600; }
.lang-toggle button { border: 0; background: transparent; border-radius: 0.25rem; padding: 0.375rem 0.75rem; color: rgb(255 255 255 / 0.75); cursor: pointer; transition: color 0.15s, background-color 0.15s; }
.lang-toggle button:hover { color: #ffffff; }
.lang-toggle button[aria-pressed="true"] { background: var(--brand-orange); color: var(--brand-navy); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--primary-deep); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.3; }
/* One-column layouts: keep the photo behind the headline only, framed on the couple, fading out above the form. */
@media (max-width: 1023px) {
  .hero-img { inset: 0 0 auto 0; height: 40rem; object-position: 20% top; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
}
.hero-grid { position: relative; display: grid; gap: 2.5rem; padding-top: 3rem; padding-bottom: 3rem; }
.hero-copy { color: var(--primary-foreground); }
.hero-copy .eyebrow { color: var(--highlight); }
.hero-copy h1 { margin-top: 1rem; font-size: 2.25rem; line-height: 1.08; }
.hero-sub { margin-top: 1.25rem; max-width: 36rem; font-size: 1.125rem; line-height: 1.625; opacity: 0.9; }
.hero-copy .check-list { margin-top: 1.5rem; }
.hero-copy .check-list li { gap: 0.75rem; }
.hero-copy .check-list .icon { color: var(--highlight); }

/* Form */
.lead-form { scroll-margin-top: 6rem; border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); background: var(--card); padding: 1.25rem; box-shadow: var(--shadow-card); }
.lead-form h2 { font-size: 1.5rem; line-height: 1.33; color: var(--primary-deep); }
.form-sub { margin-top: 0.25rem; font-size: 0.875rem; color: var(--muted-foreground); }
.fields { margin-top: 1.25rem; display: grid; gap: 1rem; }
.fields label { display: block; font-size: 0.875rem; font-weight: 600; }
.fields input, .fields select {
  margin-top: 0.25rem; display: block; width: 100%;
  border: 1px solid var(--input); border-radius: calc(var(--radius) - 2px);
  background: var(--card); padding: 0.625rem 0.75rem; font-size: 1rem; font-weight: 400; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.fields input:focus, .fields select:focus { border-color: var(--ring); box-shadow: 0 0 0 2px color-mix(in oklab, var(--ring) 30%, transparent); }
.field-error { display: block; margin-top: 0.25rem; font-size: 0.875rem; font-weight: 400; color: var(--destructive); }
.field-error:empty, .form-error:empty { display: none; }
.form-error { margin-top: 1rem; font-size: 0.875rem; color: var(--destructive); }
.lead-form .btn { margin-top: 1.5rem; width: 100%; padding: 0.875rem 1.25rem; font-size: 1rem; }
.lead-form .btn:disabled { opacity: 0.6; cursor: default; }
.consent { margin-top: 0.75rem; font-size: 0.75rem; line-height: 1.625; color: var(--muted-foreground); }

/* What you get */
.get-grid { display: grid; gap: 2.5rem; }
.guide-cover { margin: 0 auto; display: flex; height: 16rem; width: 12rem; flex-direction: column; justify-content: space-between; border-radius: var(--radius); background: var(--brand-navy); padding: 1.25rem; color: var(--primary-foreground); box-shadow: var(--shadow-card); }
.guide-cover .icon { width: 1.75rem; height: 1.75rem; color: var(--highlight); }
.guide-cover-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; line-height: 1.25; }
.guide-cover-sub { margin-top: 0.5rem; font-size: 0.875rem; opacity: 0.85; }
.guide-cover-brand { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.7; }
.get-items { margin-top: 1.25rem; display: grid; gap: 0.625rem; }
.get-items li + li { margin-top: 0; }
.get-grid .btn { margin-top: 1.75rem; }

/* Situations */
.cards { margin-top: 2rem; display: grid; gap: 1.25rem; }
.card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); padding: 1.5rem; }
.card .icon { width: 1.5rem; height: 1.5rem; color: var(--primary); }
.card h3, .steps h3 { font-size: 1.25rem; line-height: 1.4; color: var(--primary-deep); }
.card h3 { margin-top: 0.75rem; }
.card p, .steps p { margin-top: 0.5rem; line-height: 1.625; color: color-mix(in oklab, var(--foreground) 80%, transparent); }

/* How it works */
.steps { margin-top: 2rem; display: grid; gap: 1.5rem; }
.steps li { border-top: 4px solid var(--brand-orange); padding-top: 1.25rem; }
.step-num { font-family: var(--font-display); font-size: 2.25rem; font-weight: 600; line-height: 1.1; color: color-mix(in oklab, var(--brand-orange) 45%, transparent); }
.steps h3 { margin-top: 0.5rem; }

/* About */
.about-grid { display: grid; gap: 2.5rem; }
.about-card { border-radius: calc(var(--radius) + 4px); background: var(--card); padding: 1.5rem; box-shadow: var(--shadow-card); align-self: start; }
.about-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--primary-deep); }
.about-role { font-size: 0.875rem; color: var(--muted-foreground); }
.about-card .check-list { margin-top: 1.25rem; }
.about-actions { margin-top: 1.5rem; display: grid; gap: 0.5rem; }
.about-actions .btn { padding: 0.75rem 1rem; overflow-wrap: anywhere; }

/* Footer */
.site-footer { background: var(--primary-deep); color: var(--primary-foreground); }
.footer-grid { display: grid; gap: 2.5rem; padding-top: 3rem; padding-bottom: 3rem; }
.footer-division { margin-top: 0.5rem; font-size: 0.875rem; opacity: 0.8; }
.footer-list { margin-top: 1.25rem; font-size: 0.875rem; }
.footer-list li + li { margin-top: 0.375rem; }
.footer-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-list .strong { font-weight: 600; }
.eho { display: flex; gap: 1rem; }
.eho img { height: 4.5rem; width: 4.5rem; flex-shrink: 0; }
.eho p { font-size: 0.875rem; opacity: 0.9; }
.footer-legal { border-top: 1px solid color-mix(in oklab, var(--primary-foreground) 15%, transparent); }
.footer-legal p { padding-top: 1.5rem; padding-bottom: 1.5rem; font-size: 0.75rem; line-height: 1.625; opacity: 0.75; }

/* Thank-you page */
.thanks { max-width: 56rem; margin: 0 auto; padding: 2.5rem 1rem; }
.thanks h1 { font-size: 1.875rem; line-height: 1.2; color: var(--primary-deep); }
.thanks-sub { margin-top: 0.75rem; max-width: 42rem; font-size: 1.125rem; color: color-mix(in oklab, var(--foreground) 80%, transparent); }
.thanks-actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.thanks-actions .btn { padding: 0.625rem 1rem; }
.book { margin-top: 2.5rem; border-radius: calc(var(--radius) + 4px); background: var(--primary-deep); padding: 1.75rem; color: var(--primary-foreground); }
.book > .icon { width: 2rem; height: 2rem; color: var(--highlight); }
.book h2 { margin-top: 0.75rem; font-size: 1.5rem; line-height: 1.25; }
.book p { margin-top: 0.75rem; max-width: 42rem; opacity: 0.9; }
.book-actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.book-actions .btn { overflow-wrap: anywhere; }
.back-link { margin-top: 2rem; display: inline-block; font-size: 0.875rem; font-weight: 600; color: var(--primary); }
.back-link:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (min-width: 640px) {
  .h2 { font-size: 2.25rem; }
  .header-actions { gap: 1rem; }
  .hero-grid { padding-top: 4rem; padding-bottom: 4rem; }
  .hero-copy h1 { font-size: 3rem; }
  .lead-form { padding: 1.75rem; }
  .get-items, .cards { grid-template-columns: 1fr 1fr; }
  .thanks { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .thanks h1 { font-size: 2.25rem; }
  .book { padding: 2.5rem; }
  .book h2 { font-size: 1.875rem; }
}
@media (min-width: 768px) {
  .header-phone { display: flex; }
  .header-phone-icon { display: none; }
  .get-grid { grid-template-columns: auto 1fr; align-items: center; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1.3fr 1fr; }
  .footer-grid { grid-template-columns: 1.2fr 1fr; }
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.15fr 1fr; align-items: center; padding-top: 5rem; padding-bottom: 5rem; }
  .hero-copy h1 { font-size: 3.75rem; }
}

/* Lead magnet form: name row, consent checkbox, privacy line */
.field-row { display: grid; gap: 1rem; }
@media (min-width: 480px) { .field-row { grid-template-columns: 1fr 1fr; } }
.consent-check { margin-top: 1.25rem; display: flex; gap: 0.625rem; align-items: flex-start; font-size: 0.8125rem; line-height: 1.5; color: var(--muted-foreground); cursor: pointer; }
.consent-check input { margin: 0.2rem 0 0; width: 1.125rem; height: 1.125rem; flex-shrink: 0; accent-color: var(--brand-orange-text); }
.consent-check input:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.footer-legal .privacy { padding-top: 0; }
.footer-legal p + p { margin-top: -0.75rem; }
