/* Swnw public site: motion, sound & press feedback (port of the dashboard's owner-approved kit, docs/ui-references/README.md).
   Brand: navy #0A1482 / blue #0F369D / orange #F05A22. RTL first. */
:root{--fx-ease-out:cubic-bezier(.22,1,.36,1);--fx-ease-spring:cubic-bezier(.34,1.56,.64,1);--fx-press:120ms;--fx-fast:180ms;--fx-base:240ms;--fx-slow:420ms}

/* Press ring (box-shadow, never clips) */
.fx-pressed{animation:fx-ring 420ms var(--fx-ease-out)}
@keyframes fx-ring{0%{box-shadow:0 0 0 0 rgba(15,54,157,.30)}100%{box-shadow:0 0 0 8px rgba(15,54,157,0)}}
.swnw2-button--orange.fx-pressed,.fx-home__cta--wa.fx-pressed{animation-name:fx-ring-o}
@keyframes fx-ring-o{0%{box-shadow:0 0 0 0 rgba(240,90,34,.35)}100%{box-shadow:0 0 0 8px rgba(240,90,34,0)}}

/* Buttons: hover lift + press scale (mouse hover only) */
.fx-on .swnw2-button,.fx-on .swnw-about-button,.fx-on .fx-btn{transition:transform var(--fx-base) var(--fx-ease-out),box-shadow var(--fx-base) var(--fx-ease-out),background-color var(--fx-fast) var(--fx-ease-out),color var(--fx-fast) var(--fx-ease-out)}
@media (hover:hover){
 .fx-on .swnw2-button:hover,.fx-on .swnw-about-button:hover,.fx-on .fx-btn:hover{transform:translateY(-2px);box-shadow:0 10px 22px rgba(15,54,157,.18)}
 .fx-on .fx-lift:hover{transform:translateY(-4px);box-shadow:0 12px 26px rgba(22,33,46,.10)}
 .fx-on .fx-lift:hover .fx-icon-nudge{transform:translateX(-3px)}
}
.fx-on .swnw2-button:active,.fx-on .swnw-about-button:active,.fx-on .fx-btn:active,.fx-on .fx-lift:active{transform:scale(.97);transition-duration:var(--fx-press)}
.fx-on .fx-lift{transition:transform var(--fx-base) var(--fx-ease-out),box-shadow var(--fx-base) var(--fx-ease-out)}
.fx-on .fx-icon-nudge{display:inline-block;transition:transform var(--fx-base) var(--fx-ease-out)}

