:root {
  --pink: #fb478d;
  --pink-deep: #e02374;
  --cyan: #008af0;
  --navy: #162a57;
  --navy-soft: #2f4578;
  --ink: #1c2540;
  --muted: #667089;
  --line: rgba(22, 42, 87, 0.1);
  --gold: #c9a24a;
  --gold-soft: #e2c57a;
  --surface: rgba(255, 255, 255, 0.88);
  --radius: 16px;
  --font-ar: "Cairo", sans-serif;
  --font-en: "Outfit", sans-serif;
  --font-script: "Great Vibes", cursive;
  --shell: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--font-ar);
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(251, 71, 141, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 45% at 0% 100%, rgba(0, 138, 240, 0.12), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #fbf7fa 45%, #f2f7fc 100%);
}

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

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

h1,
h2 {
  margin: 0;
  line-height: 1.3;
  color: var(--navy);
}

p {
  margin: 0;
}

.shell {
  width: min(100% - 2.5rem, var(--shell));
  margin-inline: auto;
}

.bg-orb,
.bg-swoosh {
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

.bg-orb {
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  border-radius: 50%;
  filter: blur(4px);
  animation: drift 14s ease-in-out infinite alternate;
}

.bg-orb--a {
  top: -8%;
  left: -6%;
  background: radial-gradient(circle, rgba(251, 71, 141, 0.22), transparent 70%);
}

.bg-orb--b {
  right: -8%;
  bottom: 10%;
  background: radial-gradient(circle, rgba(0, 138, 240, 0.18), transparent 70%);
  animation-delay: -4s;
}

.bg-swoosh--top {
  top: -40px;
  right: -60px;
  width: min(38vw, 360px);
  height: min(30vw, 280px);
  background:
    radial-gradient(ellipse at 70% 40%, rgba(251, 71, 141, 0.28), transparent 55%),
    radial-gradient(ellipse at 40% 70%, rgba(0, 138, 240, 0.22), transparent 50%);
  border-radius: 60% 40% 55% 45%;
  transform: rotate(18deg);
}

.bg-swoosh--bottom {
  left: -80px;
  bottom: -40px;
  width: min(42vw, 400px);
  height: min(28vw, 260px);
  background:
    radial-gradient(ellipse at 40% 50%, rgba(22, 42, 87, 0.28), transparent 60%),
    radial-gradient(ellipse at 70% 40%, rgba(251, 71, 141, 0.2), transparent 55%);
  border-radius: 45% 55% 40% 60%;
  transform: rotate(-12deg);
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(16px, -20px, 0); }
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  padding: 1.15rem 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-script);
  font-size: 1.7rem;
  color: var(--pink);
  line-height: 1;
}

.brand-mark img {
  width: 40px;
  height: auto;
}

.hero {
  padding: 1.5rem 0 3.5rem;
}

.hero__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
  animation: riseIn 0.8s ease both;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.hero__visual {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.35rem;
  text-align: center;
}

.hero__logo-wrap {
  position: relative;
  display: grid;
  place-items: center;
  padding: 1.1rem 1.4rem 0.85rem;
}

.hero__logo-wrap::before {
  content: "";
  position: absolute;
  inset: 14% 6% 10%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(251, 71, 141, 0.16), rgba(0, 138, 240, 0.1) 45%, transparent 70%);
  z-index: 0;
  animation: pulseSoft 7s ease-in-out infinite alternate;
}

@keyframes pulseSoft {
  from { transform: scale(0.96); opacity: 0.75; }
  to { transform: scale(1.06); opacity: 1; }
}

.hero__logo {
  position: relative;
  z-index: 1;
  width: min(42vw, 160px);
  height: auto;
}

.hero__about {
  max-width: 22rem;
  padding: 0 0.5rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--pink-deep);
}

.hero__about h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  margin-bottom: 0.45rem;
}

.hero__about-text {
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.95rem;
}

.hero__copy {
  text-align: center;
  overflow: visible;
}

.hero__brand {
  display: grid;
  gap: 0.15rem;
  margin-bottom: 0.75rem;
  padding: 0.45rem 0.65rem 0.15rem;
  overflow: visible;
}

