/* ==========================================================
   نبض الأبهر الدولية - ملف التنسيق (الإصدار 5)
   ========================================================== */

:root {
    --teal-950: #062B31;
    --teal-900: #0A3D44;
    --teal-700: #0F6570;
    --teal-500: #2A98A6;
    --teal-300: #7CC7D0;
    --teal-100: #E2EFF0;
    --paper: #F6F9F9;
    --white: #FFFFFF;
    --line: #D3E0E2;
    --text: #1A2E32;
    --muted: #4F6468;
    --pulse: #FF5A69;
    --pulse-deep: #C81E3A;
    --wa: #1FA855;

    --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
    --font-display: "Noto Kufi Arabic", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;

    --radius: 14px;
    --header-h: 76px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- أساسيات ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.85;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }

:focus-visible { outline: 3px solid var(--pulse-deep); outline-offset: 3px; border-radius: 4px; }

.skip-link {
    position: absolute;
    inset-inline-start: 12px;
    top: -60px;
    background: var(--teal-900);
    color: var(--white);
    padding: 10px 16px;
    border-radius: 6px;
    z-index: 300;
}
.skip-link:focus { top: 12px; }

/* شريط تقدم التمرير */
.progress {
    position: fixed;
    top: 0;
    inset-inline: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--pulse), var(--pulse-deep));
    transform-origin: right center;
    transform: scaleX(0);
    z-index: 250;
}

/* ---------- أزرار ---------- */
.btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 10px;
    border: 2px solid transparent;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    transition: transform .25s var(--ease), background-color .2s, border-color .2s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--pulse-deep); color: var(--white); box-shadow: 0 8px 22px rgba(200, 30, 58, .32); }
.btn-primary:hover { background: #A81830; box-shadow: 0 12px 28px rgba(200, 30, 58, .42); }
.btn-primary::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60%;
    left: -80%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
    transform: skewX(-20deg);
    transition: left .6s var(--ease);
}
.btn-primary:hover::after { left: 130%; }

.btn-ghost { border-color: rgba(255, 255, 255, .45); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: var(--white); }

.btn-whatsapp { background: var(--white); color: #12703A; border-color: var(--wa); }
.btn-whatsapp:hover { background: #EAF8F0; }

/* ---------- القائمة العلوية ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .25s;
}
.navbar.scrolled { box-shadow: 0 6px 22px rgba(6, 43, 49, .1); }

.nav-container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: flex; align-items: center; gap: 12px; }
.site-logo { height: 44px; width: auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--teal-900); }
.brand-sub { font-size: .8rem; color: var(--muted); }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-weight: 500; padding: 6px 0; position: relative; }
.nav-links a:not(.btn-nav)::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 2px;
    background: var(--pulse-deep);
    transform: scaleX(0);
    transition: transform .25s var(--ease);
}
.nav-links a:not(.btn-nav):hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.btn-nav {
    background: var(--teal-900);
    color: var(--white) !important;
    padding: 9px 22px !important;
    border-radius: 10px;
    font-weight: 600;
    transition: background-color .2s, transform .25s var(--ease);
}
.btn-nav:hover { background: var(--teal-700); transform: translateY(-1px); }

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    cursor: pointer;
    padding: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--teal-900); transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================
   الصفحة الرئيسية
   ========================================================== */
.hero {
    position: relative;
    background: var(--teal-900);
    color: var(--white);
    padding: 84px 0 230px;
    overflow: hidden;
    isolation: isolate;
}

/* خلفية متحركة */
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.b1 { width: 460px; height: 460px; background: #14808D; top: -140px; inset-inline-end: -80px; animation: drift 14s ease-in-out infinite alternate; }
.b2 { width: 380px; height: 380px; background: #7A1E33; bottom: 40px; inset-inline-start: -120px; opacity: .35; animation: drift 17s ease-in-out infinite alternate-reverse; }
.grid-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .16) 1.2px, transparent 1.2px);
    background-size: 30px 30px;
    -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
            mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
}
@keyframes drift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(40px, 30px) scale(1.15); }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 40px;
    align-items: center;
}

/* دخول العناصر عند فتح الصفحة (مشهد واحد متتابع) */
.hero-title .line,
.hero-sub, .hero-text, .hero-btns {
    animation: rise .9s var(--ease) both;
}
.hero-title .line { display: block; animation-delay: calc(.15s + var(--i) * .14s); }
.hero-sub  { animation-delay: .5s; }
.hero-text { animation-delay: .65s; }
.hero-btns { animation-delay: .8s; }

