/* =============================================================
   SECTION — Services Grid (used on front page + services page)
   Single canonical definition — no duplicates.
   ============================================================= */

/* ── Section Wrapper ───────────────────────────────────────── */

#services {
    padding: 140px 0;
    background-color: var(--brand-black);
    position: relative;
    overflow: hidden;
}

.services-section-header {
    text-align: center;
    margin-bottom: 80px;
    direction: rtl;
    scroll-margin-top: 100px;
}

.services-section-header h2 {
    font-size: 3.2rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.services-section-header p {
    color: #888;
    max-width: 680px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.9;
    font-weight: 300;
}

/* ── Grid ──────────────────────────────────────────────────── */

.luxury-services-grid,
.luxury-services-grid-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 35px;
    direction: rtl;
    width: 100%;
}

.services-slider-viewport {
    width: 100%;
    overflow: hidden;
    direction: ltr;
    padding: 12px 0 24px;
    mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.luxury-services-slider {
    display: flex;
    gap: 28px;
    width: max-content;
    animation: sparkle-services-marquee 42s linear infinite;
    will-change: transform;
}

.services-slider-viewport:hover .luxury-services-slider {
    animation-play-state: paused;
}

.luxury-services-slider .luxury-card {
    flex: 0 0 clamp(280px, 82vw, 360px);
    direction: rtl;
}

@keyframes sparkle-services-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ── Card ──────────────────────────────────────────────────── */

.luxury-card {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.02);
    padding: 45px 35px;
    border-radius: 22px;
    text-align: right;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 460px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.luxury-card:hover {
    transform: translateY(-12px);
    border-color: rgba(225, 169, 115, 0.35);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
}

/* Glow overlay on hover */
.card-glow-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(225, 169, 115, 0.12), transparent 50%);
    opacity: 0;
    transition: opacity 0.35s ease;
}
.luxury-card:hover .card-glow-overlay { opacity: 1; }

/* Icon wrapper */
.luxury-icon-wrapper {
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(225, 169, 115, 0.15) 0%, rgba(0,0,0,0) 100%);
    border: 1px solid rgba(225, 169, 115, 0.2);
    margin-bottom: 25px;
    color: var(--gold-primary);
    transition: all 0.5s ease;
    position: relative;
    z-index: 2;
}
.luxury-icon-svg { width: 38px; height: 38px; }

.luxury-card:hover .luxury-icon-wrapper {
    transform: scale(1.1) rotate(-5deg);
    background: var(--gold-primary);
    color: #fff;
    border-color: var(--gold-primary);
    box-shadow: 0 0 20px rgba(225, 169, 115, 0.32);
}

/* Text */
.luxury-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 18px;
    letter-spacing: -0.3px;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}
.luxury-card:hover h3 { color: var(--gold-primary); }

.luxury-card p {
    color: #cccccc;
    font-size: 14.5px;
    line-height: 1.8;
    margin-bottom: 30px;
    font-weight: 300;
    position: relative;
    z-index: 2;
}

/* Button wrapper */
.btn-wrap {
    margin-top: auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* ── Services Page (slightly tighter grid) ─────────────────── */

.services-page-section {
    background: var(--brand-black);
    padding: 80px 0;
    direction: rtl;
}

.services-page-section .luxury-services-grid-inner {
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 30px;
}

.services-page-section .luxury-card {
    min-height: 420px;
    padding: 35px 28px 28px;
}