/* Focus ring for keyboard users */
.fx-on a:focus-visible,.fx-on button:focus-visible,.fx-on [role=button]:focus-visible{outline:2px solid #0F369D;outline-offset:2px;border-radius:12px}
.fx-on .fx-home a:focus-visible{outline-color:#fff}

/* Ripple (opt-in) */
.fx-ripple{position:relative;overflow:hidden}
.fx-ripple-dot{position:absolute;border-radius:50%;background:currentColor;opacity:.22;transform:scale(0);pointer-events:none;animation:fx-rip 520ms var(--fx-ease-out) forwards}
@keyframes fx-rip{to{transform:scale(1);opacity:0}}

/* Section reveal + list stagger (only when JS added .fx-on) */
.fx-on .fx-reveal{opacity:0;transform:translateY(14px);transition:opacity 550ms var(--fx-ease-out),transform 550ms var(--fx-ease-out)}
.fx-on .fx-reveal.fx-in{opacity:1;transform:none}
.fx-on .fx-stagger>*{opacity:0;transform:translateY(10px);transition:opacity 420ms var(--fx-ease-out),transform 420ms var(--fx-ease-out);transition-delay:calc(var(--fx-i,0) * 50ms)}
.fx-on .fx-stagger.fx-in>*{opacity:1;transform:none}

/* Sound toggle in the top bar */
.fx-sound{display:inline-flex;align-items:center;gap:6px;margin-inline-start:12px;padding:4px 10px;border:1px solid rgba(255,255,255,.35);border-radius:999px;background:transparent;color:#fff;font:inherit;font-size:13px;cursor:pointer}
.fx-sound svg{width:16px;height:16px}
.fx-sound[aria-pressed=false] .fx-sound__wave{display:none}
@media (max-width:380px){.swnw2-topbar__label{display:none!important}}
@media (max-width:760px){.fx-sound--nav{flex:none;justify-content:center;width:46px;height:46px;padding:0;margin:0 auto 0 8px;margin-inline-start:auto;margin-inline-end:8px;border-radius:14px;border-color:rgba(255,255,255,.3);background:rgba(255,255,255,.08)}.fx-sound--nav span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.fx-sound--nav svg{width:22px;height:22px}}

/* ===== Home services: full-width band ===== */
.fx-home{position:relative;overflow:hidden;color:#fff;background:linear-gradient(120deg,#0A1482 0%,#0F369D 55%,#1B4FC4 100%);padding:64px 0}
.fx-home::before{content:"";position:absolute;inset:0;background-image:radial-gradient(rgba(255,255,255,.08) 1.5px,transparent 1.5px);background-size:22px 22px;pointer-events:none}
.fx-home::after{content:"";position:absolute;width:520px;height:520px;border-radius:50%;background:radial-gradient(closest-side,rgba(240,90,34,.35),transparent);inset-inline-end:-160px;top:-180px;pointer-events:none}
.fx-home__inner{position:relative;z-index:1;max-width:1200px;margin:0 auto;padding:0 16px;display:grid;grid-template-columns:1.1fr .9fr;gap:40px;align-items:center}
.fx-home__kicker{display:inline-flex;align-items:center;gap:8px;padding:6px 14px;border-radius:999px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);font-size:14px;font-weight:600}
.fx-home__kicker i{width:8px;height:8px;border-radius:50%;background:#F05A22;box-shadow:0 0 0 0 rgba(240,90,34,.6);animation:fx-pulse 2s infinite}
@keyframes fx-pulse{70%{box-shadow:0 0 0 10px rgba(240,90,34,0)}100%{box-shadow:0 0 0 0 rgba(240,90,34,0)}}
.fx-home h2{color:#fff;font-size:clamp(28px,4vw,44px);font-weight:800;line-height:1.25;margin:16px 0 12px}
.fx-home h2 span{color:#FFB08F}
.fx-home__lead{color:rgba(255,255,255,.86);font-size:18px;line-height:1.8;margin:0 0 24px;max-width:560px}
.fx-home__list{list-style:none;margin:0 0 28px;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:12px}
.fx-home__list li{display:block}
.fx-home__item{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:14px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);font-weight:600;font-size:15px;color:#fff!important;text-decoration:none!important;cursor:pointer;transition:transform var(--fx-base) var(--fx-ease-out),background-color var(--fx-fast) var(--fx-ease-out),border-color var(--fx-fast) var(--fx-ease-out),box-shadow var(--fx-base) var(--fx-ease-out)}
.fx-home__item span{flex:1}
.fx-home__item>svg:first-child{flex:none;width:36px;height:36px;padding:8px;border-radius:11px;background:#fff;color:#0F369D;transition:transform var(--fx-base) var(--fx-ease-spring),background-color var(--fx-fast),color var(--fx-fast)}
.fx-home__arrow{flex:none;width:18px;height:18px;opacity:.55;transition:transform var(--fx-base) var(--fx-ease-out),opacity var(--fx-fast)}
@media (hover:hover){
 .fx-on .fx-home__item:hover{background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.38);box-shadow:0 12px 26px rgba(0,0,0,.22)}
 .fx-on .fx-home__item:hover>svg:first-child{transform:scale(1.08) rotate(-4deg);background:#F05A22;color:#fff}
 .fx-on .fx-home__item:hover .fx-home__arrow{opacity:1;transform:translateX(-4px)}
}
.fx-on .fx-home__item:active{background:rgba(255,255,255,.22)}
.fx-home__ctas{display:flex;flex-wrap:wrap;gap:12px;justify-content:center}
.fx-home__cta{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:14px 22px;border-radius:14px;font-weight:700;font-size:16px;text-decoration:none!important}
.fx-home__cta svg{width:22px;height:22px}
.fx-home__cta--wa{background:#F05A22;color:#fff!important}
.fx-home__cta--call{background:#fff;color:#0F369D!important}
@media (hover:hover){.fx-on .fx-home__cta--wa:hover{background:#E04E18;box-shadow:0 12px 26px rgba(240,90,34,.35)}.fx-on .fx-home__cta--call:hover{box-shadow:0 12px 26px rgba(0,0,0,.18)}}
.fx-home__note{text-align:center;color:rgba(255,255,255,.72);font-size:14px;margin-top:14px}
.fx-home__art{position:relative;max-width:440px;margin-inline-start:auto;width:100%}
.fx-home__art svg.fx-house{width:100%;height:auto;display:block;filter:drop-shadow(0 24px 40px rgba(0,0,0,.25))}
.fx-chip{position:absolute;display:flex;align-items:center;gap:8px;padding:10px 14px;border-radius:14px;background:#fff;color:#172033;font-weight:700;font-size:14px;box-shadow:0 12px 26px rgba(0,0,0,.18)}
.fx-chip b{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;color:#fff;font-size:15px}
.fx-chip--a{top:8%;inset-inline-end:-6%}.fx-chip--a b{background:#F05A22}
.fx-chip--b{bottom:10%;inset-inline-start:-4%}.fx-chip--b b{background:#2F7D5C}
.fx-on .fx-chip--a{animation:fx-float 5s ease-in-out infinite}
.fx-on .fx-chip--b{animation:fx-float 5s ease-in-out -2.5s infinite}
@keyframes fx-float{50%{transform:translateY(-8px)}}
.fx-pulse-line{stroke-dasharray:420;stroke-dashoffset:420}
.fx-on .fx-in .fx-pulse-line{animation:fx-draw 1.2s var(--fx-ease-out) .3s forwards}
@keyframes fx-draw{to{stroke-dashoffset:0}}
@media (max-width:860px){
 .fx-home{padding:44px 0}
 .fx-home__inner{grid-template-columns:1fr;gap:28px;padding:0 12px}
 .fx-home__art{order:-1;max-width:320px;margin:0 auto}
 .fx-home__list{grid-template-columns:1fr;gap:10px}
 .fx-home__cta{flex:1 1 100%}
 .fx-chip--a{inset-inline-end:-2%}.fx-chip--b{inset-inline-start:-2%}
}

@media (prefers-reduced-motion:reduce){
 .fx-pressed,.fx-ripple-dot,.fx-chip,.fx-home__kicker i{animation:none!important}
 .fx-on .fx-reveal,.fx-on .fx-stagger>*{opacity:1!important;transform:none!important;transition:none!important}
 .fx-pulse-line{stroke-dashoffset:0!important;animation:none!important}
 .fx-on .swnw2-button,.fx-on .swnw-about-button,.fx-on .fx-btn,.fx-on .fx-lift,.fx-home__item>svg,.fx-home__arrow{transition:none!important;transform:none!important}
}

/* ===== «أطباء اليوم» cards (owner 2026-11-18): top row = photo + name/title + price (left); bottom row = 2 equal outline buttons ===== */
.fx-on .swnw-patient-grid:has(.swnw-today-doctor){gap:16px}
.fx-on .swnw-today-doctor{display:flex;flex-direction:column;gap:14px;padding:16px;border-radius:18px;border:1px solid #E4E9F2;box-shadow:none;height:auto}
.fx-dr-top{display:flex;align-items:center;gap:14px;width:100%}
.fx-on .fx-dr-top .swnw-today-doctor__identity{flex:1 1 auto;min-width:0}
.fx-on .swnw-today-doctor__portrait{flex:none;width:76px;height:88px;border-radius:14px;overflow:hidden;margin:0;background:#F4F6FC}
.fx-on .swnw-today-doctor__portrait img{width:100%;height:100%;object-fit:cover}
.fx-on .swnw-today-doctor__initials{display:none!important}
.fx-avatar{width:100%;height:100%;display:block;color:#0F369D;background:linear-gradient(160deg,#E6EBF8,#F4F6FC)}
.fx-on .swnw-today-doctor__identity{flex:1;min-width:0;margin:0;text-align:start}
.fx-on .swnw-today-doctor__identity h3{margin:0 0 4px;font-size:17px;line-height:1.35}
.fx-on .swnw-today-doctor__department{margin:0;font-size:15px}
.fx-on .fx-dr-top .swnw-today-doctor__price{flex:0 0 104px;width:104px;max-width:104px;box-sizing:border-box;margin:0;align-self:stretch;display:flex;flex-direction:column;justify-content:center;padding-inline-start:12px;border-inline-start:1px solid #E4E9F2;text-align:start;font-size:13px;line-height:1.45;color:#526075}
.fx-on .fx-dr-top .swnw-today-doctor__price strong{display:block;font-size:19px;color:#0F369D;white-space:nowrap}
.fx-on .swnw-today-doctor__schedule.fx-hide{display:none!important}
.fx-dr-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:stretch;width:100%;max-width:none;margin:0}
.fx-on .fx-dr-actions .swnw2-button,.fx-on .fx-dr-actions .swnw-doctor-profile-link{display:flex!important;align-items:center;justify-content:center;box-sizing:border-box;width:100%!important;max-width:none!important;min-width:0!important;height:44px!important;min-height:0!important;margin:0!important;padding:0 12px!important;border-radius:12px!important;font-size:15px!important;line-height:1!important;font-weight:700;justify-self:stretch!important;white-space:nowrap;text-decoration:none!important;box-shadow:none;transition:background-color var(--fx-fast) var(--fx-ease-out),color var(--fx-fast) var(--fx-ease-out),border-color var(--fx-fast) var(--fx-ease-out),transform var(--fx-base) var(--fx-ease-out)}
.fx-on .fx-dr-actions .swnw2-button{background:transparent!important;color:#0F369D!important;border:1.5px solid #0F369D}
.fx-on .fx-dr-actions .swnw-doctor-profile-link{background:#fff;color:#0F369D;border:1.5px solid #D6DDEA}
@media (hover:hover){
 .fx-on .fx-dr-actions .swnw2-button:hover{background:#0F369D!important;color:#fff!important;transform:translateY(-2px);box-shadow:0 10px 22px rgba(15,54,157,.18)}
 .fx-on .fx-dr-actions .swnw-doctor-profile-link:hover{background:#F4F6FC;border-color:#0F369D;transform:translateY(-2px)}
}
.fx-on .fx-dr-actions .swnw2-button:active{background:#0F369D!important;color:#fff!important}
/* Notes row under the «أطباء اليوم» heading: 3 light boxes with icons */
.fx-notes{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:14px auto 10px;padding:0;list-style:none}
.fx-notes li{display:flex;align-items:center;gap:8px;padding:9px 14px;border-radius:12px;background:#F4F6FC;border:1px solid #E4E9F2;color:#344054;font-size:14px;font-weight:600}
.fx-notes svg{flex:none;width:20px;height:20px;color:#F05A22}
@media (max-width:420px){.fx-dr-top{gap:10px}.fx-on .swnw-today-doctor__portrait{width:64px;height:76px}.fx-on .fx-dr-top .swnw-today-doctor__price{max-width:92px;flex-basis:92px;width:92px}}
@media (max-width:600px){.fx-notes{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.fx-notes li{flex-direction:column;justify-content:flex-start;gap:6px;padding:10px 6px;font-size:12.5px;line-height:1.45;text-align:center}}

/* ===== «أقسامنا الطبية»: compact tiles (icon + title in one row), 4 columns, 12px gap ===== */
.fx-on .swnw2-depts__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;border:0;background:transparent}
.fx-on .swnw2-depts__grid>.swnw2-dept{grid-column:auto!important;grid-row:auto!important;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:12px;min-height:0;padding:14px 16px;border:1px solid #E4E9F2;border-radius:14px;background:#fff;text-align:start;box-shadow:none}
.fx-on .swnw2-depts__grid>.swnw2-dept img{flex:none;width:44px;height:44px;padding:6px;border-radius:12px;background:#F4F6FC;transition:transform var(--fx-base) var(--fx-ease-spring),background-color var(--fx-fast)}
.fx-on .swnw2-depts__grid>.swnw2-dept .swnw-specialty-card__title{font-size:15px;line-height:1.4;font-weight:700;flex:1}
.fx-on .swnw2-depts__grid>.swnw2-dept::after{content:"";flex:none;width:8px;height:8px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);opacity:.35;transition:transform var(--fx-base) var(--fx-ease-out),opacity var(--fx-fast)}
@media (hover:hover){
 .fx-on .swnw2-depts__grid>.swnw2-dept:hover{border-color:#C9D3EC}
 .fx-on .swnw2-depts__grid>.swnw2-dept:hover img{transform:scale(1.08);background:#FFE9E0}
 .fx-on .swnw2-depts__grid>.swnw2-dept:hover::after{opacity:1;transform:translateX(-3px) rotate(45deg)}
}
@media (max-width:1100px){.fx-on .swnw2-depts__grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:760px){.fx-on .swnw2-depts__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.fx-on .swnw2-depts__grid>.swnw2-dept{padding:12px;gap:10px}.fx-on .swnw2-depts__grid>.swnw2-dept img{width:38px;height:38px}.fx-on .swnw2-depts__grid>.swnw2-dept .swnw-specialty-card__title{font-size:14px}.fx-on .swnw2-depts__grid>.swnw2-dept::after{display:none}}

/* Owner fix list 2026-11-22, P0-2: the contact form's anti-spam field sat at left:-10000px, which made the page 10,000px wide in RTL. Keep it in flow, invisible and unreachable. */
.swnw-hp{position:absolute!important;left:auto!important;right:auto!important;top:auto!important;width:1px!important;height:1px!important;margin:0!important;padding:0!important;overflow:hidden!important;clip-path:inset(50%)!important;opacity:0!important;pointer-events:none!important;white-space:nowrap!important}
/* P2-1: the two reception numbers as two separate call links */
.fx-tel-split{display:inline-flex;flex-wrap:wrap;gap:6px 14px;align-items:center}
.fx-tel-split a{white-space:nowrap}

/* WhatsApp chip next to the mobile number (footer + contact page) */
.fx-wa-chip{display:inline-flex;align-items:center;justify-content:center;margin-inline-start:10px;padding:4px 12px;border:1.5px solid #25D366;border-radius:999px;color:#128C7E;background:transparent;font-size:13px;font-weight:700;text-decoration:none!important;line-height:1.5;transition:background-color .2s ease,color .2s ease}
.fx-wa-chip:hover{background:#25D366;color:#fff}
.swnw2-footer__contact .fx-wa-chip{color:#fff;border-color:#25D366}
.swnw2-footer__contact li{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.swnw-contact-card a.swnw-contact-item .fx-wa-chip{margin-inline-start:auto}
/* Legal name block in the footer (owner 2026-11-22): tighter lines and divider lines above and below the Arabic + English legal sentences */
.swnw2-footer__bottom-inner>p:nth-of-type(2),.swnw2-footer__bottom-inner>p[lang="en"]{line-height:1.5!important;margin:0!important}
.swnw2-footer__bottom-inner>p:nth-of-type(2),.swnw2-footer__bottom-inner>p[lang="en"]{flex:0 0 100%;box-sizing:border-box}
.swnw2-footer__bottom-inner>p:nth-of-type(2){border-top:1px solid rgba(255,255,255,.28);padding-top:12px}
.swnw2-footer__bottom-inner>p[lang="en"]{border-bottom:1px solid rgba(255,255,255,.28);padding-bottom:12px;margin-top:-4px!important}
/* smaller type for the footer legal sentences (owner 2026-11-22) */
.swnw2-footer__bottom-inner>p:nth-of-type(2),.swnw2-footer__bottom-inner>p[lang="en"]{font-size:12.5px!important}
@media (max-width:600px){.swnw2-footer__bottom-inner>p:nth-of-type(2),.swnw2-footer__bottom-inner>p[lang="en"]{font-size:12px!important}}
/* English legal sentence a bit smaller than the Arabic one (owner 2026-11-22) */
.swnw2-footer__bottom-inner>p[lang="en"]{font-size:11.5px!important;line-height:1.55!important}
@media (max-width:600px){.swnw2-footer__bottom-inner>p[lang="en"]{font-size:11px!important}}

/* Home polish (owner 2026-12-01: pack 4 + 5). Cards lift with a soft shadow and their photo grows a little; the hero «احجز» button breathes. */
.fx-on .swnw2-doctor-slide{transition:transform var(--fx-base) var(--fx-ease-out),box-shadow var(--fx-base) var(--fx-ease-out)}
.fx-on .swnw2-doctor-slide:hover{transform:translateY(-4px);box-shadow:0 12px 26px rgba(22,33,46,.10)}
.fx-on .swnw2-doctor-slide__photo img,.fx-on .single-card .thumb-img.swnw-specialty-card__media img{transition:transform 420ms var(--fx-ease-out)}
.fx-on .swnw2-doctor-slide:hover .swnw2-doctor-slide__photo img,.fx-on .single-card:hover .thumb-img.swnw-specialty-card__media img{transform:scale(1.05)}
@keyframes fx-cta-breathe{0%,100%{box-shadow:0 0 0 0 rgba(240,90,34,.45)}60%{box-shadow:0 0 0 12px rgba(240,90,34,0)}}
.fx-on .swnw2-hero__actions .swnw2-button--orange{animation:fx-cta-breathe 2.6s ease-out 1.2s infinite}
.fx-on .swnw2-hero__actions .swnw2-button--orange:hover,.fx-on .swnw2-hero__actions .swnw2-button--orange:active{animation:none}
@media (prefers-reduced-motion:reduce){.fx-on .swnw2-hero__actions .swnw2-button--orange,.fx-on .swnw2-doctor-slide:hover .swnw2-doctor-slide__photo img,.fx-on .single-card:hover .thumb-img.swnw-specialty-card__media img{animation:none!important;transform:none!important}}
