/*
Theme Name: Capacity Group
Theme URI: https://capacitygroup.com.au
Author: Capacity Group
Description: Employer-side WorkCover & psychological injury management consulting — Victoria
Version: 1.1
License: GNU General Public License v2 or later
Text Domain: capacitygroup
*/

/* ============ DESIGN TOKENS ============ */
:root {
  --navy: #2b2622;
  --navy-mid: #34302a;
  --navy-light: #3f3a33;
  --accent: #c08a3e;
  --accent-light: #dba85f;
  --white: #ffffff;
  --off-white: #faf8f4;
  --light-grey: #e7e2d9;
  --mid-grey: #5c5852; /* darkened from #6e6a66 — passes WCAG AA on white */
  --text: #262420;
  --text-light: #423f3a; /* darkened from #4a4842 — passes WCAG AA at small sizes */

  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "DM Sans", system-ui, sans-serif;

  --radius: 6px;
  --radius-lg: 12px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --container: 1100px;
  --section-pad: 5rem;
}

/* ============ RESET & BASE ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* Remove default focus outline only when using mouse; keep for keyboard */
:focus:not(:focus-visible) {
  outline: none;
}

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

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}

p {
  max-width: 65ch;
  margin-bottom: 1rem;
}
p:last-child {
  margin-bottom: 0;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
}

/* ============ UTILITY ============ */
.container {
  width: min(var(--container), 100% - 2rem);
  margin-inline: auto;
}

.section {
  padding: var(--section-pad) 0;
}

.section--dark {
  background: var(--navy);
  color: var(--white);
}
.section--dark p {
  color: rgba(255, 255, 255, 0.9);
}
.section--dark h2 {
  color: var(--white);
}

.section--white {
  background: var(--white);
}
.section--light {
  background: var(--off-white);
  border-top: 1px solid var(--light-grey);
}

.section__label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}

.section__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  margin-bottom: 1rem;
}

.section__sub {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 55ch;
  margin-bottom: 2.5rem;
}

.section--dark .section__sub {
  color: rgba(255, 255, 255, 0.9);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s var(--ease);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.btn--primary {
  background: #b5782a; /* richer/darker than current --accent */
  color: var(
    --white
  ) !important; /* white on dark gold reads better than navy */
  border-color: #b5782a;
  box-shadow: 0 2px 8px rgba(150, 100, 30, 0.25);
}

.btn--primary:hover {
  background: #c98f3f;
  border-color: #c98f3f;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(180, 120, 40, 0.35);
}

.crisis-card .btn--primary {
  box-shadow: 0 3px 12px rgba(150, 100, 30, 0.3);
  letter-spacing: 0.02em;
}

.site-nav .btn--primary {
  padding: 0.65rem 1.25rem;
  font-size: 0.85rem;
}
.btn--primary:focus-visible {
  outline-color: var(--navy);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--outline-dark:hover {
  background: var(--navy);
  color: var(--white);
}

.site-footer .btn--primary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
  padding: 0.75rem 1.25rem;
}
.site-footer .btn--primary:hover {
  background: var(--accent);
  color: var(--white);
}

/* ============ HEADER / NAV ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200; /* raise above the nav drawer */
  background: var(--white);
  border-bottom: 1px solid var(--light-grey);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--navy);
  position: relative;
  z-index: 201; /* always above the drawer */
}

/* Hidden state — off-screen, not display:none so transition works */
.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.site-footer-logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: white;
  letter-spacing: -0.01em;
}

.site-logo span {
  color: var(--accent);
}

.site-footer-logo span {
  color: var(--accent);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-light);
  transition: color 0.2s;
}
.site-nav a:hover {
  color: var(--navy);
}
.site-nav a.active {
  color: var(--accent);
}
.site-nav .btn {
  margin-left: 0.5rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--navy);
}

/* ============ HERO ============ */
.hero {
  background: var(--off-white);
  min-height: 92vh;
  min-height: 92svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--light-grey);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 700px 600px at 8% 15%,
      rgba(192, 138, 62, 0.16) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 600px 500px at 78% 85%,
      rgba(43, 38, 34, 0.05) 0%,
      transparent 70%
    );
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  left: -160px;
  bottom: -160px;
  border: 1px solid rgba(192, 138, 62, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(192, 138, 62, 0.05);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: center;
  padding: 6rem 0 4rem;
}

