* {
  box-sizing: border-box;
}

:root {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
  color: #111827;
  background: #ffffff;
  line-height: 1.6;
  --primary-color: #fb5256;
  --accent-color: #2596be;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: radial-gradient(circle at top left, #e0f7ff 0%, transparent 40%),
    radial-gradient(circle at bottom right, #ffffff 0%, transparent 30%),
    #ffffff;
}

body.rtl {
  direction: rtl;
}

.container {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.15rem;
}

.brand-logo {
  height: 2rem;
  width: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: #334155;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--accent-color);
}

.lang-switcher {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.lang-btn {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  background: white;
  color: #334155;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  min-width: 60px;
}

.lang-btn:hover {
  border-color: var(--accent-color);
  background: var(--primary-color);
  color: white;
}

.lang-btn.active,
.lang-btn:hover {
  border-color: var(--accent-color);
  background: var(--primary-color);
  transform: scale(1.05);
}

body.rtl .site-nav {
  flex-direction: row-reverse;
}

body.rtl .site-nav a {
  text-align: right;
}

body.rtl .hero-content > div,
body.rtl .section-header,
body.rtl .feature-card,
body.rtl .about-item,
body.rtl .contact-info,
body.rtl .contact-form,
body.rtl .footer-inner {
  text-align: right;
}

.hero {
  padding: 4rem 0 3rem;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(250px, 1fr);
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--primary-color);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1.05;
}

.hero-copy {
  max-width: 38rem;
  margin: 1.5rem 0;
  color: #475569;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.8rem;
  border: none;
  border-radius: 999px;
  background: var(--primary-color);
  color: white;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.primary-btn:hover,
.primary-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(251, 82, 86, 0.18);
}

.hero-card {
  padding: 2rem;
  border-radius: 28px;
  background: white;
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo {
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
}

.hero-card h2 {
  margin-top: 0;
}

.section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  margin: 0;
  font-size: 2rem;
}

.section-header p {
  margin: 0.75rem auto 0;
  max-width: 34rem;
  color: #64748b;
}

.feature-grid,
.about-grid,
.contact-grid {
  display: grid;
  gap: 1.5rem;
}

.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-card,
.contact-info,
.about-item {
  background: white;
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.feature-card h3,
.contact-info h3 {
  margin-top: 0;
}

.about-section .about-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.about-list {
  display: grid;
  gap: 1rem;
}

.about-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.about-item span {
  display: inline-flex;
  min-width: 2rem;
  min-height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eff6ff;
  color: var(--primary-color);
  font-weight: 700;
}

.contact-section .contact-grid {
  grid-template-columns: 1.35fr 0.85fr;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 1rem;
  background: white;
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.contact-form label {
  font-weight: 600;
  color: #334155;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  font: inherit;
  color: #0f172a;
  background: #f8fafc;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent-color);
  border-color: var(--accent-color);
}

.form-message {
  margin: 0;
  min-height: 1.5rem;
  color: #16a34a;
}

.gallery-section {
  background: #f1f5f9;
}

.gallery-carousel-wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.gallery-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 24px;
}

.gallery-slide {
  display: none;
  background: white;
  border-radius: 24px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
  animation: slideIn 0.4s ease-in-out;
}

.gallery-slide.active {
  display: block;
}

@keyframes slideIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.gallery-image {
  min-height: 400px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  filter: contrast(1.1) brightness(1.05) saturate(1.1);
}

.gallery-image-2 {
  background-image: url('images/galary-02.jpg');
  background-size: cover;
  background-position: center;
}

.gallery-image-3 {
  background-image: url('images/galary-03.jpg');
  background-size: cover;
  background-position: center;
}

.gallery-image-4 {
  background-image: url('images/galary-04.jpg');
  background-size: cover;
  background-position: center;
}

.gallery-image-5 {
  background-image: url('images/galary-05.jpg');
  background-size: cover;
  background-position: center;
}

.gallery-slide h3,
.gallery-slide p {
  margin: 0;
}

.gallery-slide h3 {
  font-size: 1.1rem;
  margin: 1.25rem 1.5rem 0.75rem;
}

.gallery-slide h3,
.gallery-slide p {
  margin: 0;
}

.gallery-slide h3 {
  font-size: 1.1rem;
  margin: 1.25rem 1.5rem 0.75rem;
}

.gallery-slide p {
  margin: 0 1.5rem 1.5rem;
  color: #475569;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #334155;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.gallery-nav:hover {
  background: white;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  color: var(--accent-color);
}

.gallery-nav-prev {
  left: 1rem;
}

.gallery-nav-next {
  right: 1rem;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.gallery-dot {
  width: 0.75rem;
  height: 0.75rem;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-dot.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: scale(1.15);
}

.gallery-dot:hover {
  border-color: var(--accent-color);
}

body.rtl .gallery-nav-prev {
  left: auto;
  right: 1rem;
}

body.rtl .gallery-nav-next {
  right: auto;
  left: 1rem;
}

.contact-info ul {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.contact-info li {
  color: #475569;
}

.site-footer {
  padding: 1.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
}

@media (max-width: 840px) {
  .hero-content,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .contact-section .contact-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .contact-form {
    order: 1;
  }

  .contact-info {
    order: 2;
  }

  .site-nav {
    justify-content: flex-end;
  }

  .hero {
    padding: 2.5rem 0 2rem;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 1.25rem, 1080px);
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.85rem 0;
  }

  .brand {
    justify-content: center;
  }

  .site-nav {
    justify-content: center;
    gap: 0.5rem 0.85rem;
  }

  .lang-switcher {
    justify-content: center;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-content {
    gap: 1.25rem;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }

  .hero-copy,
  .section-header p,
  .contact-info li,
  .about-item p {
    font-size: 0.95rem;
  }

  .primary-btn {
    width: 100%;
    max-width: 100%;
  }

  .section {
    padding: 2.25rem 0;
  }

  .hero-card,
  .feature-card,
  .contact-info,
  .about-item,
  .contact-form {
    padding: 1.25rem;
  }

  .contact-section .contact-grid {
    gap: 1rem;
  }

  .contact-form {
    width: 100%;
    max-width: 100%;
  }

  .gallery-image {
    min-height: 240px;
  }

  .gallery-nav {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.25rem;
  }

  .gallery-nav-prev {
    left: 0.5rem;
  }

  .gallery-nav-next {
    right: 0.5rem;
  }

  body.rtl .gallery-nav-prev {
    left: auto;
    right: 0.5rem;
  }

  body.rtl .gallery-nav-next {
    right: auto;
    left: 0.5rem;
  }

  .footer-inner {
    text-align: center;
  }
}
