/* Premium Mobile-First theme for Petra Badr */

:root{
  --bg: #000000;
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.68);
  --gold: #c5a358;
  --card: rgba(255,255,255,0.05);
  --stroke: rgba(255,255,255,0.10);
  --blur: blur(10px);
  --shadow: 0 24px 80px rgba(0,0,0,0.65);
  --radius: 18px;
  --container: 1120px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: "Tajawal", "Cairo", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  overflow-x: hidden;
}

/* Background: WP.webp + subtle starfield */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.88), rgba(0,0,0,0.88)),
    url("./assets/images/WP.webp");
  background-size: cover;
  background-position: center;
}
body::after{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  background:
    radial-gradient(1px 1px at 10% 18%, rgba(255,255,255,0.9) 99%, transparent 100%),
    radial-gradient(1px 1px at 40% 75%, rgba(255,255,255,0.75) 99%, transparent 100%),
    radial-gradient(1.5px 1.5px at 78% 28%, rgba(255,255,255,0.65) 99%, transparent 100%),
    radial-gradient(1px 1px at 65% 85%, rgba(255,255,255,0.55) 99%, transparent 100%),
    radial-gradient(2px 2px at 22% 48%, rgba(197,163,88,0.35) 99%, transparent 100%),
    radial-gradient(2px 2px at 88% 60%, rgba(120,170,255,0.22) 99%, transparent 100%),
    radial-gradient(1px 1px at 52% 12%, rgba(255,255,255,0.50) 99%, transparent 100%);
  background-size: 1200px 800px;
  mix-blend-mode: screen;
  filter: blur(0.25px);
  animation: starDrift 48s linear infinite;
}
@keyframes starDrift{
  0%{ transform: translate3d(0,0,0) scale(1.02); }
  100%{ transform: translate3d(-4%, 3%, 0) scale(1.02); }
}

img{
  max-width: 100%;
  height: auto;
  display: block;
}

a{ color: inherit; }

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  border:0;
}

.container{
  width: min(var(--container), 100% - 24px);
  margin-inline: auto;
}

/* Sticky Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0,0,0,0.70);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(197,163,88,0.18);
}
.nav{
  width: min(var(--container), 100% - 24px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
}
.brand{
  display: grid;
  text-decoration: none;
  line-height: 1.1;
}
.brand__name{
  font-weight: 800;
  letter-spacing: 0.3px;
}
.brand__sub{
  color: var(--gold);
  font-weight: 700;
  font-size: 0.95rem;
}
.nav__links{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.nav__links a{
  text-decoration: none;
  color: rgba(255,255,255,0.86);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 10px;
  border-radius: 999px;
  transition: 220ms ease;
}
.nav__links a:hover{
  color: #000;
  background: rgba(197,163,88,0.95);
}

/* Hero */
.hero{
  position: relative;
}
.hero__kicker{
  margin: 0 0 10px;
  color: rgba(255,255,255,0.78);
  font-weight: 600;
  font-size: clamp(0.92rem, 2.4vw, 1.05rem);
}
.hero__title{
  margin: 0;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.4px;
  line-height: 1.15;
  font-size: clamp(1.6rem, 5vw, 3.2rem);
}
.hero__desc{
  margin: 12px auto 0;
  color: rgba(255,255,255,0.90);
  font-size: clamp(1rem, 2.7vw, 1.15rem);
  line-height: 1.7;
  max-width: 68ch;
}
.en{
  display: block;
  direction: ltr;
  opacity: 0.85;
  margin-top: 6px;
  font-size: 0.95em;
}
.hero__cta{
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* Service item (image + HTML text) */
.service-item{
  position: relative;
  margin-top: 18px;
}
.service-img{
  width: 100vw;
  max-width: none;
  margin: 0 calc(50% - 50vw);
  height: auto;
  object-fit: contain;
  background: #000;
}
.service-text{
  width: min(860px, 100% - 24px);
  margin: 14px auto 0;
  text-align: center;
  padding: 16px 14px;
  border-radius: calc(var(--radius) + 8px);
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 18px 60px rgba(0,0,0,0.55);
}
.service-title{
  margin: 0;
  color: var(--gold);
  font-weight: 900;
  font-size: clamp(1.25rem, 4.5vw, 1.8rem);
  line-height: 1.25;
}
.service-subtitle{
  margin: 10px auto 0;
  max-width: 70ch;
  color: rgba(255,255,255,0.86);
  font-size: clamp(1rem, 2.8vw, 1.05rem);
  line-height: 1.75;
}
.english-text{
  margin: 8px 0 0;
  direction: ltr;
  color: rgba(255,255,255,0.70);
  font-size: 0.98rem;
}

/* Desktop: float text over a portion of the image */
@media (min-width: 900px){
  .service-item{
    margin-top: 26px;
  }
  .service-text{
    position: absolute;
    bottom: 18px;
    inset-inline: 0;
    margin: 0 auto;
    width: min(860px, 100% - 48px);
    background: linear-gradient(180deg, rgba(0,0,0,0.62), rgba(0,0,0,0.82));
  }
  .service-item--hero .service-text{
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }
}

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 18px;
  font-weight: 800;
  line-height: 1.1;
  font-size: clamp(0.98rem, 2.6vw, 1.05rem);
  border: 1px solid rgba(255,255,255,0.12);
  transition: transform 160ms ease, box-shadow 220ms ease, background 220ms ease, color 220ms ease;
  max-width: 100%;
  text-align: center;
  overflow: visible;
}
.btn:focus-visible{
  outline: 2px solid rgba(197,163,88,0.9);
  outline-offset: 3px;
}
.btn--primary{
  background: rgba(197,163,88,0.95);
  color: #000;
  border-color: rgba(197,163,88,0.90);
}
.btn--primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 0 26px rgba(197,163,88,0.28);
}
.btn--ghost{
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.92);
}
.btn--ghost:hover{
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(255,255,255,0.12);
}
.btn--wide{
  width: min(520px, 100%);
}

