/* ============================================================
   Michael Cohen — Personal Life Coach
   Modern stylesheet (replaces 2002 table layout)
   ============================================================ */

:root {
  --paper: #faf6ef;
  --surface: #ffffff;
  --ink: #2d2a26;
  --muted: #6b625a;
  --accent: #9a3b26;      /* terracotta — descendant of the original #993300 */
  --accent-dark: #7a2e1d;
  --accent-soft: #f3e4dc;
  --sage: #41604f;
  --sage-soft: #e6ede7;
  --border: #e7ddcf;
  --shadow: 0 2px 6px rgba(45, 42, 38, 0.08), 0 12px 32px rgba(45, 42, 38, 0.08);
  --radius: 14px;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1000px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }

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

/* ---------- Layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

main { padding: 2.2rem 0 3.5rem; }

.section { margin: 2.6rem 0; }

.section-title {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--accent);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.5rem;
}

.lead { font-size: 1.2rem; color: var(--muted); max-width: 46ch; }

p + p { margin-top: 1rem; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--sage);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.4rem 0 1.1rem;
}

.brand img {
  width: auto;
  height: 84px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.brand-text .site-title {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.2;
}

.brand-text .site-title a { color: var(--accent-dark); text-decoration: none; }

.brand-text .tagline {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 0.2rem;
}

/* ---------- Navigation ---------- */
.site-nav {
  background: var(--accent-dark);
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

.site-nav a {
  display: block;
  color: #fdf4ee;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.7rem 0.85rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.site-nav a:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

.site-nav a[aria-current="page"] {
  background: var(--paper);
  color: var(--accent-dark);
}

.site-nav .nav-cta a {
  background: #f5c448;
  color: #4a3608;
}
.site-nav .nav-cta a:hover { background: #ffd970; color: #4a3608; }

/* ---------- Hero (home) ---------- */
.hero {
  background:
    linear-gradient(rgba(38, 26, 20, 0.55), rgba(38, 26, 20, 0.55)),
    var(--surface);
  background-color: #5a3a2c;
  border-radius: var(--radius);
  color: #fff;
  padding: 3.2rem 2.6rem;
  margin-top: 2rem;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.2vw, 2.7rem);
  line-height: 1.2;
  max-width: 22ch;
}

.hero p {
  margin-top: 1rem;
  font-size: 1.15rem;
  max-width: 52ch;
  color: #f3e7de;
}

.hero .actions { margin-top: 1.6rem; display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.72rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }

.btn-gold { background: #f5c448; color: #4a3608; }
.btn-gold:hover { background: #ffd970; color: #4a3608; }

.btn-ghost { border: 2px solid rgba(255, 255, 255, 0.7); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: 0 1px 3px rgba(45, 42, 38, 0.05);
}

.card h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--accent-dark);
  margin-bottom: 0.5rem;
}

.card p { color: var(--muted); font-size: 0.98rem; }
.card a { font-weight: 600; }

.card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.icon-warm { background: var(--accent-soft); }
.icon-green { background: var(--sage-soft); }

/* ---------- Quote blocks ---------- */
.quote-card {
  background: var(--sage);
  color: #f0f5f1;
  border-radius: var(--radius);
  padding: 2rem 2.2rem;
  box-shadow: var(--shadow);
}

.quote-card p:first-child {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.75;
}

.quote-card cite {
  display: block;
  margin-top: 0.9rem;
  font-style: normal;
  font-weight: 700;
  color: #cfe0d4;
}

.quote-card.terracotta { background: var(--accent-dark); color: #f9ece4; }
.quote-card.terracotta cite { color: #ecd0c2; }

/* ---------- Split (image + text) ---------- */
.split {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2.2rem;
  align-items: start;
}

.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}

/* ---------- Lists ---------- */
.feature-list { list-style: none; }
.feature-list li {
  padding: 0.55rem 0 0.55rem 2rem;
  position: relative;
  border-bottom: 1px dashed var(--border);
}
.feature-list li:last-child { border-bottom: 0; }
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 1.35rem; height: 1.35rem;
  background: var(--sage-soft);
  color: var(--sage);
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* Numbered "Top 10" style list */
.count-list { list-style: none; counter-reset: item; }
.count-list li {
  counter-increment: item;
  position: relative;
  padding: 0.6rem 0 0.6rem 3rem;
  border-bottom: 1px dashed var(--border);
}
.count-list li:last-child { border-bottom: 0; }
.count-list li::before {
  content: counter(item, decimal-leading-zero);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
  position: absolute;
  left: 0;
  top: 0.55rem;
}

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: 0 1px 3px rgba(45, 42, 38, 0.05);
}

.testimonial p { font-family: var(--serif); font-size: 1.05rem; }

.testimonial footer {
  margin-top: 0.8rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Resources ---------- */
.resource {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
}

.resource .logo {
  flex: 0 0 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
}

.resource .logo img { max-height: 64px; width: auto; }

.resource h3 { font-family: var(--serif); font-size: 1.12rem; color: var(--accent-dark); }
.resource p { font-size: 0.96rem; color: var(--muted); margin-top: 0.25rem; }

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.8rem;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--accent-dark);
  padding: 1.05rem 1.3rem;
  list-style: none;
  position: relative;
  padding-right: 2.6rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--sage);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after { content: "–"; }
.faq-item[open] summary { border-bottom: 1px solid var(--border); }

.faq-item .faq-body { padding: 1rem 1.3rem 1.2rem; color: var(--ink); }
.faq-item .faq-body p + p { margin-top: 0.8rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--accent-dark);
  border-radius: var(--radius);
  color: #fff;
  padding: 2.4rem 2.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}

.cta-band h2 { font-family: var(--serif); font-size: 1.6rem; line-height: 1.3; }
.cta-band p { color: #f3e2d8; margin-top: 0.4rem; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.4rem;
}
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.breadcrumb li + li::before { content: "›"; margin-right: 0.4rem; color: var(--border); }
.breadcrumb a { color: var(--muted); }
.breadcrumb [aria-current="page"] { font-weight: 600; color: var(--ink); }

/* ---------- Page header ---------- */
.page-header { margin-bottom: 1.8rem; }
.page-header h1 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.6vw, 2.3rem);
  color: var(--accent-dark);
  line-height: 1.25;
}
.page-header .sub { color: var(--muted); margin-top: 0.5rem; font-size: 1.1rem; max-width: 60ch; }

/* ---------- Contact / footer ---------- */
.contact-strip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  display: flex;
  gap: 2.2rem;
  flex-wrap: wrap;
  align-items: center;
}

.contact-strip strong { font-family: var(--serif); font-size: 1.1rem; }

.site-footer {
  background: #2b2622;
  color: #cfc5bb;
  padding: 2.4rem 0 2rem;
  margin-top: 3rem;
  font-size: 0.92rem;
}

.site-footer .cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.site-footer h2 {
  font-family: var(--serif);
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.6rem;
}

.site-footer a { color: #e8d9cd; }
.site-footer ul { list-style: none; }
.site-footer li { margin: 0.3rem 0; }

.site-footer .fineprint {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 1.8rem;
  padding-top: 1.1rem;
  color: #9a8f84;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Utility ---------- */
.mt-lg { margin-top: 2.2rem; }
.muted { color: var(--muted); }
.narrow { max-width: 68ch; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split .portrait { max-width: 320px; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 2.2rem 1.5rem; }
  .brand img { height: 64px; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .cta-band { padding: 1.8rem 1.5rem; }
  .resource { flex-direction: column; }
}

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