:root {
  --ink: #111111;
  --muted: #65615c;
  --paper: #f7f7f4;
  --porcelain: #fffefd;
  --line: rgba(17, 17, 17, 0.12);
  --gold: #b99662;
  --sage: #8b9b8c;
  --rose: #c7a2a5;
  --charcoal: #20201f;
  --shadow: 0 24px 70px rgba(17, 17, 17, 0.1);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Cairo", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.en {
  font-family: "Cairo", "Avenir Next", Arial, sans-serif;
}

body.ar {
  direction: rtl;
  text-align: right;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

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

button {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid rgba(185, 150, 98, 0.72);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: white;
  padding: 10px 14px;
  border-radius: var(--radius);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 247, 244, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 22px;
  display: grid;
  grid-template-columns: 210px 1fr auto;
  align-items: center;
  gap: 18px;
}

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

.brand img {
  width: 190px;
  max-height: 42px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  align-items: center;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.ar .nav-links {
  font-size: 14px;
}

.nav-links a {
  color: rgba(17, 17, 17, 0.72);
  border-bottom: 1px solid transparent;
  padding: 7px 0;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--gold);
}

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

.lang-switch,
.btn,
.icon-btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.lang-switch {
  padding: 0 12px;
  font-weight: 700;
  font-size: 13px;
}

.btn {
  gap: 9px;
  padding: 12px 18px;
  font-weight: 700;
  line-height: 1;
}

.btn.primary {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.btn.gold {
  background: var(--gold);
  color: white;
  border-color: var(--gold);
}

.btn:hover,
.lang-switch:hover,
.icon-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(17, 17, 17, 0.32);
}

.icon-btn {
  width: 42px;
  padding: 0;
  display: none;
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.main {
  overflow: hidden;
}

.section {
  padding: 94px 22px;
}

.section.tight {
  padding-top: 62px;
  padding-bottom: 62px;
}

.section.dark {
  background: var(--charcoal);
  color: white;
}

.section.white {
  background: var(--porcelain);
}

.container {
  max-width: var(--max);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ar .eyebrow {
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(46px, 7vw, 98px);
  max-width: 980px;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(32px, 4vw, 58px);
  margin-bottom: 18px;
}

h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.lead {
  font-size: clamp(18px, 2vw, 24px);
  color: rgba(17, 17, 17, 0.72);
  max-width: 760px;
}

.dark .lead,
.dark .muted {
  color: rgba(255, 255, 255, 0.72);
}

.muted {
  color: var(--muted);
}

.hero {
  min-height: calc(100vh - 72px);
  padding: 82px 22px 34px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(247, 247, 244, 0.98) 0%, rgba(247, 247, 244, 0.86) 43%, rgba(247, 247, 244, 0.22) 100%),
    radial-gradient(circle at 78% 36%, rgba(199, 162, 165, 0.46), transparent 31%),
    radial-gradient(circle at 86% 74%, rgba(139, 155, 140, 0.42), transparent 25%),
    linear-gradient(135deg, #f7f8f6, #e5ece6);
}

.hero-grid {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.74fr);
  gap: 44px;
  align-items: center;
}

.hero-copy {
  padding-bottom: 42px;
}

.hero-actions,
.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-media {
  min-height: 560px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  background:
    linear-gradient(180deg, rgba(17, 17, 17, 0.02), rgba(17, 17, 17, 0.18)),
    url("Assets/ClinicWalkAroundImages/1L0A2241%202.JPG") center / cover no-repeat,
    linear-gradient(145deg, #fffefd 0%, #e8ede8 52%, #b8c2b4 100%);
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: inherit;
  pointer-events: none;
}

.hero-badge {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(16px);
}

.hero-badge span {
  padding: 16px 12px;
  background: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-weight: 700;
}

.stat-grid,
.card-grid,
.service-grid,
.tech-grid,
.review-grid {
  display: grid;
  gap: 18px;
}

.stat-grid {
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.stat strong {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.stat span {
  color: var(--muted);
  font-size: 14px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 52px;
  align-items: start;
}

.split.reverse {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 34px;
}

.section-head p {
  max-width: 560px;
}

.card-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card,
.service-card,
.tech-card,
.review-card,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 254, 253, 0.74);
  padding: 26px;
}

.card {
  min-height: 210px;
}

.card .num {
  color: var(--gold);
  font-weight: 800;
  font-size: 13px;
}

.service-grid {
  grid-template-columns: repeat(4, 1fr);
}

.service-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 38px;
}

.service-group {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.service-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.service-group-head h2 {
  font-size: clamp(25px, 3vw, 36px);
  margin-bottom: 0;
}

.service-card {
  min-height: 174px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.service-card a {
  margin-top: 18px;
  color: var(--gold);
  font-weight: 800;
}

.tech-grid {
  grid-template-columns: repeat(3, 1fr);
}

.tech-card {
  min-height: 188px;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.58)),
    linear-gradient(135deg, rgba(185, 150, 98, 0.14), rgba(139, 155, 140, 0.12));
}

.tech-image {
  height: 168px;
  margin: -8px -8px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.tech-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
}

.tech-card .tag {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}

.visual-panel {
  min-height: 440px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(17, 17, 17, 0.02), rgba(17, 17, 17, 0.14)),
    url("Assets/ClinicWalkAroundImages/1L0A2446.JPG") center / cover no-repeat,
    linear-gradient(135deg, #c9d2c7, #fbfcfa 44%, #aeb8aa);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.visual-panel::after {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: inherit;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 18px;
}

.gallery-item {
  min-height: 300px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--porcelain);
}

.gallery-item:first-child {
  grid-row: span 2;
  min-height: 618px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  display: block;
}

.before-after {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.ba-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--porcelain);
}

