@import url("https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap");

/* =========================================================
   RESET
========================================================= */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family:
    "Tajawal",
    "Segoe UI",
    Tahoma,
    Arial,
    sans-serif;
  background: #fbfaf8;
  color: #171514;
  line-height: 1.85;
}

img {
  max-width: 100%;
  display: block;
}

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

button {
  font: inherit;
}


/* =========================================================
   VARIABLES
========================================================= */

:root {
  --bg: #fbfaf8;
  --white: #ffffff;
  --black: #171514;
  --muted: #77716d;
  --line: #e9e4df;
  --brown: #69250d;
  --brown-dark: #481707;
  --soft-brown: #f3e9e2;
  --container: 1160px;
}


/* =========================================================
   GLOBAL
========================================================= */

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--brown);
  font-size: 13px;
  font-weight: 800;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--brown);
}

.section {
  padding: 120px 0;
}

.section-title {
  max-width: 760px;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.35;
  font-weight: 800;
}

.brown {
  color: var(--brown);
}

.muted {
  color: var(--muted);
}


/* =========================================================
   HEADER
========================================================= */

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(251, 250, 248, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(233, 228, 223, 0.85);
}

.navbar {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
  font-weight: 600;
  color: #625c58;
}

.nav-links a {
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--brown);
}

.nav-links a.active {
  color: var(--black);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 2px;
  background: var(--brown);
}

.header-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 20px;
  color: white;
  background: var(--brown);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.header-button:hover {
  transform: translateY(-2px);
  background: var(--brown-dark);
}


/* =========================================================
   HERO
========================================================= */

.hero {
  padding: 105px 0 75px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 80px;
}

.hero-content {
  max-width: 600px;
}

.hero-title {
  margin-top: 24px;
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1.3;
  font-weight: 800;
}

.hero-description {
  max-width: 540px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.primary-button {
  color: white;
  background: var(--brown);
}

.primary-button:hover {
  background: var(--brown-dark);
  transform: translateY(-2px);
}

.secondary-button {
  background: white;
  border: 1px solid var(--line);
}

.secondary-button:hover {
  transform: translateY(-2px);
  border-color: #d7cec7;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 25px;
  color: #817a75;
  font-size: 13px;
}

.hero-note span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-note span::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f0e6df;
  color: var(--brown);
  font-size: 9px;
  font-weight: 800;
}


/* =========================================================
   HERO VISUAL
========================================================= */

.hero-visual {
  position: relative;
}

.hero-image {
  position: relative;
  height: 530px;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, #ddd7d2, #c9c2bd);
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.02),
    rgba(0, 0, 0, 0.14)
  );
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-card {
  position: absolute;
  inset-inline-end: -35px;
  bottom: 38px;
  z-index: 3;
  width: 210px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(230, 224, 219, 0.9);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(30, 20, 15, 0.12);
}

.floating-card small {
  display: block;
  margin-bottom: 5px;
  color: #8b837d;
  font-size: 12px;
  font-weight: 800;
}

.floating-card strong {
  display: block;
  font-size: 24px;
  line-height: 1.2;
}

.floating-card p {
  margin-top: 6px;
  color: #8b837d;
  font-size: 13px;
  line-height: 1.6;
}

.hero-orbit {
  position: absolute;
  inset-inline-start: -26px;
  bottom: -25px;
  width: 110px;
  height: 110px;
  border: 1px solid #ded2ca;
  border-radius: 50%;
}

.hero-orbit::after {
  content: "";
  position: absolute;
  top: 50%;
  inset-inline-start: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brown);
}


/* =========================================================
   STATS
========================================================= */

.stats {
  padding: 30px 0 70px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.stat {
  padding: 24px 20px 0;
}

.stat + .stat {
  border-inline-start: 1px solid var(--line);
}

.stat:first-child {
  padding-inline-start: 0;
}

.stat-number {
  font-size: 30px;
  font-weight: 800;
}

.stat-label {
  margin-top: 5px;
  color: #837c77;
  font-size: 13px;
}


/* =========================================================
   INTRO
========================================================= */

.intro {
  background: white;
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.32fr 1fr;
  gap: 80px;
}

.section-number {
  color: var(--brown);
  font-size: 13px;
  font-weight: 800;
}

.intro-content {
  max-width: 900px;
}

.intro-title {
  max-width: 820px;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.4;
  font-weight: 800;
}

.intro-text {
  max-width: 680px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.95;
}


/* =========================================================
   TOPICS
========================================================= */

.topics-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 45px;
}

.topics-description {
  max-width: 340px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.topics-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
}

.topic-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.topic-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(30, 20, 15, 0.08);
}

.topic-card.large {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}

.topic-image {
  height: 185px;
  overflow: hidden;
  background: #ddd;
}

.topic-card.large .topic-image {
  height: auto;
  flex: 1;
  min-height: 250px;
}

.topic-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.topic-card:hover .topic-image img {
  transform: scale(1.04);
}

.topic-content {
  padding: 24px;
}

.topic-number {
  color: #9a928c;
  font-size: 12px;
  font-weight: 800;
}

.topic-title {
  margin-top: 12px;
  font-size: 26px;
  line-height: 1.2;
}

.topic-description {
  max-width: 480px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.topic-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--brown);
  font-size: 13px;
  font-weight: 800;
}


/* =========================================================
   ARTICLES
========================================================= */

.articles {
  background: white;
}

.articles-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 45px;
}

