/* LANDING PAGE CSS - Google Ads Optimized */
:root {
  --gold: #c9a84c;
  --gold-light: #f5d98b;
  --gold-gradient: linear-gradient(135deg, #f5d98b 0%, #c9a84c 40%, #9c7e2a 100%);
  --dark-900: #0a0a0a;
  --dark-800: #111111;
  --dark-700: #1a1a1a;
  --dark-600: #222;
  --white: #fff;
  --white-70: rgba(255,255,255,0.7);
  --white-50: rgba(255,255,255,0.5);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Tajawal', sans-serif;
  background: var(--dark-900);
  color: var(--white);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  padding-bottom: 70px;
  -webkit-text-size-adjust: 100%;
}

/* TOP BAR */
.top-bar {
  background: var(--dark-900);
  border-bottom: 2px solid rgba(201,168,76,0.35);
  padding: 10px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.tb-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tb-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tb-logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(201,168,76,0.4);
}

.tb-logo span {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--gold);
}

.tb-call {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--gold-gradient);
  color: var(--dark-900);
  font-family: 'Tajawal', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s;
  animation: pulseBtn 2.5s ease-in-out infinite;
  white-space: nowrap;
}

.tb-call:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 20px rgba(201,168,76,0.4);
}

@keyframes pulseBtn {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(201,168,76,0); }
}

/* MAIN LAYOUT */
.lp-main {
  min-height: calc(100vh - 56px);
  display: flex;
  align-items: center;
}

.lp-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* FORM SIDE */
.lp-form-side {
  position: sticky;
  top: 76px;
}

.lp-logo-mobile { display: none; }

.lp-form-box {
  background: var(--dark-700);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(201,168,76,0.06);
}

.lp-form-header {
  margin-bottom: 28px;
}

.lp-title {
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--white);
}

.gold {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lp-subtitle {
  color: var(--white-70);
  font-size: 0.9rem;
}

/* FIELDS */
.lp-field {
  margin-bottom: 16px;
}

.lp-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--white-70);
  margin-bottom: 7px;
}

.lp-field input,
.lp-field select {
  width: 100%;
  padding: 13px 16px;
  background: var(--dark-600);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  color: var(--white);
  font-family: 'Tajawal', sans-serif;
  font-size: 16px; /* يمنع زوم iOS */
  transition: all 0.3s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.lp-field input:focus,
.lp-field select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}

.lp-field input::placeholder {
  color: rgba(255,255,255,0.3);
}

.lp-field select option {
  background: var(--dark-700);
}

/* SUBMIT */
.lp-submit {
  width: 100%;
  padding: 16px;
  background: var(--gold-gradient);
  color: var(--dark-900);
  font-family: 'Tajawal', sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 6px 25px rgba(201,168,76,0.4);
  margin-top: 4px;
}

.lp-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 35px rgba(201,168,76,0.55);
}

/* DIVIDER */
.lp-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
}

.lp-divider::before,
.lp-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
}

/* DIRECT BUTTONS */
.lp-direct-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lp-direct-call {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px;
  background: rgba(201,168,76,0.1);
  border: 2px solid rgba(201,168,76,0.4);
  color: var(--gold-light);
  font-family: 'Tajawal', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s;
}

.lp-direct-call:hover {
  background: rgba(201,168,76,0.18);
  transform: translateY(-2px);
}

.lp-direct-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px;
  background: rgba(37,211,102,0.1);
  border: 2px solid rgba(37,211,102,0.4);
  color: #25d366;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s;
}

.lp-direct-wa:hover {
  background: rgba(37,211,102,0.18);
  transform: translateY(-2px);
}

.lp-privacy {
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  margin-top: 14px;
}

.lp-privacy a {
  color: var(--gold);
  text-decoration: none;
}

/* Spam protection UI — بدون إزاحة سالبة (بتكسر عرض الموبايل مع RTL) */
.gp-hp-wrap {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  white-space: nowrap !important;
}

.gp-captcha-box {
  margin-bottom: 16px;
}

.gp-captcha-box label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--white-70);
  margin-bottom: 7px;
}

.gp-captcha-box input[type="number"] {
  width: 100%;
  padding: 13px 16px;
  background: var(--dark-600);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  color: var(--white);
  font-family: 'Tajawal', sans-serif;
  font-size: 16px;
  outline: none;
}

.gp-secure-msg {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #fca5a5;
}


/* TRUST BADGES UNDER FORM */
.lp-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  justify-content: center;
}

.ltb-item {
  font-size: 0.78rem;
  color: var(--white-70);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,168,76,0.15);
  padding: 5px 12px;
  border-radius: 999px;
}

/* CONTENT SIDE */
.lp-content-side {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.lp-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lp-brand-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(201,168,76,0.4);
  box-shadow: 0 0 20px rgba(201,168,76,0.2);
}

.lp-brand-name {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--gold);
}

.lp-brand-sub {
  font-size: 0.82rem;
  color: var(--white-50);
  margin-top: 2px;
}

.lp-headline {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.3;
  color: var(--white);
}

.lp-desc {
  color: var(--white-70);
  font-size: 0.98rem;
  line-height: 1.8;
}

/* FEATURES */
.lp-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lp-feat {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 14px 18px;
  transition: all 0.3s;
}

.lp-feat:hover {
  border-color: rgba(201,168,76,0.2);
  background: rgba(201,168,76,0.04);
}

