/* KOSCA Distribution — Services Page Styles */

/* ============================================================
   PAGE HERO — Services
============================================================ */

.services-hero {
  background: var(--gradient-jewel);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: var(--space-16) 0 var(--space-12);
  position: relative;
  overflow: hidden;
}

.services-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 200, 121, 0.10) 0%, transparent 70%);
  pointer-events: none;
}

.services-hero::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 30%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.services-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.services-hero__breadcrumb {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: var(--space-4);
}

.services-hero__breadcrumb a {
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition-fast);
}

.services-hero__breadcrumb a:hover {
  color: var(--color-gold-light);
}

.services-hero__breadcrumb span {
  margin: 0 var(--space-2);
  opacity: 0.5;
}

.services-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-bottom: var(--space-4);
}

.services-hero__eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-gold-light);
  border-radius: 2px;
}

.services-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.75rem);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-surface);
  margin-bottom: var(--space-5);
}

.services-hero__title em {
  font-style: italic;
  color: var(--color-gold-light);
}

.services-hero__subtitle {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: rgba(255, 255, 255, 0.78);
  max-width: 520px;
  margin-bottom: var(--space-8);
}

.services-hero__meta {
  display: flex;
  gap: var(--space-8);
}

.services-hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.services-hero__meta-number {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--color-gold-light);
  line-height: 1;
}

.services-hero__meta-label {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

/* Hero right side — capability rows (icon | text | chevron) */
.services-hero__grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.services-hero__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  transition: box-shadow var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
}

.services-hero__card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold);
  transform: translateX(2px);
}

.services-hero__card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-brand-primary-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand-primary);
  flex-shrink: 0;
}

.services-hero__card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.services-hero__card-name {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  line-height: var(--leading-snug);
}

.services-hero__card-desc {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  line-height: var(--leading-normal);
}

.services-hero__card-arrow {
  color: var(--color-text-tertiary);
  flex-shrink: 0;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.services-hero__card:hover .services-hero__card-arrow {
  color: var(--color-gold-deep);
  transform: translateX(3px);
}

/* ============================================================
   STICKY SUB-NAV
============================================================ */

.services-subnav {
  position: sticky;
  top: var(--nav-height);
  z-index: var(--z-raised);
  background: var(--color-champagne);
  border-bottom: 1px solid var(--color-gold-faint);
  box-shadow: var(--shadow-xs);
}

.services-subnav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.services-subnav__tabs {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
}

.services-subnav__tabs::-webkit-scrollbar {
  display: none;
}

.services-subnav__tab {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  margin: var(--space-2) var(--space-1);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background var(--transition-fast);
  text-decoration: none;
  position: relative;
}

.services-subnav__tab:hover {
  background: var(--color-gold-light);
  color: var(--color-brand-primary);
}

.services-subnav__tab.is-active {
  background: var(--color-brand-primary);
  color: var(--color-gold-light);
  border-bottom-color: transparent;
  font-weight: var(--weight-semibold);
}

.services-subnav__tab-icon {
  width: 18px;
  height: 18px;
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}

.services-subnav__tab.is-active .services-subnav__tab-icon,
.services-subnav__tab:hover .services-subnav__tab-icon {
  opacity: 1;
}

.services-subnav__cta .btn--primary {
  color: var(--color-gold-light);
}

.services-subnav__cta {
  flex-shrink: 0;
  padding-left: var(--space-6);
  border-left: 1px solid var(--color-border);
}

/* ============================================================
   SERVICES OVERVIEW INTRO
============================================================ */

/* "Our Approach" — matches the About "Who We Are" colouring: transparent so the
   warm base + blooms show through, with a gold-deep eyebrow on the light wash. */
.services-intro {
  padding: var(--space-16) 0 var(--space-12);
  background: transparent;
}

.services-intro .section-label {
  color: var(--color-gold-deep);
}

.services-intro__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.services-intro__text {
  max-width: 560px;
}

.services-intro__pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

/* Jewel pillar cards — same deep-indigo treatment as the About/home stat cards
   (plum bloom + gold hairline + gold title), the established look for cards on a
   light section. */
.services-intro__pillar {
  position: relative;
  padding: var(--space-5);
  border: 1px solid rgba(201, 162, 75, 0.22);
  border-radius: var(--radius-lg);
  background: var(--gradient-jewel-plum);
  box-shadow: 0 12px 32px rgba(43, 38, 96, 0.28);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

/* Gold hairline across the top — matches the stat cards. */
.services-intro__pillar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.services-intro__pillar:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(43, 38, 96, 0.34);
}

/* Solid gold gradient tile with an indigo glyph — matches the About overview
   pill icons (the gold-tile treatment for icons on a jewel surface). */
.services-intro__pillar-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #fff8ee 0%, #e8c97a 50%, #b8820f 100%);
  border: 1px solid rgba(201, 162, 75, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand-primary);
  box-shadow: 0 4px 12px rgba(43, 38, 96, 0.25);
  margin-bottom: var(--space-3);
}

