/* ==========================================================================
   Helio Urban Development - Components
   Shared UI components used across multiple pages

   TABLE OF CONTENTS:
   1. Buttons
   2. Badge
   3. Cards
   4. Navigation
   5. Mobile Menu
   6. Hero
   7. Trust Badges & Proof Bar
   8. Problem Cards
   9. Router Buttons
   10. Qualification
   11. Footer
   12. Form Inputs
   13. Form Placeholder
   14. Content Placeholder
   15. FAQ Accordion
   16. Icons
   17. Page Header
   18. Process Steps
   19. Team
   20. Additional Page Components
   21. Legal Content
   22. Animations & Transitions
   ========================================================================== */

/* ==========================================================================
   1. Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-600) 100%);
  color: var(--charcoal-900);
  border: 2px solid var(--gold-500);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-500) 100%);
  border-color: var(--gold-400);
  box-shadow: var(--shadow-gold-lg);
  transform: translateY(-1px);
  transition: all 0.2s var(--ease-expo-out);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: var(--shadow-sm);
  transition: all 0.1s ease;
}

.btn-primary:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
}

.btn-secondary {
  background-color: transparent;
  color: var(--charcoal-900);
  border: 2px solid var(--charcoal-900);
  box-shadow: none;
}

.btn-secondary:hover {
  background-color: var(--charcoal-900);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary:active {
  transform: translateY(0) scale(0.98);
}

.btn-secondary:focus-visible {
  outline: 3px solid var(--charcoal-900);
  outline-offset: 2px;
}

.section--dark .btn-secondary {
  color: var(--white);
  border-color: var(--white);
}

.section--dark .btn-secondary:hover {
  background-color: var(--white);
  color: var(--charcoal-900);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

.btn:disabled,
.btn.is-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.btn:disabled,
.btn:disabled:hover,
.btn:disabled:active,
.btn.is-disabled,
.btn.is-disabled:hover,
.btn.is-disabled:active {
  transform: none;
  box-shadow: none;
}

.btn.is-loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.btn.is-loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid currentColor;
  border-radius: 50%;
  border-right-color: transparent;
  animation: button-spin 0.6s linear infinite;
}

@keyframes button-spin {
  to {
    transform: rotate(360deg);
  }
}

.btn__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--duration-normal) var(--ease-out);
}

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

/* ==========================================================================
   Icon System - Standardized Sizes
   ========================================================================== */

.icon {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
  /* SVG icon defaults */
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--xs {
  width: 14px;
  height: 14px;
}

.icon--sm {
  width: 16px;
  height: 16px;
}

.icon--md {
  width: 20px;
  height: 20px;
}

.icon--lg {
  width: 24px;
  height: 24px;
}

.icon--xl {
  width: 48px;
  height: 48px;
}

/* Icon colors */
.icon--gold {
  color: var(--gold-500);
}

.icon--muted {
  color: var(--gray-400);
}

/* Content Links - Enhanced underline animation */
.text-body a:not(.btn),
.text-lead a:not(.btn),
p a:not(.btn) {
  color: var(--gold-500);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  transition: text-decoration-color var(--duration-normal) var(--ease-out);
}

.text-body a:not(.btn):hover,
.text-lead a:not(.btn):hover,
p a:not(.btn):hover {
  text-decoration-color: var(--gold-500);
}

/* ==========================================================================
   2. Badge
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  border-radius: var(--radius-full);
  background-color: var(--gray-100);
  color: var(--gray-600);
}

.badge--gold {
  background-color: var(--gold-100);
  color: var(--gold-600);
}

.badge--outline {
  background-color: transparent;
  border: 1px solid var(--gray-300);
  color: var(--gray-600);
}

@media (max-width: 639px) {
  .badge {
    font-size: 13px;
  }
}

/* ==========================================================================
   3. Cards
   ========================================================================== */

.card {
  background-color: var(--white);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition:
    transform 200ms var(--ease-expo-out),
    box-shadow 200ms var(--ease-expo-out),
    border-color 200ms var(--ease-expo-out);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px -4px rgb(0 0 0 / 0.08),
    0 0 0 1px var(--gold-400);
  border-color: var(--gold-400);
}

.card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--charcoal-900);
  margin-bottom: var(--space-2);
}

.card__text {
  font-size: var(--text-base);
  color: var(--gray-600);
  line-height: var(--leading-normal);
}

/* ----- Project Card (homepage variant) ----- */
.project-card__image-wrapper {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.project-card__image-wrapper .project-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-expo-out);
}

.project-card:hover .project-card__image-wrapper .project-card__image {
  transform: scale(1.03);
}

.project-card__status {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  padding: var(--space-1) var(--space-3);
  background-color: var(--gold-500);
  color: var(--charcoal-900);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   4. Navigation
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: calc(var(--z-modal) + 1);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition:
    background-color var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out);
}

.nav--scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.06);
}

.nav__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: var(--space-4);
  height: 64px;
}

@media (min-width: 768px) {
  .nav__container {
    padding: var(--space-4) var(--space-6);
  }
}

.nav__logo {
  text-decoration: none;
}

.nav__logo-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--charcoal-900);
  letter-spacing: var(--tracking-wide);
}

.nav__links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-8);
}

@media (min-width: 1024px) {
  .nav__links {
    display: flex;
  }
}

.nav__link {
  position: relative;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-500);
  transition: width 0.25s var(--ease-expo-out);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  width: 100%;
}

.nav__link:hover {
  color: var(--charcoal-900);
}

.nav__link.is-active {
  color: var(--gold-500);
}

.nav__cta {
  display: none;
}

@media (min-width: 1024px) {
  .nav__cta {
    display: inline-flex;
  }
}

.nav__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .nav__hamburger {
    display: none;
  }
}

