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

:root {
  --green: #16a34a;
  --green-dark: #14532d;
  --green-light: #f0fdf4;
  --green-mid: #dcfce7;
  --blue: #2563eb;
  --blue-light: #eff6ff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow: 0 4px 16px rgba(0,0,0,.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --radius: 14px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Tajawal', 'Inter', sans-serif;
  background: #fff;
  color: var(--gray-900);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

/* ── Navbar ── */
.navbar {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 200;
}
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: .9rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--green);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.logo span { color: var(--gray-900); }
.nav-links {
  display: flex;
  gap: .25rem;
  align-items: center;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--gray-600);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  padding: .4rem .75rem;
  border-radius: 8px;
  transition: all .15s;
}
.nav-links a:hover { background: var(--gray-100); color: var(--green); }
.lang-btn {
  background: var(--green-light) !important;
  color: var(--green) !important;
  border: 1.5px solid #bbf7d0;
  font-weight: 700 !important;
  margin-inline-start: .25rem;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(160deg, #f0fdf4 0%, #dcfce7 40%, #bbf7d0 100%);
  padding: 6rem 1.5rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(22,163,74,.12), transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(37,99,235,.08), transparent 70%);
  border-radius: 50%;
}
.hero-inner { max-width: 750px; margin: 0 auto; position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #fff;
  border: 1.5px solid #bbf7d0;
  color: var(--green);
  padding: .4rem 1rem;
  border-radius: 30px;
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.hero-title {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1.35;
  margin-bottom: 1rem;
}
.hero-sub {
  font-size: 1.1rem;
  color: #166534;
  margin-bottom: .75rem;
  opacity: .85;
}
.hero-quote {
  font-size: .9rem;
  color: var(--gray-600);
  font-style: italic;
  margin-bottom: 2.5rem;
  padding: .75rem 1.25rem;
  background: rgba(255,255,255,.7);
  border-radius: 10px;
  border-inline-start: 3px solid var(--green);
  display: inline-block;
}
.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num { font-size: 1.6rem; font-weight: 800; color: var(--green-dark); }
.stat-label { font-size: .78rem; color: var(--gray-600); margin-top: .15rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .8rem 2rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all .18s;
  line-height: 1;
}
.btn-positive { background: var(--green); color: #fff; }
.btn-positive:hover { background: #15803d; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(22,163,74,.35); }
.btn-negative { background: var(--blue); color: #fff; }
.btn-negative:hover { background: #1d4ed8; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,99,235,.3); }
.btn-outline { background: #fff; color: var(--green); border: 2px solid var(--green); }
.btn-outline:hover { background: var(--green-light); }
.btn-sm { padding: .55rem 1.25rem; font-size: .88rem; border-radius: 9px; }
.btn-full { width: 100%; margin-top: .75rem; }

/* ── Section layout ── */
.section { padding: 5rem 1.5rem; }
.section-alt { background: var(--gray-50); }
.container { max-width: 1140px; margin: 0 auto; }
.section-tag {
  display: inline-block;
  background: var(--green-light);
  color: var(--green);
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem .8rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .75rem;
}
.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: .6rem;
}
.section-sub {
  font-size: 1rem;
  color: var(--gray-600);
  margin-bottom: 2.5rem;
  max-width: 550px;
}
.center { text-align: center; }
.center .section-sub { margin-inline: auto; }

/* ── Cards ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: transform .2s, box-shadow .2s;
  border: 1px solid var(--gray-200);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon { font-size: 2.8rem; }
.card h3 { font-size: 1.2rem; font-weight: 800; color: var(--gray-900); }
.card p { color: var(--gray-600); line-height: 1.75; font-size: .95rem; flex: 1; }
.card-green { border-top: 4px solid var(--green); }
.card-blue  { border-top: 4px solid var(--blue); }

/* ── Steps ── */
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  position: relative;
}
.step {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  flex: 1;
  min-width: 180px;
  max-width: 240px;
  border: 1px solid var(--gray-200);
  position: relative;
  z-index: 1;
}
.step-num {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--green), #22c55e);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 12px rgba(22,163,74,.3);
}
.step h4 { font-size: 1rem; font-weight: 700; color: var(--gray-900); margin-bottom: .4rem; }
.step p  { font-size: .85rem; color: var(--gray-600); line-height: 1.6; }
.step-connector {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--green), #22c55e);
  align-self: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
}
[dir="rtl"] .step-connector { transform: scaleX(-1); }

/* ── Odor types ── */
.types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}
.type-card {
  background: #fff;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: .95rem;
  font-weight: 700;
  color: var(--gray-700);
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}
.type-card .type-icon { font-size: 2rem; }
.type-card:hover { border-color: var(--blue); background: var(--blue-light); color: var(--blue); transform: translateY(-2px); }

/* ── Trust section ── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}
.trust-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.trust-icon { font-size: 2rem; }
.trust-item h4 { font-weight: 700; color: var(--gray-900); font-size: .95rem; }
.trust-item p  { font-size: .83rem; color: var(--gray-600); line-height: 1.65; }

/* ── Templates ── */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.template-card {
  background: #fff;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  cursor: pointer;
  transition: all .15s;
  position: relative;
  overflow: hidden;
}
.template-card::before {
  content: '';
  position: absolute;
  top: 0; inset-inline-start: 0;
  width: 4px; height: 100%;
  background: var(--green);
  opacity: 0;
  transition: opacity .15s;
}
.template-card:hover { border-color: var(--green); background: var(--green-light); }
.template-card:hover::before { opacity: 1; }
.template-tag { font-size: .72rem; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .4rem; }
.template-text { font-size: .88rem; color: var(--gray-700); line-height: 1.65; }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: .75rem; max-width: 780px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-q {
  padding: 1.1rem 1.5rem;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--gray-900);
  user-select: none;
}
.faq-q:hover { background: var(--gray-50); }
.faq-arrow { transition: transform .2s; font-size: .8rem; color: var(--gray-400); }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease, padding .25s;
  font-size: .9rem;
  color: var(--gray-600);
  line-height: 1.75;
}
.faq-item.open .faq-a { max-height: 200px; padding: 0 1.5rem 1.25rem; }

