/* Shifa — calm care. Cool mint-tinted ground, one soft rounded family, an arched hero photo,
   a working "book a visit" card that hands off to WhatsApp, and a quiet heartbeat line. */
:root {
    --accent: #0d9488;
    --accent-ink: #fff;
    --soft: color-mix(in srgb, var(--accent) 10%, var(--surface));
    --bg: #f3f8f8;
    --bg-2: #e9f2f2;
    --surface: #ffffff;
    --ink: #0f2a2e;
    --ink-soft: #52696d;
    --line: #dbe7e7;
    --shadow: 0 30px 60px -36px rgba(15, 42, 46, .35);
    --font: "Readex Pro", system-ui, sans-serif;
    --r: 22px;
    color-scheme: light;
}
:root[data-theme="dark"] {
    --bg: #0b1618;
    --bg-2: #0f1d20;
    --surface: #132427;
    --ink: #e4f0f0;
    --ink-soft: #9db3b6;
    --line: #20373b;
    --shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--ink); font: 300 1rem/1.75 var(--font); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.2; text-wrap: balance; letter-spacing: -.01em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 3px; }
.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.hide, .is-empty { display: none !important; }

.eyebrow { display: inline-block; margin: 0 0 .8rem; padding: .3rem .85rem; border-radius: 999px; background: var(--soft); color: var(--accent); font-size: .82rem; font-weight: 500; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 50px; padding: .7rem 1.5rem; border-radius: 999px; font: 500 1rem/1 var(--font); border: 0; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.btn svg { width: 18px; height: 18px; }
.btn-solid { background: var(--accent); color: var(--accent-ink); box-shadow: 0 14px 30px -14px var(--accent); }
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -14px var(--accent); }
.btn-soft { background: var(--soft); color: var(--accent); }
.btn-soft:hover { background: color-mix(in srgb, var(--accent) 18%, var(--surface)); }

/* Header */
.hdr { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(14px); transition: box-shadow .25s; }
.hdr.is-stuck { box-shadow: 0 1px 0 var(--line); }
.hdr-in { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 600; font-size: 1.15rem; }
.brand-logo { height: 42px; width: auto; }
.brand-logo--dark { display: none; }
:root[data-theme="dark"] .brand-logo--light { display: none; }
:root[data-theme="dark"] .brand-logo--dark { display: block; }
.nav { display: flex; gap: .3rem; margin-inline-start: auto; }
.nav a { padding: .5rem .9rem; border-radius: 999px; color: var(--ink-soft); font-weight: 400; transition: background .2s, color .2s; }
.nav a:hover { background: var(--soft); color: var(--accent); }
.hdr-tools { display: flex; align-items: center; gap: .6rem; }
.theme-toggle { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.hdr-cta { min-height: 42px; padding: .5rem 1.2rem; font-size: .93rem; }

/* Hero */
.hero { position: relative; padding: 3rem 0 0;
    background: radial-gradient(60% 50% at 85% 10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%), var(--bg); }
[dir="rtl"] .hero { background: radial-gradient(60% 50% at 15% 10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.pill { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1.4rem; padding: .45rem 1rem .45rem .8rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .88rem; color: var(--ink-soft); }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); animation: pulse 2.2s infinite; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); font-weight: 600; letter-spacing: -.025em; }
.hero-tagline { font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: var(--ink-soft); margin: 1.1rem 0 2rem; max-width: 40ch; }
.hero-cta { display: flex; gap: .7rem; flex-wrap: wrap; }

