/* ============================================================
   SERVICES SECTION STYLES
   Includes:
   - Horizontal services nav (small cards)
   - Service cards
   - Diagonal stripe + shadow stripe
   - Responsive behaviour
   ============================================================ */

/* HORIZONTAL SERVICES NAV – SMALL CARDS */

.services-timeline {
    max-width: 1200px;
    margin: 0 auto 2.5rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1rem;
}

/* Base card styling stays mostly the same */
.services-timeline-item {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;

    min-height: 72px;
    padding: 0.7rem 1rem;

    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.04);

    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-main);
    text-decoration: none;

    overflow: hidden;
    transition:
        background 0.18s ease-out,
        color 0.18s ease-out,
        box-shadow 0.18s ease-out,
        transform 0.12s ease-out;
}

/* subtle gold accent edge */
.services-timeline-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14%;
    bottom: 14%;
    width: 3px;
    border-radius: 999px;
    background: var(--gold);
    opacity: 0.85;
}

/* hover / focus */
.services-timeline-item:hover,
.services-timeline-item:focus-visible {
    background: var(--gold);
    color: #111;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.services-timeline-item:hover::before,
.services-timeline-item:focus-visible:hover {
    background: rgba(0, 0, 0, 0.75);
}

/* ============================
   Service Buttons
   ============================ */

.service-btn {
  --gold: #c9a24d;
  --gold-soft: rgba(201, 162, 77, 0.15);
  --gold-dark: #9f7f33;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  padding: 0.65rem 1.4rem;
  margin-top: 0.75rem;
  border-radius: 999px;

  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;

  cursor: pointer;
  user-select: none;

  transform: translateY(-1px);

  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.15s ease;

}

/* Press feedback */
.service-btn:active {
  transform: translateY(1px);
}

/* Focus accessibility */
.service-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.service-btn--primary {
  background-color: var(--gold);
  color: #000;
  border: 1px solid var(--gold);

  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.15);
}

.service-btn--primary:hover {
  background-color: var(--gold-dark);
  color: #eee;
  border-color: var(--gold-dark);

  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.2);
}

.service-btn--ghost {
  background-color: transparent;
  color: #000;
  border: 1px solid rgba(0, 0, 0, 0.25);
}

.service-btn--ghost:hover {
  background-color: rgba(0, 0, 0, 0.04);
  border-color: var(--gold-dark);

  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.08);
}
.service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* --- Small screens: turn into a horizontal, low-height pill row --- */

@media (max-width: 900px) {
    .services-timeline {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0.75rem;
        padding: 0.25rem 0.15rem 0.55rem;
        scrollbar-width: thin;
    }

    .services-timeline::-webkit-scrollbar {
        height: 4px;
    }

    .services-timeline::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 999px;
    }

    .services-timeline-item {
        flex: 0 0 auto;
        min-width: 180px;
        min-height: 56px;         /* a bit shorter on mobile */
        font-size: 0.72rem;
        padding: 0.55rem 0.9rem;   /* more compact */
    }
}

/* Service card */

.service-item {
    position: relative;
    z-index: 1;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(2rem, 4vw, 3.5rem);

    /* Height & spacing scale gracefully with viewport */
    min-height: min(50vh, 560px);
    margin-bottom: clamp(2rem, 3vw, 3rem);
    padding: clamp(1.6rem, 3vw, 2.5rem) clamp(1.4rem, 4vw, 3rem);

    background: #ffffff;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);

    overflow: hidden; /* keep stripe inside the card */

    /* stripe config (parallax offset updated via JS) */
    --stripe-rotate: -60deg;
    --stripe-width: 230%;
    --stripe-height: 110px;
    --stripe-offset: 0px;
}

/* alternate layout */
.service-item:nth-of-type(even) {
    flex-direction: row-reverse;
}

