/* ==========================================================================
   PAGES — Page-Specific Overrides
   ========================================================================== */

/* Services Hub — Org Scan Feature Callout */
.org-scan-callout {
  background: linear-gradient(135deg, var(--color-orange), #ff8a2e);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.org-scan-callout h2,
.org-scan-callout h3 {
  color: var(--color-white);
}

.org-scan-callout p {
  color: rgba(255, 255, 255, 0.9);
}

.org-scan-callout .btn-secondary {
  border-color: var(--color-white);
  color: var(--color-white);
}

.org-scan-callout .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.org-scan-jetpack {
  position: absolute;
  right: -60px;
  top: 50%;
  width: 320px;
  height: auto;
  transform: translateY(-50%) scaleX(-1);
  opacity: 0.18;
  pointer-events: none;
}

@media (max-width: 768px) {
  .org-scan-jetpack {
    width: 220px;
    right: -80px;
    opacity: 0.14;
  }
}

/* Split section — text left, image right */
.split-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 768px) {
  .split-section {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
}

.split-section__image .photo-break__placeholder {
  height: 100%;
  min-height: 320px;
}

.split-section__photo {
  width: 100%;
  height: 100%;
  min-height: 420px;
  max-height: 500px;
  object-fit: cover;
  object-position: 40% 40%;
  border-radius: var(--radius-md, 12px);
  transform: scale(1.4);
  transform-origin: 40% 40%;
}

.split-section__image {
  overflow: hidden;
  border-radius: var(--radius-md, 12px);
}

/* Hero dot pattern */
.hero--dots {
  position: relative;
  overflow: hidden;
}

.hero-dots {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Contact Page — Two paths layout */
.two-paths {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .two-paths {
    grid-template-columns: 1fr 1fr;
  }
}

.path-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
}

.path-card h3 {
  margin-bottom: var(--space-sm);
}

.path-card p {
  margin-bottom: var(--space-lg);
  max-width: none;
}

/* About Page — Team Grid */
.team-grid {
  display: grid;
  gap: var(--space-3xl) var(--space-xl);
  grid-template-columns: repeat(2, 1fr);
  margin-top: var(--space-2xl);
}

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

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

.team-avatar {
  width: 200px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto var(--space-md);
  background-color: var(--color-offwhite);
  border: 1px solid var(--color-border);
}

.team-name {
  font-family: var(--font-accent);
  font-size: var(--text-h3);
  color: var(--color-navy);
  margin-bottom: var(--space-xs);
  line-height: var(--leading-tight);
}

.team-title {
  font-size: var(--text-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin: 0;
}

/* About Page — Topographic Background */
.bg-topo {
  background-color: var(--color-offwhite);
  background-image: url("../assets/topo-bg.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* About Page — Values */
.values-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: var(--content-max);
  margin: 0 auto;
}

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

.value-card h3 {
  color: var(--color-orange-text);
  margin-bottom: var(--space-sm);
}

/* Integration categories */
.integration-category {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-border);
}

.integration-category:last-child {
  border-bottom: none;
}

.integration-category h3 {
  margin-bottom: var(--space-sm);
}

/* Quick facts row */
.quick-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

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

.quick-fact {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.quick-fact:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.quick-fact__number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand-orange, #FF7302);
  line-height: 1;
  letter-spacing: -0.02em;
}

.quick-fact__label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy, #394664);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.quick-fact__desc {
  font-size: 0.85rem;
  color: #7a7a7a;
  margin-top: 0.35rem;
}

.quick-facts__footer {
  text-align: center;
  margin-top: var(--space-lg);
}

.quick-facts__footer p {
  color: #7a7a7a;
  font-size: 0.95rem;
}

.quick-facts__footer .btn-text {
  display: inline-block;
  margin-top: var(--space-sm);
}

/* --- Industries + Technologies columns --- */
.facts-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-xl, 3rem);
  padding-top: var(--space-xl, 3rem);
  border-top: 1px solid #e8e8e8;
}

@media (min-width: 768px) {
  .facts-columns {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl, 3rem);
  }
}

.facts-column__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy, #394664);
  margin-bottom: var(--space-md, 1.5rem);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--brand-orange, #FF7302);
  display: inline-block;
}

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

.facts-column__list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #f0f0f0;
  color: var(--navy, #394664);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.facts-column__list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-orange, #FF7302);
  flex-shrink: 0;
}

.facts-column__list--compact li {
  padding: 0.4rem 0;
  font-size: 0.9rem;
}

