/* =========================================================
   Dr. Mahmood Abbas — Brand styles
   Colours taken from the existing logo & social posts.
   ========================================================= */

@font-face { font-family: "Montserrat"; src: url("../fonts/Montserrat-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/Montserrat-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/Montserrat-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/Montserrat-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "GE SS Two"; src: url("../fonts/GESSTwo-Light.otf") format("opentype"); font-weight: 300 400; font-display: swap; }
@font-face { font-family: "GE SS Two"; src: url("../fonts/GESSTwo-Medium.otf") format("opentype"); font-weight: 500 800; font-display: swap; }

:root {
  /* brand */
  --teal: #0BB1AC;
  --teal-dark: #078884;
  --mint: #80D3B0;
  --mint-soft: #E6F6EF;
  --blue: #29A9E1;
  --green: #8DC63F;
  --yellow: #F2E14C;

  /* neutrals */
  --ink: #23292E;
  --ink-soft: #5B6670;
  --line: #E1EAE8;
  --bg: #FFFFFF;
  --surface: #F5FAF9;
  --card: #FFFFFF;

  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(7, 80, 78, .22);
  --container: 1180px;

  --font: "Montserrat", "GE SS Two", system-ui, sans-serif;
}
html[dir="rtl"] { --font: "GE SS Two", "Montserrat", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[dir="rtl"] body { line-height: 1.85; }
img { max-width: 100%; display: block; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { color: var(--teal); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { font-weight: 500; line-height: 1.4; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
bdi { unicode-bidi: isolate; direction: ltr; font-family: "Montserrat", sans-serif; }

.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.narrow-container { width: min(820px, 100% - 32px); }
.narrow { max-width: 760px; margin-inline: auto; }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }
.center { text-align: center; }

.kicker {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-dark); margin-bottom: .8em;
}
html[dir="rtl"] .kicker { letter-spacing: 0; font-size: .95rem; }
.kicker::before {
  content: ""; width: 26px; height: 8px;
  background:
    radial-gradient(circle, var(--blue) 3px, transparent 3.5px) 0 0 / 9px 8px no-repeat,
    radial-gradient(circle, var(--green) 4px, transparent 4.5px) 9px 0 / 9px 8px no-repeat,
    radial-gradient(circle, var(--blue) 3px, transparent 3.5px) 18px 0 / 9px 8px no-repeat;
}
.kicker-light { color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.5em; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 600; cursor: pointer; transition: transform .15s, background .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn .ico { width: 1.2em; height: 1.2em; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 8px 20px -8px rgba(11,177,172,.7); }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--teal-dark); border-color: var(--teal); }
.btn-ghost:hover { background: var(--mint-soft); }
.btn-block { width: 100%; }

.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px; border: 1px solid var(--line);
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: 0 4px 20px -10px rgba(0,0,0,.18); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-mark { width: 48px; height: 48px; transition: transform .5s cubic-bezier(.3,1.6,.5,1); }
.brand:hover .brand-mark { transform: rotate(-10deg) scale(1.06); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-en { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: .95rem; letter-spacing: .02em; }
.brand-ar { font-family: "GE SS Two", sans-serif; font-size: .9rem; color: var(--ink-soft); }

.main-nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.main-nav a {
  color: var(--ink); font-weight: 500; font-size: .95rem; padding: .5em .85em; border-radius: 999px;
}
.main-nav a:hover { background: var(--mint-soft); color: var(--teal-dark); }
.main-nav .nav-cta { background: var(--green); color: #fff; margin-inline-start: 6px; }
.main-nav .nav-cta:hover { background: #79b12f; color: #fff; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-btn {
  font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  padding: .45em .95em; border-radius: 999px;
}
.lang-btn:hover { border-color: var(--teal); color: var(--teal-dark); }
html[dir="ltr"] .lang-btn { font-family: "GE SS Two", sans-serif; }
html[dir="rtl"] .lang-btn { font-family: "Montserrat", sans-serif; }

.menu-btn { display: none; width: 42px; height: 42px; border: 0; background: var(--mint-soft); border-radius: 12px; cursor: pointer; padding: 11px 10px; flex-direction: column; justify-content: space-between; }
.menu-btn span { display: block; height: 2px; background: var(--teal-dark); border-radius: 2px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #0FB9B3 0%, var(--teal) 45%, #4CC7A9 100%);
  color: #fff; padding: 64px 0 120px;
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.eyebrow { font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; opacity: .9; margin-bottom: .6em; }
html[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: 1.05rem; }
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); margin-bottom: .35em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 560px; opacity: .95; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero .btn-primary { background: #fff; color: var(--teal-dark); box-shadow: 0 10px 24px -10px rgba(0,0,0,.35); }
.hero .btn-primary:hover { background: var(--mint-soft); }
.hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.12); }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; font-size: .92rem;
  background: rgba(255,255,255,.15); padding: .55em 1.1em; border-radius: 999px; border: 1px dashed var(--yellow);
}
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 0 rgba(242,225,76,.7); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(242,225,76,0); } 100% { box-shadow: 0 0 0 0 rgba(242,225,76,0); } }

.hero-photo { position: relative; justify-self: center; width: min(400px, 100%); }
.photo-blob {
  aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #e9eeee;
  border: 10px solid rgba(255,255,255,.25);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.35), 14px 14px 0 0 var(--blue);
}
html[dir="rtl"] .photo-blob { box-shadow: 0 30px 60px -20px rgba(0,0,0,.35), -14px 14px 0 0 var(--blue); }
.photo-blob img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.photo-mark {
  position: absolute; width: 110px; height: 110px; bottom: 0; inset-inline-start: -6px;
  border-radius: 50%; border: 6px solid #fff; box-shadow: var(--shadow); background: #fff;
  animation: bob 5s ease-in-out infinite;
}

