:root {
  --ink: #182a32;
  --muted: #64747b;
  --teal: #12aab0;
  --teal-dark: #087b83;
  --mist: #eff9f9;
  --line: #dce9ea;
  --white: #fff;
  --shadow: 0 18px 45px rgba(28, 72, 77, .12);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif; line-height: 1.65; }
body.modal-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.skip-link { position: fixed; inset: 12px auto auto 12px; z-index: 100; padding: .65rem 1rem; color: var(--white); background: var(--ink); border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.hero { position: relative; min-height: 520px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(90deg, rgba(239,249,249,.95), rgba(239,249,249,.72), rgba(239,249,249,.2)), url("../images/bg.jpg") center/cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 90px; background: linear-gradient(transparent, rgba(255,255,255,.65)); pointer-events: none; }
.language-switcher { position: absolute; z-index: 2; inset: 26px 30px auto auto; display: flex; gap: 10px; }
[dir="rtl"] .language-switcher { inset: 26px auto auto 30px; }
.language-switcher a { border-radius: 50%; padding: 3px; background: rgba(255,255,255,.85); box-shadow: 0 4px 15px rgba(0,0,0,.13); transition: transform .2s; }
.language-switcher a:hover, .language-switcher a:focus-visible { transform: translateY(-2px); }
.language-switcher a[aria-current="page"] { outline: 2px solid var(--teal); outline-offset: 2px; }
.language-switcher img { border-radius: 50%; }
.hero__content { position: relative; z-index: 1; width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.hero__content > * { max-width: 680px; }
.eyebrow { margin: 0 0 .5rem; color: var(--teal-dark); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { margin: 0 0 1rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 7vw, 5.8rem); font-weight: 400; line-height: .98; letter-spacing: -.045em; }
.hero h1 span { color: var(--teal-dark); font-style: italic; }
.hero p:not(.eyebrow) { margin: .15rem 0; color: #40545d; font-size: clamp(1rem, 1.6vw, 1.18rem); }
.hero__cta { display: inline-flex; margin-top: 1.7rem; padding: .82rem 1.15rem; color: var(--white); background: var(--teal-dark); border-radius: 999px; font-weight: 700; text-decoration: none; box-shadow: 0 10px 25px rgba(8,123,131,.22); }

.expertise { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 90px 0 70px; }
.section-heading { max-width: 660px; margin: 0 auto 45px; text-align: center; }
.section-heading h2, .contact-section h2, .modal h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.25rem, 4vw, 3.7rem); font-weight: 400; line-height: 1.1; }
.section-heading > p:last-child { color: var(--muted); }
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; }
.service-card { display: grid; grid-template-columns: 42% 1fr; min-height: 280px; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.service-card > img { width: 100%; height: 100%; object-fit: cover; }
.service-card__body { align-self: center; padding: 30px; }
.service-card h3 { margin: 0 0 .75rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; font-weight: 400; line-height: 1.2; }
.service-card p, .service-card li { color: var(--muted); font-size: .94rem; }
.service-card ul { margin: 0; padding-inline-start: 1.1rem; }
.service-card li::marker { color: var(--teal); }
.text-button { margin-top: 1rem; padding: 0; border: 0; color: var(--teal-dark); background: none; cursor: pointer; font-weight: 800; }
.text-button:hover, .text-button:focus-visible { text-decoration: underline; }

.contact-section { width: min(1120px, calc(100% - 40px)); margin: 20px auto 90px; padding: 52px; display: grid; grid-template-columns: minmax(230px, 35%) 1fr; gap: clamp(30px, 6vw, 75px); align-items: center; background: var(--mist); border-radius: 30px; }
.contact-section > img { width: 100%; aspect-ratio: 1 / .8; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow); }
.contact-section h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
.contact-section p { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 25px 0; }
.button { display: inline-flex; justify-content: center; padding: .78rem 1.15rem; color: var(--white); background: var(--teal-dark); border: 2px solid var(--teal-dark); border-radius: 999px; font-weight: 700; text-decoration: none; }
.button--outline { color: var(--teal-dark); background: transparent; }
.phone a { color: var(--teal-dark); font-weight: 800; text-decoration: none; }
footer { padding: 30px 20px; color: #789096; background: #102a31; text-align: center; font-size: .88rem; }

.modal[hidden] { display: none; }
.modal { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 20px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(5, 22, 28, .75); backdrop-filter: blur(5px); }
.modal__panel { position: relative; width: min(760px, 100%); max-height: min(820px, calc(100vh - 40px)); overflow-y: auto; padding: clamp(28px, 5vw, 55px); background: var(--white); border-radius: var(--radius); box-shadow: 0 30px 90px rgba(0,0,0,.3); }
.modal__panel h3 { margin: 1.5rem 0 .25rem; color: var(--teal-dark); }
.modal__close { position: absolute; inset: 14px 18px auto auto; width: 42px; height: 42px; padding: 0; color: var(--ink); background: var(--mist); border: 0; border-radius: 50%; cursor: pointer; font-size: 1.7rem; line-height: 1; }
.medical-note { margin-top: 1.8rem; padding: 1rem; color: #53696f; background: var(--mist); border-inline-start: 4px solid var(--teal); font-size: .88rem; }

[dir="rtl"] body { font-family: Tahoma, Arial, sans-serif; }
[dir="rtl"] .hero { background: linear-gradient(-90deg, rgba(239,249,249,.96), rgba(239,249,249,.76), rgba(239,249,249,.18)), url("../images/bg.jpg") center/cover no-repeat; }
[dir="rtl"] .hero h1, [dir="rtl"] h2, [dir="rtl"] .service-card h3 { font-family: Tahoma, Arial, sans-serif; letter-spacing: 0; }
[dir="rtl"] .eyebrow { letter-spacing: .04em; }

@media (max-width: 900px) {
  .hero { min-height: 470px; background-position: 62% center; }
  .hero__content { padding-top: 80px; }
  .services { grid-template-columns: 1fr; }
  .service-card { min-height: 250px; }
}

@media (max-width: 620px) {
  .hero { min-height: 610px; align-items: end; background-position: 68% center; }
  .hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(239,249,249,1) 5%, rgba(239,249,249,.94) 44%, rgba(239,249,249,.12) 80%); }
  .hero__content { padding: 0 0 55px; }
  .hero h1 { font-size: clamp(2.85rem, 14vw, 4.2rem); }
  .expertise { width: min(100% - 28px, 1120px); padding-top: 65px; }
  .service-card, .service-card--reverse { grid-template-columns: 1fr; }
  .service-card > img { height: 220px; }
  .service-card__body { padding: 25px; }
  .contact-section { width: min(100% - 28px, 1120px); margin-bottom: 60px; padding: 24px; grid-template-columns: 1fr; }
  .actions { flex-direction: column; }
  .modal { padding: 10px; }
  .modal__panel { max-height: calc(100vh - 20px); border-radius: 16px; }
}

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