.facts-columns--tech {
  margin-top: var(--space-lg, 2rem);
  padding-top: var(--space-lg, 2rem);
  border-top: 1px solid #e8e8e8;
  margin-bottom: 0;
  padding-bottom: 0;
}

.facts-tech-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-md, 1.5rem);
}

@media (min-width: 768px) {
  .facts-tech-columns {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl, 3rem);
  }
}

.facts-tech-group__heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-orange, #FF7302);
  margin-bottom: 0.5rem;
}

/* --- Partner logos --- */
.partner-logos {
  margin-top: var(--space-xl, 3rem);
  padding-top: var(--space-xl, 3rem);
  border-top: 1px solid #e8e8e8;
  text-align: center;
}

.partner-logos__label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999;
  margin-bottom: var(--space-md, 1.5rem);
  max-width: none;
  text-align: center;
}

.partner-logos__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg, 2rem);
}

.partner-logo {
  font-size: 0.85rem;
  font-weight: 700;
  color: #bbb;
  padding: 0.75rem 1.5rem;
  border: 1px dashed #ddd;
  border-radius: 8px;
  min-width: 120px;
  text-align: center;
}

.bg-topo .partner-logo {
  color: #666;
  border-color: #c9c9c9;
  background: rgba(255, 255, 255, 0.6);
}

.partner-logos__grid--images {
  gap: var(--space-xl, 3rem) var(--space-2xl, 4rem);
}

.partner-logo-img {
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.partner-logo-img[src*="mulesoft"],
.partner-logo-img[src*="informatica"],
.partner-logo-img[src*="databricks"] {
  height: 58px;
}

.partner-logo-img[src*="slack"],
.partner-logo-img[src*="snowflake"],
.partner-logo-img[src*="openai"],
.partner-logo-img[src*="anthropic"] {
  height: 34px;
}

.partner-logo-img:hover {
  opacity: 1;
}

/* ==========================================================================
   HOME PAGE — Landing Page Styles
   ========================================================================== */

/* Photo break */
.photo-break {
  width: 100%;
  padding: 0 var(--space-lg);
}

.photo-break__placeholder {
  max-width: 1200px;
  margin: 0 auto;
  height: 400px;
  background: #d1d1d1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.photo-break__placeholder span {
  font-size: 1.1rem;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.photo-break img {
  width: 100%;
  height: 400px;
  max-width: 1200px;
  margin: 0 auto;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}

@media (max-width: 767px) {
  .photo-break__placeholder,
  .photo-break img {
    height: 240px;
    border-radius: 8px;
  }
}

/* Hero Home */
.hero-home {
  position: relative;
  padding-top: calc(var(--nav-height) + var(--space-5xl));
  padding-bottom: calc(var(--space-5xl) + 80px); /* extra room for chevron */
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-home .container {
  position: relative;
  z-index: 2;
}

.hero-centered {
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
}

.hero-centered .lead {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Particle Background (canvas-based connected network) */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: all;
}

.hero-particles canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Zigzag Dividers */
.section-zigzag {
  position: relative;
  padding-bottom: calc(var(--space-4xl) + 50px);
}

@media (min-width: 768px) {
  .section-zigzag {
    padding-bottom: calc(var(--space-4xl) + 80px);
  }
}

.section-zigzag-top {
  position: relative;
  padding-top: calc(var(--space-4xl) + 50px);
}

@media (min-width: 768px) {
  .section-zigzag-top {
    padding-top: calc(var(--space-4xl) + 80px);
  }
}

.zigzag-divider {
  position: absolute;
  left: 0;
  right: 0;
  line-height: 0;
  z-index: 3;
}

.zigzag-bottom {
  bottom: 0;
}

.zigzag-top {
  top: 0;
}

.zigzag-divider svg {
  display: block;
  width: 100%;
  height: 50px;
}

@media (min-width: 768px) {
  .zigzag-divider svg {
    height: 80px;
  }
}

.chevron-divider-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  line-height: 0;
  z-index: 3;
}

.chevron-divider-top svg {
  display: block;
  width: 100%;
  height: 60px;
}

@media (min-width: 768px) {
  .chevron-divider-top svg {
    height: 80px;
  }
}

/* Step Sections */
.step-section {
  position: relative;
  padding-top: calc(var(--space-4xl) + 60px); /* room for top chevron */
  padding-bottom: var(--space-xl);
}

@media (min-width: 768px) {
  .step-section {
    padding-top: calc(var(--space-4xl) + 80px);
    padding-bottom: var(--space-2xl);
  }
}

.step-section .container {
  position: relative;
  z-index: 2;
}

.step-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}

.step-visual svg {
  max-width: 100%;
  height: auto;
}

/* Underlined Heading Accent */
.underlined {
  position: relative;
  display: inline-block;
  padding-bottom: var(--space-sm);
}

.underlined::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--color-orange);
  border-radius: 2px;
}