.articles-header p {
  max-width: 360px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.article-card {
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(30, 20, 15, 0.07);
}

.article-image {
  height: 215px;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
  transform: scale(1.04);
}

.article-content {
  padding: 23px;
}

.article-meta {
  color: var(--brown);
  font-size: 12px;
  font-weight: 800;
}

.article-title {
  margin-top: 11px;
  font-size: 23px;
  line-height: 1.35;
}

.article-excerpt {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.article-read {
  display: inline-flex;
  margin-top: 17px;
  color: var(--brown);
  font-size: 13px;
  font-weight: 800;
}


/* =========================================================
   GUIDE SECTION
========================================================= */

.guide {
  padding: 130px 0;
}

.guide-box {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 75px;
  align-items: center;
}

.guide-image {
  height: 480px;
  overflow: hidden;
  border-radius: 25px;
}

.guide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-title {
  max-width: 650px;
  margin-top: 20px;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.35;
}

.guide-description {
  max-width: 560px;
  margin-top: 25px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.guide-list {
  margin-top: 35px;
  border-top: 1px solid var(--line);
}

.guide-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}

.guide-item-number {
  color: var(--brown);
  font-size: 12px;
  font-weight: 800;
}

.guide-item strong {
  font-size: 15px;
}

.guide-item span:last-child {
  margin-inline-start: auto;
  color: #aaa19b;
  font-size: 18px;
}


/* =========================================================
   CTA
========================================================= */

.cta {
  padding: 0 0 100px;
}

.cta-box {
  position: relative;
  overflow: hidden;
  padding: 85px 40px;
  text-align: center;
  border: 1px solid #e9e0da;
  border-radius: 25px;
  background:
    radial-gradient(
      circle at 10% 0%,
      rgba(224, 205, 193, 0.28),
      transparent 30%
    ),
    radial-gradient(
      circle at 90% 100%,
      rgba(224, 205, 193, 0.25),
      transparent 30%
    ),
    #fffdfb;
}

.cta-title {
  max-width: 700px;
  margin: 18px auto 0;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.4;
}

.cta-description {
  max-width: 520px;
  margin: 22px auto 30px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
  padding: 75px 0 35px;
  color: #bdb6b1;
  background: #151210;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
}

.footer-brand {
  color: white;
  font-size: 19px;
  font-weight: 800;
}

.footer-description {
  max-width: 280px;
  margin-top: 18px;
  color: #8e8782;
  font-size: 14px;
  line-height: 1.9;
}

.footer-title {
  margin-bottom: 17px;
  color: white;
  font-size: 14px;
  font-weight: 800;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.footer-links a {
  color: #8e8782;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 55px;
  padding-top: 25px;
  border-top: 1px solid #2b2724;
  color: #6f6965;
  font-size: 13px;
}


/* =========================================================
   MOBILE MENU
========================================================= */

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  cursor: pointer;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 950px) {

  .nav-links,
  .header-button {
    display: none;
  }

  .menu-button {
    display: grid;
    place-items: center;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .hero-content {
    max-width: 720px;
  }

  .hero-image {
    height: 470px;
  }

  .topics-grid {
    grid-template-columns: 1fr 1fr;
  }

  .topic-card.large {
    grid-row: auto;
    grid-column: span 2;
  }

  .guide-box {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .guide-image {
    height: 400px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}


@media (max-width: 700px) {

  .container {
    width: min(var(--container), calc(100% - 30px));
  }

  .section {
    padding: 80px 0;
  }

  .hero {
    padding: 70px 0 50px;
  }

  .hero-title {
    font-size: 42px;
  }

  .hero-image {
    height: 350px;
    border-radius: 20px;
  }

  .floating-card {
    inset-inline-end: 15px;
    bottom: 20px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat {
    padding: 18px 10px;
    border-bottom: 1px solid var(--line);
  }

  .stat + .stat {
    border-inline-start: none;
  }

  .stat:nth-child(even) {
    border-inline-start: 1px solid var(--line);
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .topics-header,
  .articles-header {
    display: block;
  }

  .topics-description,
  .articles-header p {
    margin-top: 20px;
  }

  .topics-grid {
    grid-template-columns: 1fr;
  }

  .topic-card.large {
    grid-column: auto;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .guide-image {
    height: 320px;
  }

  .cta-box {
    padding: 65px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 25px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}


@media (max-width: 450px) {

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .hero-title {
    font-size: 38px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .floating-card {
    width: 190px;
  }
}

/* =========================================================
   INNER PAGES (about, contact, privacy, terms, topics, articles)
========================================================= */

.page { padding: 64px 0 40px; }
.prose { max-width: 780px; }
.prose h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.4; margin-bottom: 14px; }
.prose h2 { font-size: 24px; line-height: 1.5; margin: 38px 0 10px; color: var(--brown); }
.prose h3 { font-size: 19px; margin: 24px 0 6px; }
.prose p, .prose li { font-size: 17px; line-height: 2; }
.prose ul, .prose ol { padding-inline-start: 24px; margin: 8px 0 16px; }
.prose .lead { color: var(--muted); font-size: 19px; }
.prose a { color: var(--brown); text-decoration: underline; }
.prose .note { margin: 22px 0; padding: 14px 18px; border-radius: 14px; background: var(--soft-brown); font-size: 15px; }
.crumbs { margin-bottom: 10px; color: var(--muted); font-size: 14px; }
.post-list { display: grid; gap: 12px; margin: 18px 0; list-style: none; padding: 0; }
.post-list a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: white; text-decoration: none; }

a:focus-visible, button:focus-visible { outline: 2px solid var(--brown); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }