/* =====================================================================
   Hatem Elfangary — Personal Brand Website
   Shared stylesheet (design system: cream #F5F5F0, green #005932,
   lime accent #6BFF4A). Fonts: IBM Plex Sans Arabic + Space Grotesk.
   ===================================================================== */

/* ---- Base reset ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
::selection { background: #6BFF4A; color: #0D0D0D; }

/* ---- Brand tokens ---- */
:root {
  --accent: #6BFF4A;
  --green: #005932;
  --pad: 104px;
}

/* ---- Page shell ---- */
.page {
  direction: rtl;
  background: #F5F5F0;
  color: #0D0D0D;
  font-family: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ---- Interactive states / hover ---- */
.btn-primary { transition: transform .15s, box-shadow .15s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(107,255,74,.45); }
.btn-ghost:hover { border-color: rgba(13,13,13,.4); }
.navlink { transition: color .15s; }
.navlink:hover { color: #005932; }

.lift { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.lift:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,89,50,.10); border-color: rgba(0,89,50,.22); }
.lift:hover .thumb-img { transform: scale(1.05); }
.cat-pill { transition: all .15s ease; }

/* ---- Animations ---- */
.float-chip { animation: floaty 5s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes pulse { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes dash { to { stroke-dashoffset: -24; } }

/* ---- Article typography ---- */
.article-body p { margin: 0 0 20px; font-size: 17.5px; line-height: 2; color: #1f2937; }
.article-body h2 { margin: 40px 0 16px; font-size: clamp(23px,2.6vw,29px); font-weight: 700; color: #005932; line-height: 1.4; }
.article-body h3 { margin: 30px 0 12px; font-size: 20px; font-weight: 700; color: #0D0D0D; }
.article-body ul { margin: 0 0 22px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.article-body li { position: relative; padding-right: 30px; font-size: 17px; line-height: 1.9; color: #1f2937; }
.article-body li::before { content: ""; position: absolute; right: 6px; top: 12px; width: 9px; height: 9px; border-radius: 3px; background: #6BFF4A; box-shadow: 0 0 0 3px rgba(107,255,74,.2); }
.article-body strong { color: #005932; font-weight: 700; }
.article-body blockquote { margin: 28px 0; padding: 22px 26px; background: #E8F7EC; border-right: 4px solid #005932; border-radius: 0 14px 14px 0; font-size: 18px; font-weight: 600; color: #0D0D0D; line-height: 1.8; }

/* ---- Navigation (desktop + JS-free mobile menu via <details>) ---- */
.desktop-nav { display: flex; }
.mobile-menu { display: none; position: relative; }
.mobile-menu summary { list-style: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid rgba(13,13,13,.12); border-radius: 11px; cursor: pointer; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-panel { position: absolute; top: calc(100% + 10px); left: 0; min-width: 220px; display: flex; flex-direction: column; gap: 4px; background: #F5F5F0; border: 1px solid rgba(13,13,13,.1); border-radius: 14px; padding: 10px; box-shadow: 0 18px 40px rgba(0,89,50,.14); z-index: 60; }
.mobile-panel a { text-decoration: none; color: #0D0D0D; font-weight: 500; padding: 11px 12px; border-radius: 9px; }
.mobile-panel a:hover { background: #E8F7EC; }
.mobile-panel a.cta { margin-top: 6px; text-align: center; background: var(--accent,#6BFF4A); color: #0D0D0D; font-weight: 600; }

@media (max-width: 860px) {
  .desktop-nav { display: none !important; }
  .mobile-menu { display: block; }
  .hero-cta-row { flex-direction: column; align-items: stretch; }
  .hero-cta-row a { justify-content: center; }
}