/* Social */
.social{
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.social__btn{
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(197,163,88,0.22);
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  transition: transform 160ms ease, background 220ms ease, border-color 220ms ease;
}
.social__btn:hover{
  transform: translateY(-2px);
  background: rgba(197,163,88,0.16);
  border-color: rgba(197,163,88,0.55);
}

/* Sections */
.section{
  padding: 64px 0;
}

/* Mobile: keep images clean, move text below images */
@media (max-width: 640px){
  .section{ padding: 76px 0; }

  /* Legacy hero/band overlays no longer used */
  .service-text{
    position: static;
    transform: none;
    margin-top: 12px;
  }

  /* Make nav + icons feel less cramped */
  .nav__links a{
    padding: 9px 10px;
    font-size: 0.92rem;
  }
  .social__btn{ width: 42px; height: 42px; }

  /* WhatsApp FAB: keep fully visible */
  .fab{
    left: 14px;
    bottom: 14px;
  }
  .fab--telegram{
    bottom: calc(14px + 58px + 10px);
  }
}
.section__header{
  text-align: center;
  margin-bottom: 18px;
}
.section__title{
  margin: 0;
  color: var(--gold);
  font-weight: 900;
  font-size: clamp(1.55rem, 5.8vw, 2.5rem);
}
.section__subtitle{
  margin: 10px auto 0;
  max-width: 70ch;
  color: var(--muted);
  font-size: clamp(1rem, 2.8vw, 1.1rem);
  line-height: 1.7;
}

/* Full-bleed bands (legacy) removed: now using .service-item */

/* Cards */
.cards{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 18px;
}
.card{
  background: var(--card);
  backdrop-filter: var(--blur);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.40);
}
.card__title{
  margin: 0 0 8px;
  color: rgba(255,255,255,0.96);
  font-weight: 900;
  font-size: clamp(1.15rem, 3.8vw, 1.4rem);
}
.card__text{
  margin: 0;
  color: rgba(255,255,255,0.82);
  line-height: 1.75;
  font-size: clamp(1rem, 2.8vw, 1.05rem);
}
.card__en{
  margin: 8px 0 0;
  direction: ltr;
  text-align: center;
  color: rgba(255,255,255,0.62);
  font-size: 0.95rem;
}

