/* =========================================================
   John Cosgrove (budget coaching site)
   Palette: warm paper, ink, deep forest green, muted amber.
   No gradients. Serif display headings, clean sans body.
   ========================================================= */

:root {
  --paper:        #fbf9f4;
  --paper-alt:    #f4efe6;
  --surface:      #ffffff;
  --ink:          #21302b;
  --ink-soft:     #4f5f58;
  --muted:        #7a877f;
  --green:        #1e4d3b;
  --green-dark:   #163a2c;
  --green-tint:   #e7efe9;
  --amber:        #b9802f;
  --amber-soft:   #f0e2c9;
  --border:       #e6dfd1;
  --border-soft:  #efe9dd;

  --radius:       14px;
  --radius-sm:    10px;
  --shadow:       0 1px 2px rgba(33, 48, 43, .04), 0 8px 24px rgba(33, 48, 43, .06);
  --maxw:         1080px;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }

a { color: var(--green); text-decoration-color: var(--amber-soft); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- accessibility ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--green); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; }
.brand-mark {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--green); color: #fff;
  font-family: var(--serif); font-weight: 700; font-size: 1.2rem;
  flex: none;
}

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { text-decoration: none; color: var(--ink-soft); font-size: .98rem; font-weight: 500; }
.site-nav a:hover { color: var(--green); }
.nav-cta {
  background: var(--green); color: #fff !important;
  padding: 9px 18px; border-radius: 999px;
}
.nav-cta:hover { background: var(--green-dark); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  padding: 13px 26px; border-radius: 999px;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .05s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--green); border-color: var(--border); }
.btn-ghost:hover { background: var(--green-tint); color: var(--green-dark); }
.btn-outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 7vw, 90px); }
.hero-inner { max-width: 760px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700;
  color: var(--amber); margin: 0 0 14px;
}
.hero .lead { font-size: clamp(1.1rem, 2.2vw, 1.35rem); color: var(--ink-soft); margin-top: 18px; max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-note { margin-top: 20px; color: var(--muted); font-size: .95rem; }

/* ---------- sections ---------- */
.section { padding: clamp(54px, 8vw, 96px) 0; }
.section-alt { background: var(--paper-alt); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-sub { color: var(--ink-soft); font-size: 1.1rem; margin-top: -.2rem; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); margin: 0; }

/* ---------- steps ---------- */
.steps { list-style: none; counter-reset: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step { background: transparent; }
.step-num {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--green-tint); color: var(--green);
  font-family: var(--serif); font-weight: 700; font-size: 1.3rem;
  margin-bottom: 16px; border: 1px solid #d4e2d8;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-soft); margin: 0; }

/* ---------- about ---------- */
.about-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.about-text p { color: var(--ink-soft); font-size: 1.08rem; }
.placeholder-note {
  background: var(--amber-soft); border: 1px dashed #d6b878; color: #6f5424;
  padding: 14px 18px; border-radius: var(--radius-sm); font-size: .95rem;
}
.placeholder-note.center { text-align: center; max-width: 640px; margin: 30px auto 0; }
.about-aside { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 30px; color: var(--ink); font-weight: 500; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 16px; height: 9px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green);
  transform: rotate(-45deg);
}

/* ---------- pricing ---------- */
.pricing-cards { align-items: stretch; }
.price-card { display: flex; flex-direction: column; position: relative; }
.price-card .price { font-family: var(--serif); margin: 4px 0 12px; }
.price-card .amount { font-size: 2.2rem; font-weight: 700; color: var(--ink); }
.price-card .per { color: var(--muted); font-size: 1rem; font-family: var(--sans); }
.price-desc { color: var(--ink-soft); flex: 1; }
.price-card .btn { margin-top: 18px; }
.price-card.featured { border-color: var(--green); border-width: 2px; }
.price-card .badge {
  position: absolute; top: -13px; left: 28px;
  background: var(--amber); color: #fbf9f4;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; margin: 0;
}

/* ---------- contact ---------- */
.contact-inner { text-align: center; }
.contact-inner .section-head { margin: 0 auto 28px; }
.contact-actions { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.contact-email { font-size: 1.05rem; font-weight: 500; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #d9e0dc; padding: 44px 0; }
.site-footer a { color: #cfe3d7; }
.site-footer a:hover { color: #fff; }
.footer-inner { display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.1rem; color: #fff; }
.footer-brand .brand-mark { width: 30px; height: 30px; font-size: 1rem; background: var(--green); }
.footer-meta { color: #aab8b0; font-size: .95rem; margin: 4px 0 0; }
.footer-copy { color: #8c9a92; font-size: .85rem; margin: 0; }
.footer-links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin: 6px 0 2px; }
.footer-links a { color: #cfe3d7; font-size: .9rem; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }

/* ---------- legal pages ---------- */
.legal { max-width: 768px; }
.legal .back-link { display: inline-block; margin-bottom: 22px; font-weight: 600; text-decoration: none; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.7rem); margin-bottom: 6px; }
.legal .updated { color: var(--muted); font-size: .95rem; margin: 0 0 28px; }
.legal h2 { font-size: 1.35rem; margin: 38px 0 10px; }
.legal h3 { font-size: 1.08rem; margin: 22px 0 6px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 22px; margin: 0 0 16px; }
.legal li { margin-bottom: 8px; }
.legal .lead-note { background: var(--green-tint); border: 1px solid #d4e2d8; border-radius: var(--radius-sm); padding: 14px 18px; color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .cards, .steps { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 620px) {
  body { font-size: 17px; }
  .site-nav { gap: 16px; }
  .site-nav a:not(.nav-cta) { display: none; }
  .header-inner { height: 62px; }
  .brand-name { font-size: 1.02rem; }
  .hero-actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
