/* ── styles.css — Clearpath Digital ────────────────────────────────────────
 * Component CSS only. No :root declarations. No hardcoded values.
 * All tokens come from tokens.css.
 * ──────────────────────────────────────────────────────────────────────── */


/* ── Global Base ─────────────────────────────────────────────────────────── */

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

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: var(--weight-normal);
  line-height: var(--leading-relaxed);
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

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


/* ── Section Modifiers ───────────────────────────────────────────────────── */

.section--surface {
  background-color: var(--color-surface-1);
}


/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 2rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-s);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  border: 2px solid var(--color-primary);
}

.btn--primary:hover {
  background-color: #3730c4;
  border-color: #3730c4;
  color: var(--color-text-inverse);
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}

.btn--ghost:hover {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
}

.btn--inverse {
  background-color: var(--color-text-inverse);
  color: var(--color-primary);
  border: 2px solid var(--color-text-inverse);
}

.btn--inverse:hover {
  background-color: transparent;
  color: var(--color-text-inverse);
  border-color: var(--color-text-inverse);
}

.btn .icon {
  font-size: 1.4rem;   /* width/height: 1em in icons.css scales with this */
  color: inherit;
}


/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero {
  padding-bottom: var(--section-m);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-3xl);
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: var(--space-l);
  width: auto;
}

.hero__eyebrow {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-primary);
}

.hero__heading {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(3.2rem, 5vw, 5.2rem);
  font-weight: var(--weight-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
  margin: 0;
}

.hero__sub {
  display: block;
  font-size: var(--text-m);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  max-width: 48ch;
  margin: 0;
}

.hero__actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-s);
  flex-wrap: wrap;
  width: 100%;
}

.hero__media {
  width: auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-xl);
}


/* ── Section Intro ───────────────────────────────────────────────────────── */

.section-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: var(--space-xs);
  max-width: 56ch;
  width: 100%;
}

.section-intro--centered {
  align-items: center;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-intro__eyebrow {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-primary);
}

.section-intro__heading {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 3.5vw, 3.8rem);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
  margin: 0;
}

.section-intro__sub {
  display: block;
  font-size: var(--text-m);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  margin: 0;
}


/* ── Feature Grid ────────────────────────────────────────────────────────── */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-l);
  width: 100%;
}

.feature-grid--3col {
  grid-template-columns: repeat(3, 1fr);
}


/* ── Feature Card ────────────────────────────────────────────────────────── */

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: var(--space-s);
  padding: var(--space-xl);
  background-color: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-neutral-200);
  width: auto;
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

.feature-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--color-neutral-300);
}

.feature-card__icon {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 4.8rem;
  height: 4.8rem;
  background-color: var(--color-accent);
  border-radius: var(--radius-md);
  font-size: 2.2rem;   /* controls svg.icon size via width/height: 1em */
  color: var(--color-primary);
  flex-shrink: 0;
}

.feature-card__heading {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--heading-2xs);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  color: var(--color-text);
  margin: 0;
}

.feature-card__body {
  display: block;
  font-size: var(--text-s);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  margin: 0;
}


/* ── Process List ────────────────────────────────────────────────────────── */

.process-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  width: 100%;
}

.process-step {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--color-neutral-200);
  width: 100%;
}

.process-step:last-child {
  border-bottom: none;
}

.process-step__num {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 4vw, 4rem);
  font-weight: var(--weight-extrabold);
  color: var(--color-accent);
  letter-spacing: var(--tracking-tight);
  line-height: 1;
  min-width: 6rem;
  flex-shrink: 0;
}

.process-step__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: var(--space-xs);
  padding-top: 0.4rem;
  width: auto;
}

.process-step__heading {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--heading-2xs);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  color: var(--color-text);
  margin: 0;
}

.process-step__copy {
  display: block;
  font-size: var(--text-m);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  max-width: 60ch;
  margin: 0;
}


/* ── Testimonial Grid ────────────────────────────────────────────────────── */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-l);
  width: 100%;
}

.testimonial-grid--3col {
  grid-template-columns: repeat(3, 1fr);
}


/* ── Testimonial Card ────────────────────────────────────────────────────── */

.testimonial--card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-l);
  padding: var(--space-xl);
  background-color: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-neutral-200);
  width: auto;
}

.testimonial__quote {
  display: block;
  font-size: var(--text-m);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
  font-style: italic;
  margin: 0;
}

.testimonial__author-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-s);
  width: 100%;
}

.testimonial__avatar {
  width: 4.8rem;
  height: 4.8rem;
  border-radius: var(--radius-full);
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.testimonial__author-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.2rem;
  width: auto;
}

.testimonial__author {
  display: block;
  font-size: var(--text-s);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  line-height: var(--leading-snug);
}

.testimonial__role {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: var(--leading-snug);
}


/* ── CTA Band ────────────────────────────────────────────────────────────── */

.cta-band--branded {
  background-color: var(--color-primary);
}

.cta-band__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-l);
  text-align: center;
  width: 100%;
}

.cta-band__heading {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 3.5vw, 3.8rem);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-inverse);
  margin: 0;
}

.cta-band__sub {
  display: block;
  font-size: var(--text-m);
  line-height: var(--leading-relaxed);
  color: rgba(255, 255, 255, 0.8);
  max-width: 52ch;
  margin: 0;
}

.cta-band__actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: var(--space-s);
  width: 100%;
}


/* ── Responsive: Tablet (≤991px) ─────────────────────────────────────────── */

@media (max-width: 991px) {

  .hero .container {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .hero__content {
    align-items: center;
    text-align: center;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__sub {
    max-width: 52ch;
  }

  .feature-grid--3col {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-grid--3col {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ── Responsive: Mobile (≤767px) ─────────────────────────────────────────── */

@media (max-width: 767px) {

  .feature-grid--3col {
    grid-template-columns: 1fr;
  }

  .testimonial-grid--3col {
    grid-template-columns: 1fr;
  }

  .testimonial-grid .testimonial--card:last-child {
    display: none;
  }

  .process-step {
    flex-direction: column;
    gap: var(--space-s);
  }

  .process-step__num {
    font-size: 2.4rem;
    min-width: auto;
  }

  .section-intro {
    max-width: 100%;
  }
}


/* ── Responsive: Small mobile (≤468px) ──────────────────────────────────── */

@media (max-width: 468px) {

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}