.nav__hamburger-line {
  width: 24px;
  height: 2px;
  background-color: var(--charcoal-900);
  transition: all var(--duration-normal) var(--ease-out);
}

.nav__hamburger[aria-expanded="true"] .nav__hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger[aria-expanded="true"] .nav__hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav__hamburger[aria-expanded="true"] .nav__hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   5. Mobile Menu
   ========================================================================== */

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-modal);
  background-color: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(8px);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu.is-open .mobile-menu__content {
  transform: translateX(0);
}

.mobile-menu__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: var(--space-8);
  background: var(--white);
  margin-left: auto;
  max-width: 400px;
  width: 90%;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-expo-out);
  box-shadow: var(--shadow-xl);
}

@media (max-width: 767px) {
  .mobile-menu__content {
    padding: var(--space-6);
    justify-content: flex-start;
    padding-top: calc(var(--space-6) + 64px);
    overflow-y: auto;
  }

  .mobile-menu__link {
    font-size: var(--text-xl);
    padding: var(--space-3) var(--space-4);
    min-height: 48px;
  }

  .mobile-menu__cta {
    margin-top: var(--space-6);
  }
}

.mobile-menu__links {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.mobile-menu__link {
  display: block;
  padding: var(--space-4) var(--space-6);
  font-family: var(--font-display);
  font-size: var(--text-display-md);
  font-weight: 500;
  color: var(--charcoal-900);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition:
    border-color 0.2s ease,
    padding-left 0.2s ease;
  min-height: 56px;
  display: flex;
  align-items: center;
}

.mobile-menu__link:hover,
.mobile-menu__link:focus {
  border-left-color: var(--gold-500);
  padding-left: var(--space-8);
}

.mobile-menu__cta {
  margin-top: var(--space-8);
  width: 100%;
  max-width: 300px;
}

/* Hero Process Flow (Apply Page) */
.hero-process-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

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

.hero-process-icon {
  width: 48px;
  height: 48px;
  color: var(--gold-500);
  stroke-width: 1.5;
}

.hero-process-step span {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-700);
}

.hero-process-arrow {
  width: 24px;
  height: 24px;
  color: var(--gray-400);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .hero-process-arrow {
    transform: rotate(90deg);
  }
}

@media (max-width: 479px) {
  .hero-process-flow {
    flex-direction: column;
    gap: var(--space-2);
  }

  .hero-process-step {
    flex-direction: row;
    gap: var(--space-3);
  }

  .hero-process-icon {
    width: 32px;
    height: 32px;
  }

  .hero-process-arrow {
    transform: rotate(90deg);
    width: 20px;
    height: 20px;
  }
}

/* ==========================================================================
   6. Hero
   ========================================================================== */

.hero {
  padding-top: calc(var(--space-18) + 64px);
  padding-bottom: var(--space-12);
  background: linear-gradient(180deg, var(--warm-white) 0%, var(--white) 100%);
}

@media (max-width: 767px) {
  .hero {
    padding-top: calc(var(--space-12) + 64px);
    padding-bottom: var(--space-8);
  }
}

@media (min-width: 1024px) {
  .hero {
    padding-top: calc(var(--space-22) + 64px);
    padding-bottom: var(--space-18);
  }
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-12);
  }
}

.hero__badge {
  margin-bottom: var(--space-4);
  animation: badge-enter 0.6s var(--ease-expo-out) 0.2s both;
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-display-xl);
  font-weight: 600;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--charcoal-900);
  margin-bottom: var(--space-5);
  text-wrap: balance;
  animation: badge-enter 0.6s var(--ease-expo-out) 0.3s both;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  line-height: var(--leading-normal);
  color: var(--gray-600);
  margin-bottom: var(--space-6);
  max-width: min(50ch, 100%);
  animation: badge-enter 0.6s var(--ease-expo-out) 0.45s both;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  animation: badge-enter 0.5s var(--ease-expo-out) 0.6s both;
}

@media (min-width: 640px) {
  .hero__cta {
    flex-direction: row;
  }
}

.hero__image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    0 4px 8px rgb(0 0 0 / 0.04),
    0 12px 32px rgb(0 0 0 / 0.08),
    0 24px 60px rgb(0 0 0 / 0.06);
}

.hero__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero__image {
  aspect-ratio: 4 / 3;
}

@media (min-width: 1024px) {
  .hero__image {
    aspect-ratio: 3 / 4;
  }
}

@media (max-width: 1023px) {
  .hero__image {
    order: 2;
  }
}

/* ==========================================================================
   7. Trust Badges & Proof Bar
   ========================================================================== */

.trust-badges {
  padding: var(--space-8) var(--space-4);
  background-color: var(--gray-100);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  text-align: center;
}

.trust-badges__label {
  display: block;
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

.trust-badges__label--separated {
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--gray-200);
}

.trust-badges__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .trust-badges__logos {
    gap: var(--space-10);
  }
}

.trust-badges__link {
  display: inline-flex;
  align-items: center;
}

.trust-badges__logo {
  height: 40px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  opacity: 0.85;
  mix-blend-mode: multiply;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.trust-badges__link:hover .trust-badges__logo,
.trust-badges__logo:hover {
  opacity: 1;
}

@media (min-width: 768px) {
  .trust-badges__logo {
    height: 50px;
    max-width: 150px;
  }
}

/* ----- Proof Bar ----- */
.proof-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6);
  padding: var(--space-6) var(--space-4);
  background-color: var(--charcoal-800);
}

@media (max-width: 639px) {
  .proof-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    padding: var(--space-5) var(--space-4);
  }

  .proof-bar__item {
    padding: var(--space-2) 0;
  }

  .proof-bar__value {
    font-size: var(--text-xl);
  }

  .proof-bar__label {
    font-size: var(--text-xs);
  }
}

