/* Hero */
.hero {
  padding: 24px 0 40px;
  background: linear-gradient(180deg, #fff 0%, var(--color-bg-mint) 100%);
}

.hero__card {
  background: linear-gradient(180deg, #fff 0%, var(--color-bg-mint) 100%);
  border-radius: var(--radius-lg);
  padding: 28px 20px 20px;
  box-shadow: var(--shadow-md);
}

@media (min-width: 1024px) {
  .hero {
    padding: 32px 0 56px;
  }

  .hero__card {
    padding: 40px 40px 28px;
  }
}

.hero__top {
  display: grid;
  gap: 28px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero__top {
    grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
    gap: 40px;
  }
}

.hero__copy h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero__copy p {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  max-width: 36ch;
}

.hero__visual img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.hero__stats {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

@media (min-width: 768px) {
  .hero__stats {
    grid-template-columns: 1fr 1fr 1.4fr;
    gap: 16px;
    margin-top: 32px;
  }
}

.hero__stat {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.hero__stat-icon {
  display: block;
  margin-bottom: 10px;
  color: var(--color-primary);
}

.hero__stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--color-navy);
  margin-bottom: 6px;
}

.hero__stat span {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.hero__stat--story {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.hero__stat--story img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.hero__stat--story strong {
  font-size: 0.95rem;
}

/* Case studies block */
.case-studies {
  padding: 56px 0 48px;
  background: #fff;
}

.results__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.results__head h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  max-width: 22ch;
  margin: 0;
}

.case-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.case-nav__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--color-bg-soft);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  max-width: min(100%, 620px);
}

.case-nav__logo {
  flex: 0 0 132px;
  width: 132px;
  height: 52px;
  padding: 8px 12px;
  border: none;
  background: #fff;
  border-radius: var(--radius-sm);
  cursor: pointer;
  opacity: 0.55;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition), box-shadow var(--transition);
}

.case-nav__logo.is-active {
  opacity: 1;
  box-shadow: var(--shadow-sm);
}

.case-nav__logo img {
  height: 32px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  /* white SVG logos → dark on light background */
  filter: brightness(0) saturate(100%);
}

.case-nav__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: #fff;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-navy);
  cursor: pointer;
}

.case-slider {
  position: relative;
  width: 100%;
  min-height: 520px;
}

@media (min-width: 900px) {
  .case-slider {
    min-height: 400px;
  }
}

.case-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-navy-dark) center / cover no-repeat;
  background-image: linear-gradient(
      90deg,
      rgb(var(--color-navy-rgb) / 0.92) 0%,
      rgb(var(--color-navy-rgb) / 0.75) 55%,
      rgb(var(--color-navy-rgb) / 0.5) 100%
    ),
    var(--case-bg);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.case-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.case-slide__inner {
  display: grid;
  gap: 28px;
  padding: 40px 28px;
  min-height: 500px;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .case-slide__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: center;
    padding: 48px 56px;
    gap: 48px;
    min-height: 400px;
  }
}

.case-slide__left {
  min-width: 0;
}

.case-slide blockquote {
  font-size: 1.125rem;
  line-height: 1.6;
  font-style: italic;
  margin: 0 0 24px;
  min-height: 7.2em;
}

@media (min-width: 900px) {
  .case-slide blockquote {
    min-height: 6.4em;
  }
}

.case-slide__author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.case-slide__author img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
}

.case-slide__author h4 {
  margin: 0 0 4px;
  font-size: 1rem;
  color: #fff;
}

.case-slide__author span {
  font-size: 14px;
  opacity: 0.85;
}

.case-slide__cta {
  display: inline-flex;
}

.case-slide__metrics {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  align-content: center;
  min-height: 120px;
  width: 100%;
  max-width: 360px;
}

@media (min-width: 900px) {
  .case-slide__metrics {
    margin-left: auto;
    max-width: 100%;
  }
}