.lpf-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.lpf-text strong {
  display: block;
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.lpf-text span {
  color: var(--white-50);
  font-size: 0.8rem;
}

/* PROJECTS THUMBNAILS */
.lp-projects-label {
  font-size: 0.85rem;
  color: var(--white-50);
  margin-bottom: 10px;
}

.lp-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.lp-proj-thumb {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.lp-proj-thumb img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  transition: transform 0.3s;
}

.lp-proj-thumb:hover img {
  transform: scale(1.05);
}

.lp-proj-thumb span {
  display: block;
  text-align: center;
  font-size: 0.72rem;
  color: var(--white-50);
  margin-top: 5px;
}

/* TESTIMONIAL */
.lp-testimonial {
  background: linear-gradient(135deg, rgba(201,168,76,0.07), rgba(201,168,76,0.02));
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 18px;
  padding: 22px;
}

.lt-stars {
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.lt-text {
  font-size: 0.88rem;
  color: var(--white-70);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 14px;
}

.lt-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lt-avatar {
  width: 36px;
  height: 36px;
  background: var(--gold-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a0a0a;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.lt-author strong {
  display: block;
  font-size: 0.85rem;
  color: var(--white);
}

.lt-author span {
  font-size: 0.75rem;
  color: var(--gold);
}

/* BOTTOM CTA for desktop */
.lp-bottom-cta {
  display: flex;
  gap: 12px;
}

.lp-cta-call {
  flex: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: var(--gold-gradient);
  color: var(--dark-900);
  font-family: 'Tajawal', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s;
}

.lp-cta-call:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(201,168,76,0.4);
}

.lp-cta-wa {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: #25d366;
  color: #fff;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s;
}

.lp-cta-wa:hover {
  transform: translateY(-2px);
  background: #22c05c;
}

/* MOBILE BOTTOM BAR */
.lp-mobile-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--dark-900);
  border-top: 1px solid rgba(201,168,76,0.2);
  padding: 10px 16px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  gap: 10px;
}

.lpmb-call {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px;
  background: var(--gold-gradient);
  color: var(--dark-900);
  font-family: 'Tajawal', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  border-radius: 12px;
  text-decoration: none;
}

.lpmb-wa {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px;
  background: #25d366;
  color: #fff;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  border-radius: 12px;
  text-decoration: none;
}

/* FOOTER */
.lp-footer {
  text-align: center;
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

.lp-footer a {
  color: var(--gold);
  text-decoration: none;
}

/* RESPONSIVE — مضغوط واحترافي */
@media (max-width: 900px) {
  body {
    padding-bottom: calc(60px + env(safe-area-inset-bottom));
  }

  .top-bar {
    padding: 8px 12px;
    padding-top: max(8px, env(safe-area-inset-top));
  }

  .tb-logo img {
    width: 30px;
    height: 30px;
  }

  .tb-logo span {
    font-size: 0.78rem;
  }

  .tb-call {
    padding: 8px 12px;
    font-size: 0.75rem;
    border-radius: 8px;
  }

  .lp-main {
    min-height: auto;
    align-items: flex-start;
  }

  .lp-container {
    grid-template-columns: 1fr;
    padding: 16px 14px 24px;
    gap: 22px;
  }

  .lp-form-side {
    position: static;
    order: 1;
  }

  .lp-content-side {
    order: 2;
  }

  .lp-form-box {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .lp-form-header {
    margin-bottom: 18px;
    text-align: center;
  }

  .lp-logo-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
  }

  .lp-logo-mobile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(201,168,76,0.4);
  }

  .lp-title {
    font-size: 1.2rem;
    line-height: 1.4;
  }

  .lp-subtitle {
    font-size: 0.82rem;
  }

  .lp-headline {
    font-size: 1.35rem;
    text-align: center;
  }

  .lp-desc {
    font-size: 0.88rem;
    text-align: center;
  }

  .lp-brand { display: none; }

  .lp-mobile-bar {
    display: flex;
    padding: 8px 12px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    gap: 8px;
  }

  .lp-bottom-cta { display: none; }

  .lp-submit,
  .lp-direct-call,
  .lp-direct-wa,
  .lpmb-call,
  .lpmb-wa {
    min-height: 44px;
    font-size: 0.9rem;
    border-radius: 10px;
  }

  .lp-features {
    gap: 10px;
  }

  .lp-feat {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .lpf-icon {
    font-size: 1.4rem;
  }

  .lpf-text strong {
    font-size: 0.85rem;
  }

  .lpf-text span {
    font-size: 0.75rem;
  }

  .lp-projects-label {
    text-align: center;
    font-size: 0.8rem;
  }

  .lp-projects-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .lp-proj-thumb img {
    height: 64px;
    border-radius: 8px;
  }

  .lp-proj-thumb span {
    font-size: 0.68rem;
  }

  .lp-testimonial {
    padding: 16px;
    border-radius: 14px;
    text-align: center;
  }

  .lt-text {
    font-size: 0.82rem;
  }

  .lt-author {
    justify-content: center;
  }

  .lp-trust-badges {
    justify-content: center;
    gap: 6px;
  }

  .ltb-item {
    font-size: 0.7rem;
    padding: 4px 10px;
  }

  .lp-footer {
    padding: 14px 14px 72px;
    font-size: 0.72rem;
    text-align: center;
  }

  .gp-captcha-box {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .tb-logo span { display: none; }

  .tb-call {
    font-size: 0.72rem;
    padding: 8px 10px;
  }

  .lp-title {
    font-size: 1.1rem;
  }

  .lp-headline {
    font-size: 1.2rem;
  }
}
