/* ===================================================================
   GULFRISE DIGITAL LLC — Main Stylesheet
   Fonts: Cairo / Tajawal (Google Fonts)
   Palette:
     --primary   : #0F766E  (Sophisticated Teal)
     --accent    : #14B8A6  (Emerald Teal)
     --bg-light  : #F8FAFC  (Light Slate)
     --bg-white  : #FFFFFF  (Pure White)
     --text-dark : #334155  (Slate Dark)
=================================================================== */

:root{
  --primary: #0F766E;
  --primary-dark: #0b5750;
  --accent: #14B8A6;
  --bg-light: #F8FAFC;
  --bg-white: #FFFFFF;
  --text-dark: #334155;
}

*{ box-sizing: border-box; }

html{
  scroll-behavior: smooth;
}

body{
  font-family: 'Cairo', 'Tajawal', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
  direction: rtl;
}

/* Prevent any horizontal overflow */
html, body{ max-width: 100%; }

img, svg{ max-width: 100%; display:block; }

/* ---------- Utility color classes ---------- */
.text-primary{ color: var(--primary); }
.text-accent{ color: var(--accent); }
.bg-primary{ background-color: var(--primary); }
.bg-accent{ background-color: var(--accent); }
.border-primary{ border-color: var(--primary); }
.border-accent{ border-color: var(--accent); }

/* ---------- Announcement Bar ---------- */
.announcement-bar{
  background: linear-gradient(90deg, var(--primary), #0d8f84);
  color: #fff;
  font-size: 0.85rem;
}
.announcement-bar .marquee-track{
  display: inline-flex;
  white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header{
  background-color: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e2e8f0;
}
.nav-link{
  position: relative;
  color: var(--text-dark);
  font-weight: 600;
  transition: color .2s ease;
}
.nav-link:hover{ color: var(--primary); }
.nav-link::after{
  content: "";
  position: absolute;
  right: 0; bottom: -6px;
  width: 0%; height: 2px;
  background: var(--accent);
  transition: width .25s ease;
}
.nav-link:hover::after{ width: 100%; }

.btn-primary{
  background-color: var(--primary);
  color: #fff;
  font-weight: 700;
  border-radius: 0.75rem;
  transition: all .25s ease;
  box-shadow: 0 4px 14px rgba(15,118,110,0.25);
}
.btn-primary:hover{
  background-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(20,184,166,0.35);
}

.btn-outline{
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 700;
  border-radius: 0.75rem;
  transition: all .25s ease;
  background: transparent;
}
.btn-outline:hover{
  background-color: var(--primary);
  color: #fff;
}

/* ---------- Hero ---------- */
.hero-section{
  background: radial-gradient(circle at 15% 20%, rgba(20,184,166,0.10), transparent 45%),
              radial-gradient(circle at 85% 80%, rgba(15,118,110,0.12), transparent 45%),
              var(--bg-white);
  position: relative;
/* تنسيق قسم المقدمة الرئيسي */
.hero-section {
    background-color: #0d1b2a; /* لون خلفية كحلي احترافي */
    color: #ffffff;
    padding: 80px 20px;
    direction: rtl;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap-reverse; /* لدعم التجاوب مع الشاشات الصغيرة */
}

.hero-content {
    flex: 1 1 500px;
    text-align: right;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.3;
    color: #4cc9f0; /* لون بارز للعنوان */
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #e0e1dd;
    margin-bottom: 30px;
}

.hero-image {
    flex: 1 1 450px;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.4));
}

/* زر التحويل */
.btn-primary {
    display: inline-block;
    background-color: #2ec4b6;
    color: #0d1b2a;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 196, 182, 0.4);
}

.btn-primary:hover {
    background-color: #20a39e;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(46, 196, 182, 0.6);
}

/* تأثير الحركة الطافية للصورة */
.floating-img {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

/* تجاوب مع الهواتف الذكية */
@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .hero-description { font-size: 1rem; }
    .hero-section { padding: 40px 15px; }
}
}

.hero-badge{
  background-color: #ECFDF5;
  color: var(--primary);
  border: 1px solid rgba(20,184,166,0.35);
}

