:root {
  --bg-dark: #0a0d13;
  --bg-card: #101723;
  --bg-light: #f3f5f7;
  --text-main: #f2f3f5;
  --text-dark: #12151a;
  --accent: #e0182d;
  --accent-soft: #ff4a5c;
  --border: #212a38;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Barlow", sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
}

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  background: rgba(7, 11, 18, 0.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.nav-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: min-height 180ms ease;
}

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

.top-nav .container {
  width: min(1280px, 96%);
}

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding-top: 92px;
  background-image:
    linear-gradient(115deg, rgba(5, 8, 13, 0.95) 0%, rgba(5, 8, 13, 0.72) 45%, rgba(5, 8, 13, 0.92) 100%),
    url("https://images.unsplash.com/photo-1486006920555-c77dcf18193c?auto=format&fit=crop&w=1800&q=80");
  background-size: cover;
  background-position: center;
}

.overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(224, 24, 45, 0.2), transparent 35%),
    radial-gradient(circle at 85% 80%, rgba(224, 24, 45, 0.15), transparent 35%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 4rem 0;
}

.lang-switch {
  display: inline-flex;
  gap: 0.5rem;
  margin-bottom: 0;
}

.lang-btn {
  border: 1px solid #a7afbc;
  background: rgba(11, 16, 26, 0.72);
  color: #f5f7fa;
  font: inherit;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
}

.lang-btn.active {
  border-color: var(--accent-soft);
  background: rgba(224, 24, 45, 0.22);
}

.brand-logo-circle {
  display: block;
  width: 74px;
  height: 74px;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}

.logo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  margin: 0;
  cursor: pointer;
  transition: transform 180ms ease;
}

.nav-logo {
  border-radius: 999px;
  transition: transform 180ms ease;
}

.top-nav.nav-scrolled {
  background: rgba(7, 11, 18, 0.96);
  border-bottom-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.top-nav.nav-scrolled .nav-inner {
  min-height: 60px;
}

.top-nav.nav-scrolled .nav-logo {
  transform: scale(0.9);
}

.top-nav.nav-scrolled .lang-btn {
  padding: 0.28rem 0.58rem;
}

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

.logo-btn:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
}

.brand-tag {
  display: inline-block;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  color: #fff;
  border: 1px solid var(--accent);
  padding: 0.4rem 0.7rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0 0 0.8rem 0;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.9rem);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.02em;
}

h2 {
  color: var(--accent-soft);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

h3 {
  font-size: 1.35rem;
  color: #fff;
}

.lead {
  font-size: 1.03rem;
  color: #d6d9df;
  margin: 0.75rem 0;
}

.section {
  padding: 4.5rem 0;
}

.section-dark {
  background: var(--bg-dark);
}

.section-light {
  background: var(--bg-light);
  color: var(--text-dark);
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-list li {
  padding: 0.72rem 0 0.72rem 1.9rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  font-size: 1.02rem;
}

.check-list li::before {
  content: "✔";
  color: var(--accent-soft);
  position: absolute;
  left: 0;
  top: 0.65rem;
  font-weight: 700;
}

.promise-card {
  background: linear-gradient(160deg, #131b28, #0e141f);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  padding: 1.2rem 1rem;
  border-radius: 10px;
}

.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  background: #141b26;
  color: #f2f3f5;
  border: 1px solid #293447;
  border-radius: 10px;
  padding: 1.1rem 1rem;
  border-left: 4px solid var(--accent);
}

.service-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.service-head h3 {
  margin: 0;
}

.service-icon {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--accent-soft);
  background: rgba(224, 24, 45, 0.18);
}

.service-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card p {
  margin: 0.45rem 0 0;
  color: #d8dde4;
}

.footer {
  border-top: 1px solid var(--border);
}

.contact-wrap {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}

.contact-item {
  margin: 0.35rem 0;
}

a {
  color: #fff;
}

.location-btn {
  color: #fff;
  background: rgba(224, 24, 45, 0.16);
  border: 1px solid var(--accent-soft);
  border-radius: 6px;
  padding: 0.35rem 0.6rem;
  margin-left: 0.35rem;
  cursor: pointer;
  font: inherit;
}

.location-btn:hover {
  background: rgba(224, 24, 45, 0.3);
}

.rtl .hero-content {
  text-align: right;
}

.rtl .check-list li {
  padding: 0.72rem 1.9rem 0.72rem 0;
}

.rtl .check-list li::before {
  left: auto;
  right: 0;
}

.rtl .location-btn {
  margin-left: 0;
  margin-right: 0.35rem;
}

.rtl .scroll-top-btn {
  right: auto;
  left: 1rem;
}

.rtl .nav-inner {
  flex-direction: row-reverse;
}

.mini-text {
  color: #c0c5ce;
  margin: 0;
  text-align: right;
  font-weight: 600;
}

.rights-text {
  color: #aeb5c2;
  margin: 0.2rem 0 0;
  text-align: right;
  font-size: 0.92rem;
}

.footer-logo-btn {
  margin-inline-start: auto;
}

.scroll-top-btn {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 2.9rem;
  height: 2.9rem;
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  background: linear-gradient(160deg, rgba(224, 24, 45, 0.92), rgba(144, 12, 27, 0.95));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  z-index: 1000;
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  animation: pulseFloat 1.9s ease-in-out infinite;
}

.scroll-top-btn svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes pulseFloat {
  0% {
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(224, 24, 45, 0.45);
  }
  70% {
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4), 0 0 0 10px rgba(224, 24, 45, 0);
  }
  100% {
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(224, 24, 45, 0);
  }
}

@media (max-width: 900px) {
  .grid-two,
  .services {
    grid-template-columns: 1fr;
  }
}

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

  .brand-logo-circle {
    width: 58px;
    height: 58px;
  }

  .nav-inner {
    min-height: 64px;
  }

  .scroll-top-btn {
    width: 2.6rem;
    height: 2.6rem;
    bottom: 0.85rem;
  }

  .hero {
    padding-top: 84px;
  }

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

  .mini-text {
    text-align: left;
  }

  .rights-text {
    text-align: left;
  }
}
