/* ==========================================================
   Sarah Turpin – Cassiopeia child template
   File: css/user.css (Cassiopeia loads this automatically)
   ========================================================== */

@import url("https://fonts.googleapis.com/css2?family=Newsreader:opsz,wght@6..72,400;6..72,500;6..72,600&family=Public+Sans:wght@400;500;600&display=swap");

:root {
  --st-paper: #F6F3EE;
  --st-sand: #ECE6DC;
  --st-card: #FBF9F5;
  --st-ink: #1B1F24;
  --st-body: #3A4048;
  --st-muted: #4A5058;
  --st-rule: #DDD6CB;
  --st-accent: #0F5C63;          /* change this one line to recolour the site */
  --st-accent-dark: #0A4247;
  --st-serif: "Newsreader", Georgia, serif;
  --st-sans: "Public Sans", "Helvetica Neue", Helvetica, sans-serif;

  /* Feed Cassiopeia's own variables */
  --cassiopeia-color-primary: var(--st-ink);
  --cassiopeia-color-link: var(--st-accent);
  --cassiopeia-color-hover: var(--st-accent-dark);
  --cassiopeia-font-family-body: var(--st-sans);
  --cassiopeia-font-family-headings: var(--st-serif);
  --cassiopeia-font-weight-headings: 500;
}

/* ---------- Base ---------- */
body {
  background: var(--st-paper);
  color: var(--st-ink);
  font-family: var(--st-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}
h1, h2, h3, h4 {
  font-family: var(--st-serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--st-ink);
}
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.03; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.5rem, 2.2vw, 2.125rem); }
p { color: var(--st-body); }
a { color: var(--st-accent); }
a:hover { color: var(--st-accent-dark); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--st-accent);
  outline-offset: 3px;
}

/* ---------- Header ---------- */
.container-header {
  background: var(--st-paper);
  background-image: none;
  color: var(--st-ink);
  border-bottom: 1px solid var(--st-rule);
  box-shadow: none;
}
.container-header .brand-logo,
.container-header .site-description { color: var(--st-ink); }
.container-header .brand-logo {
  font-family: var(--st-serif);
  font-size: 1.625rem;
  font-weight: 600;
  text-decoration: none;
}
.container-header .site-description {
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--st-muted);
}
.container-header .mod-menu > li > a,
.container-header .mod-menu > li > span {
  color: var(--st-ink);
  font-size: 1rem;
}
.container-header .mod-menu > li.active > a { font-weight: 600; }
.container-header .navbar-toggler { color: var(--st-ink); border-color: var(--st-rule); }

/* ---------- Buttons (also set "Link Class: st-btn" on the menu item) ---------- */
.st-btn,
.container-header .mod-menu a.st-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.85rem 1.6rem;
  border-radius: 6px;
  background: var(--st-accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.st-btn:hover,
.container-header .mod-menu a.st-btn:hover { background: var(--st-accent-dark); color: #fff; }
.st-btn--light { background: var(--st-paper); color: var(--st-ink); }
.st-btn--light:hover { background: #fff; color: var(--st-ink); }
.st-link { font-weight: 600; color: var(--st-ink); }

/* ---------- Full-width bands ---------- */
.st-band {
  --band-bg: transparent;
  padding-block: clamp(4rem, 8vw, 6.5rem);
  background: var(--band-bg);
  box-shadow: 0 0 0 100vmax var(--band-bg);
  clip-path: inset(0 -100vmax);
}
.st-band + .st-band { border-top: 1px solid var(--st-rule); }
.st-band--sand { --band-bg: var(--st-sand); }
.st-band--dark { --band-bg: var(--st-ink); color: var(--st-paper); }
.st-band--dark h2, .st-band--dark h3 { color: var(--st-paper); }
.st-band--dark p { color: #D6D1C8; }

.st-eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--st-accent);
  margin-bottom: 1rem;
}
.st-lede { font-size: 1.3rem; line-height: 1.55; max-width: 38em; }
.st-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 2rem; }

/* ---------- Layout grids ---------- */
.st-split {
  display: grid;
  grid-template-columns: 7fr 4fr;
  gap: 2rem 4rem;
  align-items: center;
}
.st-split--top { align-items: start; }
.st-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.st-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }

/* ---------- Components ---------- */
.st-photo {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  background: #E6E0D6;
}

/* Numbered problem list */
.st-list { list-style: none; margin: 0; padding: 0; counter-reset: st; border-bottom: 1px solid #CFC7BA; }
.st-list li {
  counter-increment: st;
  display: flex;
  gap: 1.5rem;
  padding: 1.35rem 0;
  border-top: 1px solid #CFC7BA;
  font-size: 1.2rem;
  line-height: 1.5;
}
.st-list li::before {
  content: counter(st, decimal-leading-zero);
  font-family: var(--st-serif);
  color: var(--st-accent);
  min-width: 2rem;
}

/* Plain ruled list (What's included, etc.) */
.st-ticks { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--st-rule); }
.st-ticks li { padding: 0.85rem 0; border-top: 1px solid var(--st-rule); }

/* Cards */
.st-card {
  background: var(--st-card);
  border-radius: 8px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.st-card h3 { margin: 0; }
.st-card p { margin: 0; }
.st-card--outline { border: 1px solid var(--st-rule); }
.st-price {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--st-rule);
  font-family: var(--st-serif);
  font-size: 1.75rem;
}
.st-price small { display: block; font-family: var(--st-sans); font-size: 0.95rem; color: var(--st-muted); }

/* Stats column */
.st-stats { border-bottom: 1px solid #CFC7BA; }
.st-stats div { padding: 1.5rem 0; border-top: 1px solid #CFC7BA; }
.st-stats strong {
  display: block;
  font-family: var(--st-serif);
  font-size: 2.75rem;
  font-weight: 500;
  color: var(--st-accent);
  line-height: 1.1;
}

/* Previously at */
.st-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1rem 2.5rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--st-rule);
  font-family: var(--st-serif);
  font-size: 1.6rem;
}
.st-logos .st-eyebrow { font-family: var(--st-sans); color: var(--st-muted); margin: 0; }

/* Case studies, FAQ and role rows */
.st-row {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 1rem 2rem;
  padding: 1.75rem 0;
  border-top: 1px solid #CFC7BA;
}
.st-row h3 { margin: 0; font-size: 1.6rem; }
.st-row p { margin: 0; }

/* Pull quote in articles */
.item-page blockquote {
  margin: 2rem 0;
  padding-left: 1.75rem;
  border-left: 3px solid var(--st-accent);
  font-family: var(--st-serif);
  font-size: 1.6rem;
  line-height: 1.45;
}

/* Insights blog listing */
.com-content-category-blog .blog-item {
  background: var(--st-card);
  border: 1px solid var(--st-rule);
  border-radius: 8px;
  padding: 2rem;
}

/* ---------- Footer ---------- */
.container-footer {
  background: var(--st-ink);
  background-image: none;
  color: #BDB7AD;
}
.container-footer a { color: #E8E3DA; }

/* ---------- Mobile ---------- */
@media (max-width: 767.98px) {
  .st-split, .st-grid-3, .st-grid-2, .st-row { grid-template-columns: 1fr; }
  .st-photo { max-width: 22rem; }
  .st-list li { font-size: 1.1rem; }
}

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