.hero__pearl {
  display: inline-block;
  max-width: 100%;
  font-family: var(--font-script);
  font-size: clamp(2.75rem, 7vw, 3.9rem);
  line-height: 1.25;
  padding: 0.15em 0.2em;
  background: linear-gradient(100deg, var(--pink) 10%, #9b4de3 50%, var(--cyan) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Keep script flourishes from being clipped */
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero__clinic {
  font-family: var(--font-en);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--navy);
  padding-inline-start: 0.32em;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 260px);
  margin: 0.2rem auto 0.8rem;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), var(--gold));
}

.divider::after {
  background: linear-gradient(90deg, var(--gold), var(--gold-soft), transparent);
}

.divider span {
  width: 8px;
  height: 8px;
  margin: 0 0.6rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffe7a8, var(--gold));
  box-shadow: 0 0 0 3px rgba(201, 162, 74, 0.15);
}

.hero__doctor {
  font-size: clamp(1.7rem, 4.5vw, 2.35rem);
  font-weight: 700;
}

.hero__creds {
  list-style: none;
  margin: 0 auto 1.35rem;
  padding: 0;
  max-width: 28rem;
  display: grid;
  gap: 0.25rem;
  color: var(--navy-soft);
  font-size: clamp(0.98rem, 2.2vw, 1.08rem);
  font-weight: 600;
  line-height: 1.6;
}

.hero-contacts {
  width: min(100%, 420px);
  margin-inline: auto;
  display: grid;
  gap: 0.65rem;
}

.contact-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(22, 42, 87, 0.06);
  text-align: right;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(251, 71, 141, 0.28);
  box-shadow: 0 14px 32px rgba(22, 42, 87, 0.1);
}

.contact-link__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
}

.contact-link--map .contact-link__icon {
  background: linear-gradient(145deg, var(--pink), #ff7eb5);
}

.contact-link--fb .contact-link__icon {
  background: linear-gradient(145deg, #1877f2, #4fa3ff);
}

.contact-link__label {
  display: block;
  font-weight: 700;
  color: var(--navy);
}

.contact-link__meta {
  display: block;
  margin-top: 0.08rem;
  color: var(--muted);
  font-family: var(--font-en);
  font-size: 0.84rem;
}

.contact-link__chev {
  font-size: 1.25rem;
  color: var(--pink);
  opacity: 0.8;
}

.phone-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-top: 0.15rem;
  padding: 0.75rem 0.9rem;
  border-radius: 40px;
  background: linear-gradient(115deg, #132449 0%, #1d3a6e 50%, #0a6aad 100%);
  color: #fff;
  border: 1px solid rgba(226, 197, 122, 0.35);
  box-shadow: 0 14px 32px rgba(22, 42, 87, 0.18);
}

.phone-bar__item {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: clamp(0.82rem, 2vw, 0.95rem);
  white-space: nowrap;
}

.phone-bar__label {
  display: none;
}

.phone-bar__number {
  font-family: var(--font-en);
}

.phone-bar__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  flex-shrink: 0;
}

.phone-bar__divider {
  width: 1px;
  align-self: stretch;
  margin: 0.2rem 0;
  background: linear-gradient(180deg, transparent, var(--gold-soft), transparent);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 1.75rem;
  background: rgba(255, 255, 255, 0.55);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
}

.site-footer__brand img {
  width: 36px;
  height: auto;
}

.site-footer__pearl {
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--navy);
}

.site-footer__copy {
  color: var(--muted);
  font-family: var(--font-en);
  font-size: 0.9rem;
}

