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

html,
body {
  height: 100%;
}

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

/* ========== Helpers ========== */

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========== Header & Nav ========== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 250, 252, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e8f0;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.logo {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  background: radial-gradient(circle at 0 0, #22c55e, #0f766e);
  color: #f9fafb;
}

.name {
  font-weight: 600;
  font-size: 1rem;
  color: #0f172a;
}

/* Nav (desktop default) */

.nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.nav a {
  text-decoration: none;
  color: #475569;
  font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav a:hover {
  color: #0f172a;
  border-color: #0f766e;
}

.nav a.active {
  border-color: #0f766e;
  color: #0f172a;
  font-weight: 600;
}

/* Hidden checkbox for mobile toggle */
#nav-toggle,
.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Hamburger button (hidden by default, يظهر في الموبايل) */
.nav-toggle-btn {
  display: none;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
}

/* ========== Hero ========== */

.hero {
  padding: 4.5rem 0 3.5rem;
  background: radial-gradient(circle at top left, #e0f2fe, #f8fafc);
}

.hero .container {
  max-width: 760px;
}

.hero h1 {
  font-size: clamp(2rem, 3vw + 1rem, 2.7rem);
  line-height: 1.15;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1rem;
  color: #475569;
  margin-bottom: 1.75rem;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f766e, #22c55e);
  color: #f9fafb;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 12px 30px rgba(15, 118, 110, 0.25);
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(15, 118, 110, 0.3);
  opacity: 0.96;
}

/* ========== Sections ========== */

.section {
  padding: 3.25rem 0;
}

.section h1,
.section h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 1.5rem;
}

/* ========== Card ========== */

.card {
  border-radius: 1rem;
  padding: 1.5rem 1.75rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.95rem;
  color: #4b5563;
  margin-bottom: 0.4rem;
}

.card a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #0f766e;
  text-decoration: none;
}

.card a:hover {
  text-decoration: underline;
}

/* ========== Generic text links in sections ========== */

.section p {
  font-size: 0.96rem;
  color: #4b5563;
  max-width: 720px;
  margin-bottom: 0.75rem;
}

.section a {
  color: #0f766e;
  text-decoration: none;
  font-weight: 500;
}

.section a:hover {
  text-decoration: underline;
}

/* ========== Footer ========== */

.site-footer {
  border-top: 1px solid #e2e8f0;
  padding: 1.75rem 0;
  background: #f8fafc;
  font-size: 0.85rem;
  color: #64748b;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.site-footer a {
  color: #0f766e;
  text-decoration: none;
}

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

/* ========== Responsive (mobile nav) ========== */

@media (max-width: 640px) {
  .header-inner {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }

  /* show hamburger */
  .nav-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* turn nav into dropdown */
  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 1.5rem 1rem;
    gap: 0.5rem;
  }

  .nav a {
    padding: 0.3rem 0;
    border-bottom: none;
  }

  .nav a.active {
    border-bottom: none;
  }

  /* open nav when checkbox is checked */
  #nav-toggle:checked + .nav-toggle-btn + .nav {
    display: flex;
  }
}