@font-face {
  font-family: "Thmanyah Sans";
  src: url("https://dora.clinic/fonts/thmanyah-sans-light.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: 300;
}

@font-face {
  font-family: "Thmanyah Sans";
  src: url("https://dora.clinic/fonts/thmanyah-sans-black.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: 900;
}

:root {
  --page: #f4f0ed;
  --surface: #f4f6f7;
  --ink: #3d3a38;
  --ink-soft: #656565;
  --line: rgba(61, 58, 56, 0.16);
  --accent: #aa5f48;
  --accent-deep: #94513d;
  --accent-soft: #f0e2dc;
  --gold: #a1804f;
  --glass: rgba(255, 255, 255, 0.78);
  --glass-edge: rgba(255, 255, 255, 0.92);
  --shadow-soft: 0 18px 48px -22px rgba(61, 58, 56, 0.34);
  --radius-large: 30px;
  --radius-medium: 22px;
  --font: "Thmanyah Sans", "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: #e9e3de;
  color-scheme: light;
}

body {
  min-height: 100svh;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 4%, rgba(233, 214, 200, 0.78), transparent 34%),
    radial-gradient(circle at 4% 52%, rgba(239, 211, 199, 0.55), transparent 30%),
    var(--page);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

strong,
h1,
h2 {
  font-weight: 900;
}

:focus-visible {
  border-radius: 8px;
  outline: 3px solid rgba(170, 95, 72, 0.55);
  outline-offset: 3px;
}

.page-shell {
  position: relative;
  width: 100%;
  max-width: 430px;
  min-height: 100svh;
  margin-inline: auto;
  overflow: hidden;
  background: rgba(244, 240, 237, 0.72);
  box-shadow: 0 0 60px rgba(61, 58, 56, 0.12);
}

.brand-header {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: center;
  padding: 18px 24px 14px;
}

.brand-logo {
  width: 132px;
  height: auto;
}

.doctor-page {
  padding: 0 18px 156px;
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: clamp(320px, 48svh, 500px);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-large);
  background: #ddd7d1;
  box-shadow: var(--shadow-soft);
}

.portrait-frame::after {
  position: absolute;
  inset: auto 0 0;
  height: 14%;
  background: linear-gradient(to top, rgba(61, 58, 56, 0.12), transparent);
  content: "";
  pointer-events: none;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--portrait-position, 50% 34%);
}

.profile-copy {
  padding: 24px 6px 8px;
}

.profile-copy h1 {
  font-size: clamp(33px, 9vw, 42px);
  line-height: 1.45;
}

.doctor-title {
  max-width: 340px;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.7;
}

.facts {
  margin-top: 22px;
  border-block: 1px solid var(--line);
}

.fact {
  display: grid;
  grid-template-columns: 42px 76px 1fr;
  gap: 4px;
  align-items: center;
  min-height: 68px;
  border-bottom: 1px solid var(--line);
}

.fact:last-child {
  border-bottom: 0;
}

.fact-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: var(--accent);
  background: var(--accent-soft);
}

.fact-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.fact-label {
  color: var(--ink-soft);
  font-size: 14px;
}

.fact strong {
  font-size: 15px;
  text-align: start;
}

.whatsapp-cta {
  position: fixed;
  z-index: 10;
  right: 0;
  bottom: 0;
  left: 0;
  width: min(100%, 430px);
  margin-inline: auto;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--glass-edge);
  background: rgba(244, 240, 237, 0.88);
  box-shadow: 0 -14px 34px -24px rgba(61, 58, 56, 0.62);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.whatsapp-button {
  display: flex;
  min-height: 66px;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  border-radius: var(--radius-medium);
  color: #fff;
  background: var(--accent);
  box-shadow: 0 12px 24px -14px rgba(148, 81, 61, 0.9);
  transition:
    transform 160ms ease,
    background-color 160ms ease;
}

.whatsapp-button:active {
  transform: scale(0.985);
  background: var(--accent-deep);
}

.whatsapp-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.45;
}

.whatsapp-copy strong {
  font-size: 17px;
}

.whatsapp-copy small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 300;
}

.whatsapp-icon {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.whatsapp-icon .whatsapp-mark {
  width: 21px;
  height: 21px;
  fill: currentColor;
  stroke: none;
}

.handoff-note {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.index-page {
  padding: 8px 18px 34px;
}

.index-intro {
  padding: 14px 6px 22px;
}

.index-intro h1 {
  font-size: 34px;
  line-height: 1.45;
}

.index-intro p {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 15px;
}

.doctor-links {
  display: grid;
  gap: 14px;
}

.doctor-link {
  display: grid;
  grid-template-columns: 88px 1fr 28px;
  gap: 14px;
  align-items: center;
  min-height: 112px;
  padding: 11px;
  border: 1px solid var(--glass-edge);
  border-radius: 24px;
  background: var(--glass);
  box-shadow: 0 12px 30px -24px rgba(61, 58, 56, 0.5);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.doctor-link img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  object-position: 50% 28%;
  border-radius: 18px;
}

.doctor-link-copy {
  min-width: 0;
}

.doctor-link h2 {
  font-size: 20px;
  line-height: 1.45;
}

.doctor-link p {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

.doctor-link-arrow {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--accent);
  background: var(--accent-soft);
}

.doctor-link-arrow svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

@media (min-width: 431px) {
  body {
    padding-block: 18px;
  }

  .page-shell {
    min-height: calc(100svh - 36px);
    border-radius: 34px;
  }

  .whatsapp-cta {
    bottom: 18px;
    border-radius: 0 0 34px 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
