/* ============================================================
   2026 Update — Supplemental Styles
   Loads AFTER site.css. Only new rules; no overrides of base.
   ============================================================ */

/* ----------------------------------------------------------
   SUPPLEMENTAL DESIGN TOKENS
   Extends :root variables from site.css with 2026-specific values.
   ---------------------------------------------------------- */
:root {
  --industry-blue: #3b7dd8;
  --tier-purple: #6c3baa;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
}

/* ----------------------------------------------------------
   NAV LAYOUT OVERRIDES
   ---------------------------------------------------------- */

/* Ensure gap between logo and first nav item on all pages */
.agensy-logo {
  margin-right: 2rem;
  flex-shrink: 0;
}

/* Evenly space all nav items */
.nav-links {
  grid-column-gap: 0.25rem;
  align-items: center;
}

/* Prevent nav items from wrapping */
.nav-link.w-nav-link {
  white-space: nowrap;
  padding: 0.75rem 0;
  flex-shrink: 0;
}

/* Prevent button text wrapping */
.nav-menu .consultation-btn {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Consistent Login button styling */
.nav-menu .log-in {
  white-space: nowrap;
  flex-shrink: 0;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

/* ----------------------------------------------------------
   MEGA-MENU PANELS
   ---------------------------------------------------------- */

/* Wrapper mirrors .nav-menu-dropdown / .w-dropdown */
.mega-menu-wrapper {
  display: inline-block;
  position: relative;
  text-align: left;
  z-index: 900;
}

/* Trigger mirrors .nav-menu-drop-togle / .w-dropdown-toggle */
.mega-menu-trigger {
  color: var(--2d2d2d);
  padding: 0;
  padding-right: 1.75rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  user-select: none;
  min-height: 2.75rem;
  vertical-align: top;
  text-decoration: none;
  white-space: nowrap;
}

/* Arrow icon inside mega trigger — matches .w-icon-dropdown-toggle */
.mega-menu-trigger .w-icon-dropdown-toggle {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  margin-right: 0.625rem;
  width: 1em;
  height: 1em;
}

.mega-menu-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--e3e3e3);
  border-radius: 0.75rem;
  padding: 2rem 2.5rem;
  z-index: 999;
  box-shadow: var(--shadow-lg);
  min-width: 36rem;
  margin-top: 0.75rem;
}

.mega-menu-panel.is-open {
  display: flex;
}

/* Challenges mega — single column */
.mega-menu-challenges {
  min-width: 18rem;
}

/* Frameworks mega — single column */
.mega-menu-frameworks {
  min-width: 16rem;
}

/* Impact Studies mega — single column */
.mega-menu-impact {
  min-width: 20rem;
}

/* Offerings mega — two columns */
.mega-menu-offerings {
  gap: 2.5rem;
  min-width: 40rem;
}

/* Platform mega — three columns */
.mega-menu-platform {
  gap: 2rem;
  min-width: 48rem;
}

/* ----------------------------------------------------------
   MEGA-MENU COLUMNS & LINKS
   ---------------------------------------------------------- */
.mega-col {
  flex: 1;
  min-width: 0;
}

.mega-col-header {
  font-family: var(--heading-font);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--8e8e8e);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--e3e3e3);
}

.mega-col-divider {
  width: 1px;
  background: var(--e3e3e3);
  align-self: stretch;
}

.mega-link {
  display: block;
  padding: 0.5rem 0.75rem;
  margin: 0 -0.75rem;
  border-radius: 0.375rem;
  color: var(--2d2d2d);
  font-size: 0.9375rem;
  font-family: var(--main-body-font);
  line-height: 1.4;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.mega-link:hover {
  background: var(--f2f2f2);
  color: var(--cd385d);
}

.mega-link:focus-visible {
  outline: 2px solid var(--cd385d);
  outline-offset: 2px;
}

/* ----------------------------------------------------------
   CROSS-LINK COMPONENTS
   ---------------------------------------------------------- */
.cross-link-sc {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.cross-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 1.5rem;
}

.cross-link-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.125rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-family: var(--main-body-font);
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  color: var(--2d2d2d);
  background: #fff;
  border: 1px solid var(--e3e3e3);
  border-left: 3px solid var(--d9d9d9);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.cross-link-pill:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--cd385d);
}

/* Type-colored left borders */
.cross-link-pill--framework { border-left-color: var(--cd385d); }
.cross-link-pill--challenge { border-left-color: var(--2d2d2d); }
.cross-link-pill--platform  { border-left-color: var(--8e8e8e); }
.cross-link-pill--industry  { border-left-color: var(--industry-blue); }
.cross-link-pill--tier      { border-left-color: var(--tier-purple); }

.cross-link-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.cross-link-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid var(--e3e3e3);
  text-decoration: none;
  color: var(--2d2d2d);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.cross-link-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.cross-link-card-title {
  font-family: var(--heading-font);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.cross-link-card-desc {
  font-size: 0.875rem;
  color: var(--8e8e8e);
  line-height: 1.5;
}

/* ----------------------------------------------------------
   PLATFORM BADGES
   ---------------------------------------------------------- */
.platform-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 1rem;
  border-radius: 2rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.platform-badge--agency-operated {
  background: var(--2d2d2d);
  color: #fff;
}

.platform-badge--client-facing {
  background: var(--cd385d);
  color: #fff;
}

.platform-badge--integration {
  background: var(--f2f2f2);
  color: var(--2d2d2d);
  border: 1px solid var(--e3e3e3);
}

/* ----------------------------------------------------------
   NEW HERO VARIANTS
   ---------------------------------------------------------- */
.challenge-hero-2026,
.framework-hero-sc,
.tier-hero-sc,
.industry-hero-sc,
.platform-hero-sc {
  padding-top: 10rem;
  padding-bottom: 5rem;
}

.tier-hero-sc {
  min-height: 70vh;
  display: flex;
  align-items: center;
}

/* Hero tag / label */
.hero-tag {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: 2rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--f2f2f2);
  color: var(--8e8e8e);
  border: 1px solid var(--e3e3e3);
  margin-bottom: 1.5rem;
}

.hero-tag--challenge { border-color: var(--2d2d2d); color: var(--2d2d2d); }
.hero-tag--framework { border-color: var(--cd385d); color: var(--cd385d); }
.hero-tag--tier      { border-color: var(--tier-purple); color: var(--tier-purple); }
.hero-tag--industry  { border-color: var(--industry-blue); color: var(--industry-blue); }
.hero-tag--platform  { border-color: var(--8e8e8e); }

/* ----------------------------------------------------------
   SECTION PATTERNS
   ---------------------------------------------------------- */
.section-2026 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.section-2026--alt {
  background: #fff;
}

.section-heading {
  font-family: var(--heading-font);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--2d2d2d);
  margin-bottom: 1.5rem;
}

.section-subheading {
  font-size: 1.125rem;
  color: var(--8e8e8e);
  line-height: 1.6;
  max-width: 40rem;
  margin-bottom: 2rem;
}

/* ----------------------------------------------------------
   STATS GRID (tier pages)
   ---------------------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--heading-font);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--cd385d);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--8e8e8e);
  margin-top: 0.375rem;
}

/* ----------------------------------------------------------
   FEATURE GRID (tier pages — "What You Get")
   ---------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.feature-item {
  padding: 2rem;
  background: #fff;
  border-radius: 0.75rem;
  border: 1px solid var(--e3e3e3);
}

.feature-item-title {
  font-family: var(--heading-font);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--2d2d2d);
  margin-bottom: 0.75rem;
}

.feature-item-desc {
  font-size: 0.9375rem;
  color: var(--3b3b3b);
  line-height: 1.6;
}

/* ----------------------------------------------------------
   SHARED CTA SECTION
   ---------------------------------------------------------- */
.cta-sc {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.cta-content {
  background: var(--2d2d2d);
  border-radius: 1rem;
  padding: 5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-content .heading-h2 {
  color: #fff;
}

.cta-content .text-s16 {
  color: rgba(255, 255, 255, 0.7);
}

/* ----------------------------------------------------------
   POSITIONING SECTION
   ---------------------------------------------------------- */
.positioning-sc {
  padding-top: 4rem;
  padding-bottom: 4rem;
  border-top: 1px solid var(--e3e3e3);
}

.positioning-statement {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--2d2d2d);
  max-width: 48rem;
}

.brand-callout {
  margin-top: 2rem;
  padding: 1.5rem 2rem;
  background: var(--f2f2f2);
  border-radius: 0.75rem;
  border-left: 3px solid var(--cd385d);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--3b3b3b);
}

/* ----------------------------------------------------------
   INDUSTRY STAGE CARDS
   ---------------------------------------------------------- */
.stage-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.stage-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid var(--e3e3e3);
  text-decoration: none;
  color: var(--2d2d2d);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.stage-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stage-card-title {
  font-family: var(--heading-font);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.stage-card-desc {
  font-size: 0.9375rem;
  color: var(--8e8e8e);
  line-height: 1.5;
  flex: 1;
}

.stage-card-cta {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cd385d);
}

/* ----------------------------------------------------------
   CAPABILITY LIST (platform pages)
   ---------------------------------------------------------- */
.capability-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

.capability-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--e3e3e3);
  font-size: 1rem;
  line-height: 1.6;
}

.capability-list li:last-child {
  border-bottom: none;
}

