/* =============================================================
   services.css — Lytton Studio
   Services page: hero AI card + compact grid
   Mobile-first · WCAG 2.2 AA
   Last updated: July 2026
   ============================================================= */

/* ── Opening statement — About page ────────────────────────── */
.opening-statement {
  font-size: clamp(1rem, 0.4vw + 0.95rem, 1.1rem);
  color: var(--ls-text);
  max-width: 72ch;
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

/* ── Page intro ────────────────────────────────────────── */
.page-intro {
  margin-bottom: 2rem;
}

.page-lead {
  font-size: clamp(1rem, 0.5vw + 0.95rem, 1.15rem);
  color: var(--ls-text-muted);
  max-width: 70ch;
  margin-bottom: 0.75rem;
}

.rate-badge {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
}

.pill-rate {
  background: var(--ls-teal);
  color: #fff;
  border-color: var(--ls-teal);
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
}

/* ── Services grid ──────────────────────────────────────────── */
/*
   Mobile:   stack all cards vertically
   Tablet:   hero spans full width, compacts in 2-col below
   Desktop:  hero left (≈40%), 4 compacts right (2×2) + bottom row
*/

/* Page width — viewport with ~10% margins each side on larger screens */
@media (min-width: 64rem) {
  main.main-content {
    max-width: 80vw;
    margin-inline: auto;
  }
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: start; /* cards keep their natural height — no stretching to match the tallest */
}

/* 2 across (2 up, 2 down) from tablet */
@media (min-width: 48rem) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 3 across on wide screens —
   hero left (tall) · Product Mgmt + Website stacked centre · Rescue right (tall) */
@media (min-width: 80rem) {
  .services-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 1.75rem;
  }

  .service-card--hero {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  /* Product Management — top centre */
  .services-grid > article:nth-of-type(2) {
    grid-column: 2;
    grid-row: 1;
  }

  /* Product Rescue — right, spans both rows */
  .services-grid > article:nth-of-type(3) {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  /* Website Diagnostic — bottom centre, under Product Management */
  .services-grid > article:nth-of-type(4) {
    grid-column: 2;
    grid-row: 2;
  }

  .hero-card-inner {
    padding: 2.5rem 2.25rem;
  }
}

/* ── Hero card ──────────────────────────────────────────────── */
.service-card--hero {
  order: -1;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    145deg,
    var(--ls-sage-deep) 0%,
    #4A6960 45%,
    #5C5F7E 75%,
    var(--ls-lavender-deep) 100%
  );
  border: none;
  border-radius: var(--ls-radius);
  color: #ffffff;
  box-shadow: 0 0.75rem 2rem rgba(47, 50, 55, 0.25);
}

.hero-card-inner {
  position: relative;
  z-index: 2;
  padding: 1.75rem 1.5rem;
}

@media (min-width: 40rem) {
  .hero-card-inner {
    padding: 2rem 2rem;
  }
}

@media (min-width: 64rem) {
  .hero-card-inner {
    padding: 2.25rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
  }
}

.hero-bg-motif {
  position: absolute;
  bottom: -1.5rem;
  right: -1rem;
  font-size: clamp(6rem, 15vw, 12rem);
  line-height: 1;
  color: rgba(255, 255, 255, 0.04);
  z-index: 1;
  pointer-events: none;
  user-select: none;
  font-family: monospace;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.hero-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.hero-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ls-yellow);
  background: rgba(246, 239, 178, 0.18);
  border: 1px solid rgba(246, 239, 178, 0.45);
  border-radius: var(--ls-radius-pill);
  padding: 0.15rem 0.65rem;
}

.hero-heading {
  font-family: "Poppins", "Montserrat", system-ui, sans-serif;
  font-size: clamp(1.2rem, 2vw + 0.8rem, 1.6rem);
  font-weight: 700;
  color: #ffffff !important;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.hero-heading-accent {
  color: var(--ls-sky);
}

.hero-description {
  font-size: clamp(0.95rem, 0.4vw + 0.9rem, 1.05rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 60ch;
  margin-bottom: 0;
}

.hero-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin: 1.25rem 0;
}

