/* ==========================================================================
   3Lions.ca — Reusable Components
   Buttons, Cards, Section Headers, Heroes, Grids, Dividers, Reveals, etc.
   Every value references tokens.css via var().
   ========================================================================== */

/* ================================================================
   SECTION BACKGROUND TEXTURES
   ================================================================ */

/* ----------------------------------------------------------------
   Dot Grid Pattern — For off-white alternating sections
   Add .section--dotted to any section with position: relative
   ---------------------------------------------------------------- */
.section--dotted {
  position: relative;
}

.section--dotted::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(1, 33, 105, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

.section--dotted > * {
  position: relative;
  z-index: 1;
}

/* ----------------------------------------------------------------
   Diagonal Lines Pattern — Subtle alternative texture
   Add .section--lined to any section with position: relative
   ---------------------------------------------------------------- */
.section--lined {
  position: relative;
}

.section--lined::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(1, 33, 105, 0.03) 10px,
    rgba(1, 33, 105, 0.03) 11px
  );
  pointer-events: none;
  z-index: 0;
}

.section--lined > * {
  position: relative;
  z-index: 1;
}

/* ----------------------------------------------------------------
   ::after variants — Use when ::before is already occupied
   ---------------------------------------------------------------- */
.section--dotted-after {
  position: relative;
}

.section--dotted-after::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(1, 33, 105, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

.section--lined-after {
  position: relative;
}

.section--lined-after::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(1, 33, 105, 0.03) 10px,
    rgba(1, 33, 105, 0.03) 11px
  );
  pointer-events: none;
  z-index: 0;
}


/* ================================================================
   BUTTONS
   ================================================================ */

/* ----------------------------------------------------------------
   Base Button
   ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-primary);
  font-weight: var(--fw-bold);
  font-size: var(--fs-button);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-xl);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--duration-normal) var(--ease-default),
              color var(--duration-normal) var(--ease-default),
              border-color var(--duration-normal) var(--ease-default),
              transform var(--duration-fast) var(--ease-default),
              box-shadow var(--duration-normal) var(--ease-default);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

/* ----------------------------------------------------------------
   Button Primary — Red CTA
   ---------------------------------------------------------------- */
.btn-primary {
  background-color: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
}

.btn-primary:hover {
  background-color: var(--color-red-hover);
  border-color: var(--color-red-hover);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(207, 8, 31, 0.3);
}

.btn-primary:active {
  background-color: var(--color-red-hover);
}

/* ----------------------------------------------------------------
   Button Secondary — Navy Outline
   ---------------------------------------------------------------- */
.btn-secondary {
  background-color: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.btn-secondary:hover {
  background-color: var(--color-navy);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(1, 33, 105, 0.2);
}

.btn-secondary:active {
  background-color: var(--color-navy-dark);
}

/* ----------------------------------------------------------------
   Button Ghost — Transparent for Dark Backgrounds
   ---------------------------------------------------------------- */
.btn-ghost {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.1);
}

.btn-ghost:active {
  background-color: rgba(255, 255, 255, 0.2);
}

/* ----------------------------------------------------------------
   Button Sizes
   ---------------------------------------------------------------- */
.btn-sm {
  font-size: var(--fs-small);
  padding: var(--space-sm) var(--space-lg);
}

.btn-lg {
  font-size: var(--fs-body);
  padding: var(--space-lg) var(--space-2xl);
}

/* ----------------------------------------------------------------
   Button with Icon
   ---------------------------------------------------------------- */
.btn-icon svg,
.btn-icon img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform var(--duration-fast) var(--ease-default);
}

.btn-icon:hover svg,
.btn-icon:hover img {
  transform: translateX(3px);
}

/* Arrow icon that appears after text */
.btn .btn-arrow {
  width: 16px;
  height: 16px;
  transition: transform var(--duration-fast) var(--ease-default);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}


/* ================================================================
   CARDS
   ================================================================ */

/* ----------------------------------------------------------------
   Base Card
   ---------------------------------------------------------------- */
.card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease,
              box-shadow 0.3s ease,
              border-color 0.3s ease;
  overflow: hidden;
  position: relative;
  border-top: 3px solid transparent;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(1, 33, 105, 0.12);
  border-top-color: var(--color-red);
}

