/* --- Cards --- */

.services-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100dvw;
}

.services-container h3 {
  padding-top: 40px;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  text-align: center;
}

.cards-container {
  display: flex;
  flex-direction: row;
  max-width: 100vw;
  padding: 30px 0;
  padding-bottom: 20px;
  gap: 20px;
  background-color: var(--main-bg-color);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-padding-left: 10vw;
  scroll-padding-right: 10vw;
}

.cards-container::-webkit-scrollbar {
  display: none;
}

.card {
  flex: 0 0 80vw;
  min-width: 240px;
  max-width: 320px;
  margin-right: 10px;
  padding: 30px;
  background-color: var(--card-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 4px 24px 0 var(--shadow-color);
  scroll-snap-align: center;
}

/* Centered card highlight for LIGHT mode */
.card.centered {
  border: 1px solid var(--border-color);
  box-shadow:
    0 4px 18px 2px rgb(70 90 130 / 14%),
    0 0 0 2px var(--border-color);
  z-index: 1;
  transform: scale(1.04);
  transition: box-shadow 0.2s, border 0.2s, transform 0.2s;
}

/* Centered card highlight for DARK mode */
[data-theme="dark"] .card.centered {
  border: 1px solid var(--border-color);
  box-shadow:
    0 4px 18px 2px rgb(220 230 255 / 8%),
    0 0 0 2px var(--border-color);
  transform: scale(1.027);
}

.card h4 {
  padding-bottom: 10px;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  text-align: center;
}

.card p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  text-align: center;
}

.card em {
  font-size: clamp(0.8rem, 2vw, 1rem);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 18px;
  margin: 6px 0 0;
  padding-bottom: 40px;
  gap: 6px;
}

.carousel-dot {
  position: relative;
  width: 12px;
  height: 12px;
  margin: 0 6px;
  background: var(--faded-font-color);
  border: none;
  border-radius: 50%;
  z-index: 1;
  opacity: 0.3;
}

/* Visually enlarge the clickable area, but keep the dot small */
.carousel-dot::after {
  position: absolute; top: 50%;
  left: 50%;
  width: 44px; height: 44px;

  /* Make it invisible, but clickable */
  background: transparent;
  z-index: 0;
  content: '';
  transform: translate(-50%, -50%);
  pointer-events: none; /* This lets the actual button catch the event */
}

[data-theme="dark"] .carousel-dot {
  background: var(--card-color);
  opacity: 1;
}

.carousel-dot.active {
  background: var(--cta-btn-bg);
  opacity: 0.7;
  transform: scale(1.3);
}

@media (width >= 1024px) {
  .cards-container {
    justify-content: center; 
    padding-bottom: 60px;
  }
  .carousel-dots { display: none; }
}




/* --- Process --- */

.how-container,
.process-container,
.packages-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 1030px;
  padding: 20px;
  background-color: var(--card-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 4px 24px 0 var(--shadow-color);
}

.how-container {
  margin-top: 50px;
}

.how-container h3,
.process-container h3,
.packages-container h3 {
  margin-bottom: 20px;
  font-size: clamp(1.5rem, 4vw, 2rem);
  text-align: center;
}

.how,
.process {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 970px;
  padding: 20px 30px;
  gap: 30px;
}

.package {
  display: grid;
  align-items: center;
  padding: 30px;
  gap: 30px;
  grid-template-columns: 160px 1fr;
}

.process-container .process:nth-child(3),
.packages-container .package:nth-child(3) {
  border-bottom: 2px solid var(--border-color);
  border-top: 2px solid var(--border-color);
}

.packages-container .package:nth-child(4) {
  border-bottom: 2px solid var(--border-color);
}

.process img {
  width: clamp(150px, 38vw, 260px);
  max-width: 260px;
  border-radius: 10px;
  box-shadow: 0 2px 8px 0 var(--shadow-color);
  object-fit: cover;
}

.process .large-txt {
  font-size: clamp(3rem, 20vw, 8rem);
  font-weight: 900;
  color: var(--faded-font-color);
  text-align: center;
  user-select: none;
}

.package .price-txt {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 900;
  line-height: 30px;
  color: var(--faded-font-color);
  text-align: right;
}

.package .price-txt small {
  font-size: clamp(0.8rem, 2vw, 1.4rem);
  font-weight: 300;
  line-height: 0;
  color: var(--faded-font-color);
}

.process h4,
.package h4 {
  margin-bottom: 10px;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
}

.process p,
.package p {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--font-color);
}

.packages-note {
  margin-top: 20px;
  font-size: clamp(0.8rem, 2vw, 1.3rem);
  text-align: center;
}

.how li {
  padding-bottom: 10px;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  list-style-position: inside;
}

/* MOBILE & TABLET: stack everything and enforce order */
@media (width <= 1030px) {
  .how-container,
  .process-container,
  .packages-container {
    width: 100dvw;
    border-radius: 0;
  }  

  .how,
  .process {
    flex-direction: column;
    align-items: center;
    max-width: 95dvw;
    gap: 18px;
    text-align: center;
  }

  .package {
    display: grid;
    align-items: center;
    padding: 20px 0;
    gap: 30px;
    grid-template-columns: 100px 1fr;
  }

  .process img {
    order: 1;
    width: 80vw;
    max-width: 350px;
  }

  .large-txt {
    display: none;
  }

  .process > div {
    order: 3;
  }
}




/* --- Action --- */

.action-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 1030px;
  margin-top: 50px;
  padding: clamp(32px, 7vw, 60px) 0 clamp(38px, 8vw, 70px);
  background-color: var(--card-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 4px 24px 0 var(--shadow-color);
}

.action {
  max-width: 680px;
  margin-bottom: 26px;
  text-align: center;
}

.action h3 {
  margin-bottom: 16px;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 600;
}

.action h4 {
  margin-bottom: 0;
  font-size: clamp(1.07rem, 3vw, 1.33rem);
  font-weight: 400;
  color: var(--font-color);
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.action-buttons a {
  display: inline-block;
  padding: 14px 28px;
  font-size: 1.09rem;
  font-weight: 600;
  color: var(--cta-btn-text);
  text-decoration: none;
  background: var(--cta-btn-bg);
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px 0 var(--shadow-color);
  cursor: pointer;
  transition: background 0.18s, color 0.13s, transform 0.13s;
}

.action-buttons a:hover,
.action-buttons a:focus-visible {
  color: var(--cta-btn-text);
  background: var(--cta-btn-hover);
  outline: 2px solid var(--cta-btn-bg);
  transform: translateY(-2px) scale(1.03);
}

@media (width <= 1030px) {
  .action-container {
    width: 80dvw;
    padding: 30px;
  }
}