/* =========================================================
   Dr. Khadar Vali Shaik — Elegant White & Blue Theme
   Palette: clean white + royal navy + medical cyan accent
   Typography: Fraunces (display) + Manrope (text)
   ========================================================= */

:root {
  --bg: #FFFFFF;
  --bg-alt: #F4F8FD;
  --bg-tint: #EAF2FB;
  --surface: #FFFFFF;
  --ink: #0B1E3F;
  --ink-soft: #344767;
  --muted: #6B7B95;
  --line: #DCE6F2;
  --line-soft: #ECF2F9;
  --primary: #0B3D91;     /* royal navy */
  --primary-700: #082E6E;
  --primary-50:  #E8F0FC;
  --accent: #2563EB;      /* medical bright blue */
  --accent-700: #1D4ED8;
  --accent-soft: #DBEAFE;
  --whatsapp: #25D366;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow:    0 8px 26px rgba(11, 61, 145, 0.08);
  --shadow-lg: 0 24px 60px rgba(11, 61, 145, 0.18);
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(var(--container), 92%); margin: 0 auto; }

/* ===== Typography ===== */
h1, h2, h3 {
  font-family: 'Fraunces', 'Playfair Display', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 .6em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.3vw, 2.6rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-700);
  padding: .35rem .75rem;
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  background: var(--primary-50);
}

em { font-style: italic; color: var(--accent); }

/* ===== Buttons ===== */
.btn {
  --bg: var(--primary);
  --fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: .95rem;
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--primary { background: var(--primary); }
.btn--primary:hover { background: var(--primary-700); }
.btn--ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--line);
}
.btn--ghost:hover { background: var(--primary-50); border-color: var(--primary); color: var(--primary); }
.btn--lg { padding: 1rem 1.7rem; font-size: 1rem; }

/* ===== Navigation ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 74px;
}
.nav__brand { display: flex; align-items: center; gap: .75rem; }
.brand__photo {
  width: 42px; height: 42px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid var(--primary-50);
  box-shadow: 0 4px 12px rgba(11, 61, 145, 0.18);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1rem; color: var(--ink); }
.brand__sub { font-size: .72rem; color: var(--muted); letter-spacing: .04em; }

.nav__links {
  margin-left: auto;
  display: flex;
  gap: 1.6rem;
  align-items: center;
}
.nav__links a {
  font-size: .9rem;
  color: var(--ink-soft);
  position: relative;
  padding: .25rem 0;
}
.nav__links a:hover { color: var(--primary); }
.nav__links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta i { color: #fff; }
.nav__cta:hover i { color: #fff; }
.nav__toggle {
  display: none;
  background: transparent; border: 0;
  font-size: 1.25rem; color: var(--primary); cursor: pointer;
}

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 4.5rem 0 5.5rem; }
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 85% 15%, rgba(37, 99, 235, 0.10), transparent 60%),
    radial-gradient(700px 480px at 5% 90%, rgba(11, 61, 145, 0.06), transparent 60%);
  pointer-events: none;
}
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 61, 145, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 61, 145, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .9fr;
  gap: 4rem;
  align-items: center;
}
.hero__title { margin-top: 1.2rem; }
.hero__lede {
  font-size: 1.1rem;
  max-width: 560px;
  color: var(--ink-soft);
}
.hero__lede strong { color: var(--primary); font-weight: 700; }
.hero__cta { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero__cta .fa-whatsapp { color: #fff; }
.hero__cta .btn--ghost .fa-arrow-down { color: var(--primary); }
.hero__stats {
  list-style: none; padding: 0; margin: 2.5rem 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; max-width: 540px;
}
.hero__stats li {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.hero__stats strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 1.9rem;
  color: var(--primary);
  font-weight: 600;
}
.hero__stats span { font-size: .82rem; color: var(--muted); }

/* Portrait card */
.hero__media { display: flex; justify-content: center; }
.portrait {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 4/5;
}
.portrait__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  background: var(--bg-alt);
}
.portrait::before {
  content: '';
  position: absolute;
  inset: -14px -14px auto auto;
  width: 70%;
  height: 70%;
  border: 2px solid var(--primary-50);
  border-radius: 28px;
  z-index: -1;
}
.portrait::after {
  content: '';
  position: absolute;
  inset: auto auto -14px -14px;
  width: 55%;
  height: 55%;
  background: var(--accent-soft);
  border-radius: 28px;
  z-index: -1;
}
.portrait__overlay {
  position: absolute;
  left: 18px; right: 18px; bottom: 18px;
  background: linear-gradient(180deg, rgba(11, 30, 63, 0.0) 0%, rgba(11, 30, 63, 0.92) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  padding: 1.2rem 1.3rem .9rem;
  border-radius: 18px;
  display: flex; flex-direction: column; gap: .15rem;
}
.portrait__overlay span {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(255, 255, 255, 0.7);
}
.portrait__overlay strong {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 500;
}
.portrait__overlay small {
  font-size: .8rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: .25rem;
}
.portrait__badge {
  position: absolute;
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: .6rem 1rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink);
  top: 8%; right: -18px;
  z-index: 2;
}
.portrait__badge i { color: var(--accent); }
.portrait__badge--alt { top: auto; bottom: 28%; right: auto; left: -22px; }

/* ===== Section base ===== */
.section { padding: 5rem 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section--contact { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%); }

.section__head { max-width: 720px; margin-bottom: 2.5rem; }
.section__head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section__title { margin-top: .8rem; }
.section__sub { color: var(--muted); max-width: 640px; margin-left: auto; margin-right: auto; }

.section__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3.5rem;
  align-items: start;
}
.about__body p { font-size: 1.02rem; }
.about__body strong { color: var(--primary); font-weight: 600; }
.about__lang {
  margin-top: 1.5rem;
  padding: .9rem 1.2rem;
  background: var(--primary-50);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--ink);
  font-size: .92rem;
}
.about__lang i { color: var(--accent); }

/* ===== Expertise Cards ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.card__icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--primary-50);
  color: var(--primary);
  display: grid; place-items: center;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.card h3 { margin: 0 0 .4rem; font-size: 1.05rem; font-family: 'Manrope', sans-serif; font-weight: 600; color: var(--ink); }
.card p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ===== Gallery ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 1rem;
}
.gallery__item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-tint);
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
}
.gallery__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease, filter .3s ease;
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.2rem 1.1rem .9rem;
  background: linear-gradient(180deg, rgba(11, 30, 63, 0) 0%, rgba(11, 30, 63, 0.92) 90%);
  color: #fff;
  transform: translateY(20%);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
}
.gallery__item:hover figcaption {
  transform: translateY(0);
  opacity: 1;
}
.gallery__item figcaption span {
  display: block;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: .2rem;
}
.gallery__item figcaption strong {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 500;
}
.gallery__item--tall { grid-row: span 2; grid-column: span 2; }
.gallery__item--portrait { grid-row: span 2; }

@media (max-width: 980px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery__item--tall { grid-column: span 2; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery__item--tall, .gallery__item--portrait { grid-row: auto; grid-column: auto; }
}

/* ===== Affiliations ===== */
.affil-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}
.affil {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
}
.affil:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.affil__icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  display: grid; place-items: center;
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
}
.affil h3 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: .4rem;
}
.affil__role {
  color: var(--accent-700);
  font-weight: 600;
  font-size: .92rem;
  margin: 0 0 .8rem;
  line-height: 1.45;
}
.affil__loc, .affil__since {
  color: var(--muted);
  font-size: .85rem;
  margin: 0 0 .2rem;
  display: flex; align-items: center; gap: .4rem;
}
.affil__loc i { color: var(--accent); }
.affil__since {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--primary);
  font-weight: 600;
  margin-top: .8rem;
}

/* ===== Credentials ===== */
.credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.4rem;
  box-shadow: var(--shadow);
}
.credentials__h {
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent-700);
  display: flex; align-items: center; gap: .55rem;
  margin-bottom: 1.2rem;
}
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  padding: .85rem 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft);
  display: flex; align-items: flex-start; gap: .7rem;
  font-size: .94rem;
  line-height: 1.55;
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: .55rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.checklist strong { color: var(--primary); font-weight: 700; }