@media (min-width: 768px) {
  .proof-bar {
    gap: var(--space-12);
    padding: var(--space-7) var(--space-8);
  }
}

.proof-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--gray-300);
  font-weight: 600;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.proof-bar__value {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 500;
  color: var(--gold-500);
  line-height: 1;
}

.proof-bar__label {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.proof-bar__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .proof-bar__stats {
    gap: var(--space-12);
  }
}

.proof-bar__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ==========================================================================
   7b. Testimonials
   ========================================================================== */

.testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  max-width: 1000px;
  margin: 0 auto;
}

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

.testimonial-card {
  background-color: var(--white);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: var(--space-3);
  left: var(--space-5);
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--gold-400);
  opacity: 0.5;
}

.testimonial-card__quote {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--gray-700);
  margin-bottom: var(--space-4);
  padding-top: var(--space-4);
}

.testimonial-card__author {
  display: flex;
  flex-direction: column;
  gap: var(--space-0-5);
  border-top: 1px solid var(--gray-200);
  padding-top: var(--space-3);
}

.testimonial-card__name {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--charcoal-900);
}

.testimonial-card__role {
  font-size: var(--text-xs);
  color: var(--gray-500);
}

/* ==========================================================================
   8. Problem Cards
   ========================================================================== */

.problem-card {
  padding: var(--space-5);
  background-color: var(--white);
  border-left: 4px solid transparent;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  box-shadow: var(--shadow-md);
  transition:
    border-left-color 0.4s 0.2s var(--ease-expo-out),
    transform 0.3s var(--ease-expo-out),
    box-shadow 0.3s var(--ease-expo-out);
}

.problem-card.is-visible,
.reveal-stagger.is-visible > .problem-card,
.reveal.is-visible .problem-card,
.problem-card:hover {
  border-left-color: var(--gold-500);
}

.problem-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-left-color: var(--gold-600);
}

.problem-card__month {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gold-500);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-3);
}

.problem-card__scenario {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--gray-600);
}

.problem-card__scenario strong {
  color: var(--charcoal-900);
  font-weight: 600;
}

.problem-card__impact {
  display: block;
  margin-top: var(--space-2);
  font-weight: 600;
  color: var(--charcoal-900);
}

.problem-climax {
  font-family: var(--font-display);
  font-size: var(--text-display-md);
  font-weight: 500;
  text-align: center;
  color: var(--charcoal-900);
  max-width: 50ch;
  margin: var(--space-8) auto 0;
}

/* ==========================================================================
   9. Router Buttons
   ========================================================================== */

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

@media (min-width: 640px) {
  .router {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
  }
}

.router__button {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3-5) var(--space-5);
  padding-right: var(--space-12);
  background-color: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all 200ms var(--ease-expo-out);
  position: relative;
  min-height: 72px;
}

.router__button:hover {
  border-color: var(--gold-500);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.router__button--primary {
  background-color: var(--gold-50);
  border-color: var(--gold-400);
}

.router__button--primary:hover {
  background-color: var(--gold-100);
  border-color: var(--gold-500);
}

.router__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--gray-100);
  border-radius: var(--radius-md);
  color: var(--gray-600);
  transition: all var(--duration-normal) var(--ease-out);
}

.router__icon svg {
  width: 20px;
  height: 20px;
}

.router__button:hover .router__icon {
  background-color: var(--gold-100);
  color: var(--gold-600);
}

.router__button--primary .router__icon {
  background-color: var(--gold-200);
  color: var(--gold-700);
}

.router__button--primary:hover .router__icon {
  background-color: var(--gold-300);
  color: var(--gold-800);
}

.router__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.router__title {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--charcoal-900);
  margin-bottom: var(--space-1);
}

@media (min-width: 640px) {
  .router__title {
    font-size: var(--text-lg);
  }
}

.router__description {
  display: block;
  font-size: var(--text-sm);
  color: var(--gray-500);
  line-height: var(--leading-snug);
}

.router__arrow {
  position: absolute;
  right: var(--space-5);
  top: 50%;
  transform: translateY(-50%) translateX(-8px);
  width: 20px;
  height: 20px;
  color: var(--gray-400);
  opacity: 0;
  transition: all 0.25s var(--ease-expo-out);
}

.router__button:hover .router__arrow {
  color: var(--gold-500);
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.router__button--primary .router__arrow {
  color: var(--gold-500);
}

.router__button--primary:hover .router__arrow {
  color: var(--gold-600);
}

/* ==========================================================================
   10. Qualification
   ========================================================================== */

.qualification {
  display: grid;
  gap: var(--space-4);
}

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

.qualification__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.qualification__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--gold-500);
}

.qualification__content h4 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--charcoal-900);
  margin-bottom: var(--space-1);
}

.qualification__content p {
  font-size: var(--text-sm);
  color: var(--gray-600);
}

/* ==========================================================================
   10b. Founder Callout
   ========================================================================== */

/* Founders */
.founders {
  display: flex;
  flex-direction: column;
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.founders__photo {
  flex-shrink: 0;
}

.founders__photo img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.founders__bios {
  padding: var(--space-5) var(--space-6);
}

.founders__intro {
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin-bottom: var(--space-4);
}

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

.founders__person {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background 0.2s;
}

.founders__person:hover {
  background: var(--gray-50);
}

.founders__name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--charcoal-900);
}

.founders__title {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gold-600);
}

.founders__creds {
  font-size: var(--text-xs);
  color: var(--gray-500);
  line-height: var(--leading-snug);
}