.services-intro__pillar-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-gold-light);
  margin-bottom: var(--space-1);
}

.services-intro__pillar-text {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.78);
  line-height: var(--leading-relaxed);
}

/* ============================================================
   SERVICE SECTIONS — Shared
============================================================ */

.service-section {
  padding: var(--space-20) 0;
  position: relative;
  overflow: hidden;
}

.service-section:nth-child(even) {
  background: var(--color-surface-alt);
}

.service-section:nth-child(odd) {
  background: var(--color-surface);
}

/* Large decorative number/ordinal */
.service-section__ordinal {
  position: absolute;
  top: -20px;
  right: 0;
  font-family: var(--font-heading);
  font-size: clamp(8rem, 15vw, 14rem);
  font-weight: var(--weight-black);
  color: var(--color-brand-primary);
  opacity: 0.04;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: var(--tracking-tight);
}

.service-section__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
  position: relative;
  z-index: 1;
}

/* Flip every other section */
.service-section:nth-child(even) .service-section__layout {
  direction: rtl;
}

.service-section:nth-child(even) .service-section__layout > * {
  direction: ltr;
}

/* Left column — identity */
.service-section__identity {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  position: relative;
}

.service-section__icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-xl);
  background: var(--color-brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 24px rgba(61, 54, 128, 0.25);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.service-section__identity:hover .service-section__icon-wrap {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(61, 54, 128, 0.3);
}

.service-section__number-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-brand-primary);
}

.service-section__number-tag::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-brand-primary);
  border-radius: 2px;
}

.service-section__name {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

.service-section__tagline {
  font-size: var(--text-md);
  font-style: italic;
  color: var(--color-brand-primary-light);
  line-height: var(--leading-snug);
}

.service-section__overview {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.service-section__tools {
  padding: var(--space-4) var(--space-5);
  background: var(--color-brand-primary-faint);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-strong);
}

.service-section__tools-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-brand-primary);
  margin-bottom: var(--space-2);
}

.service-section__tools-list {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.service-section__cta {
  margin-top: var(--space-2);
}

/* Right column — detail */
.service-section__detail {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

/* What KOSCA does */
.service-section__does {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}

.service-section__does-title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-brand-primary);
  margin-bottom: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.service-section__does-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.service-section__does-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: 0;
  margin: 0;
}

.service-section__does-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  line-height: var(--leading-relaxed);
}

.service-section__does-list li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-brand-primary);
  margin-top: 7px;
  flex-shrink: 0;
}

/* Benefit cards */
.service-section__benefits-title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-4);
}

.service-section__benefit-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.benefit-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: box-shadow var(--transition-base), transform var(--transition-base), border-color var(--transition-base);
}

.benefit-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--color-brand-primary-light);
}

.benefit-card__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--color-brand-primary-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand-primary);
  flex-shrink: 0;
}

.benefit-card__title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  line-height: var(--leading-snug);
}

