:root {
  --primary: #038d48;
  --secondary: #bad6b6;
  --text-dark: #1e2a24;
  --text-muted: #4d6b5a;
  --white: #ffffff;
  --shadow: 0 12px 32px rgba(3, 141, 72, 0.08);
  --shadow-soft: 0 24px 60px rgba(3, 141, 72, 0.12);
  --radius: 18px;
  --max-width: 1120px;
  --transition: 0.3s ease;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Tajawal", sans-serif;
  background: linear-gradient(180deg, #f4f9f4 0%, var(--secondary) 100%);
  color: var(--text-dark);
  line-height: 1.65;
  letter-spacing: 0.01em;
  transition: background var(--transition), color var(--transition);
}

body.lang-ar {
  direction: rtl;
  text-align: right;
}

header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

body.lang-ar .nav {
  flex-direction: row-reverse;
}

.nav-toggle {
  border: none;
  background: rgba(3, 141, 72, 0.08);
  color: var(--text-dark);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 1rem;
  font-weight: 600;
  display: none;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.nav-toggle[aria-expanded="true"] {
  background: var(--primary);
  color: var(--white);
}

.brand {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-weight: 500;
}

body.lang-ar .nav-links {
  flex-direction: row-reverse;
}

.nav-links a {
  color: var(--text-dark);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--primary);
  background: rgba(3, 141, 72, 0.08);
}

.language-toggle {
  display: inline-flex;
  gap: 8px;
  background: rgba(3, 141, 72, 0.08);
  padding: 6px;
  border-radius: 999px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-dark);
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform 0.2s ease;
}

.lang-btn.active {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 10px 25px rgba(3, 141, 72, 0.2);
}

.lang-btn:hover:not(.active) {
  transform: translateY(-1px);
}

.locale-inline,
.locale-block {
  display: none;
}

body.lang-en .locale-inline[data-lang="en"],
body.lang-ar .locale-inline[data-lang="ar"] {
  display: inline;
}

body.lang-en .locale-block[data-lang="en"],
body.lang-ar .locale-block[data-lang="ar"] {
  display: block;
}

main {
  padding: 56px 24px 0;
}

section {
  max-width: var(--max-width);
  margin: 0 auto 72px;
  background: var(--white);
  padding: 52px 56px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

section::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top right, rgba(3, 141, 72, 0.08), rgba(3, 141, 72, 0));
  pointer-events: none;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--primary);
}

h2 {
  font-size: 2rem;
  margin: 0 0 18px;
}

.subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(3, 141, 72, 0.12);
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 22px;
}

.hero-grid {
  display: grid;
  gap: 36px;
}

.hero-slider {
  padding: 44px;
  border-radius: var(--radius);
  background: linear-gradient(140deg, rgba(3, 141, 72, 0.12), rgba(3, 141, 72, 0.05));
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.3), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(3, 141, 72, 0.16), transparent 55%);
  opacity: 0.6;
  z-index: -1;
}

.slides-container {
  display: none;
  position: relative;
}

.lang-en .slides-container[data-lang="en"],
.lang-ar .slides-container[data-lang="ar"] {
  display: block;
}

.head-content {
  display: none;
  position: relative;
}

.lang-en .head-content[data-lang="en"],
.lang-ar .head-content[data-lang="ar"] {
  display: block;
}

.slide {
  display: none;
  color: var(--text-dark);
}

.slide.active {
  display: block;
  animation: fadeInUp 0.8s ease forwards;
}

.slide h1 {
  font-size: 2.8rem;
  margin: 0 0 18px;
  color: var(--primary);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.slide p {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin: 0 0 28px;
  max-width: 520px;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.cta {
  padding: 14px 28px;
  background: var(--primary);
  color: var(--white);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(3, 141, 72, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cta.secondary {
  background: rgba(3, 141, 72, 0.08);
  color: var(--primary);
  border: 1.5px solid var(--primary);
  box-shadow: none;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(3, 141, 72, 0.22);
}

.slider-dots {
  margin-top: 32px;
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(3, 141, 72, 0.25);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.dot.active {
  background: var(--primary);
  transform: scale(1.1);
}

.hero-card {
  animation: floatIn 0.9s ease forwards;
}

.hero-card .pill {
  margin-bottom: 16px;
}

.card {
  background: #f9fcf9;
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid rgba(3, 141, 72, 0.08);
  box-shadow: inset 0 0 0 1px rgba(3, 141, 72, 0.04);
  position: relative;
  z-index: 1;
}

.card h3 {
  margin-top: 0;
  color: var(--text-dark);
  font-size: 1.26rem;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid.two-column {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
}

.legal-content ul {
  padding-left: 20px;
  margin: 0 0 16px;
}

body.lang-ar .legal-content ul {
  padding-left: 0;
  padding-right: 20px;
}

form {
  display: grid;
  gap: 20px;
}

label {
  font-weight: 600;
  color: var(--text-dark);
  display: block;
  margin-bottom: 6px;
}

input,
textarea {
  width: 100%;
  padding: 15px 16px;
  border-radius: 14px;
  border: 1px solid rgba(3, 141, 72, 0.26);
  background: #f6fbf7;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(3, 141, 72, 0.2);
}

footer {
  max-width: var(--max-width);
  margin: 0 auto;
  color: var(--text-muted);
  text-align: center;
  padding: 0;
}

[data-animate] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: stretch;
  }
}

@media (max-width: 768px) {
  main {
    padding: 40px 18px 0;
  }

  section {
    padding: 40px 28px;
  }

  .hero-slider {
    padding: 36px 28px;
  }

  .slide h1 {
    font-size: 2.2rem;
  }

  .nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    width: 100%;
    flex-direction: column;
    gap: 10px;
    display: none;
    border-top: 1px solid rgba(3, 141, 72, 0.1);
    padding-top: 12px;
  }

  .nav-links.open {
    display: flex;
  }

  .language-toggle {
    align-self: stretch;
  }

  .cta-group {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 600px) {
  section {
    padding: 34px 24px;
  }
}

.video-container video {
  width: 100%;
  filter: brightness(0.5);
  height: 100vh;
  object-fit: cover;
}

.video-container {
  position: relative;
}

.head-content {
  position: absolute;
  z-index: 1;
  text-align: center;
  justify-content: center;
  right: 0;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  color: #fff;
  max-width: 600px;
  padding: 0 20px;
  line-height: 1.6;
  font-size: 1.2rem;
  font-weight: 400;
  font-family: "Tajawal", sans-serif;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.head-content-title {
  font-size: 3rem;
}

.head-content-description {
  font-size: 1.5rem;
}

a {
  color: var(--text-dark);
  text-decoration: none;
}

.store {
  margin: 1%;
}

.page-hero {
  text-align: center;
  padding: 60px 24px 30px;
}

.page-hero h1 {
  font-size: 2.5rem;
}

.page-section {
  max-width: var(--max-width);
  background: var(--white);
  margin: 0 auto 48px;
  padding: 48px 56px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.page-section h2 {
  color: var(--text-dark);
}

.page-section p {
  color: var(--text-muted);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--primary);
  margin-top: 18px;
}

.status-message {
  padding: 18px 24px;
  border-radius: var(--radius);
  background: rgba(3, 141, 72, 0.08);
  color: var(--text-dark);
  margin-bottom: 24px;
  border: 1px solid rgba(3, 141, 72, 0.18);
}

