/* Basic reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #0b7d4a;
  --primary-soft: #e4f5eb;
  --primary-dark: #075b34;
  --accent: #ffb347;
  --bg: #f3f5fb;
  --text-main: #1f2933;
  --text-muted: #6b7280;
  --card-bg: #ffffff;
  --radius-lg: 1rem;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.15);
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #fef9c3 0, #f3f4ff 40%, #f9fafb 100%);
  color: var(--text-main);
  line-height: 1.6;
}

/* Hide language blocks depending on data-lang on body */
.lang-en,
.lang-ar {
  display: inline;
}

body[data-lang="ar"] .lang-en {
  display: none;
}

body[data-lang="en"] .lang-ar {
  display: none;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 92%;
  max-width: 1180px;
  margin: 0 auto;
}

/* Top bar */
.top-bar {
  background: rgba(15, 118, 110, 0.06);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.lang-toggle {
  display: flex;
  gap: 0.25rem;
}

.lang-toggle button {
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  padding: 0.1rem 0.6rem;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.lang-toggle button.active {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.5);
  color: var(--primary-dark);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
}

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.7rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  width: 50px;
  height: 50px;
  border-radius: 1.2rem;
  background: radial-gradient(circle at 20% 20%, #bbf7d0, #16a34a);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(22, 163, 74, 0.45);
}

.logo-mark span {
  color: #f9fafb;
  font-weight: 800;
  font-size: 1.05rem;
}

.logo-text h1 {
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}

.logo-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.88rem;
}

.main-nav a {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: #111827;
  transition: background 0.15s ease, transform 0.1s ease;
}

.main-nav a:hover {
  background: rgba(148, 163, 184, 0.18);
  transform: translateY(-1px);
}

/* Hero */
.hero {
  position: relative;
  padding: 2.8rem 0 2.4rem;
}

.hero-bg-shape {
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: -40px;
  width: 70%;
  height: 320px;
  background: radial-gradient(circle at top left, #bbf7d0 0, #22c55e 13%, transparent 60%);
  opacity: 0.18;
  pointer-events: none;
  z-index: -1;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.1fr);
  gap: 2.3rem;
  align-items: center;
}

.hero-text h2 {
  font-size: 2.1rem;
  margin-bottom: 0.75rem;
  color: var(--primary-dark);
}

.hero-text p {
  margin-bottom: 1.5rem;
  max-width: 34rem;
  color: #111827;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.12s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #f9fafb;
  box-shadow: 0 15px 40px rgba(22, 163, 74, 0.5);
}

.btn-primary:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: var(--text-main);
}

.btn-ghost:hover {
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(148, 163, 184, 0.45);
}

/* Hero stats */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.stat span:first-child {
  display: block;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-dark);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Hero side cards */
.hero-image {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.hero-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-card.secondary {
  opacity: 0.95;
}

.hero-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

/* Sections */
.section {
  padding: 2.4rem 0;
}

.section-alt {
  padding: 2.4rem 0;
  background: linear-gradient(180deg, #ffffff, #f9fafb);
}

.section-title {
  font-size: 1.4rem;
  color: var(--primary-dark);
  margin-bottom: 0.6rem;
}

.section-intro {
  max-width: 40rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.3rem;
  margin-top: 1.6rem;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.1rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.card h4 {
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Contact section */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.15fr);
  gap: 2rem;
  align-items: flex-start;
}

.contact-list {
  list-style: none;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.contact-list li {
  margin-bottom: 0.4rem;
}

/* Form */
.contact-form {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.2rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.09);
  border: 1px solid rgba(203, 213, 225, 0.9);
}

.form-row {
  display: flex;
  gap: 0.75rem;
}

.form-group {
  margin-bottom: 0.85rem;
  flex: 1;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(203, 213, 225, 1);
  font: inherit;
  background: #f9fafb;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.3);
  background: #ffffff;
}

/* Footer */
.site-footer {
  background: #020617;
  color: #e5e7eb;
  padding: 1.2rem 0 1.5rem;
  margin-top: 1.8rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: center;
  font-size: 0.85rem;
  text-align: center;
}

.footer-email {
  opacity: 0.85;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-image {
    order: -1;
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .top-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .hero-text h2 {
    font-size: 1.6rem;
  }
}