/* ===== Publications ===== */
.pubs {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: pub;
  display: grid;
  gap: .8rem;
  max-width: 920px;
  margin-inline: auto;
}
.pubs li {
  counter-increment: pub;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.1rem 1.3rem 1.1rem 3.4rem;
  border-radius: var(--radius-sm);
  position: relative;
  font-size: .95rem;
  color: var(--ink-soft);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.pubs li:hover {
  border-color: var(--accent);
  transform: translateX(4px);
  box-shadow: var(--shadow);
}
.pubs li::before {
  content: counter(pub, decimal-leading-zero);
  position: absolute;
  left: 1.1rem; top: 1.1rem;
  font-family: 'Fraunces', serif;
  font-size: .95rem;
  color: var(--accent-700);
  font-weight: 600;
  background: var(--primary-50);
  width: 28px; height: 28px;
  border-radius: 8px;
  display: grid; place-items: center;
}
.pubs li em {
  display: block;
  margin-top: .4rem;
  font-style: italic;
  color: var(--muted);
  font-size: .85rem;
}
.pubs.is-collapsed li:nth-child(n+5) { display: none; }
.pubs__more { text-align: center; margin-top: 1.6rem; }

/* ===== Contact / Booking ===== */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}
.contact__lede { font-size: 1.05rem; max-width: 480px; }
.contact__info { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.2rem; }
.contact__info li { display: flex; gap: 1rem; align-items: flex-start; }
.contact__info i {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--primary-50);
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
}
.contact__info .fa-whatsapp { background: rgba(37, 211, 102, 0.12); color: var(--whatsapp); }
.contact__info span {
  display: block; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--muted);
  margin-bottom: .2rem;
}
.contact__info a, .contact__info p {
  margin: 0; color: var(--ink); font-weight: 600; font-size: .94rem;
}
.contact__info a:hover { color: var(--accent); }

.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1.1rem;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form label { display: flex; flex-direction: column; gap: .4rem; font-size: .85rem; color: var(--ink); font-weight: 600; }
.form label span { font-weight: 500; color: var(--ink-soft); font-size: .82rem; }
.form label i { color: var(--accent); font-style: normal; }
.form input, .form select, .form textarea {
  font: inherit;
  font-size: .95rem;
  padding: .8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-alt);
  color: var(--ink);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.form input:focus, .form select:focus, .form textarea:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form textarea { resize: vertical; }
.form__full { grid-column: 1 / -1; }
.form__submit { justify-content: center; margin-top: .4rem; }
.form__submit .fa-whatsapp { color: #fff; }
.form__hint { font-size: .8rem; color: var(--muted); text-align: center; margin: 0; }

/* ===== Footer ===== */
.footer {
  padding: 2.2rem 0;
  background: var(--primary);
  color: rgba(255, 255, 255, 0.8);
}
.footer__inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1.5rem; flex-wrap: wrap;
}
.footer__brand {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  margin: 0;
  color: #fff;
}
.footer__sub { margin: .2rem 0 0; font-size: .85rem; color: rgba(255,255,255,.7); }
.footer__meta { font-size: .82rem; margin: 0; }

/* ===== Floating WhatsApp ===== */
.fab {
  position: fixed; right: 22px; bottom: 22px;
  width: 58px; height: 58px;
  background: var(--whatsapp);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.6rem;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
  z-index: 60;
  transition: transform .2s ease;
  animation: pulse 2.6s infinite;
}
.fab:hover { transform: scale(1.08); }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70%  { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero__stats { max-width: 100%; }
  .section__grid { grid-template-columns: 1fr; gap: 2rem; }
  .credentials { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 74px; left: 0; right: 0;
    background: var(--surface);
    padding: 1.2rem 5%;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
  .hero { padding: 3rem 0 4rem; }
  .hero__stats { grid-template-columns: 1fr; gap: 0; }
  .form__row { grid-template-columns: 1fr; }
  .portrait__badge { right: 8px; }
  .portrait__badge--alt { left: 8px; }
}

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
