/* ================================================================
   TILT SERVICE CARDS — 3D tilt cards for the Services page
   Port of the "InteractiveTravelCard" React component.
   ================================================================ */

.tilt-cards {
  perspective: 1000px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: clamp(2rem, 6vw, 4rem);
}

@media (max-width: 1023px) {
  .tilt-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 639px) {
  .tilt-cards { grid-template-columns: 1fr; }
}

/* ---------- card shell ---------- */
.tilt-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
  will-change: transform;
  cursor: default;
  box-shadow: 0 25px 50px -12px rgba(46, 36, 30, 0.3);
}

/* ---------- background image (fills the whole card) ---------- */
.tilt-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- gradient + dim overlay ---------- */
.tilt-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.4),
      rgba(0, 0, 0, 0.15) 35%,
      rgba(0, 0, 0, 0.4) 55%,
      rgba(0, 0, 0, 0.9) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.25),
      rgba(0, 0, 0, 0.25)
    );
}

/* ---------- image label chip ---------- */
.tilt-card__chip {
  position: absolute;
  z-index: 3;
  top: 1.5rem;
  left: 1.5rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- content wrapper ---------- */
.tilt-card__content {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1.5rem;
  color: #fff;
}

/* ---------- header (number + title, link) ---------- */
.tilt-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.tilt-card__title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.tilt-card__num {
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.tilt-card__link {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  transition: background 0.2s ease;
}

.tilt-card__link:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ---------- body text ---------- */
.tilt-card__text {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #fff;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* ---------- feature list ---------- */
.tilt-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.7rem;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.tilt-card__feat {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.tilt-card__feat::before {
  content: "•";
  color: #c9a87a;
  font-size: 0.85rem;
  line-height: 1;
}

/* ---------- action button ---------- */
.tilt-card__btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.8rem;
  margin-top: 0.75rem;
  border-radius: 0.5rem;
  background: #a9845b;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease;
}

.tilt-card__btn:hover {
  background: #b8936a;
}

.tilt-card__arrow {
  display: inline-block;
  margin-left: 0.4rem;
  transition: transform 0.25s ease;
}

.tilt-card__btn:hover .tilt-card__arrow {
  transform: translateX(0.25rem);
}

/* =====================================================================
   PROCESS — "From Idea to Reality" service grid (mirrors home page)
   ===================================================================== */
.process .sec-head {
  text-align: center;
}

.process .sec-head__lede {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
  max-width: 34em;
  margin: -0.4rem auto 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.6rem, 4vw, 2.5rem);
  text-align: center;
}

.service-grid__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  color: inherit;
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-grid__item:hover {
  transform: translateY(-5px) scale(1.05);
}

.service-grid__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(5.5rem, 9vw, 7rem);
  height: clamp(5.5rem, 9vw, 7rem);
  border-radius: 50%;
  overflow: hidden;
  background: var(--panel);
}

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

.service-grid__item:hover .service-grid__media img {
  transform: scale(1.1);
}

.service-grid__name {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  transition: color 0.3s ease;
}

.service-grid__item:hover .service-grid__name {
  color: var(--accent);
}

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

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