/* Universal card hover for any element matching *-card pattern */
[class*="-card"]:not(.card):not(.team-card):not(.case-study-card):not(.value-card):not(.hub-related-card) {
  transition: transform 0.3s ease,
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}

.card-body {
  padding: var(--space-xl);
}

/* ----------------------------------------------------------------
   Card: Service Hub — Icon + Title + Count + Description + Arrow
   ---------------------------------------------------------------- */
.card-service-hub {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-xl);
}

.card-service-hub .card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-off-white);
  border-radius: var(--radius-md);
  color: var(--color-navy);
  transition: background-color var(--duration-normal) var(--ease-default),
              color var(--duration-normal) var(--ease-default);
}

.card-service-hub .card-icon svg {
  width: 24px;
  height: 24px;
}

.card:hover .card-service-hub .card-icon {
  background-color: var(--color-navy);
  color: var(--color-white);
}

.card-service-hub .card-title {
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  color: var(--color-navy);
  margin: 0;
}

.card-service-hub .card-count {
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--color-red);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}

.card-service-hub .card-desc {
  font-size: var(--fs-small);
  color: var(--color-text-light);
  line-height: var(--lh-body);
  margin: 0;
}

.card-service-hub .card-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  color: var(--color-navy);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  margin-top: auto;
  transition: gap var(--duration-fast) var(--ease-default);
}

.card-service-hub .card-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform var(--duration-fast) var(--ease-default);
}

.card:hover .card-service-hub .card-arrow svg {
  transform: translateX(4px);
}

/* ----------------------------------------------------------------
   Card: Service Detail — Compact for Directory Grids
   ---------------------------------------------------------------- */
.card-service-detail {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
}

.card-service-detail .card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-off-white);
  border-radius: var(--radius-sm);
  color: var(--color-navy);
  flex-shrink: 0;
}

.card-service-detail .card-icon svg {
  width: 20px;
  height: 20px;
}

.card-service-detail .card-content {
  flex: 1;
  min-width: 0;
}

.card-service-detail .card-title {
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  color: var(--color-navy);
  margin: 0;
}

.card-service-detail .card-desc {
  font-size: var(--fs-small);
  color: var(--color-text-light);
  margin: var(--space-2xs) 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-service-detail .card-chevron {
  width: 20px;
  height: 20px;
  color: var(--color-gray-300);
  flex-shrink: 0;
  transition: color var(--duration-fast) var(--ease-default),
              transform var(--duration-fast) var(--ease-default);
}

.card:hover .card-service-detail .card-chevron {
  color: var(--color-navy);
  transform: translateX(3px);
}

/* ----------------------------------------------------------------
   Card: Testimonial — Quote + Attribution + Photo
   ---------------------------------------------------------------- */
.card-testimonial {
  padding: var(--space-2xl);
  position: relative;
}

/* Decorative large quote mark */
.card-testimonial::before {
  content: '\201C';
  position: absolute;
  top: var(--space-md);
  left: var(--space-xl);
  font-size: 5rem;
  font-weight: var(--fw-black);
  color: var(--color-red);
  opacity: 0.15;
  line-height: 1;
  pointer-events: none;
}

.card-testimonial .testimonial-quote {
  font-size: var(--fs-body-lg);
  font-style: italic;
  color: var(--color-text);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: var(--z-base);
}

.card-testimonial .testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.card-testimonial .testimonial-photo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
}

.card-testimonial .testimonial-name {
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  color: var(--color-navy);
  margin: 0;
}

.card-testimonial .testimonial-role {
  font-size: var(--fs-small);
  color: var(--color-text-light);
  margin: var(--space-2xs) 0 0;
}

/* ----------------------------------------------------------------
   Card: Feature — Icon + Title + Description
   ---------------------------------------------------------------- */
.card-feature {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  text-align: center;
}

.card-feature .card-icon {
  width: 56px;
  height: 56px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-off-white);
  border-radius: var(--radius-lg);
  color: var(--color-navy);
  transition: background-color var(--duration-normal) var(--ease-default),
              color var(--duration-normal) var(--ease-default),
              transform var(--duration-normal) var(--ease-default);
}