.text-center .underlined::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Approach Section */
.approach-section {
  position: relative;
  padding-bottom: calc(var(--space-4xl) + 80px);
}

.approach-section .section-header .lead {
  max-width: 680px;
}

/* Logo Grid */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  align-items: center;
  justify-items: center;
  margin-top: var(--space-2xl);
}

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

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

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  height: 80px;
}

.logo-placeholder {
  font-size: var(--text-body-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
  text-align: center;
  opacity: 0.6;
}

/* Team Preview */
.team-preview {
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.team-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--duration-normal) ease;
}

.team-photo:hover img {
  transform: scale(1.03);
}

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

/* CTA Band */
.cta-band {
  text-align: center;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  background-image: linear-gradient(
      rgba(57, 70, 100, 0.55),
      rgba(57, 70, 100, 0.55)
    ),
    url('../assets/team/cta-background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.cta-icon {
  margin-bottom: var(--space-xl);
}

.cta-icon svg {
  display: inline-block;
}

/* Social Links */
.social-links {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}

.footer-col a.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--color-text-muted-inverse);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--duration-fast) ease;
}

.footer-col a.social-link:hover {
  background-color: var(--color-orange);
  border-color: var(--color-orange);
  color: var(--color-white);
}

/* Background Utilities for offwhite chevrons */
.bg-offwhite .chevron-divider {
  color: var(--color-offwhite);
}

/* ==========================================================================
   SCROLL SECTION — Evolving SVG with scroll-driven panels
   ========================================================================== */

/* Outer wrapper: creates scroll distance */
.scroll-section {
  position: relative;
  height: 300vh;
  background-color: var(--color-offwhite);
}

/* Sticky viewport */
.sticky-container {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  overflow: hidden;
}

/* Content layout */
.content-row {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  height: 100%;
}

.text-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4xl) var(--space-3xl);
  position: relative;
}

.image-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4xl);
  position: relative;
}

/* Text panels */
.scroll-section .text-panel {
  position: absolute;
  max-width: 480px;
  padding-left: 40px;
  opacity: 0;
  transform: translateY(30px);
  transition: none;
  pointer-events: none;
}

.scroll-section .text-panel h2,
.scroll-section .text-panel h3 {
  font-size: var(--text-h2);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: var(--tracking-h2);
  line-height: var(--leading-heading);
  margin-bottom: var(--space-md);
}

.scroll-section .text-panel p {
  font-size: clamp(0.95rem, 1.2vw, 1.125rem);
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: none;
}

/* Progress dots */
.progress-dots {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 5;
}

.progress-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.12);
  transition: all 0.4s ease;
}

.progress-dot.active {
  background: var(--color-orange-text);
  box-shadow: 0 0 8px rgba(179, 80, 0, 0.3);
}

/* Evolving SVG image */
.evolving-image {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  position: relative;
}

.evolving-image svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Contained dark glow behind shapes */
.shape-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle,
      rgba(20, 28, 46, 0.92) 0%,
      rgba(57, 70, 100, 0.65) 20%,
      rgba(57, 70, 100, 0.25) 40%,
      transparent 60%
    );
  z-index: 0;
  pointer-events: none;
}

/* Logo that fades in as shapes converge */
.logo-reveal {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 55%;
  height: 55%;
  transform: translate(-50%, -50%);
  z-index: 2;
  opacity: 0;
  pointer-events: none;
}

/* Colorful mesh overlay on the glow */
.shape-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 30% 35%, rgba(61, 67, 179, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 65%, rgba(219, 36, 140, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 55% 30%, rgba(255, 115, 2, 0.2) 0%, transparent 40%);
}

/* --- Mobile Fallback (<=768px) --- */
/* Panel icons — hidden on desktop */
.panel-icon {
  display: none;
}

