:root {
  --white: #ffffff;
  --bg-soft: #f7faf8;
  --green: #1fa463;
  --green-dark: #148a52;
  --green-light: #e6f7ee;
  --text: #1c2521;
  --text-muted: #5b6b63;
  --border: #e6ece8;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(31, 164, 99, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.7;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

a { text-decoration: none; color: inherit; }

.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  direction: ltr;
}

.logo .accent { color: var(--green); }

.navbar nav { display: flex; gap: 28px; }

.navbar nav a {
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.navbar nav a:hover { color: var(--green-dark); }

/* Hero */
.hero {
  display: flex;
  align-items: center;
  gap: 56px;
  padding: 88px 24px 80px;
  flex-wrap: wrap;
}

.hero-photo {
  flex: 0 0 280px;
  display: flex;
  justify-content: center;
}

.hero-photo img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, var(--green-light), var(--white) 70%);
  box-shadow: 0 0 0 6px var(--white), 0 0 0 9px var(--green-light), var(--shadow);
}

.hero-text { flex: 1 1 380px; }

.hero-text h1 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 8px;
  direction: ltr;
  text-align: right;
}

.hero-text .subtitle {
  color: var(--green-dark);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 18px;
}

.hero-text .desc {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: var(--white);
  padding: 13px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-family: inherit;
  font-size: 1rem;
  transition: background 0.2s, transform 0.2s;
}

.btn:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--green-dark);
  border: 1.5px solid var(--green);
}

.btn-outline:hover {
  background: var(--green-light);
  transform: translateY(-1px);
}

/* Services */
.services {
  padding: 64px 24px 80px;
  background: var(--bg-soft);
  border-radius: 24px;
  margin: 0 auto 72px;
}

.services h2, .contact h2 {
  text-align: center;
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 44px;
  position: relative;
}

.services h2::after, .contact h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  background: var(--green);
  border-radius: 999px;
  margin: 14px auto 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: var(--green-light);
}

.card-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-light);
  color: var(--green-dark);
  border-radius: 12px;
  margin-bottom: 18px;
}

.card-icon svg { width: 24px; height: 24px; }

.card h3 {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Contact */
.contact {
  text-align: center;
  padding: 20px 24px 96px;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--green-light);
  color: var(--green-dark);
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 999px;
  transition: background 0.2s, transform 0.2s, color 0.2s;
}

.contact-item:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-1px);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-inner a {
  color: var(--green-dark);
  font-weight: 600;
}

.footer-inner a:hover { text-decoration: underline; }

/* Static/legal pages */
.legal {
  padding: 64px 24px 96px;
  max-width: 760px;
}

.legal h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.legal .updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 36px;
}

.legal h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-dark);
  margin: 32px 0 10px;
}

.legal p, .legal li {
  color: var(--text-muted);
  font-size: 1rem;
}

.legal ul {
  padding-inline-start: 22px;
  margin-top: 8px;
}

.legal li { margin-bottom: 6px; }

.legal a { color: var(--green-dark); font-weight: 600; }
.legal a:hover { text-decoration: underline; }

.back-link {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--green-dark);
  font-weight: 600;
}

@media (max-width: 640px) {
  .hero { flex-direction: column; text-align: center; padding-top: 56px; }
  .hero-text h1 { text-align: center; }
  .hero-text .desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-photo img { width: 220px; height: 220px; }
  .footer-inner { flex-direction: column; }
}
