html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
}

/* Keep the hero headline from breaking awkwardly on small screens */
@media (max-width: 420px) {
  h1 br {
    display: none;
  }
}

/* ---- Services rail ---- */

/* Hide the scrollbar but keep the sideways scrolling */
.services-rail {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.services-rail::-webkit-scrollbar {
  display: none;
}

.service-card {
  flex: 0 0 auto;
  width: 17rem;
  scroll-snap-align: start;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #fff;
  padding: 1rem 1rem 1.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover,
.service-card:focus-within {
  border-color: #3076CE;
  box-shadow: 0 0 0 1px #3076CE;
}

@media (min-width: 640px) {
  .service-card {
    width: 18.5rem;
  }
}

/* Roomier cards on desktop */
@media (min-width: 1024px) {
  .service-card {
    width: 21rem;
    padding: 1.25rem 1.25rem 2rem;
  }
}

.rail-arrow {
  display: inline-flex;
  height: 2.75rem;
  width: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid #3076CE;
  color: #3076CE;
  background: #fff;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.rail-arrow:hover:not(:disabled) {
  background: #3076CE;
  color: #fff;
}

.rail-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

/* ---- Special offers ---- */
.offer-card {
  border-radius: 1rem;
  background: #F2F7FD;
  padding: 1.75rem 1.25rem;
  text-align: center;
}

/* ---- Contact form fields ---- */
.field {
  width: 100%;
  border-radius: 0.625rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field::placeholder {
  color: #94a3b8;
}

.field:focus {
  border-color: #3076CE;
  box-shadow: 0 0 0 3px rgba(48, 118, 206, 0.18);
}

select.field {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.1rem;
  padding-right: 2.75rem;
}

textarea.field {
  resize: vertical;
  min-height: 7rem;
}

/* ---- FAQ ---- */
.faq-item {
  background: #fff;
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  padding: 1.25rem;
}

.faq-item[open] summary {
  padding-bottom: 0.5rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-num {
  flex: 0 0 auto;
  font-size: 0.875rem;
  font-weight: 500;
  color: #94a3b8;
}

.faq-q {
  flex: 1 1 auto;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
}

.faq-chevron {
  flex: 0 0 auto;
  height: 1.25rem;
  width: 1.25rem;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-a {
  margin: 0;
  padding: 0 1.25rem 1.25rem 3.4rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #64748b;
}

@media (min-width: 640px) {
  .faq-item summary {
    gap: 1.75rem;
    padding: 1.5rem 2rem;
  }

  .faq-item[open] summary {
    padding-bottom: 0.5rem;
  }

  .faq-q {
    font-size: 1.0625rem;
  }

  .faq-a {
    padding: 0 2rem 1.5rem 4.6rem;
  }
}

/* ---- Floating call CTA ---- */
.call-cta {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: 9999px;
  background: #3076CE;
  color: #fff;
  padding: 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(15, 27, 45, 0.25);
  transition: background 0.2s ease, transform 0.2s ease;
}

.call-cta:hover {
  background: #2663b0;
  transform: translateY(-2px);
}

/* Icon only on phones, full number from sm up */
.call-cta-label {
  display: none;
}

@media (min-width: 640px) {
  .call-cta {
    left: 1.5rem;
    bottom: 1.5rem;
    padding: 0.9rem 1.4rem;
  }

  .call-cta-label {
    display: inline;
  }
}