@media (max-width: 767px) {
  .scroll-section {
    height: auto;
    padding: var(--space-4xl) 0;
  }

  .sticky-container {
    position: relative;
    height: auto;
  }

  .content-row {
    flex-direction: column;
  }

  .text-side {
    display: block;
    padding: 0 var(--container-padding);
    flex: none;
  }

  .image-side {
    display: none;
  }

  .progress-dots {
    display: none;
  }

  .scroll-section .text-panel {
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: auto;
    margin: 0 auto var(--space-lg);
    padding: var(--space-xl) var(--space-lg);
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: opacity var(--duration-slow) var(--ease-default),
                transform var(--duration-slow) var(--ease-default);
  }

  .scroll-section .text-panel:first-child {
    opacity: 1;
    transform: translateY(0);
  }

  .scroll-section .text-panel.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Panel icons — visible on mobile */
  .panel-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 115, 2, 0.1);
    color: var(--color-orange);
    margin-bottom: var(--space-md);
  }

  .panel-icon svg {
    width: 22px;
    height: 22px;
  }

  .panel-icon--logo {
    background: none;
    width: 44px;
    height: 44px;
  }

  .panel-icon--logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .scroll-section {
    height: auto;
    padding: var(--space-4xl) 0;
  }

  .sticky-container {
    position: relative;
    height: auto;
  }

  .content-row {
    flex-direction: column;
  }

  .text-side {
    display: block;
    padding: 0 var(--container-padding);
    flex: none;
  }

  .image-side {
    display: none;
  }

  .progress-dots {
    display: none;
  }

  .scroll-section .text-panel {
    position: relative;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    margin: 0 auto var(--space-3xl);
    transition: none;
  }
}

/* ==========================================================================
   APPROACH STEPS — Vertical timeline with thread (used on services.html)
   ========================================================================== */

.approach-steps-section {
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-4xl);
}

.approach-steps {
  position: relative;
  max-width: 680px;
  margin: var(--space-3xl) auto 0;
  padding-left: 40px;
}

/* Vertical thread line */
.approach-thread {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 18px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--color-orange) 0%,
    rgba(255, 115, 2, 0.3) 100%
  );
}

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

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

.approach-step-marker {
  position: absolute;
  left: -40px;
  top: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-surface-mid);
  border: 2px solid var(--color-orange);
  border-radius: 50%;
  z-index: 2;
}

.approach-step-number {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-orange-text-inverse);
  letter-spacing: 0.02em;
}

.approach-step-content h3 {
  font-size: var(--text-h3);
  font-weight: 700;
  color: var(--color-text-inverse);
  margin-bottom: var(--space-sm);
}

.approach-step-content p {
  color: var(--color-text-muted-inverse);
  max-width: none;
}

/* ==========================================================================
   WORK CAROUSEL — Testimonial slides
   ========================================================================== */

.work-carousel {
  max-width: 1000px;
  margin: 0 auto;
}

.carousel-track {
  position: relative;
  overflow: hidden;
  min-height: 340px;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity var(--duration-slow) var(--ease-default),
    transform var(--duration-slow) var(--ease-default);
  pointer-events: none;
}

.carousel-slide.active {
  position: relative;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.carousel-slide-inner {
  display: grid;
  grid-template-columns: 2fr 3fr;
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.carousel-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-white);
  min-height: 280px;
}

.carousel-image img {
  max-width: 75%;
  max-height: 60%;
  object-fit: contain;
  display: block;
}

.carousel-quote {
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.carousel-client-name {
  display: block;
  font-size: var(--text-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--color-orange-text);
  margin-bottom: var(--space-md);
}

.carousel-quote blockquote {
  margin: 0;
}

.carousel-quote blockquote p {
  font-family: var(--font-accent);
  font-size: var(--text-h3);
  font-weight: 600;
  color: var(--color-charcoal);
  line-height: var(--leading-heading);
  max-width: none;
  margin-bottom: var(--space-lg);
}

.carousel-description {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  max-width: none;
}

/* Carousel Controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.carousel-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-charcoal);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}

.carousel-arrow:hover {
  border-color: var(--color-orange);
  color: var(--color-orange);
}

.carousel-dots {
  display: flex;
  gap: var(--space-sm);
}

.carousel-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background-color: transparent;
  background-image: radial-gradient(circle, var(--color-border) 5px, transparent 5px);
  cursor: pointer;
  padding: 0;
  transition: background-image var(--duration-fast) ease;
}

.carousel-dot.active {
  background-image: radial-gradient(circle, var(--color-orange) 5px, transparent 5px);
}

.carousel-dot:hover {
  background-image: radial-gradient(circle, var(--color-orange-hover) 5px, transparent 5px);
}

.carousel-closing {
  margin-top: var(--space-xl);
  margin-left: auto;
  margin-right: auto;
  font-size: var(--text-body);
  font-weight: 500;
  color: var(--color-text-secondary);
  text-align: center;
}

@media (max-width: 767px) {
  .carousel-slide-inner {
    grid-template-columns: 1fr;
  }

  .carousel-image {
    min-height: 160px;
    max-height: 200px;
  }

  .carousel-track {
    min-height: auto;
  }
}

/* ==========================================================================
   STAT BAR — Inline stats row
   ========================================================================== */

.stat-bar {
  display: flex;
  justify-content: center;
  gap: var(--space-3xl);
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.stat-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-xs);
}

