/* ========================================
   أمان مكة لنقل العفش — Global Styles
   ======================================== */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand Colors */
  --color-primary: #0D7377;
  --color-primary-light: #14919B;
  --color-primary-dark: #095B5E;
  --color-accent: #D4A853;
  --color-accent-light: #E8C97A;
  --color-cta: #25D366;
  --color-cta-hover: #1DA851;
  --color-phone: #0D7377;
  --color-phone-hover: #095B5E;
  
  /* Neutrals */
  --color-bg: #FAFAFA;
  --color-surface: #FFFFFF;
  --color-text: #1A1A2E;
  --color-text-muted: #6B7280;
  --color-text-light: #9CA3AF;
  --color-border: #E5E7EB;
  --color-border-light: #F3F4F6;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);

  /* Spacing */
  --header-height: 72px;
  --sticky-cta-height: 64px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
  background-color: var(--color-bg);
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-bottom: var(--sticky-cta-height);
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-light);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
h4 { font-size: clamp(1rem, 2vw, 1.25rem); }

p {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: box-shadow var(--transition-base);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo img {
  height: 52px;
  width: auto;
}

.header-nav {
  display: none;
}

@media (min-width: 1024px) {
  .header-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
  
  .header-nav a {
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--transition-fast);
  }
  
  .header-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-base);
  }
  
  .header-nav a:hover {
    color: var(--color-primary);
  }
  
  .header-nav a:hover::after,
  .header-nav a.active::after {
    width: 100%;
  }
  
  .header-nav a.active {
    color: var(--color-primary);
  }
}

.header-cta-group {
  display: none;
}

@media (min-width: 1024px) {
  .header-cta-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

/* ---------- Mobile Menu ---------- */
.mobile-menu {
  position: fixed;
  top: var(--header-height);
  right: 0;
  left: 0;
  bottom: 0;
  background: var(--color-surface);
  z-index: 999;
  transform: translateX(100%);
  transition: transform var(--transition-base);
  overflow-y: auto;
  padding: 1.5rem;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu a {
  display: block;
  padding: 0.875rem 0;
  color: var(--color-text);
  font-weight: 500;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--color-border-light);
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--color-primary);
}

/* ---------- Sticky Bottom CTA (Mobile) ---------- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  height: var(--sticky-cta-height);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  display: flex;
  z-index: 998;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
}

@media (min-width: 1024px) {
  .sticky-cta {
    display: none;
  }
  
  body {
    padding-bottom: 0;
  }
}

.sticky-cta a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  text-decoration: none;
}

.sticky-cta .cta-phone {
  background: var(--color-primary);
}

.sticky-cta .cta-whatsapp {
  background: var(--color-cta);
}

/* ---------- Floating WhatsApp (Desktop) ---------- */
.floating-whatsapp {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  width: 60px;
  height: 60px;
  background: var(--color-cta);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  z-index: 997;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.floating-whatsapp svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

@media (min-width: 1024px) {
  .floating-whatsapp {
    display: flex;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  font-family: inherit;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

.btn-whatsapp {
  background: var(--color-cta);
  color: #fff;
}
.btn-whatsapp:hover {
  background: var(--color-cta-hover);
  color: #fff;
}

.btn-phone {
  background: var(--color-primary);
  color: #fff;
}
.btn-phone:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: 0.625rem;
}

/* ---------- Hero Section ---------- */
.hero {
  margin-top: var(--header-height);
  padding: 3rem 1rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
  animation: hero-glow 15s ease infinite;
}

@keyframes hero-glow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(5%, 5%); }
}

.hero h1 {
  color: #fff;
  margin-bottom: 1rem;
  position: relative;
  font-weight: 800;
}

.hero .aeo-sentence {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  max-width: 700px;
  margin: 0 auto 1.5rem;
  line-height: 1.9;
  position: relative;
}

.hero .hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 2rem;
  position: relative;
}

@media (min-width: 640px) {
  .hero .hero-ctas {
    flex-direction: row;
    justify-content: center;
  }
}

.hero .trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  position: relative;
}