.card-feature .card-icon svg {
  width: 28px;
  height: 28px;
}

.card:hover .card-feature .card-icon {
  background-color: var(--color-navy);
  color: var(--color-white);
  transform: scale(1.05);
}

.card-feature .card-title {
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  color: var(--color-navy);
  margin: 0;
}

.card-feature .card-desc {
  font-size: var(--fs-small);
  color: var(--color-text-light);
  line-height: var(--lh-body);
  margin: 0;
}

/* ----------------------------------------------------------------
   Card: Resource — Image + Title + Date + Excerpt
   ---------------------------------------------------------------- */
.card-resource {
  display: flex;
  flex-direction: column;
}

.card-resource .card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}

.card-resource .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-default);
}

.card:hover .card-resource .card-image img {
  transform: scale(1.05);
}

.card-resource .card-body {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex: 1;
}

.card-resource .card-date {
  font-size: var(--fs-caption);
  font-weight: var(--fw-medium);
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}

.card-resource .card-title {
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  color: var(--color-navy);
  margin: 0;
  line-height: var(--lh-heading);
}

.card-resource .card-excerpt {
  font-size: var(--fs-small);
  color: var(--color-text-light);
  line-height: var(--lh-body);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ================================================================
   SECTION HEADERS
   ================================================================ */

/* ----------------------------------------------------------------
   Centered Section Header
   ---------------------------------------------------------------- */
.section-header {
  text-align: center;
  max-width: var(--narrow-width);
  margin-inline: auto;
  margin-bottom: var(--space-3xl);
}

.section-label {
  display: inline-block;
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  color: var(--color-red);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  margin-bottom: var(--space-md);
}

.section-title {
  font-size: var(--fs-h2);
  font-weight: var(--fw-black);
  color: var(--color-navy);
  line-height: var(--lh-heading);
  margin-bottom: var(--space-md);
  text-wrap: balance;
}

.section-desc {
  font-size: var(--fs-body-lg);
  color: var(--color-text-light);
  line-height: var(--lh-relaxed);
  max-width: 60ch;
  margin-inline: auto;
}

/* Left-aligned variant */
.section-header--left {
  text-align: left;
  margin-inline: 0;
}

.section-header--left .section-desc {
  margin-inline: 0;
}

/* Dark background variant */
.bg-navy .section-label {
  color: var(--color-red-light);
}

.bg-navy .section-title {
  color: var(--color-white);
}

.bg-navy .section-desc {
  color: var(--color-gray-300);
}


/* ================================================================
   HERO VARIANTS
   ================================================================ */

/* ----------------------------------------------------------------
   Base Hero
   ---------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-4xl) 0;
}

.hero .container {
  position: relative;
  z-index: var(--z-base);
}

/* ----------------------------------------------------------------
   Hero A — Split Layout (Homepage)
   Text left 55%, graphic right 45%
   ---------------------------------------------------------------- */
.hero-a {
  min-height: 85vh;
  display: flex;
  align-items: center;
  background-color: var(--color-white);
}

.hero-a .hero-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  align-items: center;
}

@media (min-width: 768px) {
  .hero-a .hero-inner {
    flex-direction: row;
    align-items: center;
  }
}

.hero-a .hero-content {
  flex: 1;
}

@media (min-width: 768px) {
  .hero-a .hero-content {
    flex: 0 0 55%;
    max-width: 55%;
    padding-right: var(--space-2xl);
  }
}

.hero-a .hero-label {
  display: inline-block;
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  color: var(--color-red);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  margin-bottom: var(--space-md);
}

.hero-a .hero-title {
  font-size: var(--fs-h1);
  font-weight: var(--fw-black);
  color: var(--color-navy);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-lg);
  text-wrap: balance;
}

@media (min-width: 1024px) {
  .hero-a .hero-title {
    font-size: var(--fs-display);
  }
}

.hero-a .hero-desc {
  font-size: var(--fs-body-lg);
  color: var(--color-text-light);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-xl);
  max-width: 50ch;
}

