:root {
  --blue: #2fa4d7;
  --blue-dark: #1d87b7;
  --bg: #f7f5f4;
  --white: #ffffff;
  --text: #1f2430;
  --muted: #6f7481;
  --surface: #ffffff;
  --surface-soft: #f8f8f8;
  --surface-alt: rgba(47, 164, 215, 0.14);
  --footer-bottom: #2d2d2d;
  --border-soft: rgba(31, 36, 48, 0.12);
  --shadow: 0 24px 50px rgba(36, 49, 99, 0.12);
  --container: 1100px;
}

body.dark-theme {
  --bg: #111722;
  --white: #eaf4fb;
  --text: #edf3f8;
  --muted: #adc2d2;
  --surface: #172130;
  --surface-soft: #1c2838;
  --surface-alt: rgba(47, 164, 215, 0.2);
  --footer-bottom: #0c1118;
  --border-soft: rgba(234, 244, 251, 0.18);
  --shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

body[dir="rtl"] {
  font-family: "Cairo", "Source Sans 3", sans-serif;
}

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

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

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

.section {
  padding: 72px 0;
}

.center {
  text-align: center;
}

.topbar {
  background: var(--blue);
  position: sticky;
  top: 0;
  z-index: 20;
}

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

.logo {
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.logo img {
  height: 42px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 24px;
  color: var(--white);
  font-weight: 600;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

.utility-btn {
  min-width: 78px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
}

.utility-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--white);
  transition: 0.25s ease;
}

.hero-grid,
.feature-grid,
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero {
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 84%, #ffffff 16%) 0%, color-mix(in srgb, var(--bg) 92%, #ffffff 8%) 100%);
}

.eyebrow,
.section-heading p,
small {
  color: var(--muted);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 16px;
  line-height: 1.06;
}

h1,
h2 {
  font-family: "Playfair Display", serif;
}

h1 {
  font-size: clamp(2.8rem, 4vw, 4.6rem);
}

h2 {
  font-size: clamp(2rem, 3vw, 3.2rem);
}

h3 {
  font-size: 1.3rem;
}

.hero-text-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 28px 0 18px;
}

.hero-media img,
.about-image-wrap img,
.quality-image img,
.feature-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media img {
  min-height: 520px;
  border-radius: 8px;
}

.highlight-band,
.blue-section {
  background: var(--blue);
  color: var(--white);
}

.highlight-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  align-items: start;
  padding: 52px 0;
}

.highlight-grid h2 {
  max-width: 300px;
}

.bullet-list,
.mission-grid ul {
  margin: 0;
  padding-left: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 13px 22px;
  border: 1px solid transparent;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: 0.25s ease;
  cursor: pointer;
}

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

.btn-light,
.btn-outline:hover {
  background: var(--white);
  color: var(--blue);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.8);
}

.btn:hover {
  transform: translateY(-2px);
}

.about-stage,
.quality-stage {
  position: relative;
  min-height: 620px;
}

.about-shape,
.quality-shape {
  position: absolute;
  background: var(--blue);
}

.shape-top {
  width: 210px;
  height: 100px;
  top: 0;
  left: 35%;
}

.shape-bottom {
  width: 250px;
  height: 170px;
  bottom: 0;
  left: 35%;
}

.about-image-wrap {
  position: absolute;
  right: 60px;
  top: 58px;
  width: min(100%, 540px);
  height: 380px;
}

.about-card,
.quality-card {
  position: absolute;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 40px;
}

.about-card {
  left: 0;
  top: 160px;
  width: min(100%, 430px);
}

.services {
  background: var(--surface);
}

.section-heading {
  margin-bottom: 38px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.service-card {
  background: var(--surface-soft);
  padding: 34px 26px;
  text-align: center;
}

.icon-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: var(--white);
  font-size: 1.35rem;
  margin: 0 auto 18px;
}

.icon-circle img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.appointment-strip {
  background: var(--surface-alt);
}

.appointment-form {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  align-items: center;
}

.appointment-form input,
.appointment-form select {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.appointment-form .btn {
  min-height: 52px;
  width: 100%;
}

.testimonials {
  background: var(--surface);
}

.testimonials-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--surface);
  border-radius: 18px 18px 18px 0;
  box-shadow: var(--shadow);
  padding: 24px 22px;
  text-align: center;
}

