:root {
  --blue-950: #071e36;
  --blue-900: #0b2545;
  --blue-700: #0b65d8;
  --blue-500: #1994e6;
  --cyan-500: #16a3b8;
  --green-600: #3aa657;
  --green-500: #79c940;
  --mint-100: #e8fff5;
  --mint-50: #f4fff8;
  --white: #ffffff;
  --soft: #f6fbff;
  --text: #14304c;
  --muted: #5f7388;
  --line: rgba(13, 101, 216, 0.13);
  --shadow: 0 24px 80px rgba(7, 30, 54, 0.13);
  --radius-lg: 34px;
  --radius-md: 24px;
  --radius-sm: 16px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #f8fcff 0%, #f5fff9 43%, #ffffff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
}

body[dir="rtl"],
html[dir="rtl"] body {
  font-family: "Tajawal", "Noto Kufi Arabic", "Segoe UI", Arial, sans-serif;
}

body::selection {
  background: rgba(121, 201, 64, .28);
}

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

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

button,
input,
textarea {
  font: inherit;
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  overflow: hidden;
}

.page-bg::before,
.page-bg::after {
  content: "";
  position: absolute;
  width: 540px;
  height: 540px;
  border-radius: 999px;
  filter: blur(20px);
  opacity: .45;
}

.page-bg::before {
  top: -170px;
  left: -160px;
  background: radial-gradient(circle, rgba(25, 148, 230, .28), transparent 68%);
}

.page-bg::after {
  right: -170px;
  bottom: 3%;
  background: radial-gradient(circle, rgba(121, 201, 64, .25), transparent 70%);
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.section-pad {
  padding: 104px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, .76);
  border-bottom: 1px solid rgba(11, 101, 216, .08);
}

.nav {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: 220px;
  height: auto;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-panel a,
.lang-switch {
  border: 0;
  background: transparent;
  padding: 12px 14px;
  border-radius: 999px;
  color: var(--blue-900);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: .25s ease;
}

.nav-panel a:hover,
.lang-switch:hover {
  background: rgba(13, 101, 216, .08);
  color: var(--blue-700);
}

.lang-switch {
  margin-inline-start: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-700), var(--green-500));
  box-shadow: 0 12px 28px rgba(11, 101, 216, .18);
}

.lang-switch:hover {
  color: #fff;
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--blue-500), var(--green-500));
}

.mobile-menu {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.7);
  border-radius: 15px;
  cursor: pointer;
}

.mobile-menu span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--blue-900);
  margin: 5px auto;
  border-radius: 99px;
}

.hero {
  min-height: calc(100vh - 84px);
  display: flex;
  align-items: center;
  padding-top: 74px;
}

.hero-grid,
.two-col,
.contact-grid,
.timeline-wrap {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 72px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-600);
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
}

.hero h1 {
  margin: 0;
  color: var(--blue-950);
  letter-spacing: -.06em;
  font-size: clamp(58px, 9vw, 116px);
  line-height: .9;
}

.hero-lead {
  max-width: 650px;
  margin: 28px 0 0;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.45;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 36px 0 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 15px 22px;
  border-radius: 999px;
  font-weight: 850;
  border: 1px solid transparent;
  cursor: pointer;
  transition: .25s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-700), var(--cyan-500) 48%, var(--green-500));
  box-shadow: 0 18px 44px rgba(11, 101, 216, .24);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 55px rgba(11, 101, 216, .30);
}

.btn-soft {
  color: var(--blue-900);
  background: rgba(255,255,255,.8);
  border-color: rgba(11, 101, 216, .12);
}

.btn-soft:hover {
  background: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(11, 101, 216, .12);
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 640px;
}

.trust-row div {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(7, 30, 54, .05);
}

.trust-row strong,
.trust-row span {
  display: block;
}

.trust-row strong {
  color: var(--blue-900);
  font-size: 16px;
  margin-bottom: 4px;
}

.trust-row span {
  color: var(--muted);
  font-size: 13px;
}