.hero-a .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.hero-a .hero-graphic {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

@media (min-width: 768px) {
  .hero-a .hero-graphic {
    flex: 0 0 45%;
    max-width: 45%;
  }
}

.hero-a .hero-graphic img,
.hero-a .hero-graphic svg {
  width: 100%;
  max-width: 500px;
  height: auto;
}

/* ----------------------------------------------------------------
   Hero B — Centered Text Overlay (Hub Landings)
   ---------------------------------------------------------------- */
.hero-b {
  min-height: max(50vh, 350px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--color-navy);
  color: var(--color-white);
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
  padding-bottom: var(--space-3xl);
}

@media (min-width: 768px) {
  .hero-b {
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
  }
}

/* Subtle pattern overlay */
.hero-b::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 20% 80%,
    rgba(27, 58, 140, 0.5) 0%,
    transparent 50%
  ),
  radial-gradient(
    circle at 80% 20%,
    rgba(207, 8, 31, 0.15) 0%,
    transparent 40%
  );
  pointer-events: none;
}

.hero-b .hero-content {
  max-width: var(--narrow-width);
  position: relative;
  z-index: var(--z-base);
}

.hero-b .hero-label {
  display: inline-block;
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  color: var(--color-red-light);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  margin-bottom: var(--space-md);
}

.hero-b .hero-title {
  font-size: var(--fs-h1);
  font-weight: var(--fw-black);
  color: var(--color-white);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-lg);
  text-wrap: balance;
}

.hero-b .hero-desc {
  font-size: var(--fs-body-lg);
  color: var(--color-gray-200);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-xl);
  margin-inline: auto;
  max-width: 55ch;
}

.hero-b .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

/* ----------------------------------------------------------------
   Hero C — Compact Page Header with Breadcrumb
   ---------------------------------------------------------------- */
.hero-c {
  padding: var(--space-2xl) 0 var(--space-xl);
  background-color: var(--color-off-white);
  border-bottom: 1px solid var(--color-border);
}

.hero-c .hero-content {
  max-width: var(--content-width);
}

.hero-c .breadcrumb {
  margin-bottom: var(--space-md);
}

.hero-c .hero-title {
  font-size: var(--fs-h2);
  font-weight: var(--fw-black);
  color: var(--color-navy);
  line-height: var(--lh-heading);
  margin-bottom: var(--space-sm);
}

.hero-c .hero-desc {
  font-size: var(--fs-body-lg);
  color: var(--color-text-light);
  line-height: var(--lh-body);
  max-width: 60ch;
}


/* ================================================================
   CONTENT SECTIONS
   ================================================================ */

/* ----------------------------------------------------------------
   Feature Row — Alternating Image/Text
   ---------------------------------------------------------------- */
.feature-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  align-items: center;
  padding-block: var(--space-section);
}

@media (min-width: 768px) {
  .feature-row {
    flex-direction: row;
    gap: var(--space-3xl);
  }

  .feature-row:nth-child(even) {
    flex-direction: row-reverse;
  }
}

.feature-row .feature-media {
  flex: 1;
  position: relative;
}

@media (min-width: 768px) {
  .feature-row .feature-media {
    flex: 0 0 48%;
    max-width: 48%;
  }
}

.feature-row .feature-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* Decorative offset behind image */
.feature-row .feature-media::after {
  content: '';
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  right: calc(-1 * var(--space-md));
  bottom: calc(-1 * var(--space-md));
  background-color: var(--color-off-white);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.feature-row:nth-child(even) .feature-media::after {
  left: calc(-1 * var(--space-md));
  right: var(--space-md);
}

.feature-row .feature-content {
  flex: 1;
}

@media (min-width: 768px) {
  .feature-row .feature-content {
    flex: 0 0 48%;
    max-width: 48%;
  }
}

.feature-row .feature-label {
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  color: var(--color-red);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  margin-bottom: var(--space-sm);
}

.feature-row .feature-title {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  color: var(--color-navy);
  margin-bottom: var(--space-md);
}

.feature-row .feature-desc {
  font-size: var(--fs-body);
  color: var(--color-text-light);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-lg);
}

/* ----------------------------------------------------------------
   Icon Grid — 3-Column Responsive
   ---------------------------------------------------------------- */
.icon-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .icon-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .icon-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.icon-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
  padding: var(--space-lg);
}