@media (max-width: 899px) {
  .shell {
    width: min(100% - 1.5rem, var(--shell));
  }

  /* Hero logo is enough brand signal on mobile */
  .site-header {
    display: none;
  }

  .hero {
    padding: 1rem 0 2.5rem;
  }

  /* Flatten nested wrappers so we can reorder above-the-fold content */
  .hero__visual,
  .hero__copy,
  .hero-contacts {
    display: contents;
  }

  .hero__grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .hero__logo-wrap {
    order: 1;
    padding: 0.5rem 0.5rem 0.75rem;
  }

  .hero__logo {
    width: 88px;
    margin-inline: auto;
  }

  .hero__logo-wrap::before {
    inset: 12% 20% 10%;
  }

  .hero__doc {
    order: 2;
    text-align: center;
    margin-bottom: 1.15rem;
  }

  .hero__doc .divider:first-of-type {
    display: none;
  }

  .hero__doc .divider {
    margin: 0.35rem auto 0.55rem;
    width: min(100%, 180px);
  }

  .hero__doctor {
    font-size: 1.4rem;
  }

  .hero__creds {
    margin: 0 auto;
    gap: 0.2rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--muted);
    font-weight: 600;
  }

  .contact-link--map {
    order: 3;
    margin-bottom: 0.65rem;
  }

  .contact-link--fb {
    order: 4;
    margin-bottom: 0.65rem;
  }

  .phone-bar {
    order: 5;
    display: contents;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .phone-bar__divider {
    display: none;
  }

  .phone-bar__item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
    padding: 0.75rem 0.85rem;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(22, 42, 87, 0.06);
    color: var(--navy);
    font-size: 1rem;
    white-space: normal;
    text-align: right;
  }

  .phone-bar__item--landline {
    order: 5;
  }

  .phone-bar__item--mobile {
    order: 6;
    margin-bottom: 1.75rem;
  }

  .phone-bar__text {
    display: grid;
    gap: 0.1rem;
  }

  .phone-bar__label {
    display: block;
    font-family: var(--font-ar);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--navy);
  }

  .phone-bar__number {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 600;
  }

  .phone-bar__icon {
    width: 36px;
    height: 36px;
  }

  .phone-bar__item::after {
    content: "‹";
    font-size: 1.25rem;
    color: var(--pink);
    opacity: 0.8;
  }

  /* Redundant with the logo — keep for desktop only */
  .hero__brand {
    display: none;
  }

  .hero__about {
    order: 7;
    max-width: none;
    margin-top: 0.25rem;
    padding: 1.25rem 0.15rem 0;
    border-top: 1px solid var(--line);
    text-align: center;
  }

  .hero__about h2 {
    font-size: 1.2rem;
  }

  .hero__about-text {
    font-size: 0.92rem;
    line-height: 1.7;
  }

  .contact-link {
    padding: 0.75rem 0.85rem;
  }

  .contact-link__icon {
    width: 36px;
    height: 36px;
  }

  .contact-link__meta {
    font-size: 0.78rem;
  }

  .phone-bar__item {
    font-size: 0.8rem;
  }

  .site-footer {
    display: block;
    padding: 0.75rem 0 0.9rem;
  }

  .site-footer__inner {
    flex-wrap: nowrap;
    gap: 0.45rem;
    align-items: flex-end;
  }

  .site-footer__brand {
    gap: 0.35rem;
    min-width: 0;
    flex: 1;
    align-items: flex-end;
  }

  .site-footer__brand img {
    width: 20px;
    flex-shrink: 0;
    margin-bottom: 0.1rem;
  }

  .site-footer__brand > div {
    min-width: 0;
    overflow: hidden;
  }

  .site-footer__pearl {
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-footer__brand > div > p:last-child {
    display: block;
    font-size: 0.68rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-footer__copy {
    flex-shrink: 0;
    font-size: 0.68rem;
    line-height: 1.25;
    white-space: nowrap;
  }
}

@media (min-width: 900px) {
  .hero {
    min-height: calc(100svh - 5rem);
    display: grid;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 2.5rem;
  }

  .hero__grid {
    grid-template-columns: 0.95fr 1.15fr;
    gap: 3.5rem;
  }

  .hero__visual {
    order: 2;
    text-align: center;
  }

  .hero__logo {
    width: min(22vw, 190px);
  }

  .hero__copy {
    text-align: right;
    padding-inline-end: 0.25rem;
  }

  .hero__brand {
    padding-inline: 0.35rem 0.85rem;
  }

  .hero__pearl {
    padding-inline: 0.15em 0.35em;
  }

  .divider {
    margin-inline: 0;
  }

  .hero__creds,
  .hero-contacts {
    margin-inline: 0;
  }
}

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