.hero .trust-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.12);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.95);
  backdrop-filter: blur(4px);
}

/* ---------- Section Styles ---------- */
.section {
  padding: 3.5rem 1rem;
}

@media (min-width: 768px) {
  .section {
    padding: 5rem 1.5rem;
  }
}

.section-alt {
  background: var(--color-surface);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* ---------- Service Cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 1.75rem;
  transition: all var(--transition-base);
  text-decoration: none;
  display: block;
}

.service-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.service-card .card-icon {
  width: 52px;
  height: 52px;
  background: rgba(13, 115, 119, 0.08);
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
  line-height: 1.7;
}

/* ---------- Why Us / Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(13, 115, 119, 0.08);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--color-primary);
}

.feature-item h4 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.feature-item p {
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* ---------- Process / Steps ---------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}

.process-step {
  text-align: center;
  padding: 1.5rem 1rem;
  position: relative;
}

.process-step .step-number {
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  margin: 0 auto 1rem;
}

.process-step h4 {
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.875rem;
}

/* ---------- Area Links ---------- */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.area-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 0.625rem;
  padding: 1.25rem;
  text-align: center;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.area-card:hover {
  border-color: var(--color-primary);
  background: rgba(13, 115, 119, 0.03);
  color: var(--color-primary);
}

/* ---------- FAQ Accordion ---------- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 0.625rem;
  margin-bottom: 0.75rem;
  background: var(--color-surface);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.25rem;
  background: none;
  border: none;
  text-align: right;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-question .faq-arrow {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  transition: transform var(--transition-base);
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 1.25rem 1.25rem;
  color: var(--color-text-muted);
  line-height: 1.9;
}

/* ---------- CTA Section ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 3rem 1rem;
  border-radius: 0.75rem;
  margin: 0 1rem;
}

@media (min-width: 768px) {
  .cta-section {
    padding: 4rem 2rem;
    margin: 0 1.5rem;
    border-radius: 1rem;
  }
}

.cta-section h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
}

.cta-section .cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

@media (min-width: 640px) {
  .cta-section .cta-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.7);
  padding: 3rem 1rem 1.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  padding: 0.3rem 0;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  margin-top: var(--header-height);
  padding: 0.75rem 1rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border-light);
  font-size: 0.85rem;
}

.breadcrumbs-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--color-text-muted);
}

.breadcrumbs a:hover {
  color: var(--color-primary);
}

.breadcrumbs .separator {
  color: var(--color-text-light);
}

.breadcrumbs .current {
  color: var(--color-primary);
  font-weight: 600;
}

/* ---------- Page Content ---------- */
.page-hero {
  margin-top: var(--header-height);
  padding: 2.5rem 1rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  text-align: center;
}

.page-hero h1 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: rgba(255,255,255,0.85);
  max-width: 700px;
  margin: 0 auto;
}

.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1rem;
}

.page-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-border-light);
}

.page-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.page-content ul,
.page-content ol {
  padding-right: 1.5rem;
  margin-bottom: 1.5rem;
}

.page-content li {
  margin-bottom: 0.5rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.page-content strong {
  color: var(--color-text);
}

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all var(--transition-base);
  text-decoration: none;
  display: block;
}

.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.blog-card-body {
  padding: 1.5rem;
}

.blog-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.blog-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.blog-card .blog-meta {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

/* ---------- Calculator ---------- */
.calc-container {
  max-width: 700px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 2rem;
}

.calc-field {
  margin-bottom: 1.5rem;
}

.calc-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.calc-field select,
.calc-field input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  background: var(--color-bg);
  color: var(--color-text);
  direction: rtl;
}

.calc-field select:focus,
.calc-field input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(13, 115, 119, 0.1);
}

.calc-result {
  background: rgba(13, 115, 119, 0.05);
  border: 2px solid var(--color-primary);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  margin-top: 1.5rem;
}

.calc-result .price-range {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-primary);
  margin: 0.5rem 0;
}

/* ---------- Utility Classes ---------- */
.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.text-center { text-align: center; }
.bg-primary { background: var(--color-primary); }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.hidden { display: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