@media (min-width: 640px) {
  .founders {
    flex-direction: row;
  }

  .founders__photo {
    flex: 0 0 240px;
  }

  .founders__photo img {
    height: 100%;
    min-height: 200px;
  }

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

.founder-callout {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: var(--space-8);
  background-color: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.founder-callout__photo {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: var(--space-5);
}

.founder-callout__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--gold-400);
}

.founder-callout__photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold-100) 0%, var(--gold-200) 100%);
  border-radius: 50%;
  border: 3px solid var(--gold-400);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--gold-700);
}

.founder-callout__quote {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-style: italic;
  line-height: var(--leading-relaxed);
  color: var(--gray-700);
  margin-bottom: var(--space-5);
}

.founder-callout__quote::before {
  content: none;
}

.founder-callout__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.founder-callout__name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--charcoal-900);
}

.founder-callout__title {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gold-600);
}

.founder-callout__creds {
  font-size: var(--text-sm);
  color: var(--gray-500);
}

@media (min-width: 640px) {
  .founder-callout {
    padding: var(--space-10);
  }

  .founder-callout__photo {
    width: 96px;
    height: 96px;
  }

  .founder-callout__quote {
    font-size: var(--text-xl);
  }
}

/* ==========================================================================
   11. Footer
   ========================================================================== */

.footer {
  background-color: var(--charcoal-800);
  color: var(--gray-300);
  padding: var(--space-12) 0 var(--space-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

@media (max-width: 767px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .footer__links li {
    margin-bottom: var(--space-1);
  }

  .footer__heading {
    font-size: var(--text-base);
    margin-bottom: var(--space-3);
  }
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-8);
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
    gap: var(--space-6);
  }

  .footer__brand {
    grid-column: auto;
  }
}

.footer__logo {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--white);
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-4);
}

.footer__tagline {
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.footer__contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--gold-500);
  text-decoration: none;
}

.footer__contact a:hover {
  text-decoration: underline;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-4);
}

.footer__heading--spaced {
  margin-top: var(--space-4);
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__links li {
  margin-bottom: var(--space-2);
}

.footer__links a {
  font-size: var(--text-sm);
  color: var(--gray-400);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.footer__links a:hover {
  color: var(--white);
}

.footer__column .btn {
  margin-bottom: var(--space-4);
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-top: var(--space-8);
  border-top: 1px solid var(--charcoal-700);
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer__copyright {
  font-size: var(--text-sm);
  color: var(--gray-500);
}

.footer__legal {
  display: flex;
  gap: var(--space-6);
}

.footer__legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--text-sm);
  color: var(--gray-500);
  text-decoration: none;
}

.footer__legal a:hover {
  color: var(--gray-300);
}

/* ==========================================================================
   12. Form Inputs
   ========================================================================== */

.input {
  display: block;
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--charcoal-900);
  background-color: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  transition:
    border-color var(--duration-fast) var(--ease-default),
    box-shadow var(--duration-fast) var(--ease-default);
}

.input:hover {
  border-color: var(--gray-400);
}

.input:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: var(--shadow-focus);
}

.input::placeholder {
  color: var(--gray-400);
  transition: opacity var(--duration-fast) var(--ease-out);
}

.input:focus::placeholder {
  opacity: 0.5;
}

.input--error {
  border-color: var(--error);
}

.input--error:focus {
  box-shadow: var(--shadow-focus-error);
}

.label {
  display: block;
  margin-bottom: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--charcoal-900);
}

.helper-text {
  margin-top: var(--space-1);
  font-size: var(--text-sm);
  color: var(--gray-500);
}

.error-text {
  margin-top: var(--space-1);
  font-size: var(--text-sm);
  color: var(--error);
}

.form-group {
  margin-bottom: var(--space-4);
}

/* ==========================================================================
   13. Form Placeholder
   ========================================================================== */

.form-embed {
  margin: var(--space-8) 0;
}

.form-embed__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-10) var(--space-6);
  background-color: var(--gray-100);
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  text-align: center;
}

.form-embed__icon {
  width: 40px;
  height: 40px;
  color: var(--gray-400);
}

.form-embed__label {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--gray-600);
}

.form-embed__fields {
  font-size: var(--text-sm);
  color: var(--gray-500);
}

.form-embed__note {
  font-size: var(--text-xs);
  color: var(--gray-400);
  font-style: italic;
  margin-top: var(--space-2);
}

/* ==========================================================================
   14. Content Placeholder
   ========================================================================== */

.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12);
  background-color: var(--gray-100);
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-lg);
}

.placeholder__label {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--gray-400);
}

.placeholder--16x9 {
  aspect-ratio: 16 / 9;
}

.placeholder--4x3 {
  aspect-ratio: 4 / 3;
}

.placeholder--3x2 {
  aspect-ratio: 3 / 2;
}

.placeholder--square {
  aspect-ratio: 1 / 1;
}

.placeholder--1x1 {
  aspect-ratio: 1 / 1;
}

/* ==========================================================================
   15. FAQ Accordion
   ========================================================================== */

.faq__item {
  border-bottom: 1px solid var(--gray-200);
}

.faq__item:last-child {
  border-bottom: none;
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-5) 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.faq__question-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--charcoal-900);
  padding-right: var(--space-4);
}

.faq__icon {
  width: 24px;
  height: 24px;
  color: var(--gray-400);
  transition: transform var(--duration-normal) var(--ease-out);
  flex-shrink: 0;
}

.faq__question[aria-expanded="true"] .faq__icon {
  transform: rotate(180deg);
}

.faq__answer {
  padding-bottom: var(--space-5);
  color: var(--gray-600);
  line-height: var(--leading-relaxed);
}

.faq__answer[hidden] {
  display: none;
}

.faq__answer p {
  margin-bottom: var(--space-4);
}

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

/* ==========================================================================
   16. Icons (consolidated - see also Icon System after Buttons)
   ========================================================================== */

