/* ================================================
   RAWAJ AGENCY — REDESIGN
   Clean, modern, premium Arabic RTL design
   Font: Tajawal
   ================================================ */

/* ---- TOKENS ---- */
:root {
  --color-bg:         #F9F8F6;
  --color-surface:    #FFFFFF;
  --color-border:     #E8E5E0;
  --color-text:       #1A1814;
  --color-text-sec:   #6B6760;
  --color-text-hint:  #A09C96;

  --color-accent:     #C8881A;       /* warm gold — brand accent */
  --color-accent-dk:  #A36E0E;
  --color-accent-lt:  #FBF0DC;

  --color-dark:       #111109;
  --color-dark-sec:   #1E1D17;

  --font:             'Tajawal', sans-serif;

  --radius-sm:        8px;
  --radius-md:        14px;
  --radius-lg:        20px;
  --radius-xl:        28px;

  --shadow-sm:        0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:        0 4px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
  --shadow-lg:        0 12px 40px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.05);

  --navbar-h:         68px;
  --transition:       0.25s cubic-bezier(.4,0,.2,1);
  --transition-slow:  0.5s cubic-bezier(.4,0,.2,1);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }

/* ---- CONTAINER ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition),
              transform var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  border: 2px solid var(--color-accent);
}
.btn--primary:hover {
  background: var(--color-accent-dk);
  border-color: var(--color-accent-dk);
  box-shadow: 0 4px 20px rgba(200,136,26,.35);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-border);
}
.btn--ghost:hover {
  border-color: var(--color-text);
  background: rgba(0,0,0,.03);
}

.btn--white {
  background: #fff;
  color: var(--color-dark);
  border: 2px solid #fff;
}
.btn--white:hover {
  background: #F0EDE8;
  border-color: #F0EDE8;
}

.btn--outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.45);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.8);
}

.btn--lg { padding: 16px 32px; font-size: 16px; }


/* ================================================
   NAVBAR
   ================================================ */
.navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  height: var(--navbar-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.navbar.scrolled {
  background: rgba(13,12,8,0.97);
  border-color: rgba(200,136,26,0.20);
  box-shadow: 0 2px 24px rgba(0,0,0,0.50);
}

.navbar__inner {
  height: var(--navbar-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar__logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: auto;
}

.navbar__link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,.6);
  transition: color var(--transition), background var(--transition);
}
.navbar__link:hover { color: #fff; background: rgba(255,255,255,.08); }
.navbar__link.active { color: var(--color-accent); font-weight: 700; }

.navbar__cta { flex-shrink: 0; }

.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-right: auto;
}
.navbar__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,.8);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.navbar__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__burger.open span:nth-child(2) { opacity: 0; }
.navbar__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.navbar__mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px 24px;
  background: rgba(17,17,9,.97);
  border-top: 1px solid rgba(200,136,26,.18);
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  position: absolute;
  top: var(--navbar-h);
  right: 0;
  left: 0;
}
.navbar__mobile .navbar__link {
  padding: 12px 16px;
  font-size: 16px;
  border-radius: var(--radius-md);
}
.navbar__mobile .btn {
  margin-top: 8px;
  width: 100%;
}
.navbar__mobile.open { display: flex; }

/* ================================================
   HERO
   ================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--navbar-h);
  overflow: hidden;
  background: var(--color-dark);
}

/* Decorative background circles */
.hero__bg-circles { position: absolute; inset: 0; pointer-events: none; }
.hero__circle {
  position: absolute;
  border-radius: 50%;
  opacity: .13;
  filter: blur(60px);
}
.hero__circle--1 {
  width: 560px; height: 560px;
  background: var(--color-accent);
  top: -120px; right: -80px;
}
.hero__circle--2 {
  width: 400px; height: 400px;
  background: #D4A855;
  bottom: 60px; left: -100px;
  opacity: .08;
}
.hero__circle--3 {
  width: 240px; height: 240px;
  background: #fff;
  top: 40%; left: 38%;
  opacity: .04;
}