/* ── Articles ── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.article-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  transition: transform .2s, box-shadow .2s;
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.article-header {
  background: linear-gradient(135deg, var(--green-light), var(--green-mid));
  padding: 2rem;
  font-size: 2.5rem;
  text-align: center;
}
.article-body { padding: 1.5rem; }
.article-body h4 { font-weight: 700; color: var(--gray-900); margin-bottom: .5rem; font-size: 1rem; }
.article-body p  { font-size: .85rem; color: var(--gray-600); line-height: 1.7; }
.article-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
}
.article-link:hover { text-decoration: underline; }

/* ── Form page ── */
.form-page {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 3rem 1rem;
  flex: 1;
  background: var(--gray-50);
}
.form-box {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 520px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}
.form-icon { font-size: 2.5rem; text-align: center; margin-bottom: .6rem; }
.form-box h2 {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: .35rem;
}
.form-box .form-sub {
  text-align: center;
  font-size: .85rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
}
.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-size: .83rem;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: .4rem;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  padding: .7rem 1rem;
  font-size: .95rem;
  font-family: inherit;
  background: var(--gray-50);
  color: var(--gray-900);
  transition: border-color .15s, background .15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(22,163,74,.1);
}
.field textarea { resize: vertical; min-height: 90px; }
.field select { cursor: pointer; }

/* radio row */
.radio-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.radio-label {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .9rem;
  cursor: pointer;
  color: var(--gray-700);
  background: var(--gray-50);
  padding: .55rem 1rem;
  border-radius: 9px;
  border: 1.5px solid var(--gray-200);
  transition: all .15s;
  flex: 1;
  justify-content: center;
  font-weight: 600;
}
.radio-label:has(input:checked) { border-color: var(--green); background: var(--green-light); color: var(--green); }
.radio-label input { display: none; }

/* odor grid */
.odor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
}
.odor-card {
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  padding: 1rem .75rem;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
  font-size: .88rem;
  color: var(--gray-700);
  font-weight: 700;
  line-height: 1.6;
}
.odor-card input { display: none; }
.odor-card:has(input:checked) { border-color: var(--blue); background: var(--blue-light); color: var(--blue); }
.odor-card:hover:not(:has(input:checked)) { border-color: var(--gray-400); background: var(--gray-50); }

/* templates picker */
.template-picker { margin-top: .5rem; display: flex; flex-direction: column; gap: .5rem; }
.tpl-option {
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: 9px;
  padding: .65rem 1rem;
  font-size: .83rem;
  color: var(--gray-700);
  cursor: pointer;
  transition: all .13s;
  text-align: start;
  font-family: inherit;
  line-height: 1.55;
}
.tpl-option:hover { border-color: var(--green); background: var(--green-light); color: var(--green-dark); }
.tpl-label { font-size: .78rem; color: var(--gray-400); margin-bottom: .3rem; font-weight: 700; }