@keyframes rise {
    from { opacity: 0; transform: translateY(34px); }
    to   { opacity: 1; transform: none; }
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.2rem, 5vw, 3.7rem);
    line-height: 1.4;
}
.hero-title .line:first-child { font-size: .55em; font-weight: 600; color: var(--teal-300); }

.hero-sub { margin-top: 12px; font-size: clamp(1.1rem, 2vw, 1.45rem); font-weight: 500; color: #BFE0E4; }
.hero-text { margin-top: 20px; max-width: 54ch; color: #D9EBED; }
.hero-btns { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }

/* الرسم التوضيحي */
.hero-visual {
    position: relative;
    animation: pop 1.1s var(--ease) .35s both;
}
@keyframes pop {
    from { opacity: 0; transform: scale(.92) translateY(20px); }
    to   { opacity: 1; transform: none; }
}
.hero-art { width: 100%; height: auto; overflow: visible; }

.orbit { transform-box: fill-box; transform-origin: center; animation: spin 80s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.float { animation: bob 6s ease-in-out infinite alternate; }
.float.f2 { animation-duration: 7s; animation-delay: -2s; }
.float.f3 { animation-duration: 5.5s; animation-delay: -3s; }
@keyframes bob { from { transform: translateY(-7px); } to { transform: translateY(9px); } }

.monitor-ecg { stroke-dasharray: 100; animation: monitor 4.2s linear infinite; filter: drop-shadow(0 0 5px rgba(255, 90, 105, .7)); }
@keyframes monitor {
    0%   { stroke-dashoffset: 100; opacity: 1; }
    60%  { stroke-dashoffset: 0; opacity: 1; }
    88%  { stroke-dashoffset: 0; opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 0; }
}

.blink { animation: blink 1.4s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .15; } }

.liquid { transform-box: fill-box; transform-origin: center bottom; animation: liquid 4s ease-in-out infinite alternate; }
.l2 { animation-delay: -1.3s; }
.l3 { animation-delay: -2.4s; }
@keyframes liquid { from { transform: scaleY(.9); } to { transform: scaleY(1); } }

.plus { transform-box: fill-box; transform-origin: center; animation: twinkle 3.6s ease-in-out infinite; }
.p2 { animation-delay: -1.2s; }
.p3 { animation-delay: -2.2s; }
@keyframes twinkle { 0%, 100% { transform: scale(.7) rotate(0); opacity: .5; } 50% { transform: scale(1.15) rotate(90deg); opacity: 1; } }

.chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .95);
    color: var(--teal-900);
    font-weight: 600;
    font-size: .92rem;
    box-shadow: 0 12px 30px rgba(6, 43, 49, .3);
    animation: bob 5s ease-in-out infinite alternate;
}
.chip i { color: var(--pulse-deep); }
.chip-a { top: 6%; inset-inline-start: -2%; }
.chip-b { bottom: 12%; inset-inline-end: -2%; animation-delay: -2.5s; }

/* خط النبض السفلي */
.ecg { position: absolute; inset-inline: 0; bottom: 34px; height: 170px; z-index: 1; }
.ecg svg { width: 100%; height: 100%; }
.ecg path { fill: none; stroke-linecap: round; stroke-linejoin: round; }

.ecg-base {
    stroke: var(--pulse);
    stroke-opacity: .6;
    stroke-width: 3;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: ecg-draw 2.8s cubic-bezier(.5, 0, .3, 1) .3s forwards;
}
@keyframes ecg-draw { to { stroke-dashoffset: 0; } }

.ecg-pulse {
    stroke: #FFD6DA;
    stroke-width: 4;
    stroke-dasharray: 70 930;
    stroke-dashoffset: 70;
    opacity: 0;
    filter: drop-shadow(0 0 8px rgba(255, 90, 105, .95));
    animation: ecg-run 4.5s linear 3.2s infinite;
}
@keyframes ecg-run {
    0%   { stroke-dashoffset: 70; opacity: 1; }
    100% { stroke-dashoffset: -1000; opacity: 1; }
}

/* ---------- الشريط المتحرك ---------- */
.marquee { background: var(--paper); border-bottom: 1px solid var(--line); overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; flex: none; }
.marquee-group li {
    display: flex;
    align-items: center;
    gap: 26px;
    padding: 18px 0 18px 26px;
    font-weight: 600;
    color: var(--teal-900);
    white-space: nowrap;
}
.marquee-group li::after {
    content: "";
    width: 26px;
    height: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 12'%3E%3Cpath d='M0 6h7l3-5 4 10 3-5h9' fill='none' stroke='%23C81E3A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- الأقسام ---------- */
.section { padding: 100px 0; }

.section-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    line-height: 1.5;
    color: var(--teal-900);
    margin-bottom: 18px;
}