.arch { position: relative; aspect-ratio: 4 / 5; max-height: 560px; justify-self: center; width: 100%; max-width: 440px; }
.arch-photo { position: absolute; inset: 0; border-radius: 999px 999px var(--r) var(--r); overflow: hidden;
    background: linear-gradient(165deg, color-mix(in srgb, var(--accent) 55%, #fff) 0%, var(--accent) 100%);
    background-size: cover; background-position: center; box-shadow: var(--shadow); }
.arch-photo[style*="url("] { filter: brightness(1.28) saturate(1.05); }
.arch::before { content: ""; position: absolute; inset: -14px; border-radius: 999px 999px calc(var(--r) + 14px) calc(var(--r) + 14px); border: 1.5px dashed color-mix(in srgb, var(--accent) 35%, transparent); }
.ecg { position: absolute; inset-inline: -6%; bottom: 16%; width: 112%; height: 80px; overflow: visible; }
.ecg path { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .25)); stroke-dasharray: 600; stroke-dashoffset: 600; animation: trace 2.4s .4s ease-out forwards; }

/* Booking card */
.book { position: relative; z-index: 2; margin-top: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: -40px;
    display: grid; grid-template-columns: 1.3fr repeat(4, 1fr) auto; gap: 1rem; align-items: end;
    padding: 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.book-head h2 { font-size: 1.25rem; font-weight: 600; }
.book-head p { margin: .25rem 0 0; font-size: .86rem; color: var(--ink-soft); line-height: 1.5; }
.field { display: flex; flex-direction: column; gap: .35rem; font-size: .8rem; color: var(--ink-soft); min-width: 0; }
.field input, .field select { width: 100%; height: 48px; padding: 0 .9rem; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 400 .95rem var(--font); }
.field input:focus, .field select:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.book-go { height: 48px; white-space: nowrap; }
.book.is-flash { animation: flash 1s ease; }

/* Sections */
.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.about { padding-top: calc(clamp(4rem, 9vw, 6.5rem) + 40px); }
.sec-head { margin-bottom: 2.4rem; max-width: 640px; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); }

.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-grid:not(:has(.about-photo)) { grid-template-columns: 1fr; max-width: 760px; }
.about-media:empty { display: none; }
.about-photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r) var(--r) var(--r) 120px; box-shadow: var(--shadow); }
[dir="rtl"] .about-photo { border-radius: var(--r) var(--r) 120px var(--r); }
.about-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 1rem; }
.lead { font-size: 1.08rem; color: var(--ink-soft); margin: 0; max-width: 60ch; }

/* Care menu: list rows with a book shortcut */
.care { background: var(--surface); }
.pgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem 2rem; }
.pcard { display: grid; grid-template-columns: 76px 1fr auto; gap: 1.1rem; align-items: center; padding: 1.1rem; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg); transition: border-color .2s, transform .2s, box-shadow .2s; }
.pcard:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); transform: translateY(-2px); box-shadow: var(--shadow); }
.pcard-cover { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; }
.pcard-cover--blank { background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--accent) 30%, #fff), var(--accent)); position: relative; }
.pcard-cover--blank::after { content: ""; position: absolute; inset: 0; margin: auto; width: 26px; height: 26px; background:
    linear-gradient(#fff, #fff) center / 26px 8px no-repeat, linear-gradient(#fff, #fff) center / 8px 26px no-repeat; border-radius: 2px; }
.pcard-body { min-width: 0; }
.pcard h3 { font-size: 1.08rem; font-weight: 500; }
.pcard p { margin: .2rem 0 0; font-size: .9rem; color: var(--ink-soft); line-height: 1.55; }
.pcard-price { display: inline-block; margin-top: .45rem; font-size: .85rem; font-weight: 500; color: var(--accent); }
.pcard-book { align-self: center; padding: .55rem 1rem; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); color: var(--accent); background: transparent; font: 500 .85rem var(--font); cursor: pointer; transition: background .2s, color .2s; }
.pcard-book:hover { background: var(--accent); color: var(--accent-ink); }

/* Your visit */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; counter-reset: s; }
.steps li { position: relative; padding: 2rem 1.8rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); counter-increment: s; }
.steps li::after { content: counter(s); position: absolute; top: 1.4rem; inset-inline-end: 1.6rem; font-size: 3rem; font-weight: 200; line-height: 1; color: color-mix(in srgb, var(--accent) 30%, transparent); }
.step-ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--soft); color: var(--accent); margin-bottom: 1.2rem; }
.step-ic svg { width: 26px; height: 26px; }
.steps h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.steps p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* Team */
.team { background: var(--bg-2); }
.tgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 260px)); justify-content: center; gap: 1.2rem; }
.tcard { text-align: center; padding: 2rem 1.4rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.tcard-avatar { width: 88px; height: 88px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; font-weight: 500; color: var(--accent); background: var(--soft); box-shadow: 0 0 0 6px var(--surface), 0 0 0 7px color-mix(in srgb, var(--accent) 35%, transparent); }
.tcard h3 { font-size: 1.08rem; }
.tcard p { margin: .2rem 0 0; color: var(--ink-soft); font-size: .9rem; }

/* Inside the clinic */
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 230px; gap: 12px; }
.gallery-item { margin: 0; overflow: hidden; border-radius: 18px; }
.gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery-item:hover img { transform: scale(1.05); }

