/* ==========================================================================
   Campbell Sells & Associates
   One stylesheet. Design tokens first, then components in page order.
   Colors follow the handoff spec (oklch). Per-service pages override
   --accent / --accent-link with an inline style on <body>.
   ========================================================================== */

:root {
  /* Surfaces */
  --bg: oklch(0.985 0.006 250);
  --bg-alt: oklch(0.97 0.008 250);
  --bg-hero: oklch(0.965 0.012 255);
  --panel: oklch(0.99 0.003 250);
  --border: oklch(0.85 0.01 255);
  --border-input: oklch(0.8 0.01 255);

  /* Brand + text */
  --brand: oklch(0.55 0.15 237);
  --brand-dark: oklch(0.45 0.15 237);
  --navy: oklch(0.28 0.05 265);
  --ink: oklch(0.3 0.02 260);
  --body: oklch(0.4 0.02 260);
  --muted: oklch(0.45 0.02 260);
  --muted-2: oklch(0.5 0.02 260);
  --faint: oklch(0.55 0.02 260);
  --on-accent: oklch(0.98 0.005 250);

  /* Accent — swapped per service page */
  --accent: var(--brand);
  --accent-link: oklch(0.5 0.15 237);
  --accent-link-hover: oklch(0.4 0.15 237);

  /* Rhythm */
  --container: 1200px;
  --pad-x: clamp(1.5rem, 6vw, 7.5rem);
  --section-y: clamp(3.5rem, 8vw, 5.625rem);

  --font-sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
}

/* --------------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

picture {
  display: block;
}

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

a {
  color: var(--accent-link);
}

a:hover {
  color: var(--accent-link-hover);
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  color: var(--brand);
  font-weight: 600;
  margin: 0;
}

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

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

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(-120%);
  background: var(--brand);
  color: var(--on-accent);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  transform: translateY(0);
  color: var(--on-accent);
}

.section {
  padding-block: var(--section-y);
}

.section--alt {
  background: var(--bg-alt);
}

.section--tight {
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.prose {
  max-width: 65ch;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.prose p {
  margin: 0;
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  color: var(--body);
}

.note {
  max-width: 65ch;
  margin: 1.25rem 0 0;
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--faint);
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  background: var(--bg-alt);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.25rem;
}

.nav__logo {
  display: block;
  flex-shrink: 0;
}

.nav__logo img {
  height: clamp(2.75rem, 2rem + 2vw, 5rem);
  width: auto;
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--navy);
}

.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  display: block;
  height: 2px;
  width: 24px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav__toggle span {
  position: relative;
}

.nav__toggle span::before {
  content: "";
  position: absolute;
  top: -7px;
}

.nav__toggle span::after {
  content: "";
  position: absolute;
  top: 7px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}

.nav__list a:hover {
  color: var(--ink);
}

.nav__list a[aria-current="page"] {
  font-weight: 600;
  color: var(--navy);
}

.nav__list a.is-accent[aria-current="page"] {
  color: var(--accent);
}

@media (max-width: 800px) {
  .nav__toggle {
    display: block;
  }

  .nav__list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    box-shadow: 0 12px 24px oklch(0.2 0.03 260 / 0.08);
    padding: 0.5rem 0;
    z-index: 50;
  }

  .nav__list:not(.is-open) {
    display: none;
  }

  .nav__list a {
    display: block;
    padding: 0.9rem var(--pad-x);
    font-size: 1rem;
  }

  .nav {
    position: relative;
  }

  .nav__toggle[aria-expanded="true"] span {
    background: transparent;
  }

  .nav__toggle[aria-expanded="true"] span::before {
    transform: translateY(7px) rotate(45deg);
  }

  .nav__toggle[aria-expanded="true"] span::after {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-hero);
  padding-block: clamp(3rem, 9vw, 6.875rem);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 680px;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(1.85rem, 1.1rem + 3.4vw, 3.25rem);
  line-height: 1.12;
  color: var(--accent);
  max-width: 15ch;
}

.hero__lead,
.lead {
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.125rem);
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
  max-width: 55ch;
}

.hero__decoration {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@media (max-width: 700px) {
  .hero__decoration {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.btn:hover {
  color: var(--on-accent);
  filter: brightness(0.94);
}

.btn-wrap {
  margin-top: 0.5rem;
}

@media (max-width: 560px) {
  .btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Full-bleed image band
   -------------------------------------------------------------------------- */