.trust-badge{
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 1rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.trust-badge:hover{
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(15,118,110,0.12);
  border-color: var(--accent);
}

/* ---------- Section headings ---------- */
.section-tag{
  display:inline-block;
  color: var(--accent);
  background: rgba(20,184,166,0.1);
  font-weight: 700;
  border-radius: 999px;
}
.section-title{
  color: var(--primary);
  font-weight: 800;
}

/* ---------- Feature Cards ---------- */
.feature-card{
  background: var(--bg-white);
  border: 1px solid #E2E8F0;
  border-radius: 1.25rem;
  transition: all .25s ease;
}
.feature-card:hover{
  border-color: var(--accent);
  box-shadow: 0 15px 35px rgba(15,118,110,0.12);
  transform: translateY(-5px);
}
.feature-icon{
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: 1rem;
  width: 3.25rem;
  height: 3.25rem;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 1.4rem;
}

/* ---------- How it works ---------- */
.step-card{
  background: var(--bg-white);
  border-radius: 1.25rem;
  border: 1px solid #E2E8F0;
  position: relative;
}
.step-number{
  background: var(--primary);
  color:#fff;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 800;
  font-size: 1.1rem;
}
.step-connector{
  border-top: 2px dashed var(--accent);
}

/* ---------- Pricing ---------- */
.pricing-card{
  background: var(--bg-white);
  border: 2px solid #E2E8F0;
  border-radius: 1.5rem;
  transition: all .25s ease;
  position: relative;
}
.pricing-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(15,118,110,0.15);
}
.pricing-card.popular{
  border-color: var(--accent);
  box-shadow: 0 15px 40px rgba(20,184,166,0.25);
}
.popular-badge{
  background: var(--accent);
  color:#fff;
  font-weight: 700;
  border-radius: 999px;
}
.price-check{
  color: var(--accent);
}
.price-value{
  color: var(--primary);
  font-weight: 800;
}

/* ---------- Banking / Stripe Section ---------- */
.banking-section{
  background: linear-gradient(135deg, var(--primary), #0d8f84);
  color: #fff;
}
.banking-card{
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 1.25rem;
  backdrop-filter: blur(4px);
}
.timeline-pill{
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
}

/* ---------- FAQ ---------- */
.faq-item{
  background: var(--bg-white);
  border: 1px solid #E2E8F0;
  border-radius: 1rem;
  overflow: hidden;
}
.faq-question{
  cursor: pointer;
  font-weight: 700;
  color: var(--text-dark);
}
.faq-question:hover{ color: var(--primary); }
.faq-icon{
  transition: transform .3s ease;
  color: var(--primary);
}
.faq-item.active .faq-icon{
  transform: rotate(180deg);
  color: var(--accent);
}
.faq-answer{
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}
.faq-item.active .faq-answer{
  max-height: 500px;
}

/* ---------- Contact ---------- */
.contact-card{
  background: var(--bg-white);
  border: 1px solid #E2E8F0;
  border-radius: 1.25rem;
}
.contact-input{
  width: 100%;
  border: 1px solid #CBD5E1;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-light);
  color: var(--text-dark);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-input:focus{
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(20,184,166,0.2);
  background: #fff;
}

/* ---------- Footer ---------- */
.site-footer{
  background: #0B3B37;
  color: #E2E8F0;
}
.site-footer a{
  color: #CBD5E1;
  transition: color .2s ease;
}
.site-footer a:hover{ color: var(--accent); }
.footer-divider{
  border-color: rgba(255,255,255,0.12);
}

/* ---------- Modals ---------- */
.legal-modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}
.legal-modal-overlay.open{
  display: flex;
}
.legal-modal{
  background: #fff;
  border-radius: 1rem;
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  animation: modalPop .25s ease;
}
@keyframes modalPop{
  from{ opacity:0; transform: translateY(20px) scale(.98); }
  to{ opacity:1; transform: translateY(0) scale(1); }
}
.legal-modal h3{
  color: var(--primary);
  font-weight: 800;
  margin-bottom: .75rem;
}
.legal-modal h4{
  color: var(--primary);
  font-weight: 700;
  margin-top: 1.25rem;
  margin-bottom: .5rem;
}
.legal-modal p, .legal-modal li{
  color: var(--text-dark);
  line-height: 1.9;
  margin-bottom: .5rem;
}
.legal-modal-close{
  position: absolute;
  top: 1rem; left: 1rem;
  background: #F1F5F9;
  color: var(--text-dark);
  border-radius: 999px;
  width: 2.25rem;
  height: 2.25rem;
  display:flex;
  align-items:center;
  justify-content:center;
  transition: background .2s ease;
}
.legal-modal-close:hover{
  background: var(--primary);
  color:#fff;
}

/* ---------- Mobile Menu ---------- */
#mobile-menu{
  transition: max-height .3s ease;
}

/* ---------- Scroll to top ---------- */
#scrollTopBtn{
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  background: var(--primary);
  color: #fff;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 8px 20px rgba(15,118,110,0.35);
  opacity: 0;
  visibility: hidden;
  transition: all .3s ease;
  z-index: 50;
}
#scrollTopBtn.show{
  opacity: 1;
  visibility: visible;
}
#scrollTopBtn:hover{ background: var(--accent); }

/* ---------- Misc ---------- */
.divider-fade{
  height: 1px;
  background: linear-gradient(to left, transparent, #E2E8F0, transparent);
}

@media (max-width: 767px){
  .hero-heading{ font-size: 2rem; line-height: 1.4; }
}
/* تنسيق زر الواتساب العائم */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    left: 30px; /* إذا كان الموقع بالعربية يفضل إبقاؤه جهة اليسار لعدم تغطية عناصر القراءة */
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

/* تأثير التكبير عند تمرير الماوس */
.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    color: #FFF;
}

/* نبض خفيف للفت الانتباه */
@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float {
    animation: pulse-whatsapp 2s infinite;
}