/* === Section === */
.section {
  padding: 4rem 0;
}

.section--alt {
  background-color: var(--light);
}

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

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.0625rem;
  max-width: 600px;
  margin: 0 auto;
}

.section--dark .section-header h2 {
  color: var(--white);
}

.section--dark .section-header p {
  color: var(--gray);
}

/* === Card Grid === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* === Service Card === */
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow 0.2s, transform 0.15s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

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

/* Image variant */
.service-card--image {
  padding: 0;
  overflow: hidden;
}

.service-card__img-wrap {
  overflow: hidden;
  height: 180px;
}

.service-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.service-card:hover .service-card__img {
  transform: scale(1.05);
}

.service-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card__title {
  font-family: 'Roboto Slab', serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.service-card__desc {
  font-size: 0.9375rem;
  color: var(--text-light);
  line-height: 1.5;
  flex-grow: 1;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}

.service-card__link svg {
  transition: transform 0.15s;
}

.service-card:hover .service-card__link svg {
  transform: translateX(3px);
}

/* === Trust Bar === */
.trust-bar {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 2.5rem 0;
}

.trust-bar__item {
  text-align: center;
}

.trust-bar__number {
  font-family: 'Roboto Slab', serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  min-height: 2.5rem;
}

.trust-bar__label {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: 0.375rem;
}

/* === Feature List === */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature-list__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-list__icon {
  width: 40px;
  height: 40px;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

.feature-list__text h4 {
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.feature-list__text p {
  font-size: 0.9375rem;
  color: var(--text-light);
}

/* === Process Steps === */
.process-steps {
  display: flex;
  gap: 2rem;
  counter-reset: step;
}

.process-step {
  flex: 1;
  text-align: center;
  counter-increment: step;
}

.process-step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  background-color: var(--accent);
  color: var(--white);
  font-family: 'Roboto Slab', serif;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 50%;
}

.process-step h4 {
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.9375rem;
  color: var(--text-light);
}

/* === Product Grid === */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
}

.product-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: var(--light);
}

.product-card__body {
  padding: 1.5rem;
}

.product-card__title {
  font-family: 'Roboto Slab', serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.product-card__desc {
  font-size: 0.9375rem;
  color: var(--text-light);
  line-height: 1.5;
}

.product-card .btn {
  margin-top: 1rem;
}

/* === Gallery Grid === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* === CTA Section === */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.0625rem;
  max-width: 550px;
  margin: 0 auto 1.5rem;
}

.cta-section__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* === Contact Block === */
.contact-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-block__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-block__item svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* === Responsive: Tablet === */
@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* === Responsive: Mobile === */
@media (max-width: 768px) {
  .section {
    padding: 3rem 0;
  }

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

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

  .process-steps {
    flex-direction: column;
    gap: 1.5rem;
  }

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

  .trust-bar {
    flex-wrap: wrap;
    gap: 2rem 3rem;
  }

  .cta-section {
    padding: 2.5rem 0;
  }
}

/* === City marquee === */
.city-marquee {
  padding: 3rem 0 2rem;
}

.city-marquee__subtitle {
  color: var(--text-light);
  font-size: 1.0625rem;
  margin-bottom: 1.5rem;
}

.city-marquee__viewport {
  position: relative;
  overflow: hidden;
  min-height: 44px;
}

.city-marquee__viewport::before,
.city-marquee__viewport::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 64px;
  z-index: 2;
  pointer-events: none;
}

.city-marquee__viewport::before {
  left: 0;
  background: linear-gradient(90deg, var(--white) 0%, rgba(255, 255, 255, 0) 100%);
}

.city-marquee__viewport::after {
  right: 0;
  background: linear-gradient(270deg, var(--white) 0%, rgba(255, 255, 255, 0) 100%);
}

.city-marquee__track {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: max-content;
  animation: city-marquee-scroll 60s linear infinite;
  will-change: transform;
}

.city-marquee__pill {
  flex-shrink: 0;
  padding: 0.375rem 1rem;
  border: 1px solid var(--border);
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  background-color: var(--white);
  white-space: nowrap;
}

@keyframes city-marquee-scroll {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .city-marquee__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    gap: 0.5rem;
    will-change: auto;
  }

  .city-marquee__viewport::before,
  .city-marquee__viewport::after {
    display: none;
  }

  .city-marquee__track .city-marquee__pill[aria-hidden="true"] {
    display: none;
  }
}