.dots-bg .d { position: absolute; border-radius: 50%; opacity: .55; }
.d1 { width: 90px; height: 90px; background: var(--green); top: 12%; inset-inline-end: 4%; }
.d2 { width: 40px; height: 40px; background: var(--blue); top: 60%; inset-inline-end: 44%; }
.d3 { width: 26px; height: 26px; background: var(--green); top: 18%; inset-inline-start: 46%; }
.d4 { width: 160px; height: 160px; background: var(--blue); bottom: -40px; inset-inline-start: -50px; opacity: .35; }
.d5 { width: 18px; height: 18px; background: var(--yellow); top: 30%; inset-inline-start: 4%; }

.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; display: block; }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-head { text-align: center; margin-bottom: 44px; }
.about { background: var(--surface); padding-top: 40px; }
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.body-lg { font-size: 1.1rem; color: var(--ink-soft); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.stat { background: #fff; border-radius: var(--radius-sm); padding: 18px; border: 1px solid var(--line); }
.stat strong { display: block; direction: ltr; unicode-bidi: isolate; text-align: start;font-family: "Montserrat", sans-serif; font-size: 1.8rem; color: var(--teal); line-height: 1.1; }
html[dir="rtl"] .stat strong { text-align: right; }
.stat span { font-size: .88rem; color: var(--ink-soft); }

.qual-card { border-top: 6px solid var(--green); }
.qual-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.qual-list li {
  position: relative; padding-inline-start: 46px; font-weight: 500; min-height: 34px; display: flex; align-items: center;
}
.qual-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--mint-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230BB1AC' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* services */
.service-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
@media (max-width: 360px) { .service-groups { grid-template-columns: 1fr; } }
.service-card { padding: 24px; position: relative; overflow: hidden; }
.service-card::after {
  content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%;
  background: var(--mint-soft); inset-inline-end: -40px; top: -40px; z-index: 0;
}
.service-card.alt::after { background: #E8F5FC; }
.service-card { transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -18px rgba(7,80,78,.35); }
.service-card::after { transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.service-card:hover::after { transform: scale(1.6); }
.service-head { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; margin-bottom: 12px; }
.service-head h3 { margin: 0; color: var(--teal-dark); }
.service-icon {
  width: 64px; height: 64px; border-radius: 18px; background: #47BFB3; display: grid; place-items: center; flex: none;
  transform: rotate(-4deg); transition: transform .45s cubic-bezier(.3,1.6,.5,1), border-radius .45s;
  box-shadow: 0 10px 18px -10px rgba(11,177,172,.8);
}
.service-icon img { width: 44px; height: 44px; }
.service-card:hover .service-icon { transform: rotate(4deg) scale(1.08); border-radius: 50%; }
.service-num {
  font-family: "Montserrat", sans-serif; font-weight: 700; font-size: .72rem; letter-spacing: .1em; color: var(--green); display: block;
}
.service-card.alt .service-num { color: var(--blue); }
.service-card ul { list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; }
.service-card li { padding: 7px 0; border-bottom: 1px dashed var(--line); padding-inline-start: 18px; position: relative; font-size: .97rem; }
.service-card li:last-child { border-bottom: 0; }
.service-card li::before { content: ""; position: absolute; inset-inline-start: 0; top: 50%; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); transform: translateY(-50%); }
.service-card.alt li::before { background: var(--green); }

.conditions-title { text-align: center; margin: 72px 0 26px; font-size: 1.4rem; }
.conditions { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.condition {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 16px 18px; display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.35;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s;
}
.condition::before {   /* mint wave that rises on hover */
  content: ""; position: absolute; inset: auto 0 0 0; height: 0; background: var(--mint-soft);
  border-radius: 50% 50% 0 0 / 22px 22px 0 0; transition: height .45s cubic-bezier(.2,.8,.2,1); z-index: 0;
}
.condition > * { position: relative; z-index: 1; }
.condition:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.condition:hover::before { height: 100%; }
.c-icon {
  width: 84px; height: 84px; border-radius: 50%; background: #47BFB3; display: grid; place-items: center; margin-bottom: 14px;
  box-shadow: 0 0 0 6px var(--mint-soft); transition: transform .45s cubic-bezier(.3,1.6,.5,1), box-shadow .35s;
}
.c-icon img { width: 58px; height: 58px; }
.condition:nth-child(4n+2) .c-icon { background: #3FB8C4; }
.condition:nth-child(4n+3) .c-icon { background: #58C49A; }
.condition:nth-child(4n) .c-icon { background: #2FA9C9; }
.condition:hover .c-icon { transform: scale(1.1) rotate(-6deg); box-shadow: 0 0 0 10px rgba(141,198,63,.25); }
.c-main { font-weight: 600; color: var(--ink); }
.c-sub { font-size: .8rem; color: var(--ink-soft); margin-top: 2px; }
html[dir="ltr"] .c-sub { font-family: "GE SS Two", sans-serif; }
html[dir="rtl"] .c-sub { font-family: "Montserrat", sans-serif; }

/* ask */
.ask { background: linear-gradient(135deg, var(--teal-dark), var(--teal)); color: #fff; position: relative; overflow: hidden; }
.ask::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: rgba(141,198,63,.25); inset-inline-end: -120px; bottom: -160px; }
.ask-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; position: relative; }
.ask h2 { color: #fff; }
.ask-links { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ask-links a { color: #fff; font-weight: 600; display: inline-flex; gap: 8px; background: rgba(255,255,255,.14); padding: .55em 1.1em; border-radius: 999px; }
.ask-links a:hover { background: rgba(255,255,255,.24); }
.ask-links .lbl { opacity: .8; font-weight: 400; }
.ask-form { color: var(--ink); display: grid; gap: 14px; }
.ask-form label { display: grid; gap: 6px; font-weight: 500; font-size: .92rem; }
.ask-form input, .ask-form textarea {
  font: inherit; padding: .8em 1em; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); resize: vertical; color: var(--ink);
}
.ask-form input:focus, .ask-form textarea:focus { outline: none; border-color: var(--teal); background: #fff; }
.ask-form .invalid { border-color: #E0574F; }

/* clinic */
.clinic { background: var(--surface); }
.clinic-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; }
.info-list { margin: 0 0 24px; display: grid; gap: 16px; }
.info-list > div { display: grid; gap: 2px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.info-list dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--teal-dark); font-weight: 600; }
html[dir="rtl"] .info-list dt { letter-spacing: 0; font-size: .9rem; }
.info-list dd { margin: 0; font-weight: 500; }
.info-list small { display: block; font-weight: 400; font-size: .85rem; }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 380px; background: var(--mint-soft); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.other-card { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: baseline; border-inline-start: 6px solid var(--blue); }
.other-card h3 { margin: 0; }
.other-card p { margin: 0; }

/* insurance */
.insurers { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.insurers > li { flex: 1 1 160px; max-width: 220px; }
.insurer {
  font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  height: 120px; padding: 16px 20px; display: grid; place-items: center; text-align: center; box-shadow: 0 6px 18px -12px rgba(0,0,0,.2);
}
.insurer img { max-width: 100%; max-height: 84px; width: auto; height: auto; object-fit: contain; filter: grayscale(.15); transition: filter .3s, transform .3s; }
.insurer:hover img { filter: none; transform: scale(1.05); }

/* gallery */
.gallery { background: var(--surface); }
.gallery-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 200px 200px; gap: 16px; }
.g-item { margin: 0; border-radius: var(--radius); overflow: hidden; }
.g-photo { grid-row: span 2; }
.g-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.g-ph {
  display: grid; place-items: center; text-align: center; padding: 16px; color: var(--teal-dark); font-weight: 500;
  background: repeating-linear-gradient(45deg, var(--mint-soft) 0 14px, #fff 14px 28px); border: 2px dashed var(--mint);
}
.g-ph:last-child { grid-column: span 2; }

/* faq */
.faq-list { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 22px; transition: box-shadow .2s; }
.faq-item[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--mint-soft); color: var(--teal-dark); font-size: 1.2rem; transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--teal); color: #fff; }
.faq-item p { color: var(--ink-soft); padding-bottom: 18px; margin: 0; }

/* footer */
.site-footer { background: #10302F; color: #CFE3E1; position: relative; padding: 110px 0 24px; }
.wave-top { top: -1px; bottom: auto; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: center; }
.footer-brand { display: flex; gap: 16px; align-items: center; }
.footer-brand img { width: 64px; height: 64px; border-radius: 50%; border: 3px solid rgba(255,255,255,.85); }
.footer-brand div { display: flex; flex-direction: column; line-height: 1.4; }
.footer-brand strong { font-family: "Montserrat", sans-serif; color: #fff; letter-spacing: .03em; }
.ar-name { font-family: "GE SS Two", sans-serif; color: #fff; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.footer-contact a { color: #fff; background: rgba(255,255,255,.08); padding: .5em 1.1em; border-radius: 999px; font-weight: 500; }
.footer-contact a:hover { background: var(--teal); }
.copyright { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; opacity: .7; }

/* floating WhatsApp */
.wa-float {
  position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 24px -6px rgba(0,0,0,.35); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- multi-page additions ---------- */
.main-nav a.active { color: var(--teal-dark); background: var(--mint-soft); }
.main-nav .nav-cta.active { background: #79b12f; color: #fff; }

/* inner page title banner */
.page-hero {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  background: linear-gradient(160deg, #0FB9B3 0%, var(--teal) 45%, #4CC7A9 100%);
  padding: 56px 0 104px;
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 0; animation: rise .8s cubic-bezier(.2,.8,.2,1) .1s both; }
.page-hero .eyebrow { animation: rise .8s cubic-bezier(.2,.8,.2,1) both; }
.page-hero + .section { padding-top: 40px; }

.center-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.ico.arrow { width: 1.1em; height: 1.1em; transition: transform .25s; }
html[dir="rtl"] .ico.arrow { transform: scaleX(-1); }
.btn:hover .ico.arrow { transform: translateX(4px); }
html[dir="rtl"] .btn:hover .ico.arrow { transform: scaleX(-1) translateX(4px); }

/* What we treat — grid (shared by home preview and Services page) */
.treatments { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.services { background: var(--bg); }
.treatments[data-featured] { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .treatments[data-featured] { grid-template-columns: repeat(2, 1fr); } }
/* pages that end in a teal band: footer joins it directly instead of drawing a pale wave */
body[data-page="home"] .site-footer .wave-top,
body[data-page="ask"] .site-footer .wave-top { display: none; }
body[data-page="home"] .site-footer,
body[data-page="ask"] .site-footer { padding-top: 56px; }
.c-tag {
  margin-top: 10px; font-size: .72rem; font-weight: 600; color: var(--teal-dark);
  background: var(--mint-soft); padding: .25em .8em; border-radius: 999px;
}

/* category tabs */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 32px; }
.tab {
  font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  padding: .45em 1em .45em .55em; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  transition: background .25s, color .25s, border-color .25s, transform .2s;
}
html[dir="rtl"] .tab { padding: .45em .55em .45em 1em; }
.tab:hover { border-color: var(--teal); transform: translateY(-2px); }
.tab.active { background: var(--teal); border-color: var(--teal); color: #fff; box-shadow: 0 8px 18px -10px rgba(11,177,172,.9); }
.tab-icon { width: 30px; height: 30px; border-radius: 50%; background: #47BFB3; display: grid; place-items: center; }
.tab-icon img { width: 22px; height: 22px; }
.tab.active .tab-icon { background: rgba(255,255,255,.22); }
.tab-count { font-family: "Montserrat", sans-serif; font-size: .75rem; opacity: .7; }
.tab:not(:has(.tab-icon)) { padding-inline-start: 1em; }

/* homepage call-to-action band */
.cta-band { background: linear-gradient(135deg, var(--teal-dark), var(--teal)); color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; background: rgba(141,198,63,.25); inset-inline-start: -110px; top: -150px; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; position: relative; }
.cta-inner h2 { color: #fff; margin-bottom: .3em; }
.cta-inner p { margin: 0; opacity: .92; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-white { background: #fff; color: var(--teal-dark); box-shadow: 0 10px 24px -10px rgba(0,0,0,.35); }
.btn-white:hover { background: var(--mint-soft); color: var(--teal-dark); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }

/* FAQ page follow-up card */
.faq-more { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; border-inline-start: 6px solid var(--green); }
.faq-more h3 { margin: 0; }

/* Ask the doctor page: the teal section doubles as the page header */
.ask-page { padding: 72px 0 110px; }
.ask-page h1 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.ask-page .dots-bg { z-index: 0; }

/* footer page links */
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-nav a { color: #CFE3E1; font-size: .92rem; }
.footer-nav a:hover { color: #fff; }

@media (max-width: 600px) {
  .page-hero { padding: 40px 0 88px; }
  .treatments { grid-template-columns: 1fr 1fr; gap: 12px; }
  .treatments .c-icon { width: 70px; height: 70px; }
  .treatments .c-icon img { width: 48px; height: 48px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 6px; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .tab { flex: none; }
  .cta-actions .btn { flex: 1 1 100%; }
}

/* ---------- homepage overview ---------- */
.intro-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.intro-photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.intro-photo img { width: 100%; height: 100%; object-fit: cover; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn-sm { padding: .55em 1.05em; font-size: .9rem; }

/* Ibn Al-Nafees strip on the homepage */
.hl-strip {
  display: flex; align-items: center; gap: 18px; color: #fff; margin: 0 auto 28px; max-width: 900px;
  background: linear-gradient(120deg, var(--teal-dark), var(--teal)); border-radius: var(--radius);
  padding: 12px; box-shadow: 0 16px 34px -18px rgba(7,80,78,.6); transition: transform .3s, box-shadow .3s;
}
.hl-strip:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 22px 40px -18px rgba(7,80,78,.75); }
.hl-strip img { width: 92px; height: 92px; border-radius: 16px; object-fit: cover; flex: none; }
.hl-strip-text { display: grid; gap: 2px; flex: 1; }
.hl-strip-text small { font-size: .78rem; opacity: .85; text-transform: uppercase; letter-spacing: .08em; }
html[dir="rtl"] .hl-strip-text small { letter-spacing: 0; font-size: .9rem; }
.hl-strip-text strong { font-size: 1.15rem; }
.hl-strip-text span { font-size: .9rem; opacity: .92; }
.hl-strip-go { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; flex: none; margin-inline-end: 8px; }

/* short services list */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; padding: .4em 1.1em .4em .45em; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .95rem;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
html[dir="rtl"] .chip { padding: .4em .45em .4em 1.1em; }
.chip:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.chip-icon { width: 36px; height: 36px; border-radius: 50%; background: #47BFB3; display: grid; place-items: center; flex: none; }
.chip-icon img { width: 26px; height: 26px; }

/* buttons to every page */
.explore { background: var(--surface); }
.quick-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quick {
  display: flex; align-items: center; gap: 16px; padding: 20px 22px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s;
}
.quick:hover { color: var(--ink); transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.quick-ico { width: 54px; height: 54px; border-radius: 16px; background: var(--mint-soft); color: var(--teal-dark); display: grid; place-items: center; flex: none; transition: background .3s, color .3s, transform .4s cubic-bezier(.3,1.6,.5,1); }
.quick-ico svg { width: 28px; height: 28px; }
.quick:hover .quick-ico { background: var(--teal); color: #fff; transform: rotate(-6deg) scale(1.06); }
.quick-text { display: grid; gap: 2px; flex: 1; }
.quick-text strong { font-size: 1.08rem; }
.quick-text small { color: var(--ink-soft); font-size: .88rem; }
.quick .ico.arrow { color: var(--teal); flex: none; }

/* ---------- Ibn Al-Nafees feature on the Services page ---------- */
.highlight-wrap { padding-bottom: 0; }
.highlight {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; overflow: hidden; color: #fff;
  border-radius: 28px; background: linear-gradient(135deg, #087F7B, var(--teal) 60%, #3FBFA6);
  box-shadow: 0 30px 60px -30px rgba(7,80,78,.7); position: relative;
}
.highlight::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(141,198,63,.25); inset-inline-end: -90px; top: -90px; }
.hl-media { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 18px; background: rgba(0,0,0,.08); }
.hl-media video, .hl-media img { width: 100%; height: 100%; max-height: 440px; object-fit: cover; border-radius: 18px; background: #0d6f6b; }
.hl-copy { padding: 40px; position: relative; z-index: 1; align-self: center; }
.hl-copy h2 { color: #fff; }
.hl-copy p { opacity: .95; }
.hl-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.condition.is-uro { border-color: var(--teal); box-shadow: 0 0 0 2px rgba(11,177,172,.12); }
.c-badge { margin-top: 8px; font-size: .7rem; font-weight: 700; color: #fff; background: var(--teal); padding: .25em .8em; border-radius: 999px; }

/* ---------- Where he works ---------- */
.place-list { display: grid; gap: 22px; margin-bottom: 24px; }
.place-card { display: grid; grid-template-columns: 280px 1fr; gap: 0; padding: 0; overflow: hidden; }
.place-card.featured { border: 2px solid var(--teal); box-shadow: 0 24px 50px -28px rgba(7,80,78,.6); }
.place-img { margin: 0; background: var(--mint-soft); min-height: 220px; }
.place-img img { width: 100%; height: 100%; object-fit: cover; }
.place-body { padding: 26px 28px; display: grid; align-content: center; gap: 6px; }
.place-body h3 { font-size: 1.35rem; margin: 0; color: var(--teal-dark); }
.place-body p { margin: 4px 0 8px; }
.place-tag { justify-self: start; font-size: .78rem; font-weight: 700; color: var(--teal-dark); background: var(--mint-soft); padding: .3em .9em; border-radius: 999px; }
.featured .place-tag { background: var(--teal); color: #fff; }
.place-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.place-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mini-card { display: grid; gap: 10px; align-content: start; }
.mini-card h3 { margin: 0; font-size: 1.1rem; }
.mini-card.featured { border: 2px solid var(--teal); }
.ask-sub { color: #fff; margin: 22px 0 0; font-size: 1rem; }

/* ---------- photos & videos ---------- */
.media-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.media-item {
  position: relative; padding: 0; border: 0; cursor: pointer; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 5; background: var(--mint-soft); box-shadow: 0 10px 26px -18px rgba(0,0,0,.4);
}
.media-item img, .media-item video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.media-item:hover img, .media-item:hover video { transform: scale(1.05); }
.media-cap {
  position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px; color: #fff; font: inherit; font-size: .88rem; font-weight: 600; text-align: start;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
}
.play-badge { position: absolute; top: 12px; inset-inline-end: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--teal-dark); display: grid; place-items: center; font-size: .8rem; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8,30,29,.9); display: grid; place-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lb-body img, .lb-body video { max-width: min(92vw, 900px); max-height: 80vh; border-radius: 16px; display: block; }
.lb-cap { color: #fff; text-align: center; margin: 12px 0 0; }
.lb-close { position: absolute; top: 16px; inset-inline-end: 20px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 1.8rem; cursor: pointer; }
.lb-open { overflow: hidden; }

@media (max-width: 980px) {
  .intro-grid, .highlight { grid-template-columns: 1fr; }
  .quick-links, .place-mini { grid-template-columns: 1fr 1fr; }
  .media-grid { grid-template-columns: repeat(2, 1fr); }
  .place-card { grid-template-columns: 1fr; }
  .place-img { min-height: 200px; max-height: 260px; }
}
@media (max-width: 600px) {
  .quick-links, .place-mini { grid-template-columns: 1fr; }
  .hl-strip img { width: 70px; height: 70px; }
  .hl-strip-text span { display: none; }
  .hl-copy { padding: 26px 22px; }
  .hl-media video, .hl-media img { max-height: 320px; }
  .chip { font-size: .88rem; }
}

/* ---------- motion ---------- */
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes float { 0%,100% { transform: translate(0,0); } 33% { transform: translate(10px,-14px); } 66% { transform: translate(-8px,8px); } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.85) rotate(-4deg); } to { opacity: 1; transform: none; } }
@keyframes waveSlide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes shine { from { left: -60%; } to { left: 130%; } }

/* hero entrance */
.hero-copy > * { animation: rise .8s cubic-bezier(.2,.8,.2,1) both; }
.hero-copy > :nth-child(2) { animation-delay: .1s; }
.hero-copy > :nth-child(3) { animation-delay: .2s; }
.hero-copy > :nth-child(4) { animation-delay: .3s; }
.hero-copy > :nth-child(5) { animation-delay: .45s; }
.photo-blob { animation: pop 1s cubic-bezier(.2,.8,.2,1) .15s both; }

/* floating background dots */
.dots-bg .d { animation: float 14s ease-in-out infinite; }
.dots-bg .d2 { animation-duration: 11s; animation-delay: -3s; }
.dots-bg .d3 { animation-duration: 9s; animation-delay: -6s; }
.dots-bg .d4 { animation-duration: 18s; }
.dots-bg .d5 { animation-duration: 8s; animation-delay: -2s; }

/* shine sweep on primary buttons */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg);
}
.btn-primary:hover::after { animation: shine .8s ease; }

/* WhatsApp button attention ring */
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366;
  animation: ring 2.4s ease-out infinite;
}
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }

/* scroll reveal (only hides content when JS is running) */
/* Uses an animation with backwards fill, so once it finishes the element's
   normal styles (including hover transforms) take over again. */
.js [data-reveal]:not(.in) { opacity: 0; }
.js [data-reveal].in {
  animation: rise .8s cubic-bezier(.2,.8,.2,1) backwards;
  animation-delay: calc(var(--i, 0) * 90ms);
}

.insurer { transition: transform .3s, box-shadow .3s, color .3s; }
.insurer:hover { transform: translateY(-4px); color: var(--teal-dark); box-shadow: var(--shadow); }
.qual-list li::before { transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.qual-list li:hover::before { transform: translateY(-50%) scale(1.15) rotate(-8deg); }

/* ---------- responsive ---------- */
.main-nav a { white-space: nowrap; }
/* seven menu items: switch to the menu button before they get cramped */
@media (max-width: 1240px) {
  .main-nav {
    position: absolute; top: 76px; inset-inline: 0; background: #fff; flex-direction: column; align-items: stretch;
    padding: 12px 16px 20px; gap: 2px; box-shadow: 0 16px 30px -16px rgba(0,0,0,.25);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .8em 1em; }
  .main-nav .nav-cta { margin: 8px 0 0; text-align: center; }
  .menu-btn { display: flex; }
  .header-actions { margin-inline-start: auto; }
}
@media (max-width: 980px) {
  .hero-inner, .about-grid, .ask-inner, .clinic-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .hero-photo { order: -1; width: min(300px, 80%); }
}
@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .brand-mark { width: 44px; }
  .brand-en { font-size: .8rem; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .stat { padding: 12px; }
  .stat strong { font-size: 1.35rem; }
  .stat span { font-size: .75rem; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .card { padding: 22px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 140px 140px; }
  .g-photo { grid-column: span 2; grid-row: auto; }
  .g-ph:last-child { grid-column: span 2; }
  .photo-mark { width: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