.benefit-card__text {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* ------------------------------------------------------------
   .service-section--light — matches the "Our Approach" colouring:
   transparent so the warm base + blooms show through, with a gold-deep
   number tag (the eyebrow equivalent). Wins over the :nth-child(odd/even)
   backgrounds via the compound selector. Opt-in per section.
------------------------------------------------------------ */
.service-section.service-section--light {
  background: transparent;
}

.service-section--light .service-section__number-tag,
.service-section--light .service-section__number-tag::before {
  color: var(--color-gold-deep);
}

.service-section--light .service-section__number-tag::before {
  background: var(--color-gold-deep);
}

/* Clean light tools panel (the base faint-indigo wash reads as lavender on the
   transparent section). */
.service-section--light .service-section__tools {
  background: var(--color-surface);
  border-color: var(--color-border);
}

.service-section--light .service-section__benefits-title {
  color: var(--color-brand-primary);
}

/* Gold label on the indigo CTA button. */
.service-section--light .service-section__cta .btn--primary {
  color: var(--color-gold-light);
}

/* ------------------------------------------------------------
   .service-section--indigo — drenched indigo variant of a service
   section. Swaps the light surface for the jewel ground and flips
   every child light, with gold accents and translucent glass panels.
   Wins over the :nth-child(odd/even) backgrounds via the compound
   selector. Opt-in per section.
------------------------------------------------------------ */
.service-section.service-section--indigo {
  background: var(--gradient-jewel);
}

.service-section--indigo .service-section__ordinal {
  color: #fff;
  opacity: 0.06;
}

/* Solid gold tile with indigo glyph — the established gold-tile treatment. */
/* Same gold tile as the "Our Approach" pillar icons (matched exactly).
   Uses !important to beat the global jewel-tile standardizer in global.css
   (which forces .service-section__icon-wrap to an indigo tile + gold glyph). */
.service-section--indigo .service-section__icon-wrap {
  background: linear-gradient(135deg, #fff8ee 0%, #e8c97a 50%, #b8820f 100%) !important;
  border: 1px solid rgba(201, 162, 75, 0.35);
  color: var(--color-brand-primary) !important;
  box-shadow: 0 4px 12px rgba(43, 38, 96, 0.25);
}

.service-section--indigo .service-section__icon-wrap svg {
  color: var(--color-brand-primary) !important;
}

.service-section--indigo .service-section__number-tag,
.service-section--indigo .service-section__number-tag::before {
  color: var(--color-gold-light);
}

.service-section--indigo .service-section__number-tag::before {
  background: var(--color-gold-light);
}

.service-section--indigo .service-section__name {
  color: var(--color-surface);
}

.service-section--indigo .service-section__tagline {
  color: var(--color-gold-light);
}

.service-section--indigo .service-section__overview {
  color: rgba(255, 255, 255, 0.78);
}

/* Solid light tools panel on the jewel ground (dark section → light boxes). */
.service-section--indigo .service-section__tools {
  background: var(--color-surface);
  border-color: var(--color-border);
}

/* The tools-label, tools-list, does-title, does bullets and benefit text all
   keep their light-section defaults (indigo label, dark body) — they now sit
   on light boxes, so no overrides needed. */

/* "What KOSCA Does" — solid light card. */
.service-section--indigo .service-section__does {
  background: var(--color-surface);
  border-color: var(--color-border);
  box-shadow: 0 12px 32px rgba(43, 38, 96, 0.28);
}

/* "How It Benefits Partners" — gold label on the indigo ground (the only gold
   header here; the two inside light boxes stay indigo). */
.service-section--indigo .service-section__benefits-title {
  color: var(--color-gold-light);
  font-weight: var(--weight-bold);
}

/* Bold the box headers too. */
.service-section--indigo .service-section__does-title,
.service-section--indigo .service-section__tools-label {
  font-weight: var(--weight-bold);
}

/* Benefit cards — solid light boxes with the default indigo icon tiles. */
.service-section--indigo .benefit-card {
  background: var(--color-surface);
  border-color: var(--color-border);
}

.service-section--indigo .benefit-card:hover {
  box-shadow: 0 12px 28px rgba(43, 38, 96, 0.32);
  border-color: var(--color-gold);
}

/* CTA reads as gold on the indigo ground (the indigo-fill primary would vanish). */
.service-section--indigo .service-section__cta .btn--primary {
  background-color: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-brand-primary-dark);
}

.service-section--indigo .service-section__cta .btn--primary:hover {
  background-color: var(--color-gold-light);
  border-color: var(--color-gold-light);
}

/* ------------------------------------------------------------
   .service-section--dark-cards — light section bg, but inner boxes
   (tools, does, benefit cards) use the indigo jewel treatment:
   indigo fill, white text, gold bullets, gold-tile icons.
------------------------------------------------------------ */
/* Identity icon: indigo tile with gold glyph (light section default) */

.service-section--dark-cards .service-section__tools {
  background: var(--gradient-jewel);
  border-color: rgba(255,255,255,0.12);
}
.service-section--dark-cards .service-section__tools-label {
  color: var(--color-gold-light);
  font-weight: var(--weight-bold);
}
.service-section--dark-cards .service-section__tools-list {
  color: rgba(255,255,255,0.82);
}

.service-section--dark-cards .service-section__does {
  background: var(--gradient-jewel);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 12px 32px rgba(43, 38, 96, 0.28);
}
.service-section--dark-cards .service-section__does-title {
  color: var(--color-gold-light);
  font-weight: var(--weight-bold);
}
.service-section--dark-cards .service-section__does-title::after {
  background: rgba(255,255,255,0.15);
}
.service-section--dark-cards .service-section__does-list li {
  color: rgba(255,255,255,0.85);
}
.service-section--dark-cards .service-section__does-list li::before {
  background: var(--color-gold);
}

.service-section--dark-cards .service-section__benefits-title {
  color: var(--color-brand-primary);
  font-weight: var(--weight-bold);
}

.service-section--dark-cards .benefit-card {
  background: var(--gradient-jewel);
  border-color: rgba(255,255,255,0.12);
}
.service-section--dark-cards .benefit-card:hover {
  box-shadow: 0 12px 28px rgba(43, 38, 96, 0.32);
  border-color: var(--color-gold);
}
.service-section--dark-cards .benefit-card__icon {
  background: linear-gradient(135deg, #fff8ee 0%, #e8c97a 50%, #b8820f 100%) !important;
  border: 1px solid rgba(201, 162, 75, 0.35);
  color: var(--color-brand-primary) !important;
}
.service-section--dark-cards .benefit-card__icon svg {
  color: var(--color-brand-primary) !important;
  stroke: var(--color-brand-primary) !important;
}
.service-section--dark-cards .benefit-card__title {
  color: #fff;
}
.service-section--dark-cards .benefit-card__text {
  color: rgba(255,255,255,0.75);
}

/* Divider between sections */
.service-section + .service-section {
  border-top: 1px solid var(--color-border);
}

.service-section--indigo + .service-section,
.service-section + .service-section--indigo {
  border-top-color: rgba(255, 255, 255, 0.12);
}

/* ============================================================
   INDUSTRIES SERVED
============================================================ */

.industries-section {
  padding: var(--space-16) 0;
  /* background comes from the .section--champagne utility — light warm wash,
     matching the Education & Training (service-section--light) colouring. */
  border-top: 1px solid var(--color-border);
}

.industries-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.industry-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, 0.10) 0%, transparent 55%),
    linear-gradient(160deg, var(--color-brand-primary) 0%, var(--color-brand-primary-dark) 100%);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: #fff;
  transition: all var(--transition-base);
  cursor: default;
}