/* Base stripe geometry */
.service-item::before,
.service-item::after {
    content: "";
    position: absolute;
    width: 220%;
    height: 80px;
    transform: rotate(-60deg);
    pointer-events: none;
    z-index: 0;
}

/* Main stripe */
.service-item::before {
    background: var(--gold);
    opacity: 0.28;
    filter: drop-shadow(-8px 8px 12px rgba(0, 0, 0, 0.4));
}

/* Shadow stripe */
.service-item::after {
    background: rgba(0,0,0,0.25);
    opacity: 0.22;
    filter: blur(6px) drop-shadow(-6px 6px 10px rgba(0,0,0,0.3));
    transform: translate(6px,10px) rotate(-60deg);
}

.service-text {
    flex: 1 1 60%;
    max-width: 720px;
    min-width: 0;
    position: relative;
    z-index: 2;
}

.service-image {
  flex: 0 0 auto;
  width: clamp(180px, 32vw, 320px);
  aspect-ratio: 4 / 3;

  position: relative;
  overflow: hidden;

  border-radius: 14px;

  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.service-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  pointer-events: none;
}

.service-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  display: block;
}


@media (max-width: 768px) {
  .service-image {
    width: clamp(160px, 70%, 260px);
  }
}

@media (max-width: 520px) {
  .service-image {
    margin-inline: auto;
  }
}




/* =============================
   CASCADING STRIPE FOR LARGE SCREENS
   ============================= */
@media (min-width: 1020px) {

    /* Card 1 */
    .services .service-item:nth-of-type(1)::before {
        top: 22%;
        right: -100%;
    }
	.services .service-item:nth-of-type(1)::after {
		top: 22%;
		right: -100%;
	}

    /* Card 2 */
    .services .service-item:nth-of-type(2)::before {
        top: 50%;
        right: -77.5%;
    }
	.services .service-item:nth-of-type(2)::after {
		top: 50%;
		right: -77.5%;
	}

    /* Card 3 */
    .services .service-item:nth-of-type(3)::before {
        top: 78%;
        right: -55%;
    }
	.services .service-item:nth-of-type(3)::after {
		top: 78%;
		right: -55%;
	}

    /* Card 4 */
    .services .service-item:nth-of-type(4)::before {
        top: 106%;
        right: -32.5%;
    }
	.services .service-item:nth-of-type(4)::after {
		top: 106%;
		right: -32.5%;
	}

    /* Card 5 */
    .services .service-item:nth-of-type(5)::before {
        top: 134%;
        right: -10%;
    }
	.services .service-item:nth-of-type(5)::after {
		top: 134%;
		right: -10%;
	}

    /* Card 6 */
    .services .service-item:nth-of-type(6)::before {
        top: 162%;
        right: 12.5%;
    }
	.services .service-item:nth-of-type(6)::after {
		top: 162%;
		right: 12.5%;
	}
}

/* =============================
   RESPONSIVE STRIPES: TABLETS / MEDIUM SCREENS
   ============================= */
@media (max-width: 1020px) and (min-width: 720px) {
    .service-item::before {
        top: 50%;
        right: -80%;
    }

    .service-item::after {
        top: 50%;
        right: -80%;
    }
}

@media (max-width: 720px) {
    .service-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .service-item {
        flex-direction: column;
        min-height: auto;
        margin-bottom: 2rem;
        padding: 1.6rem 1.4rem;
    }

    .service-item:nth-of-type(even) {
        flex-direction: column;
    }

    .service-item::before,
    .service-item::after {
        --stripe-height: 80px;
        opacity: 0.35; /* or even 0 to hide completely */
    }

    .service-image {
        flex: 0 0 auto;
        width: 70%;
        max-width: 260px;
        margin-top: 1.5rem;
    }
}

/* ============================
   Mobile Optimisation
   ============================ */

@media (max-width: 640px) {
  .service-btn {
    width: 100%;
    justify-content: center;

    padding: 0.85rem 1.25rem;
    font-size: 0.9rem;
  }

  .service-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