.band-img {
  width: 100%;
  height: clamp(220px, 40vw, 560px);
  object-fit: cover;
}

.band-img--short {
  height: clamp(220px, 32vw, 420px);
}

/* --------------------------------------------------------------------------
   Pull quote
   -------------------------------------------------------------------------- */

.pullquote {
  background: var(--bg-alt);
  text-align: center;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.pullquote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.2rem, 1rem + 0.9vw, 1.5625rem);
  line-height: 1.5;
  color: var(--ink);
  margin: 0 auto;
  max-width: 60ch;
}

/* --------------------------------------------------------------------------
   Section headings
   -------------------------------------------------------------------------- */

.section h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.25rem);
  color: var(--accent);
  margin-bottom: 1.75rem;
}

.section h2.h2--brand {
  color: var(--brand);
}

.section > .container > h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.1875rem;
  color: var(--brand);
  margin: 2.75rem 0 1.5rem;
}

/* --------------------------------------------------------------------------
   "How We Help" cards
   -------------------------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(1.75rem, 4vw, 2.5rem);
}

.card {
  border-top: 3px solid var(--card-accent, var(--accent));
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.card h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--card-accent, var(--accent));
}

.card p {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

.card__icon {
  height: clamp(120px, 22vw, 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
}

.card__icon img {
  width: 88px;
  height: auto;
  object-fit: contain;
}

.card__more {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--card-accent, var(--accent));
  margin-top: auto;
  padding-top: 0.25rem;
}

.card:hover h3 {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Bullet list (checklist style)
   -------------------------------------------------------------------------- */

.bullets {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  max-width: 65ch;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bullets li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--body);
}

.bullets li::before {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   Process steps
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 3rem 2.5rem;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.step__num {
  width: 48px;
  height: 46px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  background: var(--step-color, var(--accent));
  display: flex;
  align-items: center;
  padding-left: 9px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--on-accent);
}

.step h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.1875rem;
  color: var(--brand);
}

.step p {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Contact area (page hero variant) + "For Agencies" callout
   -------------------------------------------------------------------------- */

.contact-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

@media (max-width: 760px) {
  .contact-cols {
    grid-template-columns: 1fr;
  }
}

.contact-cols h2 {
  font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.625rem);
  color: var(--brand);
  margin-bottom: 1.25rem;
}

.contact-direct p {
  margin: 0 0 0.75rem;
}

.contact-direct strong {
  color: var(--ink);
}

.callout {
  max-width: 65ch;
}

.callout h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.5rem);
  color: var(--accent);
  margin-bottom: 0.875rem;
}

.callout p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--body);
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.form {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  max-width: 520px;
}

.form label {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted-2);
}

.form input,
.form textarea {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  padding: 0.8125rem 0.875rem;
  border: 1px solid var(--border-input);
  background: var(--panel);
  color: var(--ink);
  width: 100%;
}

.form textarea {
  resize: vertical;
  min-height: 120px;
}

.form input:focus-visible,
.form textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.form .btn {
  align-self: flex-start;
  margin-top: 0.25rem;
}

@media (max-width: 560px) {
  .form .btn {
    align-self: stretch;
  }
}

.hp {
  position: absolute;
  left: -9999px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding-block: clamp(3rem, 7vw, 5rem) 2.5rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 3.75rem);
}

@media (max-width: 760px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 380px;
}

.site-footer__brand img {
  align-self: flex-start; /* don't let the column flexbox stretch the logo wide */
  height: 64px;
  width: auto;
}

.site-footer__brand p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted-2);
}

.site-footer__brand a {
  color: var(--muted-2);
}

.site-footer h2 {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  color: var(--brand);
  margin-bottom: 1.25rem;
}

.site-footer__legal {
  border-top: 1px solid var(--border);
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--faint);
}

.site-footer--slim {
  padding-block: 2rem;
}

.site-footer--slim .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer--slim img {
  height: 40px;
  width: auto;
}

/* --------------------------------------------------------------------------
   Thanks / 404
   -------------------------------------------------------------------------- */

.stub {
  padding-block: clamp(4rem, 12vw, 8rem);
}

.stub .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.stub h1 {
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  max-width: 24ch;
  text-wrap: balance;
}

.stub .lead {
  max-width: 60ch;
}