/* Subtle dot grid overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--navbar-h));
  padding: 80px 24px;
}

.hero__content {
  max-width: 720px;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(200,136,26,.12);
  border: 1px solid rgba(200,136,26,.25);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero__title {
  font-size: clamp(44px, 8vw, 80px);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}

.hero__sub {
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 300;
  color: rgba(255,255,255,.65);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 540px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero__scroll-hint span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,.4));
  margin: 0 auto;
  animation: scrollHint 2s ease-in-out infinite;
}
@keyframes scrollHint {
  0%, 100% { opacity: 0; transform: scaleY(.5) translateY(-12px); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1) translateY(0); }
}

/* ================================================
   SECTION BASE
   ================================================ */
.section {
  padding: 96px 0;
}

.section__header {
  text-align: center;
  margin-bottom: 56px;
}
.section__label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 10px;
}
.section__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -.02em;
  margin-bottom: 12px;
}
.section__desc {
  font-size: 17px;
  font-weight: 400;
  color: var(--color-text-sec);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ================================================
   SERVICE CARDS (homepage)
   ================================================ */
.services { background: var(--color-bg); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-card__img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-accent-lt);
  flex-shrink: 0;
  display: block;
  position: relative;
}
.service-card__img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  transition: transform 0.5s ease;
}
.service-card:hover .service-card__img-wrap img { transform: scale(1.04); }

.service-card__body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card__icon {
  width: 44px; height: 44px;
  background: var(--color-accent-lt);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.service-card__icon svg {
  width: 22px; height: 22px;
  color: var(--color-accent);
}

.service-card__title {
  font-size: 19px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
  line-height: 1.4;
}

.service-card__text {
  font-size: 15px;
  color: var(--color-text-sec);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 20px;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-accent);
  transition: gap var(--transition);
}
.service-card__link:hover { gap: 10px; }

/* ================================================
   CTA BANNER
   ================================================ */
.cta-banner {
  background: var(--color-dark-sec);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: var(--color-accent);
  border-radius: 50%;
  opacity: .08;
  filter: blur(80px);
  top: -100px; left: -100px;
  pointer-events: none;
}
.cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-banner__title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}
.cta-banner__sub {
  font-size: 16px;
  color: rgba(255,255,255,.55);
}
.cta-banner__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ================================================
   PAGE HERO (inner pages)
   ================================================ */
.page-hero {
  background: var(--color-dark);
  padding: calc(var(--navbar-h) + 64px) 0 72px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 28px 28px;
}
.page-hero::after {
  content: '';
  position: absolute;
  width: 360px; height: 360px;
  background: var(--color-accent);
  border-radius: 50%;
  opacity: .1;
  filter: blur(80px);
  top: -80px; left: -80px;
  pointer-events: none;
}
.page-hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.page-hero__title {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.025em;
  margin-bottom: 12px;
}
.page-hero__sub {
  font-size: 18px;
  font-weight: 300;
  color: rgba(255,255,255,.6);
  max-width: 480px;
  margin: 0 auto;
}

/* ================================================
   SERVICE DETAIL (services page)
   ================================================ */
.service-detail { background: var(--color-bg); }
.service-detail--alt { background: var(--color-surface); }

.service-detail__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.service-detail--alt .service-detail__inner {
  direction: ltr;  /* flip columns for alternating layout */
}
.service-detail--alt .service-detail__content { direction: rtl; }

.service-detail__media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/9;
}
.service-detail__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.service-detail__num {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.service-detail__title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -.02em;
  line-height: 1.3;
  margin-bottom: 28px;
}

.service-detail__block {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}
.service-detail__block:last-of-type { border-bottom: none; }

.service-detail__block h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-text-hint);
  margin-bottom: 8px;
}
.service-detail__block p {
  font-size: 15px;
  color: var(--color-text-sec);
  line-height: 1.8;
}

.service-detail__content .btn { margin-top: 28px; }

/* ================================================
   PACKAGES PAGE
   ================================================ */
.packages-section { background: var(--color-bg); }
.packages-section--alt { background: var(--color-surface); }

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.packages-grid--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 840px;
  margin: 0 auto;
}

.pkg-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.pkg-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 72px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 0 var(--radius-xl) 0 4px;
  transition: width var(--transition-slow);
}
.pkg-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(200,136,26,.25);
}
.pkg-card:hover::before { width: 120px; }

