/* ───── حركات الظهور (المحتوى ظاهر دائماً بدون JavaScript) ───── */
.js-reveal .reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--delay, 0ms); }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

.btn-lg { min-height: 54px; padding: 12px 30px; font-size: 16px; border-radius: 14px; }
.btn-glass { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.45); color: #fff; backdrop-filter: blur(6px); }
.btn-glass:hover { background: #fff; color: var(--ink); }

/* ───── الرئيسية ───── */
.home-hero { position: relative; display: flex; align-items: center; justify-content: center; min-height: max(560px, calc(100vh - 68px)); overflow: hidden; background: #090d16; color: #fff; text-align: center; }
.hero-slides, .hero-slides .slide { position: absolute; inset: 0; }
.hero-slides .slide { background-position: center; background-size: cover; opacity: 0; transform: scale(1.12); transition: opacity 1.4s ease, transform 7s ease-out; }
.hero-slides .slide.is-active { opacity: 1; transform: scale(1); }
.hero-slides::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(9,13,22,.55), rgba(9,13,22,.78)); }
.home-hero-content { position: relative; z-index: 1; max-width: 860px; padding: 60px 20px 90px; }
.home-hero-content > * { animation: fadeUp .9s ease both; }
.hero-tag { display: inline-block; margin-bottom: 20px; padding: 6px 18px; border: 1px solid rgba(255,255,255,.35); border-radius: 30px; font-size: 13px; font-weight: 700; }
.home-hero h1 { margin-bottom: 18px; font-size: clamp(30px, 6vw, 56px); font-weight: 900; line-height: 1.5; animation-delay: .12s; }
.home-hero p { margin: 0 auto 30px; max-width: 640px; color: #e2e8f0; font-size: clamp(15px, 2.4vw, 18px); line-height: 2; animation-delay: .24s; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; animation-delay: .36s; }
.slide-dots { position: absolute; z-index: 2; bottom: 70px; display: flex; gap: 6px; }
.slide-dots button { width: 28px; height: 24px; border: 0; background: linear-gradient(rgba(255,255,255,.4), rgba(255,255,255,.4)) center / 100% 5px no-repeat; cursor: pointer; transition: width .3s; }
.slide-dots button.is-active { width: 50px; background-image: linear-gradient(#fff, #fff); }
.stats { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 900px; margin: -48px auto 0; background: #fff; border-radius: 20px; box-shadow: 0 20px 50px rgba(15,23,42,.14); }
.stats > div { display: flex; flex-direction: column; align-items: center; padding: 24px 10px; text-align: center; }
.stats > div + div { border-right: 1px solid var(--line); }
.stats strong { color: var(--blue); font-size: clamp(28px, 5vw, 40px); font-weight: 900; line-height: 1.3; }
.stats > div > span { color: var(--muted); font-size: 13px; font-weight: 700; }
@media (max-width: 940px) { .stats { margin-right: 16px; margin-left: 16px; } }

.home-section { padding: 80px 20px; }
.home-section.alt { background: #eef2f9; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 18px; max-width: 1180px; margin: 0 auto 36px; }
.section-head.center { flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.section-head h2, .cta-band h2 { font-size: clamp(24px, 4vw, 34px); font-weight: 900; line-height: 1.6; }
.home-wrap { max-width: 1180px; margin: 0 auto; }
.products-grid > .reveal { display: flex; min-width: 0; }
.products-grid > .reveal > .product-card { flex: 1; animation: none; }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: 1180px; margin: 0 auto; }
.category { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 24px 22px; background: #fff; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); font-weight: 800; text-decoration: none; }
.category i { color: var(--blue); font-style: normal; transition: transform .3s; }
.category:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.category:hover i { color: #fff; transform: translateX(-6px); }

.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; max-width: 1180px; margin: 0 auto; padding: 0; list-style: none; counter-reset: step; }
.process li { padding: 28px 22px; background: #fff; border: 1px solid var(--line); border-radius: 18px; counter-increment: step; }
.process li::before { content: "0" counter(step); display: block; color: var(--blue); font-size: 36px; font-weight: 900; opacity: .3; }
.process h3 { margin: 6px 0; font-size: 17px; }
.process p { color: var(--muted); font-size: 14px; line-height: 1.9; }

.average { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 14px; }
.slider-track { display: flex; gap: 20px; overflow-x: auto; padding: 6px 2px 20px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slider-track::-webkit-scrollbar { display: none; }
.slider-track .review-card { flex: 0 0 min(100%, 360px); scroll-snap-align: start; animation: none; }
.slider-nav { display: flex; justify-content: center; gap: 12px; }
.slider-nav button { width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 20px; cursor: pointer; transition: .25s; }
.slider-nav button:hover { background: var(--blue); color: #fff; }

.cta-band { padding: 70px 20px; background: linear-gradient(135deg, #0022EE, #00126f); color: #fff; text-align: center; }
.cta-band p { margin: 6px 0 26px; color: #dbe4ff; }
.cta-band .btn-order { width: auto; }

/* ───── الفوتر وأيقونات التواصل ───── */
.big-footer { padding: 70px 6% 28px; background: #090d16; color: #94a3b8; }
.footer-social { margin-bottom: 50px; text-align: center; }
.footer-social h2 { color: #fff; font-size: 26px; font-weight: 900; }
.footer-social p { margin-bottom: 26px; font-size: 14px; }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.social { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 66px; color: #cbd5e1; font-size: 12px; text-decoration: none; }
.social span { display: grid; place-items: center; width: 60px; height: 60px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; background: rgba(255,255,255,.06); color: #fff; transition: transform .35s, background .35s, box-shadow .35s; }
.social:hover span, .social:focus-visible span { background: var(--brand); transform: translateY(-8px) rotate(6deg); box-shadow: 0 12px 26px rgba(0,0,0,.35); }
.social:hover { color: #fff; }
.social-wa { --brand: #25D366; } .social-phone { --brand: #0022EE; } .social-facebook { --brand: #1877F2; }
.social-instagram { --brand: #E4405F; } .social-tiktok { --brand: #111; } .social-youtube { --brand: #e50914; } .social-mail { --brand: #d97706; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; max-width: 1180px; margin: 0 auto; padding-top: 40px; border-top: 1px solid rgba(255,255,255,.1); }
.footer-cols h3 { margin-bottom: 14px; color: #fff; font-size: 17px; }
.footer-cols p, .footer-cols a { display: block; margin-bottom: 8px; color: #94a3b8; font-size: 14px; line-height: 1.9; text-decoration: none; overflow-wrap: anywhere; }
.footer-cols a:hover { color: #fff; }
.footer-copy { margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); text-align: center; font-size: 13px; }

/* ───── أنشئ تصميمك ───── */
.config-hero { background-image: linear-gradient(rgba(9,13,22,.74), rgba(9,13,22,.74)), url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1920&q=80'); min-height: 260px; }
.wizard-steps { display: flex; justify-content: space-between; max-width: 820px; margin: 0 auto 30px; padding: 0; list-style: none; scroll-margin-top: 100px; }
.wizard-steps li { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 700; text-align: center; }
.wizard-steps li + li::before { content: ''; position: absolute; top: 18px; right: calc(-50% + 22px); width: calc(100% - 44px); height: 3px; background: var(--line); }
.wizard-steps li.is-done::before, .wizard-steps li.is-current::before { background: var(--blue); }
.wizard-steps b { display: grid; place-items: center; width: 38px; height: 38px; border: 2px solid var(--line); border-radius: 50%; background: #fff; transition: .3s; }
.wizard-steps .is-current b { border-color: var(--blue); background: var(--blue); color: #fff; box-shadow: 0 0 0 6px rgba(0,34,238,.12); }
.wizard-steps .is-done b { border-color: var(--blue); color: var(--blue); }
.wizard-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; align-items: start; }
.wizard, .summary { min-width: 0; padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 14px 44px rgba(15,23,42,.06); }
.summary { position: sticky; top: 110px; padding: 24px; }
.summary h2 { margin-bottom: 10px; font-size: 18px; }
.summary .specs { margin: 0; }
.summary .specs div { grid-template-columns: 90px minmax(0, 1fr); }
.step { min-width: 0; border: 0; animation: fadeUp .45s ease both; }
.step legend { margin-bottom: 20px; font-size: 20px; font-weight: 900; }
.step > .hint { margin-bottom: 16px; }
.type-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.shape-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 460px; margin-top: 8px; }
.type-card { position: relative; display: flex; cursor: pointer; }
.type-card input { position: absolute; opacity: 0; }
.type-card > span { display: flex; flex: 1; flex-direction: column; align-items: center; gap: 10px; padding: 20px 8px; border: 2px solid var(--line); border-radius: 16px; font-size: 13px; text-align: center; transition: .25s; }
.type-card svg { width: 48px; height: 48px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.type-card svg.filled { fill: currentColor; opacity: .75; }
.type-card:hover > span { border-color: #a5b4fc; transform: translateY(-3px); }
.type-card input:checked + span { border-color: var(--blue); background: #eef2ff; color: var(--blue); box-shadow: 0 10px 24px rgba(0,34,238,.14); }
.type-card input:focus-visible + span { outline: 3px solid rgba(0,34,238,.45); outline-offset: 2px; }
#wizard-error { margin: 14px 0 0; }
.wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.wizard-nav #next { min-width: 180px; margin-right: auto; }
.wizard-nav #next.is-send { background: #15803d; }

/* ───── تواصل معنا ───── */
.contact-hero { background-image: linear-gradient(135deg, rgba(9,13,22,.86), rgba(0,34,238,.55)), url('https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?auto=format&fit=crop&w=1920&q=80'); }
.open-state { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 7px 18px; border-radius: 30px; background: rgba(255,255,255,.14); font-size: 13px; font-weight: 800; }
.open-state::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #f87171; }
.open-state.is-open::before { background: #4ade80; animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(74,222,128,.2); } }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(45%, 190px), 1fr)); gap: 18px; margin-bottom: 46px; }
.contact-card { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; padding: 28px 14px; background: #fff; border: 1px solid var(--line); border-radius: 20px; color: var(--ink); text-align: center; text-decoration: none; }
.contact-card:hover { border-color: var(--brand); box-shadow: 0 18px 40px rgba(15,23,42,.12); }
.contact-icon { display: grid; place-items: center; width: 66px; height: 66px; margin-bottom: 8px; border-radius: 50%; background: #f1f5f9; color: var(--brand); transition: .35s; }
.contact-icon svg { width: 30px; height: 30px; }
.contact-card:hover .contact-icon { background: var(--brand); color: #fff; transform: scale(1.1) rotate(6deg); }
.contact-card h2 { font-size: 16px; font-weight: 900; }
.contact-card bdi { max-width: 100%; color: var(--muted); font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.contact-card em { margin-top: 8px; color: var(--blue); font-size: 12px; font-style: normal; font-weight: 800; }
.contact-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 28px; align-items: start; }
.contact-form, .branches { padding: 34px; border-radius: 22px; scroll-margin-top: 100px; }
.contact-form { background: #fff; border: 1px solid var(--line); }
.contact-form h2, .branches h2 { font-size: 22px; font-weight: 900; }
.contact-form > .hint { margin-bottom: 20px; }
.contact-form .btn-order { border: 0; }
.branches { background: linear-gradient(145deg, #090d16, #131b2e); color: #fff; }
.branches > p { margin-bottom: 20px; color: #94a3b8; font-size: 13px; }
.branch { margin-bottom: 14px; padding: 16px 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; transition: .3s; }
.branch:hover { background: rgba(255,255,255,.11); transform: translateX(-4px); }
.branch h3 { display: flex; align-items: center; gap: 8px; color: #93c5fd; font-size: 15px; }
.branch h3 svg { width: 18px; height: 18px; }
.branch p { margin: 4px 0 10px; color: #e2e8f0; font-size: 13px; }
.branch div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.branch a { color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; }

@media (max-width: 900px) {
    .category-grid, .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-cols, .contact-split, .wizard-layout { grid-template-columns: minmax(0, 1fr); }
    .summary { position: static; }
    .type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-hero { min-height: 600px; }
}
@media (max-width: 600px) {
    .home-section { padding: 56px 16px; }
    .category-grid { gap: 10px; }
    .category { padding: 18px 14px; font-size: 13px; }
    .process { grid-template-columns: minmax(0, 1fr); }
    .big-footer { padding: 50px 16px 24px; }
    .socials { gap: 12px 10px; }
    .social span { width: 52px; height: 52px; }
    .wizard, .contact-form, .branches { padding: 20px 16px; }
    .wizard-steps li { font-size: 10px; }
    .wizard-nav #next { min-width: 0; flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .js-reveal .reveal { opacity: 1; transform: none; } }