.case-slide__value {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.case-slide__metrics article span:last-child {
  font-size: 14px;
  opacity: 0.9;
}

/* Mint inline CTA */
.section--mint {
  background: var(--color-bg-mint);
}

.cta-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.cta-inline h3 {
  margin: 0;
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  max-width: 28ch;
}

/* Solution cards */
.solutions-grid {
  display: grid;
  gap: 24px;
}

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

.solution-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.solution-card__media {
  background: var(--color-gradient-card);
  padding: 12px;
}

.solution-card__media img {
  width: 100%;
  border-radius: var(--radius-sm);
  display: block;
}

.solution-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.solution-card h3 {
  font-size: 1.125rem;
  margin-bottom: 10px;
}

.solution-card p {
  font-size: 15px;
  color: var(--color-text-muted);
  flex: 1;
  margin-bottom: 16px;
}

.solution-card__link {
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.solution-card__link::after {
  content: "→";
}

.solution-card--text {
  padding: 24px;
}

.solution-card--text h3,
.solution-card--text p,
.solution-card--text .card__link {
  padding: 0;
}

/* Map */
.map-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.map-section__head h2 {
  margin-bottom: 12px;
}

.map-section__head p {
  color: var(--color-text-muted);
  max-width: 52ch;
  margin: 0;
}

.map-section__visual {
  margin-bottom: 32px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.map-section__visual img {
  width: 100%;
  display: block;
}

.stats-row {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
}

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

.stat-counter {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.stat-counter__icon {
  color: var(--color-primary);
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.stat-counter__label {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0 0 12px;
  line-height: 1.4;
}

.stat-counter__value {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--color-navy);
  margin: 0;
}

.cta-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px;
  background: var(--color-bg-mint);
  border-radius: var(--radius-md);
}

.cta-box h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.cta-box p {
  margin: 0;
  color: var(--color-text-muted);
  max-width: 48ch;
}

/* Tech */
.tech-showcase {
  display: grid;
  gap: 24px;
  margin-bottom: 32px;
  padding: 24px;
  background: #fff;
  border: 3px solid var(--color-navy);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

@media (min-width: 900px) {
  .tech-showcase {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    padding: 32px;
  }
}

.tech-showcase__visual img {
  width: 100%;
  border-radius: var(--radius-md);
}

.tech-showcase__badges h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 16px;
  padding-left: 28px;
  position: relative;
}

.tech-showcase__badges h4::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* Industries grid (no horizontal scroll) */
.industries {
  overflow: hidden;
}

.industries-track {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

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

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

.industry-card {
  display: block;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.industry-card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.industry-card__body {
  padding: 24px;
}

.industry-card h3 {
  margin-bottom: 8px;
}

.industry-card p {
  font-size: 15px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

/* Reviews */
.reviews__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.reviews__head h2 {
  margin: 0;
}

.reviews__trust {
  height: 32px;
  width: auto;
}

.testimonials {
  display: grid;
  gap: 20px;
}

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

  .testimonial:nth-child(4),
  .testimonial:nth-child(5) {
    grid-column: span 1;
  }
}

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

.testimonial {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  font-size: 15px;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
}

.testimonial p {
  flex: 1;
  margin-bottom: 20px;
}

.testimonial__foot {
  margin-top: auto;
}

.testimonial__stars {
  display: block;
  margin-bottom: 12px;
  height: 18px;
  width: auto;
}

.testimonial cite {
  font-style: normal;
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 14px;
}

/* Contact */
.contact-section {
  background: var(--color-gradient-contact);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
}

@media (min-width: 1024px) {
  .contact-section {
    padding: 56px 48px;
  }
}

.contact-section__grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 1024px) {
  .contact-section__grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

.contact-section__intro {
  color: var(--color-text-muted);
  margin: 12px 0 20px;
}

.contact-section__list {
  padding-left: 20px;
}

.contact-section__list li {
  margin-bottom: 10px;
  color: var(--color-text-muted);
}

.contact-form {
  background: #fff;
  padding: 28px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.contact-form .btn {
  width: 100%;
  margin-top: 8px;
}

.contact-form__legal {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 12px;
  text-align: center;
}

.form-row {
  display: grid;
  gap: 0 16px;
}

@media (min-width: 480px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.cta-banner .btn--dark {
  background: var(--color-navy);
  color: #fff;
  border-color: var(--color-navy);
}

.cta-banner .btn--dark:hover {
  background: var(--color-navy-dark);
  color: #fff;
}

/* —— Mobile (≤767px) —— */
@media (max-width: 767px) {
  .hero {
    padding: 16px 0 32px;
  }

  .hero__card {
    padding: 20px 16px 16px;
    border-radius: var(--radius-md);
  }

  .hero__copy h1 {
    font-size: 1.65rem;
  }

  .hero__copy .btn {
    width: 100%;
  }

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

  .hero__stat--story {
    flex-direction: row;
  }

  .results__head {
    flex-direction: column;
    align-items: stretch;
  }

  .results__head .btn {
    width: 100%;
    text-align: center;
  }

  .case-nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .case-nav__logos {
    order: 3;
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    gap: 10px;
  }

  .case-nav__logo {
    flex: 1 1 calc(50% - 10px);
    width: auto;
    min-width: 0;
    max-width: none;
    height: 48px;
  }

  .case-slider {
    min-height: 580px;
  }

  .case-slide__inner {
    grid-template-columns: 1fr;
    min-height: 560px;
    padding: 28px 20px;
    gap: 20px;
  }

  .case-slide blockquote {
    min-height: auto;
    font-size: 1rem;
  }

  .case-slide__metrics {
    max-width: none;
    grid-template-columns: 1fr 1fr;
  }

  .cta-inline {
    flex-direction: column;
    align-items: stretch;
    padding: 24px 20px;
  }

  .cta-inline .btn {
    width: 100%;
  }

  .map-section__head {
    flex-direction: column;
  }

  .map-section__visual {
    margin-left: -4px;
    margin-right: -4px;
    border-radius: var(--radius-md);
  }

  .map-section__visual img {
    width: 100%;
    height: auto;
  }

  .tech-showcase {
    grid-template-columns: 1fr;
    padding: 20px 16px;
  }

  .cta-box {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .cta-box .btn {
    width: 100%;
  }

  .reviews__head {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .contact-section {
    padding: 28px 16px;
    border-radius: var(--radius-md);
    margin: 0 -4px;
  }

  .contact-section .form-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 48px 0;
  }
}