.stat-bar-number {
  font-size: var(--text-h2);
  font-weight: 700;
  color: var(--color-orange-text);
  line-height: 1;
}

.stat-bar-label {
  font-size: var(--text-body-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
}

/* ==========================================================================
   FOOTER — Email link style
   ========================================================================== */

.footer-email {
  display: inline-block;
  margin-top: var(--space-sm);
  font-size: var(--text-body-sm);
  color: var(--color-text-muted-inverse);
  transition: color var(--duration-fast) ease;
}

.footer-email:hover {
  color: var(--color-orange);
}

/* ==========================================================================
   CTA BAND — Wider lead for CTA section
   ========================================================================== */

.cta-band .lead {
  max-width: 640px;
}

/* ==========================================================================
   MODERN CONTACT FORM
   ========================================================================== */

.modern-form-card {
  background: var(--color-white);
  border-radius: 16px;
  padding: var(--space-2xl) var(--space-xl);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
}

.modern-form-header {
  margin-bottom: var(--space-xl);
}

.modern-form-header h2 {
  font-size: var(--text-h2);
  margin-top: var(--space-xs);
}

.modern-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

@media (max-width: 560px) {
  .modern-form-card {
    padding: var(--space-xl) var(--space-lg);
  }
  .modern-form-grid {
    grid-template-columns: 1fr;
  }
}

/* Floating label field */
.modern-form-field {
  position: relative;
  margin-bottom: var(--space-md);
}

.modern-form-grid .modern-form-field {
  margin-bottom: 0;
}

.modern-form-field input,
.modern-form-field textarea,
.modern-form-field select {
  width: 100%;
  padding: 20px 16px 8px;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-offwhite);
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.modern-form-field label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: var(--color-text-secondary);
  pointer-events: none;
  transition: all 0.2s ease;
  transform-origin: left center;
}

.modern-form-field--textarea label,
.modern-form-field--select label {
  top: 18px;
  transform: translateY(0);
}

/* Float label up on focus or filled */
.modern-form-field input:focus + label,
.modern-form-field input:not(:placeholder-shown) + label,
.modern-form-field textarea:focus + label,
.modern-form-field textarea:not(:placeholder-shown) + label,
.modern-form-field select:focus + label,
.modern-form-field select:valid + label {
  top: 10px;
  transform: translateY(0);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-orange);
}

/* Focus ring */
.modern-form-field input:focus,
.modern-form-field textarea:focus,
.modern-form-field select:focus {
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px rgba(255, 115, 2, 0.1);
  background: var(--color-white);
}

/* Textarea specifics */
.modern-form-field textarea {
  min-height: 120px;
  resize: vertical;
  padding-top: 28px;
}

/* Select specifics */
.modern-form-field select {
  padding-top: 24px;
  padding-bottom: 8px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='7' viewBox='0 0 12 7' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* Optional tag */
.modern-form-field .optional {
  font-size: 0.85em;
  font-weight: 400;
  opacity: 0.5;
  text-transform: none;
  letter-spacing: 0;
}

/* Intent toggle */
.intent-toggle {
  display: flex;
  background: var(--color-offwhite);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: var(--space-sm);
}

.intent-tab {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.intent-tab.active {
  background: var(--color-white);
  color: var(--color-text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.intent-tab:hover:not(.active) {
  color: var(--color-text);
}

.intent-description {
  font-size: var(--text-body-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.5;
}

/* Success states */
.form-success {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
}

.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-orange);
  color: var(--color-white);
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}

.form-success h3 {
  font-size: var(--text-h3);
  margin-bottom: var(--space-sm);
}

.form-success p {
  color: var(--color-text-secondary);
  font-size: var(--text-body-sm);
}

.form-success a {
  color: var(--color-orange);
  text-decoration: underline;
}

/* Submit button */
.modern-form-submit {
  width: 100%;
  margin-top: var(--space-sm);
  padding: 16px;
  font-size: 1.05rem;
  border-radius: 10px;
}

/* Note */
.modern-form-note {
  text-align: center;
  font-size: var(--text-body-sm);
  color: var(--color-text-secondary);
  margin-top: var(--space-md);
}