.hero-sub {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ls-yellow);
  margin-bottom: 0.75rem;
}

.hero-list {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hero-list li {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.4rem 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.88rem, 0.3vw + 0.85rem, 0.98rem);
  line-height: 1.5;
}

.hero-list .li-icon {
  font-size: 1rem;
  line-height: 1.5;
  grid-row: 1;
}

.hero-list strong {
  color: #ffffff;
}

.hero-tools {
  margin-bottom: 1.25rem;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.4rem;
}

.service-card--hero .pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 0.75rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.25rem;
}

.service-card--hero .btn {
  background-color: var(--ls-yellow);
  color: var(--ls-teal) !important;
  font-weight: 700;
}

.service-card--hero .btn:hover,
.service-card--hero .btn:focus {
  background-color: #EFE49A;
  transform: translateY(-1px);
}

.service-card--hero .btn-secondary {
  background-color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: #ffffff !important;
}

.service-card--hero .btn-secondary:hover,
.service-card--hero .btn-secondary:focus {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
}

/* ── Compact service cards ──────────────────────────────────── */
.service-card--compact {
  background: var(--ls-bg);
  border: 1px solid var(--ls-border);
  border-left: 4px solid var(--ls-teal);
  border-radius: var(--ls-radius);
  padding: 1.25rem;
  box-shadow: var(--ls-shadow);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-card--compact .icon {
  font-size: 1.75rem;
  line-height: 1;
  display: block;
}

.service-card--compact h3 {
  font-size: clamp(1.05rem, 1vw + 0.9rem, 1.25rem);
  color: var(--ls-teal);
  margin-bottom: 0;
}

.service-card--compact p {
  font-size: 0.92rem;
  color: var(--ls-text-muted);
  margin-bottom: 0;
}

.compact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.compact-list li {
  font-size: 0.88rem;
  color: var(--ls-text-muted);
  padding-left: 1rem;
  position: relative;
}

.compact-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--ls-teal);
  font-size: 0.8rem;
}

.pill-group--compact {
  margin-top: auto;
  padding-top: 0.5rem;
}

.pill-group--compact .pill {
  font-size: 0.72rem;
}

/* ── Sectors — restored to horizontal cards ─────────────────── */
.sectors-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--ls-bg);
  border: 1px solid var(--ls-border);
  border-left: 4px solid var(--ls-teal);
  border-radius: var(--ls-radius);
  box-shadow: var(--ls-shadow);
}

.sectors-section h3 {
  font-size: clamp(1.1rem, 1.2vw + 0.9rem, 1.4rem);
  color: var(--ls-teal);
  margin-bottom: 1rem;
}

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

.sector-item {
  flex: 1 1 calc(33.333% - 1rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  padding: 0.75rem 0.5rem;
  background: var(--ls-bg);
  border: 1px solid var(--ls-border);
  border-radius: var(--ls-radius);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ls-text);
}

.sector-icon {
  font-size: 1.5rem;
}

/* ── Exclusions ─────────────────────────────────────────────── */
.exclusions {
  background: #fff8f0;
  border: 1px solid #f0d5b0;
  border-radius: var(--ls-radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.exclusions h3 {
  color: #7a4f00;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.exclusions p {
  font-size: 0.92rem;
  color: #5a3a00;
  margin-bottom: 0.5rem;
}

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

.exclusions a {
  color: var(--ls-link);
}

.exclusions .btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-bottom: 0.25rem;
}

.exclusions .btn-group .btn {
  color: #fff;
}

/* ── Footer inner container ─────────────────────────────────── */
.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
}

/* ── Skip link ──────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: -999rem;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--ls-navy, #232833);
  color: #fff;
  z-index: 2000;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* ── Services page intro grid ─────────────────────────────── */
.svc-intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (min-width: 40rem) {
  .svc-intro-grid {
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
  }
}

.svc-intro-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.svc-intro-text .think-first {
  margin-top: 0.5rem;
}

.page-lead--wide {
  max-width: 100%;
}