/* Note: Primary icon styles defined in Icon System section above.
   This section is kept for backwards compatibility but the main
   definitions in "Icon System - Standardized Sizes" should be used. */

/* ==========================================================================
   17. Page Header
   ========================================================================== */

.page-header {
  padding-top: calc(var(--space-16) + 64px);
  padding-bottom: var(--space-12);
  background-color: var(--warm-white);
}

@media (max-width: 767px) {
  .page-header {
    padding-top: calc(var(--space-10) + 64px);
    padding-bottom: var(--space-8);
  }
}

@media (min-width: 768px) {
  .page-header {
    padding-top: calc(var(--space-20) + 64px);
    padding-bottom: var(--space-16);
  }
}

.page-header__title {
  margin-bottom: var(--space-4);
}

.page-header__subtitle {
  max-width: min(60ch, 100%);
  margin-left: auto;
  margin-right: auto;
}

.page-header--sm {
  padding-top: calc(var(--space-12) + 64px);
  padding-bottom: var(--space-8);
}

@media (min-width: 768px) {
  .page-header--sm {
    padding-top: calc(var(--space-16) + 64px);
    padding-bottom: var(--space-10);
  }
}

/* ==========================================================================
   18. Process Steps
   ========================================================================== */

.process-steps {
  counter-reset: step;
}

.process-step {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--gray-200);
}

@media (max-width: 767px) {
  .process-step {
    grid-template-columns: 48px 1fr;
    gap: var(--space-3);
    align-items: center;
    padding: var(--space-4) 0;
  }
}

@media (min-width: 768px) {
  .process-step {
    grid-template-columns: 80px 1fr;
    gap: var(--space-6);
    align-items: start;
  }
}

.process-step:last-child {
  border-bottom: none;
}

.process-step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--gold-500);
  background-color: var(--gold-100);
  border-radius: var(--radius-full);
}

.process-step__content h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--charcoal-900);
  margin-bottom: var(--space-2);
}

.process-step__content p {
  color: var(--gray-600);
  margin-bottom: var(--space-2);
}

.process-step__meta {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--gray-500);
}

/* ==========================================================================
   19. Team
   ========================================================================== */

.team-member {
  text-align: center;
}

.team-member__photo {
  width: 200px;
  height: 200px;
  margin: 0 auto var(--space-4);
  border-radius: var(--radius-full);
  overflow: hidden;
  background-color: var(--gray-100);
}

.team-member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--charcoal-900);
  margin-bottom: var(--space-1);
}

.team-member__role {
  font-size: var(--text-sm);
  color: var(--gold-500);
  font-weight: 500;
  margin-bottom: var(--space-3);
}

.team-member__bio {
  font-size: var(--text-sm);
  color: var(--gray-600);
  max-width: 40ch;
  margin: 0 auto;
}

/* ==========================================================================
   20. Additional Page Components
   ========================================================================== */

/* ----- Detailed Process Steps (How It Works) ----- */
.process-detailed {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.process-detailed__step {
  padding: var(--space-6);
  background-color: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.process-detailed__step--optional {
  background-color: var(--gray-50);
  border: 2px dashed var(--gray-300);
  box-shadow: none;
}

.process-detailed__header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--gray-200);
}

.process-detailed__number {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--white);
  background-color: var(--gold-500);
  border-radius: var(--radius-full);
}

.process-detailed__meta {
  flex-grow: 1;
}

.process-detailed__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--charcoal-900);
  margin-bottom: var(--space-1);
}

.process-detailed__duration {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--gold-500);
}

.process-detailed__content {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .process-detailed__content {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }
}

.process-detailed__section h3 {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--gray-500);
  margin-bottom: var(--space-2);
}

.process-detailed__section p {
  font-size: var(--text-base);
  color: var(--gray-700);
  line-height: var(--leading-relaxed);
}

/* ----- Timeline Visual ----- */
.timeline-visual {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.timeline-visual__row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.timeline-visual__label {
  flex-shrink: 0;
  width: 100px;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--gray-500);
  text-align: right;
}

.timeline-visual__bar {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--charcoal-800);
  background-color: var(--gray-200);
  border-radius: var(--radius-md);
}

.timeline-visual__bar--gold {
  background-color: var(--gold-400);
  color: var(--charcoal-900);
}

/* ----- Project Cards (Updated) ----- */
.project-card {
  display: flex;
  flex-direction: column;
  background-color: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition:
    transform 200ms var(--ease-expo-out),
    box-shadow 200ms var(--ease-expo-out);
}

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

.project-card__image {
  position: relative;
  aspect-ratio: 2 / 1;
  overflow: hidden;
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card__badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--charcoal-900);
  background-color: var(--gold-400);
  border-radius: var(--radius-full);
}

.project-card__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--space-5);
}

.project-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--charcoal-900);
  margin-bottom: var(--space-1);
}

.project-card__location {
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin-bottom: var(--space-3);
}

.project-card__details {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
}

.project-card__units {
  font-weight: 600;
  color: var(--gold-600);
}

.project-card__type {
  color: var(--gray-500);
}

.project-card__description {
  flex: 1;
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: var(--leading-relaxed);
}

/* ----- Playbook Chapters ----- */
.playbook-chapters {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.playbook-chapter {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration-normal) var(--ease-out);
}

.playbook-chapter:hover {
  box-shadow: var(--shadow-md);
}

.playbook-chapter__number {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  font-family: var(--font-mono);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--gold-600);
  background-color: var(--gold-100);
  border-radius: var(--radius-md);
}

.playbook-chapter__content {
  flex-grow: 1;
}

.playbook-chapter__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--charcoal-900);
  margin-bottom: var(--space-1);
}

.playbook-chapter__description {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: var(--leading-relaxed);
}

