/* ============================================================
   PACING PARTNER AI — Stylesheet
   Palette: warm creams, soft browns, muted sage
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Colours */
  --cream:        #faf7f2;
  --cream-mid:    #f3ede3;
  --cream-dark:   #e8dfd0;
  --brown-light:  #c4a882;
  --brown:        #8b6b47;
  --brown-dark:   #5c4228;
  --sage-light:   #e8ede6;
  --sage:         #7a9470;
  --sage-dark:    #4e6847;
  --text:         #3a2f22;
  --text-muted:   #7a6a55;
  --white:        #ffffff;

  /* Typography */
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body:    system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Sizing */
  --nav-height:   64px;
  --radius:       10px;
  --radius-lg:    16px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  font-size: 1.125rem;       /* 18px */
  line-height: 1.75;
  color: var(--text);
  background-color: var(--cream);
}

img, svg { display: block; }

/* ── Skip Link ────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--brown-dark);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* ── Focus Styles ─────────────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--brown);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── Links ────────────────────────────────────────────────── */
a {
  color: var(--brown-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover { color: var(--brown); }

/* ── Container ────────────────────────────────────────────── */
.container {
  max-width: 1040px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ── Navigation ───────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-dark);
  height: var(--nav-height);
}

.nav-inner {
  max-width: 1040px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: normal;
  color: var(--brown-dark);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  margin-left: auto;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover {
  color: var(--brown-dark);
  background: var(--cream-dark);
}

/* Hamburger button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
  border-radius: var(--radius);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--brown-dark);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle:hover { background: var(--cream-dark); }

/* Mobile nav links */
.nav-links-mobile {
  display: none;
  list-style: none;
  background: var(--cream);
  border-bottom: 1px solid var(--cream-dark);
  padding: 0.75rem 1.5rem 1rem;
  gap: 0.1rem;
}
.nav-links-mobile.open {
  display: flex;
  flex-direction: column;
}
.nav-links-mobile a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 1rem;
  padding: 0.5rem 0.25rem;
  display: block;
  border-bottom: 1px solid var(--cream-dark);
}
.nav-links-mobile a:last-child { border-bottom: none; }
.nav-links-mobile a:hover { color: var(--brown-dark); }

@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .site-nav { height: auto; min-height: var(--nav-height); }
  .nav-inner { height: var(--nav-height); }
}

/* ── Sections ─────────────────────────────────────────────── */
.section {
  padding-block: 5rem;
}
.section-warm {
  background-color: var(--cream-mid);
}
.section-sage {
  background-color: var(--sage-light);
}

h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--brown-dark);
  font-weight: normal;
  margin-bottom: 1.5rem;
  line-height: 1.25;
}

h3 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--brown-dark);
  margin-bottom: 0.6rem;
}

.section-intro-text {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 3rem;
  line-height: 1.8;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background-color: var(--cream);
  padding-block: 6rem 5rem;
  border-bottom: 1px solid var(--cream-dark);
}

.hero-eyebrow {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brown-light);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: normal;
  color: var(--brown-dark);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--brown);
  font-style: italic;
  max-width: 680px;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.8;
}

.hero-divider {
  margin-top: 3.5rem;
  color: var(--brown-light);
}

/* ── Card Grid (Problem section) ──────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(92,66,40,0.06);
}

.card-icon {
  width: 40px;
  height: 40px;
  color: var(--brown-light);
  margin-bottom: 1rem;
}

/* ── Steps (How It Works) ─────────────────────────────────── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  gap: 1.75rem;
  padding-block: 2rem;
  border-bottom: 1px solid var(--cream-dark);
  align-items: flex-start;
}
.step:last-child { border-bottom: none; }

.step-number {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--brown-light);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  margin-top: 0.1rem;
}

.step-content h3 {
  margin-bottom: 0.5rem;
}

.step-content p {
  color: var(--text-muted);
  max-width: 640px;
}

/* ── Two Column (Who It's For) ────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 1rem;
  align-items: start;
}

@media (max-width: 720px) {
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
}

.lead {
  font-size: 1.2rem;
  color: var(--brown-dark);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.conditions-list {
  list-style: none;
  padding: 0;
  margin-top: 0.75rem;
}
.conditions-list li {
  padding: 0.55rem 0 0.55rem 1.5rem;
  position: relative;
  border-bottom: 1px solid var(--cream-dark);
  color: var(--text);
  font-size: 1rem;
}
.conditions-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
}
.conditions-list li:last-child { border-bottom: none; }

blockquote {
  margin-top: 2rem;
  padding: 1.5rem 1.75rem;
  background: var(--cream);
  border-left: 4px solid var(--sage);
  border-radius: 0 var(--radius) var(--radius) 0;
}
blockquote p {
  font-style: italic;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ── About ────────────────────────────────────────────────── */
.about-block {
  max-width: 760px;
}
.about-block p {
  margin-bottom: 1.25rem;
  color: var(--text);
}
.about-block .lead {
  color: var(--brown-dark);
}
.about-quote {
  font-style: italic;
  font-size: 1.15rem;
  color: var(--brown);
  padding-left: 1.5rem;
  border-left: 3px solid var(--brown-light);
  margin-block: 1.75rem !important;
}

/* ── Status Grid ──────────────────────────────────────────── */
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.status-card {
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(92,66,40,0.06);
}
.status-card p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1rem;
}
.status-card p:last-child { margin-bottom: 0; }

.status-active {
  border-color: var(--sage);
  border-width: 2px;
}
.status-active h3::after {
  content: ' ●';
  color: var(--sage);
  font-size: 0.75em;
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--brown-dark);
  color: var(--cream-mid);
  text-align: center;
  padding-block: 3rem;
}

.footer-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.95rem;
  color: var(--brown-light);
  font-style: italic;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
  .section { padding-block: 3.5rem; }
  .hero { padding-block: 4rem 3rem; }
  .card-grid { grid-template-columns: 1fr; }
  .status-grid { grid-template-columns: 1fr; }
  .step { gap: 1.25rem; }
}

/* ── Print ────────────────────────────────────────────────── */
@media print {
  .site-nav, .nav-toggle { display: none; }
  .section, .hero { padding-block: 2rem; }
}