.hero-visual {
  position: relative;
  min-height: 650px;
}

.premium-card {
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.image-card {
  position: absolute;
  inset: 0 0 auto auto;
  width: min(100%, 470px);
  height: 640px;
  padding: 10px;
  transform: rotate(1.2deg);
}

.image-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(11,101,216,.33), rgba(121,201,64,.35));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 27px;
}

.photo-badge {
  position: absolute;
  left: 28px;
  bottom: 28px;
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 18px;
  color: #fff;
  background: rgba(7, 30, 54, .74);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 45px rgba(0,0,0,.18);
}

.photo-badge span {
  font-weight: 900;
}

.photo-badge small {
  color: rgba(255,255,255,.8);
  font-weight: 650;
}

.floating-card {
  position: absolute;
  left: -26px;
  bottom: 58px;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(90%, 330px);
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(11, 101, 216, .12);
  box-shadow: 0 22px 60px rgba(7, 30, 54, .14);
  backdrop-filter: blur(14px);
}

.floating-card strong,
.floating-card small {
  display: block;
}

.floating-card strong {
  color: var(--blue-900);
  margin-bottom: 3px;
}

.floating-card small {
  color: var(--muted);
  font-weight: 650;
}

.pulse-dot {
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: var(--green-500);
  box-shadow: 0 0 0 8px rgba(121, 201, 64, .18);
  flex: 0 0 auto;
}

.intro-strip {
  margin-top: -34px;
  position: relative;
  z-index: 3;
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(11,101,216,.95), rgba(22,163,184,.94), rgba(121,201,64,.92));
  box-shadow: 0 24px 70px rgba(11, 101, 216, .20);
}

.strip-grid span {
  color: #fff;
  font-weight: 900;
  text-align: center;
  padding: 24px 18px;
  border-inline-end: 1px solid rgba(255,255,255,.22);
}

.strip-grid span:last-child {
  border-inline-end: 0;
}

.section-copy h2,
.section-head h2,
.contact-copy h2,
.gallery-grid h2 {
  margin: 0;
  color: var(--blue-950);
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.04;
  letter-spacing: -.04em;
}

.section-copy p:not(.eyebrow),
.section-head p:not(.eyebrow),
.contact-copy p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.8;
  font-size: 17px;
}

.signature-card {
  margin-top: 30px;
  display: grid;
  gap: 6px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,.82), rgba(232,255,245,.75));
}

.signature-card span {
  color: var(--green-600);
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.signature-card strong {
  color: var(--blue-900);
  font-size: 20px;
}

.portrait-stack {
  position: relative;
}

.portrait-card {
  height: 610px;
  padding: 10px;
}

.portrait-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 27px;
}

.quote-card {
  position: absolute;
  right: -24px;
  bottom: -28px;
  width: min(88%, 360px);
  padding: 24px;
  border-radius: 26px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(121,201,64,.23);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.quote-card span {
  color: var(--green-500);
  font-size: 64px;
  line-height: .5;
  font-family: Georgia, serif;
}

.quote-card p {
  margin: 2px 0 0;
  color: var(--blue-900);
  font-size: 18px;
  font-weight: 750;
  line-height: 1.5;
}

.services-section {
  background: linear-gradient(180deg, rgba(255,255,255,.3), rgba(232,255,245,.48));
}

.section-head {
  max-width: 760px;
  margin-bottom: 44px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  min-height: 270px;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid rgba(11, 101, 216, .11);
  background: rgba(255,255,255,.78);
  box-shadow: 0 18px 55px rgba(7, 30, 54, .07);
  transition: .25s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 70px rgba(7, 30, 54, .12);
}

.service-card h3 {
  margin: 22px 0 10px;
  color: var(--blue-900);
  font-size: 22px;
  line-height: 1.15;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(11,101,216,.12), rgba(121,201,64,.16));
  position: relative;
}

.medical-cross::before,
.medical-cross::after,
.heart-line::before,
.leaf-line::before,
.shield-line::before {
  content: "";
  position: absolute;
}

