/* ===============================
   GLOBAL TYPOGRAPHY (SAFE)
   =============================== */

html, body {
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
    scroll-behavior: smooth;
}

*, *::before, *::after {
    font-family: inherit;
    box-sizing: border-box;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    letter-spacing: -0.01em;
}

/* Paragraphs */
p {
    font-weight: 500;
    line-height: 1.8;
}

/* ===============================
   ANIMATIONS (NON-BLOCKING)
   =============================== */

.scroll-reveal {
    opacity: 1;
    transform: none;
}

/* ===============================
   LIGHTBOX
   =============================== */

.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 1rem;
}

/* ===============================
   SERVICES SECTION (KEY FIX)
   =============================== */

#services {
    display: block;
    padding-top: 6rem;
    padding-bottom: 6rem;
}

/* Preserve Tailwind Grid */
#services .grid {
    display: grid;
    gap: 2rem;
}

/* ===============================
   SERVICE CARD (MATCH REPLIT)
   =============================== */

.service-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1.25rem;
    box-shadow: 0 10px 25px rgba(0,0,0,.05);
    transition: all .3s ease;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 420px;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(59,130,246,.15);
}

/* Featured */
.service-card.featured {
    border: 2px solid #3b82f6;
    box-shadow: 0 15px 35px rgba(59,130,246,.25);
}

/* ===============================
   SERVICE IMAGE
   =============================== */

.service-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: .75rem;
    margin-bottom: 1rem;
}

/* ===============================
   SERVICE CONTENT
   =============================== */

.service-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: .5rem;
    color: #0f172a;
}

.service-description {
    font-size: .95rem;
    color: #64748b;
    line-height: 1.7;
}

.service-list {
    margin-top: .5rem;
    padding-right: 1rem;
}

.service-list li {
    font-size: .85rem;
    color: #475569;
    margin-bottom: .25rem;
    position: relative;
}

.service-list li::before {
    content: "•";
    position: absolute;
    right: -1rem;
}

/* Push button to bottom */
.service-card > .mt-auto {
    margin-top: auto;
}

/* ===============================
   CTA BUTTON (RATE)
   =============================== */

.rate-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg,#3b82f6,#2563eb);
    color: #fff;
    border-radius: 9999px;
    font-weight: 800;
    box-shadow: 0 15px 30px rgba(59,130,246,.35);
}

.rate-button:hover {
    transform: translateY(-3px);
}

/* Fix Arabic heading letter collision */
.hero-title {
    line-height: 1.35;
    letter-spacing: -0.005em;
}

.hero-title span {
    display: block;
    margin-bottom: 0.15em;
}
/* Featured badge - stronger */
.featured-badge {
    display: inline-block;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 0.5rem;
    box-shadow: 0 8px 20px rgba(59,130,246,.35);
}
/* ===== HOVER ANIMATIONS ===== */
.btn-hover,
button,
a.inline-flex,
a.flex {
    transition: all 0.25s ease;
}

.btn-hover:hover,
button:hover,
a.inline-flex:hover,
a.flex:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}
.service-card {
    transition: transform .3s ease, box-shadow .3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(59,130,246,.18);
}
/* ===== HOVER ANIMATIONS ===== */
.btn-hover,
button,
a.inline-flex,
a.flex {
    transition: all 0.25s ease;
}

.btn-hover:hover,
button:hover,
a.inline-flex:hover,
a.flex:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}
.service-card {
    transition: transform .3s ease, box-shadow .3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(59,130,246,.18);
}
/* ===== MOBILE FIXES ===== */
@media (max-width: 768px) {

  #contact {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  #contact .grid {
    gap: 3rem;
  }

  #contact h3 {
    text-align: center;
  }

  #contact .bg-white {
    padding: 2rem;
  }

  #contact .space-y-4 > div {
    flex-direction: row-reverse;
    justify-content: space-between;
  }

  #contact .inline-flex {
    justify-content: center;
    margin: auto;
  }
}
@media (max-width: 768px) {
  h1 {
    line-height: 1.4;
    letter-spacing: 0;
  }
}

/* ===== SERVICES LABEL (خدماتنا) ===== */
.services-label {
    display: inline-block;
    font-size: 2rem;          /* أكبر بوضوح */
    font-weight: 800;
    color: #2563eb;             /* أزرق أنيق */
    margin-bottom: 0.75rem;
    position: relative;
    padding-bottom: 0.4rem;
}

/* خط تحتي ناعم */
.services-label::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 40%;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    border-radius: 999px;
}

/* موبايل */
@media (max-width: 768px) {
    .services-label {
        font-size: 1.2rem;
    }
}
/* ===============================
   SERVICES LABEL – FINAL VERSION
   =============================== */

.services-label {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: 1.6rem;
    font-weight: 900;
    color: #2563eb;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: .5rem;

    /* Animation */
    opacity: 0;
    transform: translateY(10px);
    animation: servicesFadeUp .8s ease forwards;
}

/* Icon */
.services-icon {
    font-size: 1.2rem;
    color: #06b6d4;
}

/* Underline */
.services-label::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 45%;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    border-radius: 999px;
    transition: width .3s ease;
}

/* Hover effect */
.services-label:hover::after {
    width: 70%;
}

/* Fade Up Animation */
@keyframes servicesFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .services-label {
        font-size: 1.3rem;
    }
}