/* ----- Concerns Cards (FAQ) ----- */
.concerns {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* ==========================================================================
   21. Legal Content
   ========================================================================== */

.legal-content {
  color: var(--gray-700);
  line-height: var(--leading-relaxed);
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--charcoal-900);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  margin-bottom: var(--space-4);
}

.legal-content ul {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

.legal-content li {
  margin-bottom: var(--space-2);
}

.legal-content a {
  color: var(--gold-600);
}

.legal-content a:hover {
  color: var(--gold-700);
}

/* ==========================================================================
   22. Animations & Transitions
   ========================================================================== */

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.5s var(--ease-expo-out),
    transform 0.5s var(--ease-expo-out);
}

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

/* Stagger children - start hidden, animate to visible */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.4s var(--ease-expo-out),
    transform 0.4s var(--ease-expo-out);
}

.reveal-stagger.is-visible > *:nth-child(1) {
  transition-delay: 0ms;
}
.reveal-stagger.is-visible > *:nth-child(2) {
  transition-delay: 60ms;
}
.reveal-stagger.is-visible > *:nth-child(3) {
  transition-delay: 120ms;
}
.reveal-stagger.is-visible > *:nth-child(4) {
  transition-delay: 180ms;
}
.reveal-stagger.is-visible > *:nth-child(5) {
  transition-delay: 240ms;
}
.reveal-stagger.is-visible > *:nth-child(6) {
  transition-delay: 300ms;
}
.reveal-stagger.is-visible > *:nth-child(7) {
  transition-delay: 360ms;
}

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Badge / Hero entrance animation */
@keyframes badge-enter {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Number animation */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-count {
  animation: countUp var(--duration-slow) var(--ease-out) forwards;
}

/* Pulse */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Spin (for loaders) */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* ==========================================================================
   23. Mobile UI Patterns (Phase 1)
   Universal mobile patterns for SEO pages and responsive layouts
   ========================================================================== */

/* ----- Pattern 1: Compact Stats Grid (2x2 on mobile) ----- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

@media (max-width: 767px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }

  .stats-grid__item {
    padding: var(--space-3);
  }

  .stats-grid__value {
    font-size: var(--text-lg);
  }

  .stats-grid__label {
    font-size: var(--text-xs);
  }
}

/* ----- Pattern 2: Horizontal Scroll Cards ----- */
.mobile-scroll-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

@media (max-width: 767px) {
  .mobile-scroll-cards {
    display: flex;
    gap: var(--space-4);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-4);
    margin-left: calc(var(--space-4) * -1);
    margin-right: calc(var(--space-4) * -1);
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .mobile-scroll-cards > * {
    flex: 0 0 280px;
    scroll-snap-align: start;
  }

  /* Hide scrollbar but keep functionality */
  .mobile-scroll-cards::-webkit-scrollbar {
    height: 4px;
  }

  .mobile-scroll-cards::-webkit-scrollbar-track {
    background: var(--gray-200);
    border-radius: var(--radius-full);
  }

  .mobile-scroll-cards::-webkit-scrollbar-thumb {
    background: var(--gold-500);
    border-radius: var(--radius-full);
  }
}

/* ----- Pattern 3: Mobile CTA Bar (Sticky Bottom) ----- */
.mobile-cta-bar {
  display: none;
}

@media (max-width: 767px) {
  .mobile-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: var(--space-3) var(--space-4);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    z-index: var(--z-fixed);
    display: flex;
    gap: var(--space-3);
  }

  .mobile-cta-bar .btn {
    flex: 1;
    justify-content: center;
  }

  /* Add padding to body when mobile CTA bar is present */
  body.has-mobile-cta {
    padding-bottom: 80px;
  }
}

/* Safe area insets for notched devices */
@supports (padding: env(safe-area-inset-bottom)) {
  @media (max-width: 767px) {
    .mobile-cta-bar {
      padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom));
    }

    body.has-mobile-cta {
      padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }
  }
}

/* ----- CTA Button Pairs: Full Width on Small Mobile ----- */
@media (max-width: 639px) {
  .section--dark .flex.gap-4,
  .section .flex.gap-4.justify-center {
    flex-direction: column;
    align-items: stretch;
  }

  .section--dark .flex.gap-4 .btn,
  .section .flex.gap-4.justify-center .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ----- Pattern 4: Responsive Button Stack ----- */
.btn-stack {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

@media (max-width: 639px) {
  .btn-stack {
    flex-direction: column;
  }

  .btn-stack .btn {
    width: 100%;
    justify-content: center;
  }

  /* On mobile, make secondary button less prominent */
  .btn-stack .btn-secondary {
    background: transparent;
    box-shadow: none;
  }
}

/* ----- Pattern 5: Mobile Accordion Sections ----- */
.mobile-accordion {
  border-bottom: 1px solid var(--gray-200);
}

.mobile-accordion__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) 0;
  cursor: pointer;
  user-select: none;
}

.mobile-accordion__header:hover {
  color: var(--gold-600);
}

.mobile-accordion__icon {
  width: 20px;
  height: 20px;
  color: var(--gray-400);
  transition: transform var(--duration-normal) var(--ease-out);
}

.mobile-accordion.is-open .mobile-accordion__icon {
  transform: rotate(180deg);
}

.mobile-accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-normal) var(--ease-out);
}

.mobile-accordion.is-open .mobile-accordion__content {
  max-height: 2000px;
}

/* ----- SEO Page FAQ Accordion (Interactive) ----- */
.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--charcoal-900);
  cursor: pointer;
  user-select: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.faq-item__question:hover {
  color: var(--gold-600);
}

.faq-item__question:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.faq-item__question span {
  flex: 1;
}

.faq-item__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--gray-400);
  transition:
    transform var(--duration-normal) var(--ease-out),
    color var(--duration-fast) var(--ease-out);
}

