/*
 * PSCA & CO. — SERVICES OVERVIEW PAGE STYLES  v1.0
 */


/* ═══════════════════════════════════════════════════════════════════════════
   PAGE HERO (shared — see about.css for full definition)
   We import about.css on this page for the shared .page-hero component.
═══════════════════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════════════════
   SERVICES INTRO BAND
═══════════════════════════════════════════════════════════════════════════ */

.services-intro {
  /* First-fold fit — no page-hero above; reduce top padding so content lands
     in the visible viewport without scrolling on a standard laptop screen */
  padding-top: var(--space-8);          /* was --space-section-sm (64px); now 32px */
  padding-bottom: var(--space-section);
  background: var(--color-surface-page);
}

/* Tighter breadcrumb — less gap before the main heading */
.services-intro .page-hero__breadcrumb {
  margin-bottom: var(--space-4);        /* was --space-6 (24px) from about.css */
}

/* H1 here is a section-level heading, not a full hero display headline.
   Reduce from standard h2-size (28–40px) to keep it within first-fold height. */
.services-intro .section-heading {
  font-size: clamp(1.375rem, 2.2vw, 1.875rem); /* 22–30px vs 28–40px */
  line-height: 1.25;
  margin-bottom: var(--space-2);
}

/* Tighter rule — shorten vertical gap above and below the gold bar */
.services-intro .rule-gold {
  margin-block: var(--space-2);         /* was --space-4 (16px) each side */
}

.services-intro__layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-16);                 /* was --space-20 (80px); now 64px */
  align-items: center;
}

.services-intro__body p {
  font-family: var(--font-sans);
  font-size: var(--text-body-size);     /* was --text-body-lg-size (18px); now 16px */
  line-height: 1.6;                     /* was 1.75 */
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3);        /* was --space-5 (20px); now 12px */
}

.services-intro__body p:last-child { margin-bottom: 0; }

.services-intro__aside {
  border-left: 3px solid var(--color-gold);
  padding-left: var(--space-8);
}

.services-intro__aside-label {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--text-label-size);
  font-weight: var(--text-label-weight);
  letter-spacing: var(--text-label-ls);
  text-transform: var(--text-label-transform);
  color: var(--color-gold-deep);
  margin-bottom: var(--space-5);
}

.services-intro__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.services-intro__list li {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-navy);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.services-intro__list li::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--color-gold);
  flex-shrink: 0;
}

/* Hyperlinks in Our Practice Areas list */
.services-intro__list a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.services-intro__list a:hover {
  color: var(--color-gold-deep);
  border-bottom-color: var(--color-gold);
}

@media (max-width: 900px) {
  .services-intro__layout {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
}


/* ═══════════════════════════════════════════════════════════════════════════
   SERVICES FULL GRID
═══════════════════════════════════════════════════════════════════════════ */

.services-full {
  padding-block: var(--space-section);
  background: var(--color-surface-warm);
  border-top: 1px solid var(--color-border-subtle);
}

.services-full-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-component);
}

/* Large horizontal service card */
.svc-card {
  background: var(--color-surface-light);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: var(--space-10) var(--space-10);
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--space-6);
  align-items: start;
  text-decoration: none;
  transition: box-shadow var(--transition-base), transform var(--transition-base), border-color var(--transition-base);
  position: relative;
  overflow: hidden;
  /* Anchor-jump offset — keeps card clear of fixed nav + ticker */
  scroll-margin-top: calc(var(--nav-height) + var(--banner-height) + var(--space-8));
}

.svc-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.svc-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--color-border-gold-subtle);
}

.svc-card:hover::after {
  transform: scaleX(1);
}

.svc-card__icon {
  width: 56px;
  height: 56px;
  color: var(--color-gold);
  flex-shrink: 0;
}

.svc-card__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svc-card__body {}

.svc-card__title {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: var(--space-3);
  line-height: 1.2;
}

.svc-card__desc {
  font-family: var(--font-sans);
  font-size: var(--text-body-size);
  line-height: var(--text-body-lh);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-5);
}

.svc-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.svc-tag {
  font-family: var(--font-sans);
  font-size: var(--text-caption-size);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: var(--color-surface-muted);
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-subtle);
}

.svc-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--text-label-size);
  font-weight: var(--text-label-weight);
  letter-spacing: var(--text-label-ls);
  text-transform: var(--text-label-transform);
  color: var(--color-gold-deep);
  text-decoration: none;
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.svc-card:hover .svc-card__link {
  gap: var(--space-3);
  color: var(--color-gold);
}

.svc-card__link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

@media (max-width: 1024px) {
  .services-full-grid { grid-template-columns: 1fr; }
  .svc-card { grid-template-columns: 52px 1fr; }
}

@media (max-width: 520px) {
  .svc-card {
    grid-template-columns: 1fr;
    padding: var(--space-8);
  }
}



/* ═══════════════════════════════════════════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════════════════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-reveal), transform var(--transition-reveal);
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-group .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-group .reveal:nth-child(2) { transition-delay: 80ms; }
.reveal-group .reveal:nth-child(3) { transition-delay: 160ms; }
.reveal-group .reveal:nth-child(4) { transition-delay: 240ms; }
.reveal-group .reveal:nth-child(5) { transition-delay: 320ms; }
.reveal-group .reveal:nth-child(6) { transition-delay: 400ms; }
