
/* ==== Global Reset ==== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #0f172a;
  background-color: #f3f4f6;
}

/* ==== Layout ==== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==== Header ==== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.45);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo-mark {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 0.9rem;
  background: radial-gradient(circle at 20% 20%, #22c55e, #0ea5e9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ecfdf5;
  font-weight: 700;
  font-size: 0.9rem;
}

.logo-text-main {
  font-weight: 700;
  font-size: 1.12rem;
  color: #e5f3ff;
}

.logo-text-sub {
  font-size: 0.82rem;
  color: #9ca3af;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav a {
  text-decoration: none;
  font-size: 0.9rem;
  color: #e5e7eb;
  padding-bottom: 0.1rem;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav a:hover {
  color: #a5f3fc;
  border-color: rgba(56, 189, 248, 0.7);
}

.nav a.active {
  color: #22c55e;
  border-color: #22c55e;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 0.16rem 0.55rem;
}

.lang-switch a {
  text-decoration: none;
  color: #e5e7eb;
}

.lang-switch a.active {
  font-weight: 600;
  color: #22c55e;
}

/* Mobile nav */
.menu-toggle {
  display: none;
  border: none;
  background: none;
  color: #e5e7eb;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 820px) {
  .nav {
    position: absolute;
    inset: 56px 0 auto 0;
    background-color: rgba(15, 23, 42, 0.98);
    flex-direction: column;
    padding: 0.75rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.5);
    display: none;
  }
  .nav.open {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
}

/* ==== Hero ==== */
.hero {
  background: radial-gradient(circle at top left, #d1fae5 0, #e0f2fe 40%, #eef2ff 80%);
  padding: 3.2rem 0 3rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
  gap: 2.4rem;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #0ea5e9;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: 2.15rem;
  line-height: 1.2;
  color: #0f172a;
  margin-bottom: 0.6rem;
}

.hero-subtitle {
  font-size: 1rem;
  color: #4b5563;
  max-width: 32rem;
  margin-bottom: 0.8rem;
}

.hero-note {
  font-size: 0.9rem;
  color: #6b7280;
  margin-top: 0.4rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.65rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.1s ease, color 0.1s ease;
}

.btn-primary {
  background: linear-gradient(to right, #16a34a, #22c55e);
  color: #ecfdf5;
  box-shadow: 0 12px 30px rgba(22, 163, 74, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(22, 163, 74, 0.6);
}

.btn-outline {
  background-color: rgba(255, 255, 255, 0.9);
  color: #0369a1;
  border: 1px solid rgba(148, 163, 184, 0.8);
}

.btn-outline:hover {
  background-color: #e0f2fe;
}

.hero-ar {
  direction: rtl;
  text-align: right;
  font-size: 0.92rem;
  color: #111827;
  margin-top: 0.8rem;
}

.hero-image-frame {
  border-radius: 1.4rem;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.55);
  background-color: #020617;
}

.hero-image-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* ==== Sections ==== */
.section {
  padding: 3rem 0 2.8rem;
}

.section-header {
  margin-bottom: 1.7rem;
}

.section-title {
  font-size: 1.55rem;
  margin-bottom: 0.35rem;
  color: #0f172a;
}

.section-subtitle {
  font-size: 0.95rem;
  color: #6b7280;
}

.section-header.rtl {
  direction: rtl;
  text-align: right;
}

/* ==== Cards Grid ==== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-image-frame {
    max-width: 420px;
    margin: 0 auto;
  }
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card {
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 1.15rem 1.15rem 1rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.4rem;
}

.card p {
  font-size: 0.9rem;
  color: #4b5563;
}

.card ul {
  margin-top: 0.4rem;
  padding-left: 1.15rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.card .tagline {
  font-size: 0.82rem;
  color: #16a34a;
  margin-top: 0.3rem;
}

/* ==== Two-column blocks ==== */
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

@media (max-width: 960px) {
  .two-col {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==== Check list ==== */
.list-check {
  list-style: none;
  padding-left: 0;
}

.list-check li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.9rem;
  color: #374151;
  margin-bottom: 0.45rem;
}

.list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #16a34a;
  font-size: 0.9rem;
}

/* ==== Testimonials ==== */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.testimonial {
  background-color: #ffffff;
  border-radius: 0.9rem;
  padding: 0.95rem;
  border: 1px solid #e5e7eb;
  font-size: 0.86rem;
  color: #374151;
}

.testimonial span {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: #6b7280;
}

@media (max-width: 960px) {
  .testimonials {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==== Contact ==== */
.contact-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

@media (max-width: 960px) {
  .contact-wrapper {
    grid-template-columns: minmax(0, 1fr);
  }
}

form {
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 1.25rem 1.3rem 1.35rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.form-group {
  margin-bottom: 0.9rem;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.18rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 0.6rem;
  border: 1px solid #d1d5db;
  background-color: #f9fafb;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #0ea5e9;
  background-color: #ffffff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-info {
  background: radial-gradient(circle at top left, #dcfce7, #e0f2fe);
  border-radius: 1rem;
  padding: 1.2rem 1.1rem;
  border: 1px solid #bbf7d0;
  font-size: 0.9rem;
  color: #064e3b;
}

/* ==== Footer ==== */
.site-footer {
  margin-top: 2.5rem;
  padding: 1.7rem 0 1.4rem;
  background-color: #020617;
  color: #e5e7eb;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-links a {
  text-decoration: none;
  color: #9ca3af;
}

.footer-links a:hover {
  color: #e5e7eb;
}

.footer-ar {
  direction: rtl;
  text-align: right;
  color: #9ca3af;
}

/* Utilities */
.mt-xs { margin-top: 0.35rem; }
.mt-sm { margin-top: 0.6rem; }
.mt-md { margin-top: 1rem; }
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.78rem;
  background-color: #ecfdf5;
  color: #166534;
}