/* Contact */
.contact-card { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; padding: clamp(2rem, 5vw, 3.5rem); border-radius: 32px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 92%, #000) 0%, var(--accent) 100%); color: #fff; }
.contact-card .eyebrow { background: rgba(255, 255, 255, .16); color: #fff; }
.contact-card h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 1.6rem; }
.contact-cta { display: flex; gap: .7rem; flex-wrap: wrap; }
.contact-card .btn-solid { background: #fff; color: var(--accent); box-shadow: none; }
.contact-card .btn-soft { background: rgba(255, 255, 255, .16); color: #fff; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.contact-list li { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-radius: 18px; background: rgba(255, 255, 255, .12); font-weight: 400; }
.ci { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .18); }
.ci svg { width: 18px; height: 18px; }

/* Footer */
.ftr { padding: 4rem 0 0; font-size: .93rem; color: var(--ink-soft); }
.ftr-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
.footer-logo { height: 44px; width: auto; margin-bottom: .7rem; }
:root[data-theme="dark"] .footer-logo { filter: brightness(0) invert(1); }
.footer-name { display: block; font-size: 1.2rem; font-weight: 600; color: var(--ink); }
.ftr-brand p { max-width: 44ch; }
.ftr-col { display: flex; flex-direction: column; gap: .5rem; }
.ftr-col h4 { margin: 0 0 .4rem; font-size: .95rem; font-weight: 500; color: var(--ink); }
.ftr-col a:hover { color: var(--accent); }
.socials { display: flex; gap: .5rem; margin-top: 1rem; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--accent); }
.socials svg { width: 17px; height: 17px; }
.ftr-base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 3rem; padding: 1.4rem 0; border-top: 1px solid var(--line); font-size: .85rem; }
.footer-credit a { color: var(--accent); font-weight: 500; }

.wa { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .4); transition: transform .2s; }
.wa:hover { transform: scale(1.06); }

/* Motion */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes flash { 0%, 100% { box-shadow: var(--shadow); } 30% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 30%, transparent), var(--shadow); } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    .ecg path { stroke-dashoffset: 0; }
    html { scroll-behavior: auto; }
}

@media (max-width: 1080px) {
    .book { grid-template-columns: repeat(2, 1fr); }
    .book-head { grid-column: 1 / -1; }
    .book-go { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
    .nav { display: none; }
    .hdr-tools { margin-inline-start: auto; }
    .hero-grid, .about-grid, .contact-card { grid-template-columns: 1fr; }
    .arch { max-width: 340px; }
    .pgrid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
    .ftr-grid { grid-template-columns: 1fr 1fr; }
    .ftr-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .brand-name, .hdr-cta { display: none; }
    .book { grid-template-columns: 1fr; padding: 1.2rem; }
    .pcard { grid-template-columns: 60px 1fr; }
    .pcard-cover { width: 60px; height: 60px; }
    .pcard-book { grid-column: 2; justify-self: start; }
    .ftr-grid { grid-template-columns: 1fr; }
}