.icon-grid-item .icon-wrap {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-off-white);
  border-radius: var(--radius-lg);
  color: var(--color-navy);
  transition: var(--transition-default);
}

.icon-grid-item .icon-wrap svg {
  width: 32px;
  height: 32px;
}

.icon-grid-item:hover .icon-wrap {
  background-color: var(--color-navy);
  color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.icon-grid-item .icon-title {
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  color: var(--color-navy);
}

.icon-grid-item .icon-desc {
  font-size: var(--fs-small);
  color: var(--color-text-light);
  line-height: var(--lh-body);
  max-width: 35ch;
}

/* Dark background variant */
.bg-navy .icon-grid-item .icon-wrap {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

.bg-navy .icon-grid-item:hover .icon-wrap {
  background-color: var(--color-red);
  color: var(--color-white);
}

.bg-navy .icon-grid-item .icon-title {
  color: var(--color-white);
}

.bg-navy .icon-grid-item .icon-desc {
  color: var(--color-gray-300);
}

/* ----------------------------------------------------------------
   Process Steps — Numbered Vertical Timeline
   ---------------------------------------------------------------- */
.process-steps {
  position: relative;
  padding-left: var(--space-3xl);
}

/* Connecting vertical line */
.process-steps::before {
  content: '';
  position: absolute;
  top: 0;
  left: 19px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--color-red),
    var(--color-navy)
  );
}

.process-step {
  position: relative;
  padding-bottom: var(--space-2xl);
}

.process-step:last-child {
  padding-bottom: 0;
}

/* Numbered circle */
.process-step::before {
  content: attr(data-step);
  position: absolute;
  left: calc(-1 * var(--space-3xl));
  top: 0;
  width: 40px;
  height: 40px;
  background-color: var(--color-navy);
  color: var(--color-white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-small);
  font-weight: var(--fw-black);
  z-index: var(--z-base);
  box-shadow: 0 0 0 4px var(--color-white);
}

.process-step .step-title {
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  color: var(--color-navy);
  margin-bottom: var(--space-sm);
}

.process-step .step-desc {
  font-size: var(--fs-body);
  color: var(--color-text-light);
  line-height: var(--lh-relaxed);
  max-width: 55ch;
}

/* Dark background variant */
.bg-navy .process-steps::before {
  background: linear-gradient(
    to bottom,
    var(--color-red),
    var(--color-gray-300)
  );
}

.bg-navy .process-step::before {
  background-color: var(--color-red);
  box-shadow: 0 0 0 4px var(--color-navy);
}

.bg-navy .process-step .step-title {
  color: var(--color-white);
}

.bg-navy .process-step .step-desc {
  color: var(--color-gray-300);
}

/* ----------------------------------------------------------------
   Stats Bar — Horizontal Counters
   ---------------------------------------------------------------- */
.stats-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  text-align: center;
}

@media (min-width: 768px) {
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .stats-bar {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  padding: var(--space-xl);
  position: relative;
}

/* Subtle divider between stats */
@media (min-width: 1024px) {
  .stat-item + .stat-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background-color: var(--color-border);
  }

  .bg-navy .stat-item + .stat-item::before {
    background-color: rgba(255, 255, 255, 0.15);
  }
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: var(--fw-black);
  color: var(--color-navy);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat-suffix {
  font-size: 0.6em;
  font-weight: var(--fw-bold);
  color: var(--color-red);
}

.stat-label {
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}

/* Dark background variant */
.bg-navy .stat-number {
  color: var(--color-white);
}

.bg-navy .stat-label {
  color: var(--color-gray-300);
}

/* ----------------------------------------------------------------
   FAQ Accordion
   ---------------------------------------------------------------- */
.faq-accordion {
  max-width: var(--narrow-width);
  margin-inline: auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  font-size: var(--fs-body-lg);
  font-weight: var(--fw-medium);
  color: var(--color-navy);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-primary);
  transition: color var(--duration-fast) var(--ease-default);
}

.faq-question:hover {
  color: var(--color-red);
}

.faq-question::after {
  content: '+';
  font-size: var(--fs-h3);
  font-weight: var(--fw-light);
  color: var(--color-red);
  flex-shrink: 0;
  transition: transform var(--duration-normal) var(--ease-default);
}

