/* Services page specific styles
   Relies on variables, glass, section, container, btn, etc. from main.css */

/* Hero */
.services-hero {
  padding-top: calc(110px + var(--section));
  padding-bottom: 0;
}

.services-hero-head {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 2fr);
  gap: 24px;
  align-items: center;
}

.services-hero-head .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  opacity: 0.75;
  margin: 0 0 8px;
}

.services-hero-head h1 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.15;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.services-hero-sub {
  margin: 0;
  font-size: clamp(14px, 1.8vw, 17px);
  color: var(--ink-dim);
  max-width: 520px;
  justify-self: end;
}

@media (max-width: 820px) {
  .services-hero-head {
    grid-template-columns: 1fr;
  }

  .services-hero-sub {
    justify-self: start;
  }
}

/* Services section */
.services-section {
  padding-top: var(--section);
}

/* Carousel shell */
.services-carousel-shell {
  margin-top: 8px;
  padding: 26px 18px 26px; /* enough vertical padding so scaled center card isn't cut */
  position: relative;
  overflow: hidden; /* hides off-screen cards, no scrollbar */
}

/* Track – flex row, moved with translateX */
.services-carousel-track {
  --carousel-gap: 16px;

  display: flex;
  align-items: stretch;
  gap: var(--carousel-gap);
  will-change: transform;
  transform: translateX(0);
  transition: transform 0.5s ease;
}

/* Cards – fixed-ish width to allow 3+ visible on desktop */
.service-card {
  flex: 0 0 min(340px, 80vw); /* basis ~340px, but responsive */
  max-width: 360px;
  box-sizing: border-box;

  background:
    radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.08), transparent 50%),
    var(--glass);
  border-radius: var(--radius);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--shadow);
  padding: var(--pad);
  display: flex;
  flex-direction: column;
  gap: 10px;

  transform-origin: center;
  transform: translateY(2px) scale(0.97);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    opacity 0.25s ease;
  opacity: 0.75;
}

/* slight hover only, no scale change */
.service-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

/* focused / active card – JS keeps this one in the visual center */
.service-card.is-active {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.7);
  border-color: rgba(255, 255, 255, 0.45);
  opacity: 1;
  background:
    radial-gradient(circle at 0 0,
      color-mix(in srgb, var(--secondary) 40%, transparent),
      transparent 55%),
    var(--glass);
}

.service-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background: linear-gradient(135deg,
      color-mix(in srgb, var(--primary) 26%, transparent),
      color-mix(in srgb, var(--secondary) 26%, transparent));
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
}

.service-card h3 {
  margin: 4px 0 4px;
  font-size: 18px;
}

.service-card p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-dim);
}

.service-card ul {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--ink-dim);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

@media (max-width: 640px) {
  .services-carousel-shell {
    padding-inline: 12px;
  }

  .service-card {
    flex-basis: 64vw;
    max-width: 64vw;
  }
}

/* Carousel controls */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.16), transparent 60%),
    rgba(0, 0, 0, 0.34);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  font-size: 20px;
  padding: 0;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    opacity 0.2s ease;
  pointer-events: auto;
  z-index: 2;
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.carousel-btn:hover {
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.24), transparent 60%),
    rgba(0, 0, 0, 0.6);
}

/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  opacity: 0.6;
  transition:
    transform 0.18s ease,
    opacity 0.18s ease,
    background 0.18s ease,
    width 0.18s ease;
}

.carousel-dot.is-active {
  width: 18px;
  opacity: 1;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  transform: translateY(-1px);
}

/* Booking */
.booking-section {
  padding-top: var(--section);
}

.booking-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr);
  gap: 18px;
  align-items: stretch;
}

.booking-copy {
  padding: var(--pad);
}

.booking-copy h3 {
  margin: 0 0 8px;
}

.booking-copy p {
  margin: 0 0 10px;
  color: var(--ink-dim);
}

.booking-copy ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-dim);
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Form */
.booking-form {
  padding: var(--pad);
  display: grid;
  gap: 14px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row.full {
  grid-column: 1 / -1;
}

.booking-form label {
  font-size: 13px;
  opacity: 0.85;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 9px 11px;
  font: inherit;
  background:
    radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.06), transparent 55%),
    rgba(0, 0, 0, 0.3);
  color: var(--ink);
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    transform 0.12s ease;
}

.booking-form input::placeholder,
.booking-form textarea::placeholder {
  color: rgba(228, 230, 255, 0.5);
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  border-color: color-mix(in srgb, var(--primary) 60%, transparent);
  box-shadow: 0 0 0 1px rgba(44, 92, 245, 0.4);
  background:
    radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.1), transparent 55%),
    rgba(0, 0, 0, 0.45);
  transform: translateY(-1px);
}

.booking-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 52%,
    calc(100% - 11px) 52%;
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px;
}

.booking-form textarea {
  resize: vertical;
  min-height: 120px;
}

.form-actions {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-note {
  margin: 0;
  font-size: 11px;
  color: var(--ink-dim);
}

/* simple invalid state */
.booking-form .invalid {
  border-color: rgba(255, 112, 112, 0.9);
  box-shadow: 0 0 0 1px rgba(255, 112, 112, 0.4);
}

@media (max-width: 820px) {
  .booking-grid {
    grid-template-columns: 1fr;
  }

}