.ba-visual {
  height: 240px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.ba-visual span {
  position: relative;
  background: linear-gradient(135deg, #cbd5cb, #f8faf7);
}

.ba-visual span:last-child {
  background: linear-gradient(135deg, #fffefd, #b7c0b3);
}

.ba-visual span::after {
  content: attr(data-label);
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(17, 17, 17, 0.74);
  color: white;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
}

.ba-card div:last-child {
  padding: 20px;
}

.review-grid {
  grid-template-columns: repeat(3, 1fr);
}

.review-card {
  min-height: 250px;
}

.stars {
  color: var(--gold);
  font-size: 18px;
  margin-bottom: 18px;
}

.quote {
  font-size: 18px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-list a,
.contact-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.ar .contact-list a,
.ar .contact-list span {
  justify-content: flex-start;
}

.map {
  min-height: 470px;
  height: 100%;
  width: 100%;
  border: 0;
  border-radius: var(--radius);
  filter: grayscale(0.2) contrast(0.92);
}

.cta-band {
  padding: 76px 22px;
  background: var(--ink);
  color: white;
}

.cta-band .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 650px;
}

.site-footer {
  background: #111;
  color: white;
  padding: 58px 22px 26px;
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  gap: 34px;
}

.footer-logo {
  width: 220px;
  filter: invert(1);
  margin-bottom: 18px;
}

.footer-grid h3 {
  font-size: 15px;
  margin-bottom: 14px;
}

.footer-grid a,
.footer-grid p {
  color: rgba(255, 255, 255, 0.68);
  display: block;
  margin: 0 0 8px;
  font-size: 14px;
}

.footer-bottom {
  max-width: var(--max);
  margin: 34px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

.whatsapp-float {
  position: fixed;
  z-index: 90;
  right: 20px;
  bottom: 20px;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: #25d366;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 42px rgba(37, 211, 102, 0.36);
}

.ar .whatsapp-float {
  right: auto;
  left: 20px;
}

.page-hero {
  padding: 86px 22px 58px;
  background:
    linear-gradient(110deg, rgba(247, 247, 244, 0.96), rgba(247, 247, 244, 0.72)),
    linear-gradient(135deg, rgba(185, 150, 98, 0.24), rgba(139, 155, 140, 0.24));
}

.breadcrumbs {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 13px;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.timeline-item strong {
  color: var(--gold);
}

[data-animate] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .nav-wrap {
    grid-template-columns: 180px 1fr auto;
  }

  .brand img {
    width: 168px;
  }

  .nav-links {
    gap: 14px;
  }

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

  .hero-grid,
  .split,
  .split.reverse,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 460px;
  }
}

@media (max-width: 820px) {
  .nav-wrap {
    grid-template-columns: 1fr auto auto;
  }

  .icon-btn {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    left: 14px;
    right: 14px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 254, 253, 0.98);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 13px 8px;
    border-bottom: 1px solid var(--line);
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

  .nav-actions .btn {
    display: none;
  }

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

  .hero-copy {
    padding-bottom: 0;
  }

  .hero-media {
    min-height: 390px;
  }

  .map {
    min-height: 360px;
    height: 360px;
  }

  .hero-badge {
    grid-template-columns: 1fr;
  }

  .section,
  .page-hero {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .section-head,
  .service-group-head,
  .cta-band .container,
  .footer-bottom {
    display: block;
  }

  .service-group-head .btn {
    margin-top: 14px;
  }

  .card-grid,
  .tech-grid,
  .review-grid,
  .before-after,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item,
  .gallery-item:first-child {
    min-height: 280px;
    grid-row: auto;
  }

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

@media (max-width: 560px) {
  .nav-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand img {
    width: 148px;
  }

  h1 {
    font-size: 42px;
  }

  .ar h1 {
    font-size: 39px;
  }

  .lead {
    font-size: 17px;
  }

  .section,
  .page-hero,
  .hero,
  .cta-band,
  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-media {
    min-height: 320px;
  }

  .map {
    min-height: 320px;
    height: 320px;
  }

  .stat-grid,
  .service-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .card,
  .service-card,
  .tech-card,
  .review-card,
  .contact-panel {
    padding: 22px;
  }
}

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