:root {
  --gold1: #ececeb;
  --gold2: #ececeb;
  --dark: #000000;
  --text: #ffffff;
  --muted: #d6d6d6;
  --card: #0f0f0f;
  --card2: #111111;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Cairo', 'Open Sans', sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.7;
}

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

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.topbar {
  background: #000;
  border-bottom: 1px solid #1c1c1c;
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}

.topbar__left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.logo-sm {
  width: 70px;
}

.logo-lg {
  width: 150px;
  margin-bottom: 12px;
}

.lab-name {
  color: var(--gold1);
}

.hero {
  background: #050505;
  padding: 60px 0;
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  align-items: center;
}

.hero__text h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--gold1);
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 44px);
}

.hero__text p {
  margin: 0 0 14px;
  color: var(--muted);
}

.highlight {
  color: var(--gold2);
}

.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.trust {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.trust span {
  background: rgba(236, 236, 235, 0.12);
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--gold1);
  font-weight: 700;
  border: 1px solid rgba(236, 236, 235, 0.25);
}

.hero__form-card {
  background: var(--card);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
}

.hero__form-card h3 {
  margin: 0 0 12px;
  color: var(--gold1);
}

.hero__form-card form {
  display: grid;
  gap: 12px;
}

.hero__form-card input,
.hero__form-card select {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #222;
  font-size: 15px;
  background: #0b0b0b;
  color: var(--text);
}

.hero__form-card input::placeholder,
.hero__form-card select {
  color: #bbb;
}

.hero__form-card small {
  color: #888;
}

.section {
  padding: 70px 0;
  background: #000;
}

.section.alt {
  background: #080808;
}

.section__head {
  text-align: center;
  margin-bottom: 32px;
}

.section__head h2 {
  margin: 0 0 8px;
  color: var(--gold1);
  font-size: 28px;
}

.section__head p {
  margin: 0;
  color: #cfcfcf;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  background: var(--card2);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.6);
}

.card__icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.card h3 {
  margin: 0 0 8px;
  color: var(--text);
}

.card p {
  margin: 0;
  color: #d0d0d0;
}

.cases-slider,
.testimonial-slider {
  background: var(--card2);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  position: relative;
  overflow: hidden;
}

.case-window {
  overflow: hidden;
  border-radius: 12px;
}

.case-track {
  display: flex;
  gap: 18px;
  min-height: 240px;
  transition: transform 0.6s ease;
  direction: ltr;
}

.case-track.no-transition {
  transition: none;
}

.case-slide {
  flex: 0 0 100%;
  padding: 4px;
  cursor: zoom-in;
}

.case-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  background: #000;
}

.case-controls {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 8px;
  transform: translateY(-50%);
  pointer-events: none;
}

.case-nav {
  pointer-events: auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(236, 236, 235, 0.45);
  background: rgba(0, 0, 0, 0.72);
  color: var(--gold1);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.case-nav:hover {
  transform: scale(1.08);
  background: rgba(0, 0, 0, 0.9);
}

.slides {
  position: relative;
  min-height: 220px;
}

.testimonial {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.testimonial.active {
  opacity: 1;
  transform: translateY(0);
  position: absolute;
}

.testimonial img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.testimonial p {
  margin: 0 0 10px;
  color: #f1f1f1;
}

.testimonial .meta {
  color: #cfcfcf;
  font-weight: 700;
}

.dots,
.case-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 12px;
  flex-wrap: wrap;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--gold2);
  background: transparent;
  cursor: pointer;
}

.dot.active {
  background: var(--gold2);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.stat-card {
  background: var(--card2);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

.stat-number {
  font-size: 34px;
  font-weight: 800;
  color: var(--gold1);
}

.stat-card p {
  margin: 6px 0 0;
  color: #d2d2d2;
}

.branch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.branch-card {
  background: var(--card2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
}

.branch-img {
  height: 200px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #050505;
}

.branch-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.branch-body h3 {
  margin: 0;
  color: var(--gold1);
}

.branch-body p {
  margin: 0;
  color: #d4d4d4;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.pill {
  padding: 10px 14px;
  background: rgba(236, 236, 235, 0.12);
  border: 1px solid rgba(236, 236, 235, 0.35);
  border-radius: 12px;
  font-weight: 700;
  color: var(--gold1);
}

.cta-final {
  background: linear-gradient(120deg, #111111, #1a1a1a);
  color: #f8f8f8;
  padding: 48px 0;
  border-top: 1px solid #222;
}

.cta-final__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
  gap: 16px;
}

.cta-final h2 {
  margin: 0 0 6px;
  font-size: 26px;
  color: var(--gold1);
}

.cta-final p {
  margin: 0;
  color: #e0e0e0;
}

.cta-final__buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer {
  background: #000;
  color: #cfcfcf;
  padding-top: 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  padding-bottom: 20px;
}

.footer__grid h4 {
  margin: 0 0 8px;
  color: var(--gold1);
}

.footer__grid p {
  margin: 0 0 6px;
  color: #d6d6d6;
}

.footer__bottom {
  border-top: 1px solid #1a1a1a;
  padding: 12px 0;
  text-align: center;
  color: #888;
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(236, 236, 235, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0b0b0b;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.icon-img {
  width: 28px;    
  height: 28px;
  object-fit: contain;
  display: inline-block;
  border: none;
}

.social-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.45);
  border-color: var(--gold1);
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

body.modal-open {
  overflow: hidden;
}

.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.image-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  position: relative;
  max-width: min(900px, 92vw);
  max-height: 90vh;
}

.image-modal img {
  width: 100%;
  height: auto;
  max-height: 90vh;
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  background: #000;
}

.modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--gold1);
  color: #111;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

.modal-close:hover {
  background: var(--gold2);
}

.btn,
.btn-outline,
.btn-ghost,
.link {
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn {
  background: linear-gradient(120deg, var(--gold1), var(--gold2));
  color: #111;
  padding: 12px 18px;
  border-radius: 12px;
  border: none;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
}

.btn-outline {
  border: 2px solid var(--gold1);
  background: #000;
  color: var(--gold1);
  padding: 11px 17px;
  border-radius: 12px;
}

.btn-ghost {
  padding: 10px 14px;
  border-radius: 10px;
  /*border: 1px solid #2a2a2a;*/
  color: var(--text);
  background: #0c0c0c;
}

.link {
  color: var(--gold1);
}

.link:hover {
  color: var(--gold2);
}

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

  .topbar__content {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .hero__cta {
    width: 100%;
  }

  .btn,
  .btn-outline,
  .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  .cards-grid,
  .before-after-grid,
  .testimonial-grid,
  .team-grid,
  .stats-grid,
  .partners-grid,
  .branch-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-slider,
  .cases-slider {
    min-height: 240px;
  }

  .case-controls {
    display: none;
  }
}

.animate {
  opacity: 0;
  transform: translateY(44px) scale(0.93);
  transition: opacity 0.9s cubic-bezier(0.23, 1, 0.32, 1), transform 0.9s cubic-bezier(0.23, 1, 0.32, 1);
}

.animate.inview {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.delay-1 {
  transition-delay: 0.05s;
}

.delay-2 {
  transition-delay: 0.12s;
}

.delay-3 {
  transition-delay: 0.2s;
}

.delay-4 {
  transition-delay: 0.3s;
}

.float {
  animation: floaty 4.5s ease-in-out infinite;
}

@keyframes floaty {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }

  100% {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}