.hero__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero__eyebrow::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  color: var(--navy);
  margin-bottom: 1.5rem;
  line-height: 1.15;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero__desc {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 52ch;
  margin-bottom: 2rem;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__signals {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--light-grey);
}

.hero__signal {
  font-size: 0.8rem;
  color: var(--mid-grey);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero__signal::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
}

/* ============ CRISIS CHECKLIST CARD ============ */
.crisis-card {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  box-shadow: 0 12px 40px rgba(44, 67, 86, 0.08);
}

.crisis-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.crisis-card__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e05050;
  box-shadow: 0 0 0 3px rgba(224, 80, 80, 0.2);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(224, 80, 80, 0.2);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(224, 80, 80, 0);
  }
}

.crisis-card__title {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c83e3e;
}

.crisis-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.crisis-checklist li {
  font-size: 0.875rem;
  color: var(--text);
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.5;
}
.crisis-checklist li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.crisis-card .btn {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}
.crisis-card__note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--mid-grey);
  margin-top: 0.75rem;
}

/* ============ PROCESS BAND ============ */
.process-band {
  background: var(--white);
  border-top: 1px solid var(--light-grey);
  border-bottom: 1px solid var(--light-grey);
  padding: 3rem 0;
}

.process-band__inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}

.process-step-item {
  text-align: center;
  padding: 1rem;
  position: relative;
}
.process-step-item:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -0.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mid-grey);
  font-size: 1.2rem;
}

.process-step-item__num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--light-grey);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.process-step-item strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.process-step-item p {
  font-size: 0.75rem;
  color: var(--mid-grey);
  max-width: none;
}

/* ============ THREE WAYS SECTION ============ */
.three-ways {
  background: var(--off-white);
}

.ways-grid,
.ways-grid--two {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* max-width: 780px; */
  gap: 1.5rem;
  margin-top: 2rem;
}

.way-card {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s var(--ease);
  position: relative;
}
.way-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.way-card__num {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--light-grey);
  line-height: 1;
  margin-bottom: 1rem;
}
.way-card h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.way-card__price {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.way-card p {
  font-size: 0.875rem;
  color: var(--text-light);
}
.way-card .btn {
  margin-top: 1.25rem;
}

/* ============ SERVICES PAGE — HERO ============ */
.services-hero {
  padding-top: 6rem;
  padding-bottom: 4rem;
}

.services-hero__heading {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
}

/* ============ SERVICES PAGE — SERVICE DETAIL ============ */
.service-detail {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.service-detail__badge {
  font-family: var(--font-serif);
  font-size: 4rem;
  color: var(--light-grey);
  line-height: 1;
  padding-top: 0.5rem;
}

.section--dark .service-detail__badge {
  color: rgba(255, 255, 255, 0.35);
}

.service-detail__heading {
  font-size: 1.8rem;
}

.service-detail__price {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--accent) !important;
  margin: 0.25rem 0 1rem !important;
}

.service-detail__list {
  list-style: none !important;
  margin: 0.5rem 0 0 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-detail__list li {
  font-size: 0.9rem;
  color: var(--text-light);
  padding-left: 1.25rem;
  position: relative;
}

.service-detail__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.section--dark .service-detail__list li {
  color: rgba(255, 255, 255, 0.8);
}

.service-detail h4 {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mid-grey);
  margin: 1.5rem 0 0.5rem;
}

.section--dark .service-detail h4 {
  color: rgba(255, 255, 255, 0.48);
}

.service-detail__cta {
  margin-top: 1.75rem;
}

.service-detail__cta--with-note {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.service-detail__note {
  font-size: 0.8rem;
  color: var(--mid-grey);
  margin: 0;
  max-width: none;
}

.section--dark .service-detail__note {
  color: rgba(255, 255, 255, 0.55);
}

/* ============ SERVICES PAGE — STAGE SELECTOR ============ */
.section--stage {
  background: var(--off-white);
  border-top: 1px solid var(--light-grey);
}

.stage-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.stage-option {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1.5px solid var(--light-grey);
  background: var(--white);
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.stage-option:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* Active card — gold border + very subtle warm tint, no dark bg */
.stage-option--active {
  background: #fffbf4; /* barely-there warm tint */
  border-color: var(--accent);
  border-width: 2px;
  box-shadow: 0 4px 20px rgba(200, 151, 58, 0.1);
}

.stage-option--active:hover {
  transform: none; /* already visually "selected" — don't lift it further */
}

.stage-option__num {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 400;
  color: var(--light-grey);
  line-height: 1;
  margin-bottom: 1rem;
}

/* num colour unchanged on active — navy text stays readable */
.stage-option--active .stage-option__num {
  color: var(--accent-light);
}

.stage-option__label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid-grey);
  margin-bottom: 0.25rem;
}

.stage-option--active .stage-option__label {
  color: var(--accent);
}

.stage-option h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text); /* always dark text */
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

