/* Base theme: professional, responsive, and readable. */
:root {
  color-scheme: light;
  --ink: #17212b;
  --muted: #596775;
  --line: #d8e0e6;
  --surface: #ffffff;
  --wash: #f3f8f6;
  --green: #0f766e;
  --green-dark: #0b4f4a;
  --blue: #1d4e89;
  --coral: #c95b3f;
  --shadow: 0 18px 45px rgba(23, 33, 43, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fbfcfc; line-height: 1.6; }
a { color: inherit; }
img { max-width: 100%; display: block; }

/* Header and navigation. */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.nav { max-width: 1180px; margin: 0 auto; padding: 14px 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 850; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: #fff; background: var(--green); }
.nav-links { display: flex; align-items: center; gap: 18px; color: var(--muted); font-weight: 700; }
.nav-links a { text-decoration: none; }
.nav-toggle { display: none; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); padding: 9px 12px; font-weight: 800; }

/* Buttons and shared labels. */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 16px; border: 1px solid transparent; border-radius: 8px; font-weight: 850; text-decoration: none; cursor: pointer; }
.button.primary { color: #fff; background: var(--green); }
.button.secondary { color: var(--green-dark); background: #e7f4f1; border-color: #b8dcd6; }
.button.ghost { color: var(--ink); background: #fff; border-color: var(--line); }
.eyebrow { margin: 0 0 10px; color: var(--coral); font-size: 0.78rem; font-weight: 900; letter-spacing: 0; text-transform: uppercase; }

/* Home hero with project-bound bitmap visual. */
.hero { position: relative; min-height: 620px; display: grid; align-items: end; overflow: hidden; background: var(--ink); }
.hero-media { position: absolute; inset: 0; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9, 19, 29, 0.84), rgba(9, 19, 29, 0.48), rgba(9, 19, 29, 0.08)); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-content { position: relative; max-width: 720px; padding: 120px 22px 96px; margin-left: max(22px, calc((100vw - 1180px) / 2)); color: #fff; }
.hero h1, .page-hero h1 { margin: 0; font-size: clamp(2.5rem, 6vw, 5.75rem); line-height: 0.98; letter-spacing: 0; }
.hero-copy { max-width: 640px; margin: 24px 0 0; font-size: 1.15rem; color: rgba(255, 255, 255, 0.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Reusable content sections. */
.section { max-width: 1180px; margin: 0 auto; padding: 72px 22px; }
.section-heading { max-width: 760px; margin-bottom: 30px; }
.section-heading h2, .trust-band h2, .intake-copy h2, .split-section h2, .disclaimer-panel h2, .seo-copy h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 3.2rem); line-height: 1.08; letter-spacing: 0; }
.section-heading p:last-child { margin: 10px 0 0; color: var(--muted); }
.compact-heading { margin-bottom: 18px; }

/* Benefits use simple repeated cards. */
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.benefit-grid article, .process-list article { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 22px; box-shadow: 0 10px 25px rgba(23, 33, 43, 0.06); }
.benefit-grid h3, .process-list h3 { margin: 14px 0 8px; font-size: 1.15rem; }
.benefit-grid p, .process-list p { margin: 0; color: var(--muted); }
.icon, .process-list span { display: inline-grid; place-items: center; min-width: 42px; height: 34px; border-radius: 8px; background: #e7f4f1; color: var(--green-dark); font-weight: 900; }

/* Trust and disclaimer bands. */
.trust-band { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; align-items: start; max-width: 1180px; margin: 0 auto; padding: 54px 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-band ul, .split-section ul { margin: 0; padding-left: 20px; color: var(--muted); }
.trust-band li + li, .split-section li + li { margin-top: 10px; }
.disclaimer, .disclaimer-panel p { color: var(--muted); font-size: 0.95rem; }

/* Intake form and lead table. */
.intake-section { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 34px; align-items: start; }
.lead-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.lead-form label, .agent-form label { display: grid; gap: 7px; color: var(--ink); font-weight: 800; }
.lead-form textarea, .lead-form label:nth-of-type(6), .checkbox-label, .lead-form button, .form-status { grid-column: 1 / -1; }
input, select, textarea { width: 100%; border: 1px solid #cbd6dd; border-radius: 8px; padding: 11px 12px; color: var(--ink); background: #fff; font: inherit; }
textarea { resize: vertical; }
.checkbox-label { display: flex !important; align-items: flex-start; gap: 10px !important; color: var(--muted) !important; font-weight: 650 !important; }
.checkbox-label input { width: auto; margin-top: 5px; }
.form-status { min-height: 24px; margin: 0; color: var(--green-dark); font-weight: 750; }
.lead-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 700px; }
th, td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 0.82rem; text-transform: uppercase; }

/* How-it-works page layout. */
.page-hero { max-width: 1180px; margin: 0 auto; padding: 84px 22px 52px; }
.page-hero p:last-child { max-width: 760px; color: var(--muted); font-size: 1.1rem; }
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.split-section { max-width: 1180px; margin: 0 auto; padding: 54px 22px; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 28px; align-items: start; border-top: 1px solid var(--line); }
.split-section.reverse { grid-template-columns: 0.95fr 1.05fr; }
.disclaimer-panel, .seo-copy { max-width: 960px; margin: 0 auto 72px; padding: 28px; background: var(--wash); border: 1px solid #cfe2df; border-radius: 8px; }
.seo-copy { margin-top: 14px; }

/* Footer. */
.footer { max-width: 1180px; margin: 0 auto; padding: 34px 22px 48px; color: var(--muted); border-top: 1px solid var(--line); }
.footer p { margin: 6px 0; }

/* Responsive adjustments for tablets and phones. */
@media (max-width: 860px) {
  .nav { align-items: flex-start; }
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; left: 22px; right: 22px; top: 62px; flex-direction: column; align-items: stretch; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .hero { min-height: 560px; }
  .hero-media::after { background: linear-gradient(0deg, rgba(9, 19, 29, 0.9), rgba(9, 19, 29, 0.38)); }
  .hero-content { margin-left: 0; padding-top: 150px; }
  .benefit-grid, .process-list, .trust-band, .intake-section, .split-section, .split-section.reverse { grid-template-columns: 1fr; }
  .lead-form { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .hero h1, .page-hero h1 { font-size: 2.35rem; }
  .section, .page-hero { padding-left: 16px; padding-right: 16px; }
  .nav { padding-left: 16px; padding-right: 16px; }
  .hero-content { padding-left: 16px; padding-right: 16px; }
}
