/*
  سطحة نجد - Sathat Najd
  Design System: 8px Grid
  Spacing: 8, 16, 24, 32, 40, 48, 56, 64, 80
  Colors: Red #CC0000, Beige #faf7f4, Black #1a1a1a
*/

/* ===== Local Fonts ===== */
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/cairo-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/cairo-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/cairo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== Variables ===== */
:root {
  --red: #CC0000;
  --red-dark: #990000;
  --red-light: #ff1a1a;
  --black: #1a1a1a;
  --gray-light: #666666;
  --whatsapp: #25D366;
  --beige: #faf7f4;
  --beige-dark: #f0ebe5;
}

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
  font-family: 'Cairo', sans-serif;
  background: var(--beige);
  color: #333;
  line-height: 1.8;
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ===== Utility ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }
.section { padding: 80px 0; overflow: hidden; }
.section-alt { background: var(--beige-dark); }
.section-title { font-size: 2.2rem; font-weight: 900; text-align: center; margin-bottom: 15px; color: #1a1a1a; }
.section-title span { color: var(--red); }
.section-subtitle { text-align: center; color: var(--gray-light); font-size: 1.0625rem; margin-bottom: 48px; line-height: 1.8; }

/* ===== Navbar ===== */
.navbar { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; background: rgba(250,247,244,0.95); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(0,0,0,0.08); transition: all 0.3s; overflow: hidden; }
.navbar .container { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; }
.navbar-logo { display: flex; align-items: center; gap: 10px; }
.navbar-logo img { width: 40px; height: auto; }
.navbar-logo h1 { font-size: 1.3rem; font-weight: 900; color: #1a1a1a; }
.navbar-logo h1 span { color: var(--red); }
.nav-links { display: flex; gap: 25px; align-items: center; }
.nav-links a { font-size: 0.95rem; font-weight: 600; color: var(--gray-light); transition: color 0.3s; position: relative; }
.nav-links a:hover { color: var(--red); }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; right: 0; width: 0; height: 2px; background: var(--red); transition: width 0.3s; }
.nav-links a:hover::after { width: 100%; }
.nav-cta { background: var(--red) !important; color: #fff !important; padding: 8px 20px; border-radius: 6px; font-weight: 700 !important; transition: background 0.3s !important; }
.nav-cta:hover { background: var(--red-dark) !important; }
.nav-cta::after { display: none !important; }
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger span { width: 28px; height: 3px; background: #333; border-radius: 2px; transition: 0.3s; }

/* ===== Hero ===== */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; background: var(--beige); padding-top: 80px; max-width: 100%; }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; position: relative; z-index: 2; }
.hero-content { display: flex; flex-direction: column; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(204,0,0,0.06); border: 1px solid rgba(204,0,0,0.15); color: var(--red); padding: 8px 18px; border-radius: 50px; font-size: 0.85rem; font-weight: 700; margin-bottom: 24px; width: fit-content; }
.hero-badge .pulse { width: 8px; height: 8px; background: var(--red); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(204,0,0,0.6); } 70% { box-shadow: 0 0 0 12px rgba(204,0,0,0); } 100% { box-shadow: 0 0 0 0 rgba(204,0,0,0); } }
.hero h2 { font-size: 3rem; font-weight: 900; line-height: 1.35; margin-bottom: 24px; color: #1a1a1a; letter-spacing: -0.5px; }
.hero h2 span { color: var(--red); }
.hero p { font-size: 1.1rem; color: #777; margin-bottom: 36px; max-width: 500px; line-height: 2; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 20px 0; border-left: 1px solid rgba(0,0,0,0.08); text-align: center; }
.stat:last-child { border-left: none; }
.stat h3 { font-size: 1.8rem; font-weight: 900; color: var(--red); margin-bottom: 4px; }
.stat p { font-size: 0.82rem; color: #999; font-weight: 600; }
.hero-image { position: relative; }
.hero-image img { width: 100%; border-radius: 20px; box-shadow: 0 24px 48px rgba(0,0,0,0.08); aspect-ratio: 4/3; object-fit: cover; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 10px; font-size: 1rem; font-weight: 700; font-family: 'Cairo', sans-serif; border: none; cursor: pointer; transition: all 0.3s; position: relative; overflow: hidden; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 4px 20px rgba(204,0,0,0.2); }
.btn-red:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 6px 25px rgba(204,0,0,0.3); }
.btn-outline { background: #fff; color: #555; border: 1.5px solid rgba(0,0,0,0.1); }
.btn-outline:hover { border-color: var(--red); color: var(--red); background: rgba(204,0,0,0.03); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #1da851; transform: translateY(-2px); }
.btn .ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.3); transform: scale(0); animation: rippleAnim 0.6s ease-out; pointer-events: none; }
@keyframes rippleAnim { to { transform: scale(4); opacity: 0; } }

/* ===== Trust Bar ===== */
.trust-bar { padding: 24px 0; background: #fff; border-top: 1px solid rgba(0,0,0,0.04); border-bottom: 1px solid rgba(0,0,0,0.04); overflow: hidden; }
.trust-items { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 100%; }
.trust-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #777; font-size: 0.8125rem; font-weight: 600; padding: 12px 8px; border-left: 1px solid rgba(0,0,0,0.06); text-align: center; min-height: 72px; }
.trust-item:last-child { border-left: none; }
.trust-item .icon { width: 24px; height: 24px; }
.trust-item span:last-child { white-space: nowrap; }

/* ===== Service Cards ===== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.service-card { background: #fff; border: 1px solid rgba(0,0,0,0.06); border-radius: 12px; padding: 35px 25px; text-align: center; transition: all 0.3s; position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; right: 0; width: 100%; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform 0.3s; }
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { transform: translateY(-5px); border-color: rgba(204,0,0,0.2); box-shadow: 0 10px 40px rgba(0,0,0,0.08); }
.service-icon { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin: 0 auto 18px; background: rgba(204,0,0,0.06); border-radius: 14px; color: var(--red); }
.service-icon .icon { width: 32px; height: 32px; }
.service-card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 10px; color: #1a1a1a; }
.service-card p { font-size: 0.9375rem; color: var(--gray-light); line-height: 1.75; }

/* ===== How It Works ===== */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card { text-align: center; padding: 24px 16px; background: #fff; border-radius: 12px; border: 1px solid rgba(0,0,0,0.06); }
.step-number { width: 40px; height: 40px; background: var(--red); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.125rem; font-weight: 900; margin: 0 auto 12px; }
.step-card h3 { font-size: 1rem; font-weight: 800; color: #1a1a1a; margin-bottom: 4px; }
.step-card p { font-size: 0.875rem; color: var(--gray-light); line-height: 1.7; }

/* ===== Why Us ===== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.feature-item { display: flex; gap: 18px; align-items: flex-start; }
.feature-icon { width: 55px; height: 55px; min-width: 55px; background: rgba(204,0,0,0.06); border: 1px solid rgba(204,0,0,0.12); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--red); }
.feature-item h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 5px; color: #1a1a1a; }
.feature-item p { font-size: 0.9375rem; color: var(--gray-light); line-height: 1.75; }

/* ===== Coverage ===== */
.coverage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 40px; }
.coverage-item { background: #fff; border: 1px solid rgba(0,0,0,0.06); padding: 14px 20px; border-radius: 8px; text-align: center; font-weight: 600; font-size: 0.95rem; transition: all 0.3s; }
.coverage-item:hover { border-color: var(--red); color: var(--red); }

/* ===== Testimonials ===== */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.testimonial-card { background: #fff; border: 1px solid rgba(0,0,0,0.06); border-radius: 12px; padding: 30px; }
.testimonial-stars { color: #F5A623; font-size: 1.1rem; margin-bottom: 15px; letter-spacing: 2px; }
.testimonial-card p { font-size: 0.95rem; color: var(--gray-light); line-height: 1.9; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 45px; height: 45px; background: var(--red); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 1.1rem; }
.testimonial-name { font-weight: 700; color: #1a1a1a; font-size: 0.95rem; }
.testimonial-date { font-size: 0.8rem; color: var(--gray-light); }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid rgba(0,0,0,0.06); border-radius: 10px; margin-bottom: 12px; overflow: hidden; background: #fff; }
.faq-question { width: 100%; padding: 20px 25px; background: none; border: none; color: #1a1a1a; font-family: 'Cairo', sans-serif; font-size: 1.05rem; font-weight: 700; text-align: right; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: color 0.3s; }
.faq-question:hover { color: var(--red); }
.faq-question .arrow { font-size: 1.2rem; transition: transform 0.3s; color: var(--red); }
.faq-item.active .faq-question .arrow { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s; padding: 0 25px; color: var(--gray-light); line-height: 1.9; font-size: 0.95rem; }
.faq-item.active .faq-answer { max-height: 300px; padding: 0 25px 20px; }

/* ===== Gallery ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.gallery-item { position: relative; border-radius: 12px; overflow: hidden; cursor: pointer; aspect-ratio: 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px; background: linear-gradient(transparent, rgba(0,0,0,0.7)); color: #fff; font-weight: 700; font-size: 0.95rem; transform: translateY(100%); transition: transform 0.3s; }
.gallery-item:hover .gallery-overlay { transform: translateY(0); }

/* ===== CTA ===== */
.cta-section { background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 50%, #b30000 100%); padding: 70px 0; text-align: center; position: relative; overflow: hidden; max-width: 100%; }
.cta-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h60v60H0z' fill='none'/%3E%3Cpath d='M30 0v60M0 30h60' stroke='rgba(255,255,255,0.05)' stroke-width='1'/%3E%3C/svg%3E"); }
.cta-section .container { position: relative; z-index: 2; }
.cta-section h2 { font-size: 2.5rem; font-weight: 900; color: #fff; margin-bottom: 15px; }
.cta-section p { font-size: 1.15rem; color: rgba(255,255,255,0.85); margin-bottom: 35px; }
.cta-phone { font-size: 2.5rem; font-weight: 900; color: #fff; direction: ltr; display: block; margin-bottom: 30px; letter-spacing: 2px; }

/* ===== Footer ===== */
.footer { background: #1a1a1a; padding: 50px 0 25px; color: #ccc; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h3 { font-size: 1.1rem; font-weight: 800; color: #fff; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.footer-col h3::after { content: ''; position: absolute; bottom: 0; right: 0; width: 40px; height: 3px; background: var(--red); border-radius: 2px; }
.footer-col p, .footer-col a { font-size: 0.9rem; color: #999; line-height: 2; display: block; transition: color 0.3s; }
.footer-col a:hover { color: var(--red); }
.footer-bottom { text-align: center; padding-top: 25px; border-top: 1px solid rgba(255,255,255,0.08); color: #777; font-size: 0.85rem; }

/* ===== Floating Buttons ===== */
.floating-buttons { position: fixed; bottom: 25px; left: 25px; z-index: 999; display: flex; flex-direction: column; gap: 12px; }
.float-btn { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(0,0,0,0.25); transition: all 0.3s; border: none; cursor: pointer; position: relative; animation: floatIn 0.5s ease backwards; }
.float-btn:nth-child(1) { animation-delay: 2.2s; }
.float-btn:nth-child(2) { animation-delay: 2.5s; }
@keyframes floatIn { from { opacity: 0; transform: scale(0) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.float-btn:hover { transform: scale(1.15); }
.float-btn-whatsapp { background: var(--whatsapp); }
.float-btn-whatsapp::after { content: 'واتساب'; }
.float-btn-call { background: var(--red); }
.float-btn-call::after { content: 'اتصل'; }
.float-btn::after { position: absolute; left: 64px; background: #1a1a1a; color: #fff; padding: 5px 12px; border-radius: 6px; font-size: 0.8rem; font-weight: 700; font-family: 'Cairo', sans-serif; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.float-btn:hover::after { opacity: 1; }
.float-btn svg { width: 28px; height: 28px; fill: white; }
.float-btn-whatsapp::before, .float-btn-call::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 50%; }
.float-btn-whatsapp::before { animation: whatsappPulse 2.5s ease-in-out 3s infinite; }
.float-btn-call::before { animation: callPulse 2.5s ease-in-out 3.5s infinite; }
@keyframes whatsappPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } 50% { box-shadow: 0 0 0 10px rgba(37,211,102,0.25); } }
@keyframes callPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(204,0,0,0); } 50% { box-shadow: 0 0 0 10px rgba(204,0,0,0.2); } }

/* ===== Scroll Top ===== */
.scroll-top { position: fixed; bottom: 100px; left: 25px; width: 44px; height: 44px; background: #fff; border: 1px solid rgba(0,0,0,0.1); border-radius: 50%; display: none; align-items: center; justify-content: center; cursor: pointer; z-index: 998; transition: all 0.3s; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.scroll-top:hover { background: var(--red); }
.scroll-top svg { width: 20px; height: 20px; fill: #333; }
.scroll-top:hover svg { fill: #fff; }

/* ===== Lightbox ===== */
.lightbox { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 9998; background: rgba(0,0,0,0.92); display: none; align-items: center; justify-content: center; cursor: pointer; backdrop-filter: blur(5px); }
.lightbox.active { display: flex; }
.lightbox img { max-width: 90%; max-height: 85vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); animation: lbZoom 0.3s ease; }
@keyframes lbZoom { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lightbox-close { position: absolute; top: 25px; left: 25px; width: 44px; height: 44px; background: rgba(255,255,255,0.1); border: none; border-radius: 50%; color: #fff; font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.3s; }
.lightbox-close:hover { background: var(--red); }

/* ===== Splash ===== */
.splash { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 9999; background: #1a1a1a; display: flex; align-items: center; justify-content: center; text-align: center; direction: ltr; transition: opacity 0.5s, visibility 0.5s; }
.splash.hide { opacity: 0; visibility: hidden; }
.splash-content { text-align: center; display: flex; flex-direction: column; align-items: center; }
.splash-logo { width: 90px; display: block; margin: 0 auto; animation: splashPulse 1.2s ease-in-out infinite; }
@keyframes splashPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.splash-text { font-size: 2.2rem; font-weight: 900; color: #fff; margin-top: 20px; }
.splash-sub { font-size: 1rem; color: #999; margin-top: 8px; }
.splash-loader { width: 180px; height: 3px; background: #333; border-radius: 3px; margin: 25px auto 0; overflow: hidden; }
.splash-bar { width: 0%; height: 100%; background: var(--red); border-radius: 3px; animation: splashLoad 1.8s ease forwards; }
@keyframes splashLoad { 0% { width: 0%; } 100% { width: 100%; } }

/* ===== Animations ===== */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.tilt-card { transition: transform 0.2s ease; }
.count-up { display: inline-block; }