/* Override the white rule — active card keeps dark text */
.stage-option--active h3 {
  color: var(--navy) !important;
}

.stage-option p {
  font-size: 0.875rem;
  color: var(--text-light);
  max-width: none;
  margin-bottom: 1.25rem;
}

.stage-option--active p {
  color: var(--text-light) !important; /* not washed-out white */
}

.stage-option__link {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
  display: inline-block;
}
.stage-option__link:hover {
  opacity: 0.75;
}
/* ============ SERVICES PAGE — HOW IT WORKS ============ */
.how-it-works__container {
  max-width: 700px;
}

.how-it-works__heading {
  font-size: 1.6rem;
}

.how-it-works__intro {
  color: var(--text-light);
  margin-bottom: 2rem;
}

.how-it-works__cta {
  margin-top: 2rem;
}

/* ============ PROCESS STEPS ============ */
.process-steps {
  /* margin-top: 1.5rem; */
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.process-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.process-step--light {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 0.5rem 1.25rem;
}

.process-step__num {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
  min-width: 28px;
  line-height: 1.4;
}

.process-step strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.section--dark .process-step strong,
.process-step--dark strong,
[style*="background:var(--navy)"] .process-step strong,
[style*="background: var(--navy)"] .process-step strong {
  color: var(--white);
}

.process-step p {
  font-size: 0.8rem;
  color: var(--text-light);
  margin: 0;
  max-width: none;
  line-height: 1.4;
}

.section--dark .process-step p,
.process-step--dark p,
[style*="background:var(--navy)"] .process-step p,
[style*="background: var(--navy)"] .process-step p {
  color: rgba(255, 255, 255, 0.5);
}

/* ============ SERVICES PAGE — OLD STAGE GRID (kept for other templates) ============ */
.stage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.stage-card {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s var(--ease);
}

.stage-card--active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.stage-card--active h3 {
  color: var(--white);
}
.stage-card--active p {
  color: rgba(255, 255, 255, 0.65);
}
.stage-card--active .stage-card__rec {
  color: var(--accent);
}

.stage-card__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}

.stage-card h3 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.stage-card__rec {
  font-size: 0.875rem;
  color: var(--accent);
  margin: 0;
  max-width: none;
}

/* ============ RETAINER GRID ============ */
.retainer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.retainer-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
}

.retainer-card--featured {
  background: rgba(200, 151, 58, 0.08);
  border-color: var(--accent);
}

.retainer-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.8rem;
  border-radius: 100px;
  white-space: nowrap;
}

.retainer-card h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.retainer-card__price {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  line-height: 1;
}
.retainer-card__price span {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.48);
  font-family: var(--font-sans);
}
.retainer-card p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.25rem;
  max-width: none;
}

.retainer-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.retainer-card__features li {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  padding-left: 1.25rem;
  position: relative;
}
.retainer-card__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ============ CONTACT / TRIAGE FORM ============ */
.ca-form__group {
  margin-bottom: 1.25rem;
}

.ca-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.ca-form__group label {
  display: block;
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.ca-form__group input,
.ca-form__group select,
.ca-form__group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--off-white);
  transition: border-color 0.2s;
  outline: none;
  appearance: none;
}