.faq-item__question:hover .faq-item__icon {
  color: var(--gold-500);
}

.faq-item__question[aria-expanded="true"] .faq-item__icon {
  transform: rotate(180deg);
  color: var(--gold-500);
}

.faq-item__answer {
  padding-bottom: var(--space-5);
  color: var(--gray-600);
  line-height: var(--leading-relaxed);
  overflow: hidden;
  transition:
    max-height var(--duration-normal) var(--ease-out),
    padding var(--duration-normal) var(--ease-out);
}

.faq-item__answer[hidden] {
  display: block;
  max-height: 0;
  padding-bottom: 0;
  visibility: hidden;
}

.faq-item.is-open .faq-item__answer {
  visibility: visible;
}

/* Mobile FAQ adjustments */
@media (max-width: 767px) {
  .faq-item__question {
    font-size: var(--text-base);
    padding: var(--space-4) 0;
  }

  .faq-item__icon {
    width: 20px;
    height: 20px;
  }

  .faq-item__answer {
    font-size: var(--text-sm);
  }
}

/* ----- Pattern 6: Responsive Breadcrumbs ----- */
.breadcrumbs-responsive {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-1);
  font-size: var(--text-sm);
}

@media (max-width: 639px) {
  .breadcrumbs-responsive {
    font-size: var(--text-xs);
  }

  /* Hide middle items on mobile, show ellipsis */
  .breadcrumbs-responsive__item--middle {
    display: none;
  }

  .breadcrumbs-responsive__ellipsis {
    display: inline;
  }
}

@media (min-width: 640px) {
  .breadcrumbs-responsive__ellipsis {
    display: none;
  }
}

/* ----- Pattern 7: Mobile-Optimized Form Inputs ----- */
@media (max-width: 767px) {
  .input,
  .select,
  textarea {
    min-height: 48px;
    font-size: 16px; /* Prevents iOS zoom */
    padding: var(--space-3) var(--space-4);
  }

  .form-group {
    margin-bottom: var(--space-5);
  }

  /* Stack form buttons on mobile */
  .form-actions {
    flex-direction: column;
    gap: var(--space-3);
  }

  .form-actions .btn {
    width: 100%;
  }
}

/* ----- Pattern 8: Mobile Card Improvements ----- */
@media (max-width: 767px) {
  .card {
    padding: var(--space-4);
  }
}

/* Active state for touch feedback on router buttons */
.router__button:active {
  transform: scale(0.98);
  transition: transform 0.1s ease;
}

/* Disable hover effects on touch devices */
@media (hover: none) {
  .card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
    border-color: var(--gray-200);
  }

  .project-card:hover {
    transform: none;
  }

  .project-card:hover .project-card__image {
    transform: none;
  }

  .product-card:hover,
  .location-card:hover {
    transform: none;
  }

  .problem-card:hover {
    transform: none;
    box-shadow: var(--shadow-md);
  }

  .router__button:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--gray-200);
  }

  .router__button--primary:hover {
    border-color: var(--gold-400);
  }
}

/* ----- Pattern 9: Quick Stats Bar Mobile ----- */
.quick-stats__inner {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: var(--space-6);
}

@media (max-width: 639px) {
  .quick-stats__inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    text-align: center;
  }

  .quick-stats__item {
    padding: var(--space-2);
  }

  .quick-stats__value {
    font-size: var(--text-lg);
  }

  .quick-stats__label {
    font-size: var(--text-xs);
  }
}

/* ----- Pattern 10: Mobile Hero Adjustments ----- */
@media (max-width: 767px) {
  .product-hero,
  .location-hero {
    padding: var(--space-8) 0;
  }

  .product-hero__inner {
    gap: var(--space-6);
  }

  .product-hero__title,
  .location-hero__title {
    font-size: var(--text-display-md);
  }

  .product-hero__subtitle,
  .location-hero__subtitle {
    font-size: var(--text-base);
  }

  /* Pricing card mobile layout */
  .pricing-card {
    padding: var(--space-5);
  }

  .pricing-card__price {
    font-size: var(--text-display-md);
  }

  .pricing-card__stats {
    gap: var(--space-3);
  }
}

/* ----- Pattern 11: Grid Improvements for Tablet ----- */
/* 2-column on tablet for better density */
@media (min-width: 640px) and (max-width: 1023px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ----- Pattern 12: Section Padding Mobile ----- */
@media (max-width: 639px) {
  .section--sm {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
  }
}

/* ==========================================================================
   24. How It Works — Premium Overhaul
   Page header entrance, vertical timeline, step cards, gantt chart,
   guarantee icons, touch hover disable
   ========================================================================== */

/* ----- Part 1: Page Header Entrance Cascade ----- */
.page-header {
  background: linear-gradient(180deg, var(--warm-white) 0%, var(--white) 100%);
}

.page-header .badge {
  animation: badge-enter 0.6s var(--ease-expo-out) 0.15s both;
}

.page-header .page-header__title {
  animation: badge-enter 0.6s var(--ease-expo-out) 0.25s both;
}

.page-header .page-header__subtitle {
  animation: badge-enter 0.6s var(--ease-expo-out) 0.4s both;
}

.page-header .btn {
  animation: badge-enter 0.5s var(--ease-expo-out) 0.55s both;
}

/* ----- Part 2: Vertical Timeline Connector ----- */
.process-timeline {
  position: relative;
}

.process-timeline__line {
  position: absolute;
  left: 23px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(
    180deg,
    var(--gold-400) 0%,
    var(--gold-500) 50%,
    var(--gold-400) 100%
  );
  z-index: 0;
}

.process-timeline .process-detailed__step {
  position: relative;
  z-index: 1;
}

.process-timeline .process-detailed__number {
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 4px var(--white);
}

.section--gray .process-detailed__number {
  box-shadow: 0 0 0 4px var(--gray-100);
}

/* ----- Part 3: Step Card Refinement ----- */
.process-timeline .process-detailed__step {
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 3px solid transparent;
  box-shadow: var(--shadow-sm);
  transition:
    border-left-color 0.3s var(--ease-expo-out),
    box-shadow 0.3s var(--ease-expo-out),
    transform 0.3s var(--ease-expo-out);
}

.process-timeline .process-detailed__step.is-visible,
.process-timeline .reveal-stagger.is-visible > .process-detailed__step {
  border-left-color: var(--gold-400);
}

.process-timeline .process-detailed__step:hover {
  box-shadow: 0 8px 24px -4px rgb(0 0 0 / 0.08);
  transform: translateY(-1px);
}

/* Duration badge — gold pill */
.process-detailed__duration {
  display: inline-flex;
  padding: var(--space-0-5) var(--space-2);
  background-color: var(--gold-100);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--gold-600);
  font-weight: 500;
}