.faq-item.is-open .faq-question::after {
  content: '\2212'; /* minus sign */
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease-out),
              padding var(--duration-slow) var(--ease-out);
}

.faq-item.is-open .faq-answer {
  max-height: 500px;
  padding-bottom: var(--space-lg);
}

.faq-answer-inner {
  font-size: var(--fs-body);
  color: var(--color-text-light);
  line-height: var(--lh-relaxed);
}

/* ----------------------------------------------------------------
   Newsletter Signup — Inline Form
   ---------------------------------------------------------------- */
.newsletter-signup {
  max-width: 560px;
  margin-inline: auto;
  text-align: center;
}

.newsletter-signup .newsletter-title {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  color: var(--color-navy);
  margin-bottom: var(--space-sm);
}

.newsletter-signup .newsletter-desc {
  font-size: var(--fs-body);
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
}

.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 480px;
  margin-inline: auto;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: var(--space-md) var(--space-lg);
  border: 2px solid var(--color-border);
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  font-size: var(--fs-body);
  color: var(--color-text);
  background-color: var(--color-white);
  transition: border-color var(--duration-fast) var(--ease-default);
}

.newsletter-form input[type="email"]::placeholder {
  color: var(--color-gray-400);
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--color-navy);
}

.newsletter-form .btn {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  border-left: none;
}

/* Dark background variant */
.bg-navy .newsletter-signup .newsletter-title {
  color: var(--color-white);
}

.bg-navy .newsletter-signup .newsletter-desc {
  color: var(--color-gray-300);
}

.bg-navy .newsletter-form input[type="email"] {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
}

.bg-navy .newsletter-form input[type="email"]::placeholder {
  color: var(--color-gray-400);
}

.bg-navy .newsletter-form input[type="email"]:focus {
  border-color: var(--color-red);
}

/* ----------------------------------------------------------------
   CTA Section — Centered Block
   ---------------------------------------------------------------- */
.cta-section {
  text-align: center;
  padding: var(--space-4xl) var(--gutter);
  background-color: var(--color-navy);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

/* Subtle decorative gradient */
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 100%,
    rgba(207, 8, 31, 0.12) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.cta-section .cta-inner {
  max-width: var(--narrow-width);
  margin-inline: auto;
  position: relative;
  z-index: var(--z-base);
}

.cta-section .cta-title {
  font-size: var(--fs-h2);
  font-weight: var(--fw-black);
  color: var(--color-white);
  line-height: var(--lh-heading);
  margin-bottom: var(--space-md);
  text-wrap: balance;
}

.cta-section .cta-desc {
  font-size: var(--fs-body-lg);
  color: var(--color-gray-200);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-xl);
  max-width: 50ch;
  margin-inline: auto;
}

.cta-section .cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}


/* ================================================================
   SECTION DIVIDERS — Non-Boxy Visual Identity
   ================================================================ */

/* ----------------------------------------------------------------
   Angle Divider — Top Edge
   ---------------------------------------------------------------- */
.angle-divider-top {
  position: relative;
}

.angle-divider-top::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 100% 0%, 0 100%);
  z-index: var(--z-base);
}

/* Variant: the previous section color clips into this one */
.angle-divider-top--white::before {
  background-color: var(--color-white);
}

.angle-divider-top--off-white::before {
  background-color: var(--color-off-white);
}

.angle-divider-top--navy::before {
  background-color: var(--color-navy);
}

/* ----------------------------------------------------------------
   Angle Divider — Bottom Edge
   ---------------------------------------------------------------- */
.angle-divider-bottom {
  position: relative;
}

.angle-divider-bottom::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: inherit;
  clip-path: polygon(0 100%, 100% 0%, 100% 100%);
  z-index: var(--z-base);
}

.angle-divider-bottom--white::after {
  background-color: var(--color-white);
}

.angle-divider-bottom--off-white::after {
  background-color: var(--color-off-white);
}

.angle-divider-bottom--navy::after {
  background-color: var(--color-navy);
}

/* ----------------------------------------------------------------
   Curve Divider — SVG-Based Smooth Transition
   ---------------------------------------------------------------- */
.curve-divider {
  position: relative;
}

