/* ==========================================================
   Build a Life LOC — design system
   Action site in the Oregon Cash Flow Pro family.
   Shield-and-tree palette: steel blue protection, living
   green growth, warm book-orange for the calls to action.
   ========================================================== */

:root {
  --steel: #1C3D5F;         /* headings, dark bands */
  --steel-deep: #10263D;    /* header, footer, hero base */
  --green: #2E9E54;         /* accent on light backgrounds */
  --green-bright: #58D687;  /* accent on dark backgrounds */
  --cta: #E8833A;           /* buttons — Money in Motion orange */
  --cta-dark: #C96A28;      /* hover */
  --bg: #F5F8FB;
  --gray: #4E5760;
  --bluegray: #93A9BD;
  --white: #FFFFFF;
  --line: #DFE8EE;

  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --max-width: 1080px;
  --radius: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--gray);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.65;
}

h1, h2, h3, h4 { font-family: var(--serif); color: var(--steel); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p + p { margin-top: 1em; }
a { color: var(--green); }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }

.kicker {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}

.prose { max-width: 66ch; }
.prose p { margin-top: 16px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 1rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-cta { background: var(--cta); color: var(--white); }
.btn-cta:hover { background: var(--cta-dark); }
.btn-outline { border: 2px solid var(--steel); color: var(--steel); }
.btn-outline:hover { background: var(--steel); color: var(--white); }
.btn-outline-light { border: 2px solid var(--white); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--steel); }

.action-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- Header ---------- */

header {
  background: var(--steel-deep);
  border-bottom: 1px solid rgba(88,214,135,.25);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  text-decoration: none;
  line-height: 1.15;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo img { height: 42px; width: auto; }
.logo span { color: var(--green-bright); font-style: italic; font-size: 0.78rem; display: block; font-weight: 400; }
.nav ul { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav ul a { text-decoration: none; color: #D8E4F0; font-weight: 600; font-size: 0.95rem; }
.nav ul a:hover { color: var(--green-bright); }
.nav .btn { padding: 10px 18px; font-size: 0.9rem; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(1000px 500px at 85% 25%, rgba(88,214,135,.14), transparent 60%),
    linear-gradient(160deg, #1A3A59 0%, var(--steel-deep) 70%);
  color: var(--white);
  padding: 96px 0 104px;
  overflow: hidden;
}
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { color: var(--white); max-width: 18ch; }
.hero h1 em { color: var(--green-bright); font-style: italic; }
.hero p { max-width: 54ch; margin: 22px 0 8px; font-size: 1.15rem; color: #D8E4F0; }
.hero__emblem {
  position: absolute;
  right: max(24px, calc((100vw - 1080px) / 2));
  top: 50%;
  transform: translateY(-50%);
  height: 78%;
  width: auto;
  opacity: 0.9;
  z-index: 1;
  filter: drop-shadow(0 10px 40px rgba(0,0,0,.4));
}
@media (max-width: 900px) { .hero__emblem { opacity: 0.14; height: 100%; right: -10%; } }

/* ---------- Sections ---------- */

.section-white { background: var(--white); }
.section-steel { background: var(--steel); color: #D8E4F0; }
.section-steel h2 { color: var(--white); }
.section-steel .kicker { color: var(--green-bright); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

.pullquote {
  border-left: 4px solid var(--cta);
  padding: 6px 0 6px 22px;
  font-family: var(--serif);
  font-size: 1.18rem;
  color: var(--steel);
  max-width: 60ch;
  margin-top: 26px;
}

/* ---------- Cards ---------- */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 36px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
a.card:hover { border-color: var(--cta); transform: translateY(-2px); }
.card .step { color: var(--green); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }
.card h3 { margin: 6px 0 8px; font-size: 1.05rem; }
.card p { font-size: 0.92rem; }

/* ---------- Media ---------- */

.media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(16,38,61,0.18);
  background: var(--white);
}
.media-frame img { display: block; width: 100%; height: auto; }

/* ---------- Book / launch form ---------- */

.book-cover { max-width: 300px; border-radius: 6px; box-shadow: 0 18px 44px rgba(16,38,61,0.45); }
.coming-soon {
  display: inline-block;
  background: var(--cta);
  color: var(--white);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.launch-form { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; max-width: 480px; }
.launch-form label { font-weight: 600; color: var(--steel); font-size: 0.92rem; display: flex; flex-direction: column; gap: 6px; }
.launch-form label span { font-weight: 400; color: var(--gray); }
.launch-form input, .launch-form select {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--sans);
  color: var(--gray);
  background: var(--white);
}
.launch-form input:focus, .launch-form select:focus { outline: 2px solid var(--green); border-color: var(--green); }
.launch-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.launch-form button { margin-top: 6px; border: 0; cursor: pointer; }
@media (max-width: 560px) { .launch-form .row2 { grid-template-columns: 1fr; } }

/* ---------- Consult band ---------- */

.consult-band { text-align: center; }
.consult-band p { max-width: 52ch; margin: 18px auto 30px; color: #D8E4F0; font-size: 1.1rem; }
.consult-band .btn + .btn { margin-left: 14px; }

/* ---------- Footer ---------- */

footer { background: var(--steel-deep); color: var(--bluegray); padding: 56px 0 40px; font-size: 0.85rem; }
footer h4 { color: var(--white); font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 36px; margin-bottom: 40px; }
footer a { color: var(--bluegray); text-decoration: none; }
footer a:hover { color: var(--white); }
footer ul { list-style: none; }
footer li { margin-bottom: 8px; }
.compliance {
  border-top: 1px solid rgba(147,169,189,0.25);
  padding-top: 28px;
  font-size: 0.72rem;
  line-height: 1.6;
  color: #7E93AB;
}
.compliance p + p { margin-top: 0.8em; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  /* Nav wraps to two clean rows: logo on top, links centered below (no overlap). */
  .nav { flex-wrap: wrap; justify-content: center; row-gap: 8px; padding: 10px 14px; }
  .nav ul { width: 100%; justify-content: center; flex-wrap: wrap; gap: 8px 16px; }
  .nav ul a { font-size: 0.9rem; }
  .nav .btn { padding: 8px 14px; font-size: 0.85rem; }
  .logo { font-size: 1.05rem; }
  .logo img { height: 36px; }
  .nav ul li.hide-mobile { display: none; }
  section { padding: 52px 0; }
  .hero { padding: 56px 0 64px; }
  .consult-band .btn + .btn { margin-left: 0; margin-top: 12px; }
}

/* ---------- Dark scheme ---------- */

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C141C;
    --gray: #C2CEDA;
    --line: #283845;
    --steel: #A8C6E4;
    --bluegray: #8FA3B8;
  }
  body .section-white { background: #121D28; }
  body .card, body .media-frame { background: #16222E; }
  body .launch-form input, body .launch-form select { background: #0C141C; color: var(--gray); border-color: var(--line); }
  body .section-steel { background: #0C1F33; }
  body .pullquote { color: #E4EEF7; }
  body .btn-outline { border-color: #A8C6E4; color: #A8C6E4; }
  body .btn-outline:hover { background: #A8C6E4; color: #0C141C; }
}