/* Step number — scale-in on reveal */
@keyframes number-pop {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.process-timeline
  .reveal-stagger.is-visible
  > *:nth-child(1)
  .process-detailed__number {
  animation: number-pop 0.4s var(--ease-expo-out) 0ms both;
}
.process-timeline
  .reveal-stagger.is-visible
  > *:nth-child(2)
  .process-detailed__number {
  animation: number-pop 0.4s var(--ease-expo-out) 60ms both;
}
.process-timeline
  .reveal-stagger.is-visible
  > *:nth-child(3)
  .process-detailed__number {
  animation: number-pop 0.4s var(--ease-expo-out) 120ms both;
}
.process-timeline
  .reveal-stagger.is-visible
  > *:nth-child(4)
  .process-detailed__number {
  animation: number-pop 0.4s var(--ease-expo-out) 180ms both;
}
.process-timeline
  .reveal-stagger.is-visible
  > *:nth-child(5)
  .process-detailed__number {
  animation: number-pop 0.4s var(--ease-expo-out) 240ms both;
}
.process-timeline
  .reveal-stagger.is-visible
  > *:nth-child(6)
  .process-detailed__number {
  animation: number-pop 0.4s var(--ease-expo-out) 300ms both;
}
.process-timeline
  .reveal-stagger.is-visible
  > *:nth-child(7)
  .process-detailed__number {
  animation: number-pop 0.4s var(--ease-expo-out) 360ms both;
}

/* Optional step — refined dashed border */
.process-timeline .process-detailed__step--optional {
  background-color: var(--gray-50);
  border: 1px dashed var(--gray-300);
  border-left: 3px dashed var(--gray-300);
}

/* ----- Part 4: Gantt Chart ----- */
.gantt {
  max-width: 700px;
  margin: 0 auto;
}

.gantt__header {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  margin-bottom: var(--space-3);
}

.gantt__month {
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--gray-500);
  text-transform: uppercase;
}

.gantt__track {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: var(--space-1);
  margin-bottom: var(--space-2);
}

.gantt__bar {
  padding: var(--space-2) var(--space-3);
  background-color: var(--gray-200);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--gray-600);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-expo-out);
}

.gantt__bar::after {
  content: attr(data-label);
}

.gantt__bar--gold {
  background-color: var(--gold-400);
  color: var(--charcoal-900);
}

.gantt__bar--accent {
  background-color: var(--gold-200);
  color: var(--gold-900);
}

.reveal.is-visible .gantt__bar,
.gantt.is-visible .gantt__bar {
  transform: scaleX(1);
}

.reveal.is-visible .gantt__track:nth-child(2) .gantt__bar {
  transition-delay: 0.15s;
}

.reveal.is-visible .gantt__track:nth-child(3) .gantt__bar {
  transition-delay: 0.3s;
}

.gantt__milestones {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  margin-top: var(--space-4);
}

.gantt__milestone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.gantt__dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background-color: var(--gray-400);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--gray-300);
  transform: scale(0);
  transition: transform 0.3s var(--ease-expo-out);
}

.gantt__dot--gold {
  background-color: var(--gold-500);
  box-shadow: 0 0 0 2px var(--gold-200);
}

.gantt__milestone-label {
  font-size: var(--text-xs);
  color: var(--gray-500);
  text-align: center;
}

.reveal.is-visible .gantt__milestone:nth-child(1) .gantt__dot {
  transition-delay: 0.3s;
}

.reveal.is-visible .gantt__milestone:nth-child(2) .gantt__dot {
  transition-delay: 0.5s;
}

.reveal.is-visible .gantt__milestone:nth-child(3) .gantt__dot {
  transition-delay: 0.7s;
}

.reveal.is-visible .gantt__dot {
  transform: scale(1);
}

/* Gantt mobile */
@media (max-width: 639px) {
  .gantt__bar {
    font-size: 11px;
    padding: var(--space-1-5) var(--space-2);
  }
  .gantt__milestone-label {
    font-size: 11px;
  }
}

/* ----- Part 5: Card Icon Wrapper ----- */
.card__icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-4);
  background-color: var(--gold-100);
  border-radius: var(--radius-full);
  color: var(--gold-600);
}

.card__icon-wrapper svg {
  width: 24px;
  height: 24px;
}

/* ----- Part 7: Disable hover on touch (process cards) ----- */
@media (hover: none) {
  .process-timeline .process-detailed__step:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }
}

/* ==========================================================================
   CTA Reassurance Text (used across multiple pages)
   ========================================================================== */

.cta-reassurance {
  font-size: var(--text-sm);
  color: var(--gray-400);
  text-align: center;
  margin-top: var(--space-2);
}