.pkg-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pkg-card__icon {
  width: 52px;
  height: 52px;
  background: var(--color-accent-lt);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.pkg-card:hover .pkg-card__icon { background: rgba(200,136,26,.2); }
.pkg-card__icon svg {
  width: 26px;
  height: 26px;
  color: var(--color-accent);
}

.pkg-card__badge {
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
  color: rgba(200,136,26,.10);
  font-family: var(--font);
  user-select: none;
}

.pkg-card__title {
  font-size: 19px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.4;
  flex: 1;
}

.pkg-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}
.pkg-card__features li {
  font-size: 14px;
  color: var(--color-text-sec);
  line-height: 1.55;
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.pkg-card__features li::before {
  content: '✓';
  color: var(--color-accent);
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}

.pkg-card__cta { align-self: flex-start; margin-top: 4px; }

/* ================================================
   HERO RIPPLE ANIMATION
   ================================================ */
.hero__ripple-origin {
  position: absolute;
  top: 50%;
  left: 22%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  width: 0;
  height: 0;
}

.hero__ripple-dot {
  display: block;
  width: 14px;
  height: 14px;
  background: var(--color-accent);
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 24px rgba(200,136,26,.9), 0 0 8px rgba(200,136,26,1);
  animation: dotPulse 3s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1);   opacity: 1; }
  50%       { transform: translate(-50%, -50%) scale(1.6); opacity: .6; }
}

.hero__ripple-ring {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 1400px;
  height: 1400px;
  border-radius: 50%;
  border: 1.5px solid rgba(200,136,26,.85);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  animation: rippleWave 6s ease-out infinite;
  animation-delay: calc(var(--ri) * 0.9s);
}

@keyframes rippleWave {
  0%   { transform: translate(-50%, -50%) scale(0.01); opacity: 1; }
  50%  { opacity: .45; }
  100% { transform: translate(-50%, -50%) scale(1);    opacity: 0; }
}

@media (max-width: 768px) {
  .hero__ripple-origin { display: none; }
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: var(--color-dark);
  padding-top: 64px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer__logo { height: 48px; width: auto; object-fit: contain; margin-bottom: 16px; }
.footer__tagline { font-size: 14px; color: rgba(255,255,255,.4); line-height: 1.6; }

.footer__links, .footer__contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__links-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 6px;
}
.footer__links a, .footer__contact a:not(.btn) {
  font-size: 14px;
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
}
.footer__links a:hover, .footer__contact a:not(.btn):hover { color: #fff; }

.footer__wa-btn { margin-top: 6px; align-self: flex-start; }

.footer__bottom {
  padding: 20px 0;
}
.footer__bottom p {
  font-size: 13px;
  color: rgba(255,255,255,.25);
  text-align: center;
}

/* ================================================
   FLOATING WHATSAPP
   ================================================ */
.wa-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 99;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: transform var(--transition), box-shadow var(--transition);
}
.wa-float:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,.55);
}
.wa-float svg { width: 28px; height: 28px; }

/* ================================================
   ANIMATIONS
   ================================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}
[data-delay="100"] { transition-delay: .1s; }
[data-delay="200"] { transition-delay: .2s; }
[data-delay="300"] { transition-delay: .3s; }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .service-detail__inner { gap: 48px; }
  .packages-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --navbar-h: 60px; }

  /* Disable scroll-triggered animations on mobile — show everything immediately */
  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .navbar__links, .navbar__cta { display: none; }
  .navbar__burger { display: flex; }

  .section { padding: 64px 0; }

  .hero__title { letter-spacing: -.01em; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__scroll-hint { display: none; }

  .services__grid { grid-template-columns: 1fr; }

  .service-detail__inner,
  .service-detail--alt .service-detail__inner {
    grid-template-columns: 1fr;
    direction: rtl;
    gap: 32px;
  }
  .service-detail--alt .service-detail__content { direction: rtl; }

  .cta-banner__inner { flex-direction: column; text-align: center; }
  .cta-banner__actions { justify-content: center; }

  .packages-grid { grid-template-columns: 1fr; }
  .packages-grid--two { grid-template-columns: 1fr; }

  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__brand { grid-column: auto; }

  .wa-float { bottom: 20px; left: 20px; width: 50px; height: 50px; }
  .wa-float svg { width: 24px; height: 24px; }
}

@media (max-width: 480px) {
  .section { padding: 48px 0; }
  .section__header { margin-bottom: 36px; }
  .hero__eyebrow { font-size: 11px; }
  .cta-banner { padding: 56px 0; }
  .cta-banner__actions { flex-direction: column; width: 100%; }
  .cta-banner__actions .btn { width: 100%; }
}