.ca-form__group input:focus,
.ca-form__group select:focus,
.ca-form__group textarea:focus {
  border-color: var(--accent);
  background: var(--white);
  outline: 3px solid rgba(200, 151, 58, 0.35);
  outline-offset: 0;
}

.ca-form__group textarea {
  min-height: 130px;
  resize: vertical;
}

/* ============ BLOG / ARTICLES ============ */
.topic-pill {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  border: 1px solid var(--light-grey);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-light);
  transition:
    border-color 0.2s,
    color 0.2s;
  text-decoration: none;
}
.topic-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s var(--ease);
}
.blog-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  border-color: var(--accent);
}

.blog-card__body {
  padding: 1.5rem;
}

.blog-card__tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}

.blog-card h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.blog-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  max-width: none;
}

.blog-card__footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--light-grey);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--mid-grey);
}

/* Pagination — used by both paginate_links() (page-blog.php)
   and the_posts_pagination() (index.php). Was previously unstyled. */
ul.page-numbers,
.navigation.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.page-numbers li {
  display: flex;
}

a.page-numbers,
span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--light-grey);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  text-decoration: none;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
}

a.page-numbers:hover {
  border-color: var(--accent);
  color: var(--accent);
}

span.page-numbers.current {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

span.page-numbers.dots {
  border: none;
  background: none;
  color: var(--mid-grey);
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.6);
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand .site-logo .site-footer-logo {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}
.footer__brand p {
  font-size: 0.875rem;
  max-width: 30ch;
}

.footer__col h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer__col ul a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s;
}
.footer__col ul a:hover {
  color: var(--accent);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

/* ============ SINGLE POST — ARTICLE LAYOUT ============ */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: start;
}

/* ============ CLAIM ASSESSMENT — FORM LAYOUT ============ */
.assessment-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 4rem;
  align-items: start;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .crisis-card {
    max-width: 480px;
  }
  .ways-grid,
  .stage-grid,
  .retainer-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .process-band__inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-step-item:not(:last-child)::after {
    display: none;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .service-detail {
    grid-template-columns: 1fr;
  }
  .service-detail__badge {
    display: none;
  }
  .ca-form__row {
    grid-template-columns: 1fr;
  }
  .stage-selector {
    grid-template-columns: 1fr;
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
  .assessment-layout {
    grid-template-columns: 1fr;
  }
  .article-layout aside {
    position: static;
  }

  .service-detail__cta--with-note {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  :root {
    --section-pad: 3rem;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: flex; /* keep flex always so transition fires */
    flex-direction: column;
    position: fixed;
    inset: 72px 0 0;
    background: var(--white);
    padding: 2rem 1.5rem;
    gap: 0;
    z-index: 199; /* below header/toggle */
    align-items: stretch;
    /* border-top: 1px solid rgba(200, 151, 58, 0.3); */
    overflow-y: auto;
    border-top: 1px solid var(--light-grey);

    /* Hidden by default */
    transform: translateX(100%);
    visibility: hidden;
    transition:
      transform 0.3s var(--ease),
      visibility 0.3s;
  }

  .site-nav.open {
    transform: translateX(0);
    visibility: visible;
  }

  .site-nav a {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text);
    padding: 1rem 0;
    border-bottom: 1px solid var(--light-grey);
  }

  .site-nav a:hover {
    color: var(--accent);
  }

  .site-nav .btn {
    margin: 1.5rem 0 0;
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 1rem;
  }

  .process-band__inner {
    grid-template-columns: 1fr;
  }
  .process-step-item:not(:last-child)::after {
    display: none;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }
  .footer__bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .stage-option {
    grid-template-columns: 40px 1fr;
  }
  .stage-option__body {
    padding: 1.5rem 1.25rem 1.5rem 1rem;
  }

  /* Long CTA labels (e.g. "Submit for Assessment — Response within 24 hours")
     would overflow fixed-width buttons on narrow screens since .btn uses
     white-space: nowrap by default — allow wrapping here. */
  .btn {
    white-space: normal;
    text-align: center;
  }

  .hero__ctas,
  .crisis-card .btn {
    width: 100%;
  }
} /* single correct closing brace for the media query */
