/* ============================================
   PAGE-LEVEL SHARED STYLES
   Page hero, breadcrumb, common modules
   ============================================ */

/* Page Hero (inner pages) */
.page-hero {
  padding: 180px var(--container-pad) 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 10% 0%, rgba(158,133,184,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 100% 100%, rgba(107,166,161,0.10) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero__inner {
  max-width: var(--container-max); margin: 0 auto;
  position: relative;
}
.page-hero__crumb {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.2em;
  color: var(--cc-ink-muted); margin-bottom: 32px;
  display: inline-flex; gap: 10px; align-items: center;
}
.page-hero__crumb a { color: var(--cc-ink-muted); }
.page-hero__crumb a:hover { color: var(--cc-teal-deep); }
.page-hero__crumb .sep { color: var(--cc-lavender); }
.page-hero__eyebrow {
  font-family: var(--ff-sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--cc-teal-deep); margin-bottom: 24px;
  display: inline-flex; gap: 12px; align-items: center;
}
.page-hero__eyebrow::before { content: ""; width: 40px; height: 1px; background: var(--cc-teal); }
.page-hero h1 {
  font-family: var(--ff-display); font-weight: 300;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 0.95; letter-spacing: -0.025em;
  color: var(--cc-ink);
  max-width: 1200px;
}
.page-hero h1 em { font-style: italic; color: var(--cc-lavender-deep); }
.page-hero h1 .teal { color: var(--cc-teal-deep); font-style: italic; }
.page-hero__lede {
  font-family: var(--ff-display); font-style: italic; font-weight: 300;
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1.45; color: var(--cc-ink-soft);
  max-width: 720px;
  margin-top: 36px;
}

/* Decorative divider */
.rule {
  width: 100%; height: 1px; background: var(--cc-line);
  max-width: var(--container-max); margin: 0 auto;
}

/* Tag chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  font-family: var(--ff-sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  border-radius: var(--radius-pill);
  background: var(--cc-cream-warm);
  color: var(--cc-teal-deep);
  border: 1px solid var(--cc-line-soft);
}
.chip--teal { background: var(--cc-teal); color: white; border-color: transparent; }
.chip--lav  { background: var(--cc-lavender); color: white; border-color: transparent; }
.chip--ink  { background: var(--cc-ink); color: var(--cc-cream); border-color: transparent; }

/* Stat block */
.stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
  background: var(--cc-line);
  border: 1px solid var(--cc-line);
  border-radius: 10px;
  overflow: hidden;
  margin: 48px 0;
}
.stat-cell {
  background: var(--cc-cream);
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 6px;
}
.stat-cell .v { font-family: var(--ff-display); font-weight: 300; font-size: 44px; line-height: 1; color: var(--cc-ink); }
.stat-cell .v em { font-style: italic; color: var(--cc-lavender-deep); }
.stat-cell .l { font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--cc-ink-muted); }
@media (max-width: 800px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }

/* Input (forms) */
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cc-ink-muted); font-weight: 500; }
.field > label .req { color: var(--cc-lavender-deep); }
.field input, .field textarea, .field select {
  font-family: var(--ff-sans); font-size: 16px;
  color: var(--cc-ink);
  background: var(--cc-cream);
  border: 1px solid var(--cc-line);
  border-radius: 10px;
  padding: 14px 16px;
  transition: border-color 250ms, box-shadow 250ms;
  outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--cc-teal);
  box-shadow: 0 0 0 4px rgba(107,166,161,0.15);
}
.field textarea { min-height: 130px; resize: vertical; font-family: var(--ff-sans); }

/* Selectable card (radio/checkbox) */
.opt {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--cc-line);
  border-radius: 12px;
  background: var(--cc-cream);
  cursor: pointer;
  transition: border-color 250ms, background 250ms, transform 250ms var(--ease-spring);
  position: relative;
}
.opt:hover { border-color: var(--cc-teal); background: var(--cc-cream-warm); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .dot {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--cc-line);
  margin-top: 2px;
  position: relative;
  transition: border-color 250ms;
}
.opt input:checked ~ .dot { border-color: var(--cc-teal); }
.opt input:checked ~ .dot::after {
  content: ""; position: absolute; inset: 3px;
  border-radius: 50%; background: var(--cc-teal);
}
.opt .opt-body { flex: 1; }
.opt .opt-title { font-family: var(--ff-display); font-weight: 400; font-size: 20px; color: var(--cc-ink); line-height: 1.15; }
.opt .opt-title em { font-style: italic; color: var(--cc-lavender-deep); }
.opt .opt-sub { font-size: 13px; color: var(--cc-ink-soft); margin-top: 4px; line-height: 1.5; }
.opt.is-selected { border-color: var(--cc-teal); background: var(--cc-cream-warm); }
.opt.is-selected .dot { border-color: var(--cc-teal); }
.opt.is-selected .dot::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--cc-teal);
}


/* ============================================
   PAGE.CSS MOBILE IMPROVEMENTS
   ============================================ */

/* Stat row container */
@media (max-width: 600px) {
  .stat-row { margin: 24px 0; }
}

/* Field inputs mobile */
@media (max-width: 480px) {
  .field input,
  .field textarea,
  .field select {
    font-size: 16px; /* prevent zoom on iOS */
    padding: 12px 14px;
  }
  .field > label {
    font-size: 10px;
  }
}

/* Opt cards mobile */
@media (max-width: 600px) {
  .opt {
    padding: 14px 16px;
  }
  .opt .opt-title {
    font-size: 18px;
  }
}

/* Chip mobile */
@media (max-width: 480px) {
  .chip {
    font-size: 10px;
    padding: 5px 12px;
  }
}

@media (max-width: 900px) {
  .page-hero h1 { font-size: clamp(32px, 7vw, 52px); }
}
@media (max-width: 600px) {
  .page-hero h1 { font-size: clamp(28px, 8vw, 44px); }
}