.industry-tag:hover {
  border-color: var(--color-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 12, 45, 0.30);
}

.industry-tag__icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(201, 162, 75, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  transition: background var(--transition-fast);
}

.industry-tag:hover .industry-tag__icon {
  background: rgba(255, 255, 255, 0.20);
}

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 1024px) {
  .services-hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .services-intro__inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .services-intro__text {
    max-width: 100%;
  }

  .service-section__layout {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .service-section:nth-child(even) .service-section__layout {
    direction: ltr;
  }

  .service-section__benefit-cards {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .services-hero {
    padding: var(--space-10) 0 var(--space-8);
  }

  .services-hero__meta {
    gap: var(--space-6);
  }

  .services-subnav__tab {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-xs);
  }

  .services-subnav__cta {
    display: none;
  }

  .service-section {
    padding: var(--space-12) 0;
  }

  .service-section__ordinal {
    font-size: 6rem;
    opacity: 0.03;
  }

  .service-section__name {
    font-size: var(--text-2xl);
  }

  .service-section__benefit-cards {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .services-intro__pillars {
    grid-template-columns: 1fr 1fr;
  }

  .industries-grid {
    gap: var(--space-2);
  }
}

@media (max-width: 480px) {
  .services-hero__meta {
    flex-wrap: wrap;
    gap: var(--space-5);
  }

  .service-section__does {
    padding: var(--space-5);
  }

  .services-intro__pillars {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   REVEAL ANIMATION OVERRIDES
============================================================ */

/* Gated behind html.js-anim — see global.css. Visible by default without JS. */
.js-anim .service-section .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.js-anim .service-section .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js-anim .benefit-card.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js-anim .benefit-card.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   REDUCED MOTION
============================================================ */

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .service-section .reveal,
  .benefit-card.reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .services-hero__card,
  .benefit-card,
  .industry-tag {
    transition: none;
  }
}


/* ============================================================
   WHY BRANDS CHOOSE KOSCA — Service-section treatment with a 2x2
   benefit grid (four advantages instead of Service 05's three).
============================================================ */

#why-kosca .service-section__benefit-cards {
  grid-template-columns: repeat(2, 1fr);
}

/* Center the 2x2 card block against the taller identity column so it isn't
   top-heavy (the numbered services use top-align for their bullet lists). */
#why-kosca .service-section__layout {
  align-items: center;
}

@media (max-width: 1100px) {
  #why-kosca .service-section__benefit-cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  #why-kosca .service-section__benefit-cards {
    grid-template-columns: 1fr;
  }
}
