/* ===================================================================
   هُدنة — الأكل العاطفي   |   Global Stylesheet
   Built on official brand tokens (hudna_brand_tokens.css)
   =================================================================== */

:root {
  /* Brand palette */
  --deep: #2E7D72;
  --deep-2: #1A5C54;
  --dark: #1C2B2B;
  --mint: #4CAF9C;
  --soft-mint: #E8F5F2;
  --beige: #F5F0E8;
  --cream: #FFFCF5;
  --gold: #C8A84B;

  --text: #1F2933;
  --text-soft: #4A5A5A;
  --line: rgba(46, 125, 114, .16);
  --shadow: 0 24px 70px rgba(28, 43, 43, .10);
  --soft-shadow: 0 14px 35px rgba(28, 43, 43, .08);
  --radius: 28px;
  --radius-sm: 18px;

  --font-arabic: "Cairo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1080px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  direction: rtl;
  font-family: var(--font-arabic);
  color: var(--text);
  line-height: 1.85;
  font-size: 17px;
  background: var(--cream);
  background-image:
    radial-gradient(1100px 620px at 88% -8%, rgba(76, 175, 156, .16), transparent 60%),
    radial-gradient(900px 560px at -6% 8%, rgba(245, 240, 232, .9), transparent 55%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--deep); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--deep-2); }

img, svg { max-width: 100%; }

.wrap { width: min(var(--wrap), 92vw); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  background: rgba(255, 252, 245, .82);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 0;
}
.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-lockup .mark { width: 34px; height: 44px; display: block; }
.brand-lockup .mark svg { display: block; height: 100%; width: auto; }
.brand-lockup .word {
  font-weight: 900; font-size: 25px; color: #0E4D49;
  letter-spacing: -1.5px; line-height: 1;
}

.nav-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-links a {
  font-weight: 700; font-size: 15.5px; color: var(--text-soft);
  padding: 8px 13px; border-radius: 999px; transition: all .18s ease;
}
.nav-links a:hover { color: var(--deep-2); background: var(--soft-mint); }
.nav-links a.active { color: var(--deep-2); background: var(--soft-mint); }

.nav-toggle {
  display: none; border: 1px solid var(--line); background: #fff;
  border-radius: 12px; width: 44px; height: 44px; cursor: pointer;
  align-items: center; justify-content: center; color: var(--deep-2);
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 780px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; inset-inline: 4vw; top: 74px;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(255, 252, 245, .98); border: 1px solid var(--line);
    border-radius: 20px; padding: 10px; box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; border-radius: 14px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 74px 0 60px; text-align: center; overflow: hidden; }
.hero .leaf-bg {
  position: absolute; opacity: .3; pointer-events: none;
  width: 300px; inset-inline-start: -70px; top: 20px; z-index: 0;
  animation: glowFloat 18s ease-in-out infinite;
}
.hero-mark {
  width: 128px; margin: 0 auto 26px; display: block;
  filter: drop-shadow(0 20px 40px rgba(28,43,43,.14));
  animation: logoBreath 4s ease-in-out infinite;
}
.hero h1 {
  font-size: clamp(38px, 8vw, 66px); font-weight: 900;
  color: #0E4D49; letter-spacing: -2px; margin: 0 0 18px; line-height: 1.1;
}
.hero .subtitle {
  font-size: clamp(17px, 2.4vw, 21px); color: var(--text-soft);
  max-width: 620px; margin: 0 auto 34px; font-weight: 500;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-arabic); font-weight: 800; font-size: 16.5px;
  padding: 15px 30px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--deep) 0%, var(--mint) 100%);
  color: #fff; box-shadow: 0 14px 30px rgba(46, 125, 114, .28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px rgba(46, 125, 114, .34); color: #fff; }
.btn-ghost {
  background: rgba(255,255,255,.7); color: var(--deep-2);
  border-color: var(--line); box-shadow: var(--soft-shadow);
}
.btn-ghost:hover { transform: translateY(-2px); background: #fff; color: var(--deep-2); }
.btn .pill {
  font-size: 11.5px; font-weight: 800; background: rgba(255,255,255,.28);
  padding: 3px 9px; border-radius: 999px;
}

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-tag {
  display: inline-block; font-weight: 800; font-size: 14px; color: var(--deep);
  background: var(--soft-mint); padding: 6px 16px; border-radius: 999px; margin-bottom: 16px;
}
.section h2 {
  font-size: clamp(27px, 4.6vw, 38px); font-weight: 900; color: #0E4D49;
  letter-spacing: -1px; margin: 0 0 12px; line-height: 1.25;
}
.section .lead { color: var(--text-soft); font-size: 18px; max-width: 640px; margin: 0 0 34px; }
.section.center { text-align: center; }
.section.center .lead { margin-inline: auto; }

/* ---------- Cards / features ---------- */
.card {
  border-radius: var(--radius); background: rgba(255,255,255,.66);
  border: 1px solid var(--line); box-shadow: var(--soft-shadow);
  padding: 28px; transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  backdrop-filter: blur(6px);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.grid { display: grid; gap: 20px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid.cols-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; } }

.feature .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 14px; font-weight: 900; font-size: 19px;
  background: linear-gradient(135deg, var(--soft-mint), #d3efe8); color: var(--deep-2);
  margin-bottom: 16px;
}
.feature h3 { margin: 0 0 8px; font-size: 20px; font-weight: 800; color: #143f3b; }
.feature p { margin: 0; color: var(--text-soft); font-size: 16px; }

/* Reasons chips */
.reasons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.reason {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.72); border: 1px solid var(--line);
  border-radius: 999px; padding: 12px 22px; font-weight: 700; font-size: 16px;
  color: #143f3b; box-shadow: var(--soft-shadow);
}
.reason .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); }

