/* =============================================
   أبو رامي | style.css
   ============================================= */

:root {
  --primary:    #1a4d6e;
  --primary-lt: #2a6f9e;
  --accent:     #c8973a;
  --accent-lt:  #e8b860;
  --green:      #25d366;
  --green-dk:   #128c52;
  --green-glow: rgba(37,211,102,.45);
  --bg:         #f7f5f0;
  --surface:    #ffffff;
  --text:       #1c1c1e;
  --text-muted: #6b6b6b;
  --border:     #e2ddd5;
  --radius:     14px;
  --shadow:     0 4px 24px rgba(0,0,0,.08);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.13);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Tajawal', sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- HEADER ---- */
.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo in header */
.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
}

.logo-text {
  font-family: 'Amiri', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

/* Small WhatsApp button in header */
.header-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 50px;
  transition: background .18s, transform .18s, box-shadow .18s;
  box-shadow: 0 3px 12px var(--green-glow);
}

.header-wa-btn:hover {
  background: var(--green-dk);
  transform: translateY(-1px);
  box-shadow: 0 5px 18px var(--green-glow);
}

/* ---- HERO ---- */
.hero {
  padding: 60px 0 55px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-bg-shape {
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 500px;
  background: radial-gradient(ellipse at center, rgba(26,77,110,.07) 0%, transparent 70%);
  pointer-events: none;
}

/* Hero Logo */
.hero-logo-wrap {
  margin-bottom: 20px;
}

.hero-logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(26,77,110,.2);
  display: inline-block;
}

.badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-lt));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 22px;
  box-shadow: 0 3px 12px rgba(200,151,58,.35);
}

.hero-name {
  font-family: 'Amiri', serif;
  font-size: clamp(48px, 10vw, 72px);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 10px;
}

.hero-title {
  font-size: clamp(15px, 3.5vw, 19px);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 36px;
  line-height: 1.85;
}

/* ---- MAIN WHATSAPP BUTTON ---- */
.btn-wa-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-family: 'Tajawal', sans-serif;
  font-size: 18px;
  font-weight: 800;
  padding: 16px 40px;
  border-radius: 50px;
  box-shadow: 0 8px 28px var(--green-glow);
  transition: background .2s, transform .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}

.btn-wa-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.15) 0%, transparent 60%);
  border-radius: inherit;
}

.btn-wa-hero:hover {
  background: var(--green-dk);
  transform: translateY(-3px);
  box-shadow: 0 14px 36px var(--green-glow);
}

.btn-wa-hero:active { transform: scale(.97); }

.btn-wa-lg {
  font-size: 20px;
  padding: 18px 48px;
}

/* ---- SERVICES ---- */
.services { padding: 60px 0; }

.section-title {
  font-family: 'Amiri', serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 36px;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px; height: 3px;
  background: var(--accent);
  margin: 10px auto 0;
  border-radius: 99px;
}

.section-title--light { color: #fff; }
.section-title--light::after { background: var(--accent-lt); }

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  position: relative;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-lt);
}

.service-card--accent {
  border-color: rgba(200,151,58,.35);
  background: linear-gradient(135deg, #fffdf6, #fff9ec);
}

.service-card--accent:hover { border-color: var(--accent); }

.tag-new {
  display: inline-block;
  margin-top: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
}

.service-icon { font-size: 34px; margin-bottom: 12px; display: block; }

.service-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- TRUST STRIP ---- */
.trust-strip {
  background: linear-gradient(135deg, var(--primary) 0%, #0f3550 100%);
  padding: 52px 20px;
  text-align: center;
}

.trust-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.trust-num {
  font-family: 'Amiri', serif;
  font-size: 38px;
  font-weight: 700;
  color: var(--accent-lt);
  line-height: 1;
}

.trust-label {
  font-size: 14px;
  color: rgba(255,255,255,.75);
  font-weight: 500;
}

/* ---- FAQ SECTION ---- */
.faq-section {
  padding: 60px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  transition: border-color .2s;
}

.faq-item[open] {
  border-color: var(--primary-lt);
}

.faq-q {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-q::-webkit-details-marker { display: none; }

.faq-q::after {
  content: '＋';
  font-size: 18px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform .2s;
}

.faq-item[open] .faq-q::after {
  content: '－';
}

.faq-a {
  font-size: 15px;
  color: var(--text-muted);
  padding: 0 20px 16px;
  line-height: 1.7;
}

/* ---- CONTACT STRIP ---- */
.contact-strip {
  background: #edf4f9;
  padding: 60px 20px;
  text-align: center;
  border-top: 1px solid #d4e5f2;
  border-bottom: 1px solid #d4e5f2;
}

.contact-strip-text {
  font-family: 'Amiri', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.contact-strip-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--text);
  padding: 40px 20px;
  text-align: center;
}

.footer-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-bottom: 12px;
  opacity: .9;
}

.footer-name {
  font-family: 'Amiri', serif;
  font-size: 22px;
  color: #fff;
  margin-bottom: 6px;
}

.footer-sub {
  font-size: 13px;
  color: rgba(255,255,255,.45);
  margin-bottom: 4px;
}

.footer-phone { margin: 12px 0 8px; }

.footer-phone a {
  color: var(--green);
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  direction: ltr;
  display: inline-block;
  transition: color .15s;
}

.footer-phone a:hover { color: #fff; }

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,.2);
  margin-top: 12px;
}

/* ---- FLOATING WhatsApp Button ---- */
.fab-wa {
  position: fixed;
  bottom: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-family: 'Tajawal', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 20px 12px 16px;
  border-radius: 50px;
  box-shadow: 0 6px 24px var(--green-glow), 0 2px 8px rgba(0,0,0,.2);
  transition: transform .2s, box-shadow .2s, background .2s;
  z-index: 999;
  animation: fabPop .6s cubic-bezier(.175,.885,.32,1.275) .8s both;
}

.fab-wa:hover {
  background: var(--green-dk);
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 32px var(--green-glow);
}

.fab-label { white-space: nowrap; }

@keyframes fabPop {
  from { opacity: 0; transform: scale(.5) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ---- ANIMATIONS ---- */
.animate-fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp .65s ease forwards;
}

.delay-1 { animation-delay: .10s; }
.delay-2 { animation-delay: .22s; }
.delay-3 { animation-delay: .34s; }
.delay-4 { animation-delay: .48s; }
.delay-5 { animation-delay: .60s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.animate-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}

.animate-card.visible { opacity: 1; transform: translateY(0); }

/* ---- RESPONSIVE ---- */
@media (max-width: 520px) {
  .services-grid { grid-template-columns: 1fr; }
  .trust-grid { gap: 24px; }
  .trust-num { font-size: 30px; }
  .hero { padding: 44px 0 38px; }
  .hero-logo { width: 80px; height: 80px; }
  .btn-wa-hero { font-size: 16px; padding: 14px 28px; }
  .btn-wa-lg { font-size: 17px; padding: 15px 32px; }
  .fab-wa { bottom: 16px; left: 16px; padding: 10px 16px 10px 14px; font-size: 14px; }
  .logo-text { display: none; }
}