/* Pricing */
.pricing{
  display: grid;
  place-items: center;
  margin-top: 14px;
}
.pricing__card{
  width: min(720px, 100%);
  background: linear-gradient(145deg, rgba(197,163,88,0.08), rgba(0,0,0,0.55));
  border: 1px solid rgba(197,163,88,0.30);
  border-radius: calc(var(--radius) + 6px);
  padding: 20px 18px 22px;
  box-shadow: var(--shadow);
  overflow: visible;
}
.pricing__price{
  display: flex;
  gap: 10px;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
}
.pricing__amount{
  font-weight: 900;
  color: var(--gold);
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  letter-spacing: 0.2px;
}
.pricing__per{
  color: rgba(255,255,255,0.70);
  font-weight: 700;
}
.pricing__list{
  list-style: none;
  padding: 0;
  margin: 16px 0 18px;
  display: grid;
  gap: 10px;
  text-align: right;
}
.pricing__list li{
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  line-height: 1.65;
}
.pricing__list li::before{
  content: "✦ ";
  color: var(--gold);
}
.subscribe-btn{
  overflow: visible;
  padding-bottom: 6px;
}
.btn--subscribe{
  width: min(560px, 100%);
  background: rgba(197,163,88,0.97);
  color: #000;
  border-color: rgba(197,163,88,0.90);
  box-shadow: 0 0 0 rgba(197,163,88,0);
  animation: subscribePulse 2.2s ease-in-out infinite;
}
.btn--subscribe:hover{
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(197,163,88,0.26);
  animation-play-state: paused;
}
@keyframes subscribePulse{
  0%{ box-shadow: 0 0 0 0 rgba(197,163,88,0.22); }
  70%{ box-shadow: 0 0 0 18px rgba(197,163,88,0); }
  100%{ box-shadow: 0 0 0 0 rgba(197,163,88,0); }
}

/* Contact */
.section--contact{
  padding-bottom: 84px;
}
.contact{
  display: grid;
  place-items: center;
  margin-top: 12px;
}
.contact__card{
  width: min(720px, 100%);
  background: rgba(0,0,0,0.50);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(8px);
  border-radius: calc(var(--radius) + 6px);
  padding: 18px;
  box-shadow: 0 18px 70px rgba(0,0,0,0.55);
  text-align: center;
}
.contact__line{
  margin: 0 0 14px;
  color: rgba(255,255,255,0.85);
}
.contact__line a{
  color: rgba(255,255,255,0.92);
}

/* WhatsApp floating FAB */
.fab{
  position: fixed;
  left: 16px;
  bottom: 16px;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  text-decoration: none;
  z-index: 80;
  box-shadow: 0 14px 30px rgba(37,211,102,0.30);
}
.fab--whatsapp{
  background: #25d366;
  color: #fff;
  animation: fabPulse 2.2s ease-in-out infinite;
}
.fab--telegram{
  background: #0088cc;
  color: #fff;
  bottom: calc(16px + 58px + 10px);
  box-shadow: 0 14px 30px rgba(0,136,204,0.26);
  animation: fabPulseTelegram 2.2s ease-in-out infinite;
}
.fab--telegram:hover{
  transform: translateY(-2px);
  animation-play-state: paused;
}
.fab--whatsapp:hover{
  transform: translateY(-2px);
  animation-play-state: paused;
}
@keyframes fabPulse{
  0%{ box-shadow: 0 0 0 0 rgba(37,211,102,0.45), 0 14px 30px rgba(37,211,102,0.30); }
  70%{ box-shadow: 0 0 0 16px rgba(37,211,102,0), 0 14px 30px rgba(37,211,102,0.28); }
  100%{ box-shadow: 0 0 0 0 rgba(37,211,102,0), 0 14px 30px rgba(37,211,102,0.30); }
}
@keyframes fabPulseTelegram{
  0%{ box-shadow: 0 0 0 0 rgba(0,136,204,0.42), 0 14px 30px rgba(0,136,204,0.26); }
  70%{ box-shadow: 0 0 0 16px rgba(0,136,204,0), 0 14px 30px rgba(0,136,204,0.24); }
  100%{ box-shadow: 0 0 0 0 rgba(0,136,204,0), 0 14px 30px rgba(0,136,204,0.26); }
}

/* Footer */
.site-footer{
  border-top: 1px solid rgba(197,163,88,0.18);
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(10px);
  padding: 22px 0 28px;
}
.footer{
  text-align: center;
  display: grid;
  gap: 8px;
}
.footer__brand{
  font-weight: 900;
  color: rgba(255,255,255,0.92);
}
.footer__meta{ color: rgba(255,255,255,0.65); }
.footer__dev{ color: rgba(255,255,255,0.72); }
.footer__link{ color: var(--gold); text-decoration: none; font-weight: 900; }

/* Desktop enhancements */
@media (min-width: 900px){
  .cards{
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  .hero__overlay{ padding: 26px 18px; }
  .hero__content{ padding: 20px 18px; }
  .social__btn{ width: 46px; height: 46px; }
  .fab{ left: 22px; bottom: 22px; width: 64px; height: 64px; }
  .fab--telegram{ bottom: calc(22px + 64px + 12px); }
}