@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Roboto:wght@700;800&family=Noto+Sans+Arabic:wght@400;500;600&display=swap");

:root {
  --background: #ffffff;
  --foreground: #1c1b17;
  --muted-foreground: #6b6a63;
  --border: #e7e5e0;
  --primary: #15803d;
  --primary-hover: #166534;
  --primary-foreground: #ffffff;
  --emerald-accent: #6ee7b7;
  --radius: 0.625rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
}

html[lang="ar"],
.font-arabic {
  font-family: "Noto Sans Arabic", "Inter", sans-serif;
}

.font-heading {
  font-family: "Roboto", sans-serif;
}

a {
  color: inherit;
}

/* ─── Landing hero (index.html) ──────────────────────────────────────────── */

.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.45);
}

.hero__main {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

.hero__fao {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hero__fao img {
  height: 2.75rem;
  width: auto;
  filter: brightness(0) invert(1);
}

.hero__fao span {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.hero__title {
  margin-top: 2.5rem;
  font-family: "Roboto", sans-serif;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero__title .accent {
  color: var(--emerald-accent);
}

.hero__tagline-ar {
  direction: rtl;
  margin-top: 1rem;
  max-width: 36rem;
  font-size: 1.35rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
}

.hero__tagline-en {
  margin-top: 0.5rem;
  max-width: 28rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.hero__cta {
  margin-top: 2.25rem;
}

.btn-whatsapp {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3rem;
  border-radius: 999px;
  border: none;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.btn-whatsapp:hover {
  background: var(--primary-hover);
}

.btn-whatsapp svg {
  width: 1.25rem;
  height: 1.25rem;
}

.hero__reassurance {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  list-style: none;
  padding: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero__reassurance li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero__reassurance svg {
  width: 1rem;
  height: 1rem;
  color: var(--emerald-accent);
  flex-shrink: 0;
}

.hero__footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0 1.5rem 2rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.hero__footer a {
  text-decoration: none;
  transition: color 0.15s ease;
}

.hero__footer a:hover {
  color: #fff;
}

/* ─── Legal pages (privacy.html / terms.html) ────────────────────────────── */

.legal-header {
  border-bottom: 1px solid var(--border);
}

.legal-header__inner {
  margin: 0 auto;
  display: flex;
  max-width: 72rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}

.legal-header__brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.legal-header__brand img {
  height: 2.25rem;
  width: auto;
  flex-shrink: 0;
}

.legal-header__brand span {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.legal-header__back {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.15s ease;
}

.legal-header__back:hover {
  color: var(--foreground);
}

.legal-main {
  margin: 0 auto;
  max-width: 48rem;
  padding: 2.5rem 1rem 3.5rem;
}

.legal-main h1 {
  font-family: "Roboto", sans-serif;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}

.legal-title-ar {
  direction: rtl;
  margin: 0.25rem 0 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--muted-foreground);
}

.legal-updated {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.legal-intro {
  margin-top: 1.5rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.legal-intro-ar {
  direction: rtl;
  margin-top: 0.75rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.legal-sections {
  margin-top: 1rem;
}

.legal-section {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.legal-section:first-child {
  border-top: none;
}

.legal-block + .legal-block {
  margin-top: 1rem;
}

.legal-block h3 {
  font-family: "Roboto", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 0;
}

.legal-block p {
  margin: 0.5rem 0 0;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.legal-block ul {
  margin: 0.5rem 0 0;
  padding-inline-start: 1.25rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.legal-block--ar {
  direction: rtl;
}

.legal-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted-foreground);
}