/* progress */
.form-progress {
  display: flex;
  gap: .35rem;
  margin-bottom: 1.75rem;
  align-items: center;
}
.prog-step {
  flex: 1;
  height: 5px;
  background: var(--gray-200);
  border-radius: 4px;
  transition: background .25s;
}
.prog-step.done { background: var(--green); }
.prog-step.active { background: #86efac; }

/* success */
.success-box {
  text-align: center;
  padding: 1.5rem 0;
}
.success-icon { font-size: 4rem; margin-bottom: 1rem; display: block; }
.success-box h2 { font-size: 1.5rem; font-weight: 800; color: var(--green-dark); margin-bottom: .5rem; }
.success-box p { color: var(--gray-600); margin-bottom: 1.75rem; }

/* back link */
.back-link {
  display: flex;
  align-items: center;
  gap: .3rem;
  color: var(--gray-400);
  font-size: .85rem;
  text-decoration: none;
  margin-top: 1.25rem;
  justify-content: center;
  transition: color .12s;
}
.back-link:hover { color: var(--green); }

/* ── CTA section ── */
.cta-section {
  background: linear-gradient(135deg, var(--green-dark), #16a34a);
  padding: 5rem 1.5rem;
  text-align: center;
  color: #fff;
}
.cta-section h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; margin-bottom: .75rem; }
.cta-section p { font-size: 1rem; opacity: .85; margin-bottom: 2rem; }
.btn-white { background: #fff; color: var(--green-dark); }
.btn-white:hover { background: var(--green-light); transform: translateY(-2px); }
.btn-white-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); }
.btn-white-outline:hover { background: rgba(255,255,255,.1); }

/* ── Support ── */
.support-box {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.support-icon { font-size: 4rem; margin-bottom: 1rem; }
.support-box h2 { font-size: 1.75rem; font-weight: 800; color: var(--green-dark); margin-bottom: 1rem; }
.support-box p { color: var(--gray-600); line-height: 1.8; margin-bottom: 2rem; font-size: 1rem; }

/* ── Footer ── */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: auto;
}
.footer-grid {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-brand .logo { color: #86efac; font-size: 1.1rem; }
.footer-brand p { font-size: .83rem; line-height: 1.7; margin-top: .5rem; color: var(--gray-400); }
.footer-col h5 { font-size: .82rem; font-weight: 700; color: #fff; margin-bottom: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.footer-col a { display: block; font-size: .83rem; color: var(--gray-400); text-decoration: none; margin-bottom: .4rem; transition: color .12s; }
.footer-col a:hover { color: #86efac; }
.footer-bottom {
  max-width: 1140px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid #374151;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .78rem;
}

/* ── About ── */
.about-hero {
  background: linear-gradient(160deg, var(--green-light), var(--green-mid));
  padding: 5rem 1.5rem;
  text-align: center;
}
.about-hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; color: var(--green-dark); margin-bottom: .75rem; }
.about-hero p { font-size: 1.1rem; color: #166534; max-width: 600px; margin: 0 auto; }
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}
.value-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.value-icon { font-size: 2.2rem; margin-bottom: .75rem; }
.value-card h4 { font-weight: 700; color: var(--gray-900); margin-bottom: .4rem; }
.value-card p { font-size: .83rem; color: var(--gray-600); line-height: 1.65; }

/* ── Privacy ── */
.prose { max-width: 760px; margin: 0 auto; }
.prose h3 { font-size: 1.1rem; font-weight: 700; color: var(--green-dark); margin: 2rem 0 .5rem; }
.prose p, .prose li { font-size: .95rem; color: var(--gray-600); line-height: 1.8; margin-bottom: .5rem; }
.prose ul { padding-inline-start: 1.5rem; }

/* ── Alert ── */
.alert {
  padding: .9rem 1.25rem;
  border-radius: 10px;
  font-size: .9rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
}
.alert-ok  { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .steps { gap: .5rem; }
  .step-connector { display: none; }
  .hero-stats { gap: 1.5rem; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 60px; inset-inline-start: 0; width: 100%; background: #fff; padding: 1rem; border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow); }
  .hamburger { display: flex; background: none; border: none; cursor: pointer; font-size: 1.4rem; color: var(--gray-700); }
}
@media (min-width: 769px) { .hamburger { display: none; } }
@media (max-width: 480px) {
  .hero-btns { flex-direction: column; align-items: stretch; }
  .form-box { padding: 1.75rem 1.25rem; }
  .odor-grid { grid-template-columns: 1fr; }
}