.curve-divider-svg {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  height: 60px;
  display: block;
}

.curve-divider-svg--top {
  top: -1px;
}

.curve-divider-svg--bottom {
  bottom: -1px;
  transform: rotate(180deg);
}

.curve-divider-svg path {
  fill: var(--color-white);
}

.curve-divider-svg--off-white path {
  fill: var(--color-off-white);
}

.curve-divider-svg--navy path {
  fill: var(--color-navy);
}

@media (min-width: 768px) {
  .angle-divider-top::before,
  .angle-divider-bottom::after {
    height: 100px;
  }

  .curve-divider-svg {
    height: 80px;
  }
}

@media (min-width: 1024px) {
  .angle-divider-top::before,
  .angle-divider-bottom::after {
    height: 120px;
  }

  .curve-divider-svg {
    height: 100px;
  }
}


/* ================================================================
   GRID LAYOUTS
   ================================================================ */

/* ----------------------------------------------------------------
   Responsive Grid Systems
   ---------------------------------------------------------------- */
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ----------------------------------------------------------------
   Asymmetric Grid — 60/40 and 40/60
   ---------------------------------------------------------------- */
.grid-asymmetric {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
  align-items: center;
}

@media (min-width: 768px) {
  .grid-asymmetric {
    grid-template-columns: 3fr 2fr;
  }

  .grid-asymmetric--reverse {
    grid-template-columns: 2fr 3fr;
  }
}


/* ================================================================
   SCROLL REVEAL ANIMATIONS
   ================================================================ */

/* ----------------------------------------------------------------
   Base Reveal — Fade Up
   ---------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-reveal) var(--ease-out),
              transform var(--duration-reveal) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------------------------------------------
   Directional Reveals
   ---------------------------------------------------------------- */
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity var(--duration-reveal) var(--ease-out),
              transform var(--duration-reveal) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity var(--duration-reveal) var(--ease-out),
              transform var(--duration-reveal) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Scale in */
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity var(--duration-reveal) var(--ease-out),
              transform var(--duration-reveal) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}


/* ================================================================
   MISCELLANEOUS COMPONENTS
   ================================================================ */

/* ----------------------------------------------------------------
   Breadcrumb
   ---------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xs);
  font-size: var(--fs-small);
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.breadcrumb-item a {
  color: var(--color-text-light);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-default);
}

.breadcrumb-item a:hover {
  color: var(--color-navy);
  text-decoration: none;
}

/* Separator chevron */
.breadcrumb-item + .breadcrumb-item::before {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--color-gray-400);
  border-bottom: 1.5px solid var(--color-gray-400);
  transform: rotate(-45deg);
  margin-right: var(--space-xs);
}

.breadcrumb-item:last-child {
  color: var(--color-navy);
  font-weight: var(--fw-medium);
}

/* ----------------------------------------------------------------
   Badge
   ---------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2xs) var(--space-sm);
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.badge--red {
  background-color: var(--color-red);
  color: var(--color-white);
}

.badge--navy {
  background-color: var(--color-navy);
  color: var(--color-white);
}

.badge--outline {
  background-color: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-light);
}

.badge--success {
  background-color: var(--color-success);
  color: var(--color-white);
}

/* ----------------------------------------------------------------
   Divider — Horizontal Rule with Optional Text
   ---------------------------------------------------------------- */
.divider {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-block: var(--space-2xl);
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--color-border);
}

/* When divider has text content */
.divider:empty::after {
  display: none;
}

.divider-text {
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  white-space: nowrap;
}

/* ----------------------------------------------------------------
   Back to Top Button
   ---------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-navy);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: var(--z-sticky);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--duration-normal) var(--ease-default),
              visibility var(--duration-normal),
              transform var(--duration-normal) var(--ease-default),
              background-color var(--duration-fast) var(--ease-default);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--color-red);
  transform: translateY(-3px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ================================================================
   SECTION DIVIDERS — Angled transitions between sections
   ================================================================ */