.medical-cross::before {
  width: 28px;
  height: 8px;
  border-radius: 99px;
  background: var(--blue-700);
  left: 15px;
  top: 25px;
}

.medical-cross::after {
  width: 8px;
  height: 28px;
  border-radius: 99px;
  background: var(--green-500);
  left: 25px;
  top: 15px;
}

.heart-line::before {
  width: 25px;
  height: 25px;
  left: 17px;
  top: 16px;
  background: linear-gradient(135deg, var(--blue-700), var(--green-500));
  transform: rotate(45deg);
  border-radius: 8px 8px 2px 8px;
}

.leaf-line::before {
  width: 32px;
  height: 22px;
  left: 14px;
  top: 19px;
  background: linear-gradient(135deg, var(--green-500), var(--cyan-500));
  border-radius: 100% 0 100% 0;
  transform: rotate(-18deg);
}

.shield-line::before {
  width: 30px;
  height: 35px;
  left: 14px;
  top: 12px;
  background: linear-gradient(135deg, var(--blue-700), var(--green-500));
  clip-path: polygon(50% 0, 90% 17%, 84% 73%, 50% 100%, 16% 73%, 10% 17%);
}

.education-section {
  position: relative;
}

.timeline-wrap {
  grid-template-columns: .9fr 1fr;
}

.timeline {
  display: grid;
  gap: 18px;
  padding: 34px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255,255,255,.82), rgba(244,255,248,.78));
  border: 1px solid rgba(11, 101, 216, .12);
  box-shadow: var(--shadow);
}

.timeline-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(11, 101, 216, .08);
}

.timeline-item span {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue-700), var(--green-500));
  box-shadow: 0 12px 30px rgba(11, 101, 216, .18);
}

.timeline-item small,
.timeline-item strong {
  display: block;
}

.timeline-item small {
  color: var(--green-600);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 4px;
}

.timeline-item strong {
  color: var(--blue-900);
  font-size: 22px;
}

.gallery-section {
  padding-top: 50px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 42px;
  align-items: center;
}

.gallery-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.gallery-cards figure {
  margin: 0;
  position: relative;
  min-height: 420px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-cards img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
}

.gallery-cards figure:first-child img {
  object-position: center;
}

.gallery-cards figure:last-child img {
  object-position: top center;
}

.gallery-cards figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 12px 16px;
  border-radius: 999px;
  color: #fff;
  background: rgba(7, 30, 54, .72);
  backdrop-filter: blur(14px);
  font-weight: 850;
}

.contact-section {
  background:
    radial-gradient(circle at 12% 22%, rgba(11,101,216,.12), transparent 30%),
    radial-gradient(circle at 84% 30%, rgba(121,201,64,.16), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.2), rgba(232,255,245,.5));
}

.contact-grid {
  grid-template-columns: .9fr 1fr;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.contact-list a {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 17px;
  border-radius: 22px;
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(11, 101, 216, .10);
  box-shadow: 0 12px 34px rgba(7, 30, 54, .05);
}

.contact-list span {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-700), var(--green-500));
  font-weight: 900;
}

.contact-list small,
.contact-list strong {
  display: block;
}

.contact-list small {
  color: var(--muted);
  margin-bottom: 2px;
}

.contact-list strong {
  color: var(--blue-900);
}