/* ظهور العناصر عند التمرير */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: calc(var(--d, 0) * 110ms);
}
.js [data-reveal].in { opacity: 1; transform: none; }

/* من نحن */
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 72px; align-items: center; }

.about-media { position: relative; padding: 0 0 26px 26px; }
.about-media::before {
    content: "";
    position: absolute;
    inset: 26px 26px 0 0;
    border: 2px solid var(--pulse-deep);
    border-radius: 24px;
    opacity: .55;
}
.frame {
    position: relative;
    aspect-ratio: 5 / 4;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 28px 60px rgba(6, 43, 49, .25);
}
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.about-media:hover .frame img { transform: scale(1.05); }

.badge-float {
    position: absolute;
    bottom: 0;
    inset-inline-end: -14px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(6, 43, 49, .22);
    font-weight: 600;
    font-size: .92rem;
    line-height: 1.5;
    color: var(--teal-900);
    animation: bob 5s ease-in-out infinite alternate;
}
.badge-float i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--pulse-deep); color: #fff; font-size: 1.1rem; }

.lead { color: var(--muted); max-width: 54ch; }
.lead strong { color: var(--text); }

.commitments { margin-top: 30px; border-top: 1px solid var(--line); }
.commitments li { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.commitments i {
    flex: none;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--teal-100);
    color: var(--teal-700);
    font-size: 1.1rem;
    transition: background-color .25s, color .25s, transform .3s var(--ease);
}
.commitments li:hover i { background: var(--teal-900); color: var(--white); transform: rotate(-8deg) scale(1.08); }
.commitments h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 2px; }
.commitments p { color: var(--muted); font-size: .98rem; line-height: 1.7; }

/* ما نوفره */
.services { background: var(--paper); }
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 44px;
}
.section-head .section-title { margin-bottom: 0; }
.section-head p { color: var(--muted); max-width: 44ch; }

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 26px 50px rgba(6, 43, 49, .16); border-color: var(--teal-300); }
/* عند وجود إخفاء الظهور تبقى حركة التحويم سليمة */
.js .card[data-reveal].in { transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s, opacity .8s var(--ease); }

.card-img { position: relative; aspect-ratio: 400 / 260; overflow: hidden; background: var(--teal-100); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card:hover .card-img img { transform: scale(1.07); }
.card-icon {
    position: absolute;
    bottom: 14px;
    inset-inline-start: 14px;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--white);
    color: var(--teal-900);
    font-size: 1.2rem;
    box-shadow: 0 8px 20px rgba(6, 43, 49, .2);
    transition: background-color .3s, color .3s;
}
.card:hover .card-icon { background: var(--pulse-deep); color: var(--white); }

.card-body { padding: 26px 28px 30px; }
.card-body h3 { font-size: 1.25rem; font-weight: 700; color: var(--teal-900); margin-bottom: 8px; }
.card-body p { color: var(--muted); font-size: 1rem; line-height: 1.8; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tags li { font-size: .86rem; font-weight: 500; color: var(--teal-900); background: var(--teal-100); padding: 3px 14px; border-radius: 999px; }

/* آلية العمل */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 44px; }
.steps li { position: relative; padding-top: 68px; }
.steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--teal-900);
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 800;
    z-index: 1;
    box-shadow: 0 0 0 6px var(--teal-100);
    transition: background-color .3s, transform .3s var(--ease);
}
.steps li:hover::before { background: var(--pulse-deep); transform: scale(1.1); }
.steps li::after {
    content: "";
    position: absolute;
    top: 23px;
    inset-inline-start: 56px;
    inset-inline-end: -28px;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--teal-300) 0 8px, transparent 8px 14px);
    transform-origin: right center;
}
.js .steps li::after { transform: scaleX(0); transition: transform 1s var(--ease) .35s; }
.js .steps li.in::after { transform: scaleX(1); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.15rem; font-weight: 700; color: var(--teal-900); margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: .98rem; line-height: 1.75; }

/* التواصل */
.contact { position: relative; overflow: hidden; background: var(--teal-900); color: var(--white); isolation: isolate; }
.contact .section-title { color: var(--white); }

.contact-ecg { position: absolute; inset-inline: 0; bottom: 10px; height: 170px; z-index: -1; opacity: .16; }
.contact-ecg svg { width: 100%; height: 100%; }
.contact-ecg path {
    fill: none;
    stroke: var(--pulse);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1000;
    animation: contact-line 9s ease-in-out infinite;
}
@keyframes contact-line {
    0%   { stroke-dashoffset: 1000; }
    55%  { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 0; }
}