.section-divider {
  position: relative;
  height: 80px;
  margin-top: -1px;
}
.section-divider--angle-down {
  background: var(--color-white);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 40%);
}
.section-divider--angle-up {
  background: var(--color-white);
  clip-path: polygon(0 0, 100% 60%, 100% 100%, 0 100%);
}
.section-divider--angle-down.bg-navy {
  background: var(--color-navy);
}
.section-divider--angle-down.bg-off-white {
  background: var(--color-off-white);
}
.section-divider--angle-up.bg-navy {
  background: var(--color-navy);
}
.section-divider--angle-up.bg-off-white {
  background: var(--color-off-white);
}
.section-divider--wave {
  background: var(--color-white);
}
.section-divider--wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ================================================================
   ENHANCED CARD HOVER STATES
   ================================================================ */
.card {
  position: relative;
  overflow: hidden;
  border-top: 3px solid transparent;
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out),
              border-color var(--duration-normal) var(--ease-out);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-top-color: var(--color-red);
}
.card .card-chevron {
  transition: transform var(--duration-normal) var(--ease-out);
}
.card:hover .card-chevron {
  transform: translateX(4px);
}

/* ================================================================
   SECTION NUMBER LABELS (blennd.com style)
   ================================================================ */
.section-number {
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  color: var(--color-red);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}
.section-number::after {
  content: '';
  height: 1px;
  width: 40px;
  background: var(--color-red);
}

/* ================================================================
   ICON CIRCLES — Colored backgrounds for feature icons
   ================================================================ */
.icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-circle--navy {
  background: rgba(1, 33, 105, 0.08);
  color: var(--color-navy);
}
.icon-circle--red {
  background: rgba(207, 8, 31, 0.08);
  color: var(--color-red);
}

/* ================================================================
   DOT GRID PATTERN — Subtle background texture
   ================================================================ */
.bg-dot-grid {
  position: relative;
}
.bg-dot-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--color-gray-300) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}
.bg-dot-grid > * {
  position: relative;
  z-index: 1;
}

/* ================================================================
   ASYMMETRIC GRID — 40/60 split
   ================================================================ */
.grid-40-60 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}
@media (min-width: 768px) {
  .grid-40-60 {
    grid-template-columns: 2fr 3fr;
  }
}
.grid-60-40 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}
@media (min-width: 768px) {
  .grid-60-40 {
    grid-template-columns: 3fr 2fr;
  }
}

/* ================================================================
   PHASE 1 POLISH — Premium Visual Upgrades
   ================================================================ */

/* Background texture: diagonal lines */
.bg-diagonal-lines {
  position: relative;
}
.bg-diagonal-lines::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 14px,
    var(--color-gray-200) 14px,
    var(--color-gray-200) 15px
  );
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}
.bg-diagonal-lines > * { position: relative; z-index: 1; }

/* Background texture: gradient mesh */
.bg-mesh {
  position: relative;
}
.bg-mesh::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(1,33,105,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(207,8,31,0.03) 0%, transparent 40%),
    radial-gradient(ellipse at 60% 80%, rgba(1,33,105,0.03) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
}
.bg-mesh > * { position: relative; z-index: 1; }

/* Enhanced section spacing — blennd.com generosity */
.section-generous {
  padding-block: 6rem;
}
@media (min-width: 1024px) {
  .section-generous { padding-block: 8rem; }
}

/* Hero height variants */
.hero--tall { min-height: 520px; }
.hero--medium { min-height: 420px; }
.hero--compact { min-height: 320px; }

/* Wave divider */
.divider-wave {
  position: relative;
  height: 60px;
  overflow: hidden;
  margin-top: -1px;
}
.divider-wave svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
}

/* Gradient accent line */
.accent-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-red) 0%, var(--color-navy) 100%);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
}

/* Enhanced stat counters */
.stat-highlight {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  color: var(--color-red);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-label-lg {
  font-size: var(--fs-body);
  font-weight: 300;
  color: var(--color-text-light);
  margin-top: var(--space-xs);
}

/* Glass morphism container */
.glass-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
}

/* Testimonial quote styling */
.quote-mark {
  font-size: 4rem;
  line-height: 1;
  color: var(--color-red);
  opacity: 0.3;
  font-family: Georgia, serif;
}

/* Mobile polish */
@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
  .stack-mobile { flex-direction: column !important; }
  .full-mobile { width: 100% !important; }
  .text-center-mobile { text-align: center !important; }
}