/* ---------- Notice / disclaimer ---------- */
.notice {
  border-radius: var(--radius); padding: 26px 28px;
  background: linear-gradient(135deg, #FFF7E9, #FFFCF5);
  border: 1px solid rgba(200, 168, 75, .32);
  box-shadow: var(--soft-shadow); display: flex; gap: 16px; align-items: flex-start;
}
.notice .ico {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(200,168,75,.16); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.notice h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; color: #7a5f14; }
.notice p { margin: 0; color: #5c5230; font-size: 15.5px; line-height: 1.75; }

/* ---------- Legal / doc pages ---------- */
.doc { padding: 46px 0 30px; }
.doc-head { text-align: center; margin-bottom: 40px; }
.doc-head .section-tag { margin-bottom: 18px; }
.doc-head h1 {
  font-size: clamp(30px, 5.5vw, 46px); font-weight: 900; color: #0E4D49;
  letter-spacing: -1.5px; margin: 0 0 10px;
}
.doc-head .updated { color: var(--text-soft); font-size: 15px; }

.doc-body {
  background: rgba(255,255,255,.7); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--soft-shadow);
  padding: clamp(24px, 5vw, 48px); backdrop-filter: blur(6px);
}
.doc-body h2 {
  font-size: 22px; font-weight: 800; color: #143f3b; margin: 34px 0 12px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { font-size: 18px; font-weight: 800; color: #1c4a45; margin: 22px 0 8px; }
.doc-body p { color: var(--text-soft); margin: 0 0 14px; }
.doc-body ul { color: var(--text-soft); padding-inline-start: 22px; margin: 0 0 16px; }
.doc-body li { margin-bottom: 8px; }
.doc-body strong { color: #143f3b; }
.doc-body a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.todo {
  display: inline-block; background: #fff4d6; color: #8a6d10;
  border: 1px dashed rgba(200,168,75,.5); border-radius: 10px;
  padding: 2px 10px; font-size: 13.5px; font-weight: 700;
}

/* Steps list */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 24px; }
.steps li {
  position: relative; padding-inline-start: 52px; margin-bottom: 16px;
  color: var(--text-soft); min-height: 38px; display: flex; align-items: center;
}
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; inset-inline-start: 0; top: 0;
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, var(--deep), var(--mint)); color: #fff;
  font-weight: 900; display: flex; align-items: center; justify-content: center;
}

/* Contact / delete boxes */
.mail-box { text-align: center; padding: 34px; }
.mail-box .email {
  font-size: 22px; font-weight: 900; color: var(--deep-2); direction: ltr;
  display: inline-block; margin: 8px 0 22px;
}
.link-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.link-row a {
  background: rgba(255,255,255,.72); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 20px; font-weight: 700; color: var(--deep-2);
  box-shadow: var(--soft-shadow);
}
.link-row a:hover { background: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 40px; padding: 44px 0 30px;
  background: linear-gradient(180deg, transparent, rgba(232, 245, 242, .5));
  border-top: 1px solid var(--line);
}
.footer-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.footer-top .mark { width: 26px; height: 34px; }
.footer-top .mark svg { height: 100%; width: auto; }
.footer-top .name { font-weight: 900; color: #0E4D49; font-size: 18px; }
.footer-links { display: flex; gap: 8px 20px; flex-wrap: wrap; margin-bottom: 16px; }
.footer-links a { font-weight: 700; color: var(--text-soft); font-size: 15px; }
.footer-links a:hover { color: var(--deep-2); }
.copyright { color: var(--text-soft); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.copyright .leaf { width: 22px; height: 22px; opacity: .7; }

/* ---------- Animations (from brand motion system) ---------- */
@keyframes logoBreath {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}
@keyframes glowFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(4deg); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Reveal on load */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