.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.contact-info > p { color: #CFE5E8; max-width: 40ch; }

.contact-methods { margin-top: 34px; display: grid; gap: 14px; }
.contact-methods a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: var(--radius);
    transition: background-color .2s, border-color .2s, transform .3s var(--ease);
}
.contact-methods a:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .55); transform: translateX(-6px); }
.contact-methods i { font-size: 1.5rem; color: var(--pulse); width: 30px; text-align: center; }
.contact-methods small { display: block; font-size: .85rem; color: #BFE0E4; line-height: 1.5; }
.contact-methods strong { font-weight: 600; }

.contact-form {
    background: var(--white);
    color: var(--text);
    border-radius: 20px;
    padding: 34px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .28);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea {
    width: 100%;
    font: inherit;
    font-size: 1rem;
    color: var(--text);
    padding: 12px 14px;
    background: var(--paper);
    border: 1px solid #B9CACD;
    border-radius: 10px;
    transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--teal-700);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(15, 101, 112, .25);
}
.field .invalid { border-color: var(--pulse-deep); }

.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form-status { min-height: 1.6em; font-size: .95rem; color: var(--muted); }
.form-status.error { color: var(--pulse-deep); font-weight: 600; }

/* ---------- التذييل ---------- */
.footer { background: var(--teal-950); color: #B7CFD2; padding-top: 48px; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; padding-bottom: 32px; }
.footer-brand { display: block; color: var(--white); font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 4px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-links a { transition: color .2s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0 24px; font-size: .9rem; }

/* ---------- زر واتساب العائم ---------- */
.wa-float {
    position: fixed;
    left: 20px;
    bottom: 22px;
    z-index: 90;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--wa);
    color: #fff;
    font-size: 1.9rem;
    box-shadow: 0 10px 26px rgba(31, 168, 85, .5);
    transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.1); }
.wa-float::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--wa);
    z-index: -1;
    animation: ring 2.4s ease-out infinite;
}
@keyframes ring { from { transform: scale(1); opacity: .55; } to { transform: scale(1.8); opacity: 0; } }

/* ==========================================================
   الشاشات المتوسطة والصغيرة
   ========================================================== */
@media (max-width: 1000px) {
    .hero { padding: 64px 0 200px; }
    .hero-grid { grid-template-columns: 1fr; gap: 30px; }
    .hero-visual { max-width: 460px; margin-inline: auto; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .about-media { max-width: 520px; }
    .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
    .steps li:nth-child(2)::after { display: none; }
}

@media (max-width: 820px) {
    .menu-toggle { display: flex; }
    .site-nav {
        position: absolute;
        top: var(--header-h);
        inset-inline: 0;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 16px 24px rgba(6, 43, 49, .1);
        display: none;
    }
    .site-nav.open { display: block; }
    .nav-links { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 20px; }
    .nav-links li { border-bottom: 1px solid var(--line); }
    .nav-links li:last-child { border-bottom: 0; padding-top: 16px; }
    .nav-links a { display: block; padding: 14px 0; }
    .nav-links a:not(.btn-nav)::after { display: none; }
    .btn-nav { text-align: center; padding: 13px 22px !important; }
    .cards { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    body { font-size: 1rem; }
    .section { padding: 70px 0; }
    .hero { padding: 48px 0 170px; }
    .ecg { height: 120px; bottom: 26px; }
    .btn, .hero-btns .btn { width: 100%; }
    .chip { font-size: .8rem; padding: 8px 12px; }
    .steps { grid-template-columns: 1fr; }
    .steps li::after { display: none; }
    .contact-form { grid-template-columns: 1fr; padding: 22px; }
    .brand-sub { display: none; }
    .badge-float { inset-inline-end: 0; }
    .wa-float { width: 52px; height: 52px; font-size: 1.7rem; left: 14px; bottom: 16px; }
}

/* احترام تفضيل تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js [data-reveal] { opacity: 1; transform: none; }
    .js .steps li::after { transform: none; }
    .ecg-base { stroke-dashoffset: 0; }
    .ecg-pulse { display: none; }
    .marquee-track { width: auto; flex-wrap: wrap; }
    .marquee-group[aria-hidden="true"] { display: none; }
}

/* تحويم البطاقات بعد ظهورها (أعلى أولوية من قاعدة الظهور) */
.js .card[data-reveal].in:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 50px rgba(6, 43, 49, .16);
    border-color: var(--teal-300);
}