.capability-list li strong {
  font-family: var(--heading-font);
  font-weight: 500;
  color: var(--2d2d2d);
}

/* ----------------------------------------------------------
   RESPONSIVE — 991px (tablet)
   ---------------------------------------------------------- */
@media screen and (max-width: 991px) {
  .mega-menu-wrapper {
    display: block;
    width: 100%;
  }

  .mega-menu-trigger {
    width: 100%;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .mega-menu-panel {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    min-width: 0;
    max-height: none;
    overflow-y: visible;
    flex-direction: column;
    border-radius: 0;
    margin-top: 0;
    box-shadow: none;
    border: none;
    border-top: 1px solid var(--e3e3e3);
    padding: 1rem 1rem 1rem 1.5rem;
  }

  .mega-menu-offerings,
  .mega-menu-platform {
    flex-direction: column;
    min-width: 0;
    gap: 1.5rem;
  }

  .mega-col-divider {
    width: 100%;
    height: 1px;
  }

  .challenge-hero-2026,
  .framework-hero-sc,
  .tier-hero-sc,
  .industry-hero-sc,
  .platform-hero-sc {
    padding-top: 8rem;
    padding-bottom: 3.5rem;
  }

  .tier-hero-sc {
    min-height: auto;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

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

  .cross-link-cards {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-block {
    gap: 0;
  }

  .footer-link {
    margin-top: 0;
    margin-bottom: 0;
    padding: 0.375rem 0;
  }

  .footer-content {
    margin-top: 1.5rem;
  }

  .footer-divider {
    margin-top: 1.5rem;
  }
}

/* ----------------------------------------------------------
   RESPONSIVE — 767px (mobile landscape)
   ---------------------------------------------------------- */
@media screen and (max-width: 767px) {
  .challenge-hero-2026,
  .framework-hero-sc,
  .tier-hero-sc,
  .industry-hero-sc,
  .platform-hero-sc {
    padding-top: 8rem;
    padding-bottom: 3rem;
  }

  .section-2026 {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .cross-link-sc {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .cta-content {
    padding: 3.5rem 1.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cross-link-cards {
    grid-template-columns: 1fr;
  }

  .positioning-statement {
    font-size: 1.25rem;
  }

  .section-heading {
    font-size: 1.75rem;
  }

  .step-item {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ----------------------------------------------------------
   RESPONSIVE — 479px (mobile portrait)
   ---------------------------------------------------------- */
@media screen and (max-width: 479px) {
  .challenge-hero-2026,
  .framework-hero-sc,
  .tier-hero-sc,
  .industry-hero-sc,
  .platform-hero-sc {
    padding-top: 7.5rem;
    padding-bottom: 2rem;
  }

  .section-2026 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .mega-menu-panel {
    padding: 1.25rem;
  }

  .cross-link-pill {
    font-size: 0.8125rem;
    padding: 0.375rem 0.875rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .cta-content {
    padding: 2.5rem 1.25rem;
  }

  .brand-callout {
    padding: 1rem 1.25rem;
  }

  .footer-block {
    gap: 0;
  }

  .footer-link {
    padding: 0.25rem 0;
  }

  .footer-content {
    margin-top: 1rem;
  }
}

/* ----------------------------------------------------------
   HOMEPAGE CAROUSEL
   ---------------------------------------------------------- */
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.carousel-wrapper {
  overflow: hidden;
}

.carousel-logos {
  display: flex;
  align-items: center;
  gap: 3rem;
  animation: scroll 41s linear infinite;
  will-change: transform;
  width: max-content;
}

.carousel-logo {
  flex-shrink: 0;
}

.carousel-wrapper:hover .carousel-logos {
  animation-play-state: paused;
}

/* ----------------------------------------------------------
   HOMEPAGE SPACING OVERRIDES
   ---------------------------------------------------------- */
.padding-60--no-mobile {
  padding-top: 0;
}

@media (min-width: 992px) {
  .padding-60--no-mobile {
    padding-top: 3.75rem;
  }
}

.rated-labels-wrapper {
  margin-bottom: 0;
}

@media (min-width: 992px) {
  .rated-labels-wrapper {
    margin-bottom: 2.5rem;
  }
}

/* ----------------------------------------------------------
   ACCESSIBILITY HARDENING
   ---------------------------------------------------------- */

/* Skip-to-content link — visible only on focus */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.5rem;
  background: var(--cd385d);
  color: #fff;
  font-family: var(--main-body-font);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 0.5rem 0.5rem;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid var(--2d2d2d);
  outline-offset: 2px;
}

/* Visible focus indicators for mega-menu triggers */
.mega-menu-trigger:focus-visible {
  outline: 2px solid var(--cd385d);
  outline-offset: 2px;
  border-radius: 0.25rem;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
