:root {
  --black: #111;
  --white: #fff;
  --gray: #efefef;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

body.rtl {
  font-family: "Noto Sans Arabic", "Noto Nastaliq Urdu", serif;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #ddd;
  backdrop-filter: blur(2px);
}

.navbar {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  width: 72px;
  height: 72px;
  /* border: 1px solid #ddd; */
  object-fit: cover;
  background: #fff;
  /* padding: 2px; */
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--black);
  font-size: 0.92rem;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover {
  border-color: var(--black);
}

.lang-switch select {
  border: 1px solid var(--black);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  background: var(--white);
}

.menu-btn {
  display: none;
  border: 1px solid var(--black);
  background: var(--white);
  border-radius: 10px;
  padding: 0.3rem 0.55rem;
}

.hero {
  text-align: center;
  position: relative;
}

.dot-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#000 0.6px, transparent 0.6px);
  background-size: 14px 14px;
  opacity: 0.08;
  z-index: -1;
}

.hero-logo {
  width: min(230px, 70vw);
  /* border: 1px solid #ddd; */
  border-radius: 50%;
  padding: 0.35rem;
  /* background: var(--white); */
  animation: floatLogo 4.2s ease-in-out infinite;
}

h1 {
  margin-top: 1.7rem;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
}

.tagline {
  font-size: 1rem;
  margin: 0.2rem 0 1.5rem;
}

h2 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  margin-bottom: 1.6rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.card {
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 1rem;
  background: #fff;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #bbb;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
}

.card h3 {
  font-size: 0.95rem;
  margin: 0.6rem 0 0;
  font-weight: 600;
}

.icon-wrap {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-wrap svg {
  width: 26px;
  height: 26px;
  stroke: var(--black);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn {
  display: inline-block;
  border: 1px solid var(--black);
  border-radius: 999px;
  color: var(--black);
  text-decoration: none;
  background: var(--white);
  padding: 0.58rem 1rem;
  transition: all 0.2s ease;
  font-size: 0.92rem;
}

.btn:hover {
  background: var(--black);
  color: var(--white);
}

.btn-small {
  font-size: 0.86rem;
  padding: 0.45rem 0.86rem;
}

.about-text {
  max-width: 700px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.about-item {
  border: 1px solid #ddd;
  border-radius: 18px;
  padding: 1rem 1rem 0.95rem;
  background: linear-gradient(180deg, #fff, #fcfcfc);
  position: relative;
  overflow: hidden;
}

.about-item::before {
  content: "";
  position: absolute;
  top: -22px;
  right: -22px;
  width: 70px;
  height: 70px;
  background: radial-gradient(#000 0.6px, transparent 0.6px);
  background-size: 8px 8px;
  opacity: 0.12;
}

.about-item h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.about-item p {
  margin: 0;
  font-size: 0.92rem;
}

.contact-box {
  border: 1px solid #ddd;
  border-radius: 22px;
  padding: 1.2rem;
  /* max-width: 520px; */
}

.call-link {
  color: var(--black);
  text-decoration: none;
  border-bottom: 1px solid var(--black);
}

.social-links {
  margin-top: 1rem;
}

.footer-bar {
  margin-top: 2rem;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  position: relative;
  overflow: hidden;
}

.footer-content {
  padding: 1.1rem 0;
  text-align: center;
  font-size: 0.86rem;
}

.footer-content p {
  margin: 0;
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 50px;
  height: 50px;
  border: 1px solid var(--black);
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--black);
  background: var(--white);
  font-weight: 700;
}

.whatsapp-float:hover {
  color: var(--white);
  background: var(--black);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

body.rtl {
  direction: rtl;
  text-align: right;
}

body.rtl .navbar {
  flex-direction: row-reverse;
}

body.rtl .whatsapp-float {
  left: 20px;
  right: auto;
}

.dot-gradient {
  position: absolute;
  width: 320px;
  height: 320px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.22;
  background:
    radial-gradient(circle at center, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.02) 45%, transparent 70%),
    radial-gradient(#000 0.65px, transparent 0.65px);
  background-size: auto, 12px 12px;
}

.dot-gradient.top {
  width: 100vw;
  top: -120px;
  left :-100px;
  opacity: 0.1;
  height: 80vh;
}

.dot-gradient.bottom {
  bottom: -180px;
  left: -110px;
}

body.rtl .dot-gradient.top {
  right: auto;
  left: -120px;
}

body.rtl .dot-gradient.bottom {
  left: auto;
  right: -110px;
}

body.rtl .about-item::before {
  right: auto;
  left: -22px;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@media (max-width: 840px) {
  .menu-btn {
    display: inline-block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 69px;
    left: 4%;
    right: 4%;
    border: 1px solid #ddd;
    border-radius: 16px;
    background: #fff;
    padding: 0.8rem;
    flex-direction: column;
    align-items: flex-start;
  }

  body.rtl .nav-links {
    align-items: flex-end;
  }

  .nav-links.open {
    display: flex;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* Gallery Styles */
.gallery-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.main-image {
  position: relative;
  text-align: center;
}

.main-image img {
  max-width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.main-image img:hover {
  transform: scale(1.02);
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 15px;
  font-size: 24px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s ease;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow:hover {
  background: rgba(0, 0, 0, 0.8);
}

.left-arrow {
  left: 5px;
}

.right-arrow {
  right: 5px;
}

.thumbnails {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.thumbnails img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.thumbnails img:hover,
.thumbnails img.active {
  opacity: 1;
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .main-image img {
    height: 300px;
  }

  .thumbnails {
    justify-content: center;
  }

  .thumbnails img {
    width: 60px;
    height: 45px;
  }

  .arrow {
    padding: 10px;
    font-size: 18px;
    width: 40px;
    height: 40px;
  }
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #bbb;
}