.testimonial-card img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 4px solid rgba(47, 164, 215, 0.28);
}

.gallery-grid {
  margin-top: 30px;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  background: var(--surface-soft);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-info {
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(31, 36, 48, 0.8));
}

.feature-card {
  position: relative;
  min-height: 520px;
}

.feature-card img {
  width: 68%;
  height: 430px;
}

.feature-panel {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 58%;
  background: var(--blue);
  color: var(--white);
  padding: 40px 34px;
}

.feature-panel h2 {
  font-size: clamp(2rem, 3vw, 3.5rem);
}

.feature-copy {
  align-self: start;
  padding-top: 32px;
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
}

.mission-grid ul li {
  margin-bottom: 12px;
}

.quality-stage {
  min-height: 560px;
}

.quality-shape {
  width: 100%;
  max-width: 920px;
  height: 320px;
  left: 0;
  bottom: 40px;
}

.quality-image {
  position: absolute;
  left: 36px;
  top: 0;
  width: min(100%, 710px);
  height: 420px;
}

.quality-card {
  right: 0;
  top: 180px;
  width: min(100%, 360px);
}

.footer {
  padding-top: 72px;
}

.contact-form {
  display: grid;
  gap: 26px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  color: var(--white);
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

.contact-info h2 {
  text-transform: uppercase;
}

.socials {
  display: flex;
  gap: 16px;
  margin: 20px 0 28px;
}

.socials a {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.socials a img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.contact-info p {
  margin: 8px 0;
  font-size: 1.55rem;
}

.footer-bottom {
  background: var(--footer-bottom);
  text-align: center;
  padding: 22px 16px;
  font-size: 0.9rem;
}

body[dir="rtl"] .hero-copy,
body[dir="rtl"] .feature-copy,
body[dir="rtl"] .about-card,
body[dir="rtl"] .quality-card,
body[dir="rtl"] .contact-form,
body[dir="rtl"] .contact-info,
body[dir="rtl"] .section-heading,
body[dir="rtl"] .band-copy {
  text-align: right;
}

body[dir="rtl"] .bullet-list,
body[dir="rtl"] .mission-grid ul {
  padding-right: 20px;
  padding-left: 0;
}

body[dir="rtl"] .nav {
  flex-direction: row-reverse;
}

body[dir="rtl"] .nav-links,
body[dir="rtl"] .nav-actions,
body[dir="rtl"] .socials {
  flex-direction: row-reverse;
}

@media (max-width: 980px) {
  .hero-grid,
  .feature-grid,
  .footer-grid,
  .highlight-grid,
  .mission-grid,
  .services-grid,
  .testimonials-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .appointment-form {
    grid-template-columns: 1fr;
  }

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

  .nav-links {
    position: absolute;
    top: 68px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    background: var(--blue);
    padding: 20px 24px 28px;
  }

  .nav-actions {
    margin-left: auto;
  }

  body[dir="rtl"] .nav-actions {
    margin-right: auto;
    margin-left: 0;
  }

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

  .menu-toggle {
    display: block;
  }

  .about-stage,
  .quality-stage,
  .feature-card {
    min-height: auto;
  }

  .about-image-wrap,
  .about-card,
  .quality-image,
  .quality-card,
  .feature-panel {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    bottom: auto;
    width: 100%;
  }

  .about-image-wrap,
  .quality-image {
    height: auto;
  }

  .about-card,
  .quality-card {
    margin-top: -24px;
    padding: 28px;
  }

  .feature-card img {
    width: 100%;
    height: auto;
  }

  .feature-panel {
    margin-top: -20px;
  }

  .shape-top,
  .shape-bottom,
  .quality-shape {
    display: none;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 56px 0;
  }

  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .topbar .nav {
    min-height: 60px;
  }

  .nav-actions {
    gap: 8px;
  }

  .utility-btn {
    min-width: 68px;
    height: 36px;
    font-size: 0.85rem;
  }

  .hero-media img {
    min-height: 340px;
  }

  .about-card,
  .quality-card,
  .feature-panel,
  .service-card {
    padding: 22px;
  }

  .contact-info p {
    font-size: 1.2rem;
  }
}