.appointment-form {
  padding: 34px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(11, 101, 216, .12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.appointment-form h3 {
  margin: 0 0 22px;
  color: var(--blue-900);
  font-size: 28px;
}

.appointment-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.appointment-form label span {
  color: var(--blue-900);
  font-weight: 800;
  font-size: 14px;
}

.appointment-form input,
.appointment-form textarea {
  width: 100%;
  border: 1px solid rgba(11, 101, 216, .14);
  background: rgba(246,251,255,.8);
  color: var(--blue-900);
  border-radius: 16px;
  padding: 15px 16px;
  outline: none;
  transition: .2s ease;
}

.appointment-form textarea {
  resize: vertical;
}

.appointment-form input:focus,
.appointment-form textarea:focus {
  border-color: rgba(58, 166, 87, .55);
  background: #fff;
  box-shadow: 0 0 0 5px rgba(121, 201, 64, .13);
}

.full {
  width: 100%;
}

.form-status {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--green-600);
  font-weight: 800;
}

.form-status.error {
  color: #c44444;
}

.form-note {
  display: block;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 8px;
}

.site-footer {
  padding: 42px 0;
  background: var(--blue-950);
  color: rgba(255,255,255,.78);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-grid img {
  filter: brightness(0) invert(1);
  opacity: .95;
}

.footer-grid p {
  margin: 14px 0 0;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  font-weight: 800;
  color: #fff;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: reveal .8s ease forwards;
}

.delay-1 { animation-delay: .14s; }
.delay-2 { animation-delay: .24s; }
.delay-3 { animation-delay: .34s; }

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

html[dir="rtl"] .hero h1,
html[dir="rtl"] .section-copy h2,
html[dir="rtl"] .section-head h2,
html[dir="rtl"] .contact-copy h2,
html[dir="rtl"] .gallery-grid h2 {
  letter-spacing: -.02em;
}

html[dir="rtl"] .photo-badge {
  left: auto;
  right: 28px;
}

html[dir="rtl"] .floating-card {
  left: auto;
  right: -26px;
}

html[dir="rtl"] .quote-card {
  right: auto;
  left: -24px;
}

html[dir="rtl"] .gallery-cards figcaption {
  left: auto;
  right: 18px;
}

@media (max-width: 1080px) {
  .hero-grid,
  .two-col,
  .contact-grid,
  .timeline-wrap,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 640px;
  }

  .image-card {
    left: 50%;
    right: auto;
    transform: translateX(-50%) rotate(1.2deg);
  }

  .floating-card {
    left: 4%;
  }

  html[dir="rtl"] .floating-card {
    right: 4%;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .section-pad {
    padding: 74px 0;
  }

  .mobile-menu {
    display: block;
  }

  .nav-panel {
    position: absolute;
    top: 86px;
    left: 14px;
    right: 14px;
    display: none;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px;
    border: 1px solid rgba(11, 101, 216, .12);
    border-radius: 24px;
    background: rgba(255,255,255,.96);
    box-shadow: var(--shadow);
  }

  .nav-panel.open {
    display: grid;
  }

  .nav-panel a,
  .lang-switch {
    width: 100%;
    text-align: center;
  }

  .brand img {
    width: 188px;
  }

  .hero {
    min-height: auto;
    padding-top: 58px;
  }

  .hero h1 {
    font-size: clamp(50px, 17vw, 82px);
  }

  .hero-lead {
    font-size: 19px;
  }

  .trust-row,
  .strip-grid,
  .gallery-cards {
    grid-template-columns: 1fr;
  }

  .strip-grid span {
    border-inline-end: 0;
    border-bottom: 1px solid rgba(255,255,255,.18);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 560px;
  }

  .image-card {
    height: 550px;
  }

  .floating-card {
    bottom: 28px;
  }

  .portrait-card {
    height: 540px;
  }

  .quote-card {
    position: relative;
    right: auto;
    left: auto;
    bottom: auto;
    width: 100%;
    margin-top: 18px;
  }

  html[dir="rtl"] .quote-card {
    right: auto;
    left: auto;
  }

  .gallery-cards figure {
    min-height: 520px;
  }

  .footer-grid {
    display: grid;
  }
}

@media (max-width: 520px) {
  .nav {
    min-height: 76px;
  }

  .nav-panel {
    top: 78px;
  }

  .hero-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .hero-visual {
    min-height: 510px;
  }

  .image-card {
    height: 500px;
  }

  .floating-card {
    width: calc(100% - 18px);
    left: 9px;
  }

  html[dir="rtl"] .floating-card {
    right: 9px;
  }

  .appointment-form,
  .timeline {
    padding: 22px;
  }

  .gallery-cards figure {
    min-height: 460px;
  }
}
