/* ==========================================================================
   SHD Invite — base.css
   الخطوط، المتغيرات، إعادة الضبط، التخطيط العام
   ========================================================================== */

@font-face {
  font-family: "Arsenica";
  src: url("../assets/fonts/Arsenica-Arabic-Antiqua-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-002F, U+003A-10FFFF; /* بدون الأرقام اللاتينية (نسخة التجربة تعرضها كعلامة مائية) */
}
@font-face {
  font-family: "Arsenica";
  src: url("../assets/fonts/Arsenica-Arabic-Antiqua-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-002F, U+003A-10FFFF;
}
@font-face {
  font-family: "Diwani Alsamt";
  src: url("../assets/fonts/DiwaniAlsamtSimple-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* الألوان (مأخوذة من صورة المرجع) */
  --wine: #782934;          /* النصوص الرئيسية، الأزرار، الخطوط */
  --ink: #531220;           /* النصوص الثانوية والأسعار */
  --wine-soft: rgba(120, 41, 52, .62);
  --page-1: #f8e7dc;
  --page-2: #f6e2d6;
  --page-3: #f4ddd1;
  --surface: #fbefe7;
  --line: #dfbcaf;
  --line-soft: rgba(223, 188, 175, .65);
  --blush: #fbe2d5;

  /* الخطوط */
  --font-main: "Arsenica", "Segoe UI", Tahoma, Arial, sans-serif;
  --font-accent: "Diwani Alsamt", "Arsenica", serif;

  /* الأبعاد */
  --nav-h: 76px;
  --gutter: 16px;
  --container: 1120px;
  --hero-h: clamp(560px, 178vw, 780px);
  --radius-card: 24px;
  --radius-img: 16px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  background: var(--page-2);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-main);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: linear-gradient(180deg, var(--page-1) 0%, var(--page-2) 45%, var(--page-3) 100%);
  background-attachment: scroll;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 3px;
  border-radius: 8px;
}

[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.icon {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon--fill { fill: currentColor; }

/* ---------- الخلفية العلوية (Hero Background) ---------- */
.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: var(--hero-h);
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/images/hero.webp") center top / cover no-repeat;
}
/* الطبقة الحادة: تتلاشى تدريجيًا نحو الحافة السفلية
   (مع غلالة خفيفة جدًا فوق الصورة لتحسين وضوح النصوص) */
.hero-bg::before {
  background:
    linear-gradient(180deg, rgba(251, 239, 231, .34), rgba(251, 239, 231, .12) 62%, transparent),
    url("../assets/images/hero.webp") center top / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 50%, transparent 92%);
          mask-image: linear-gradient(to bottom, #000 0, #000 50%, transparent 92%);
}
/* الطبقة الضبابية: تظهر في الجزء السفلي فقط لدمج الحافة */
.hero-bg::after {
  inset: -24px;
  filter: blur(10px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 36%, #000 62%, transparent 98%);
          mask-image: linear-gradient(to bottom, transparent 36%, #000 62%, transparent 98%);
  opacity: .9;
}

/* ---------- الهيكل العام ---------- */
.page {
  position: relative;
  z-index: 2;
  padding-bottom: calc(var(--nav-h) + 56px + env(safe-area-inset-bottom, 0px));
}
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- الشريط العلوي ---------- */
.site-header {
  position: relative;
  z-index: 3;
  height: 68px;
  padding-top: env(safe-area-inset-top, 0px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-header__logo {
  display: block;
  line-height: 0;
}
.site-header__logo img {
  width: 104px;
  height: auto;
}
.site-header__menu {
  position: absolute;
  left: var(--gutter);
  top: 50%;
  translate: 0 -50%;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  font-size: 30px;
  color: var(--wine);
  border-radius: 50%;
  background: rgba(251, 239, 231, .62);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  border: 1px solid rgba(223, 188, 175, .7);
}
.site-header__menu .icon { stroke-width: 1.6; }

/* ---------- الواجهة الرئيسية ---------- */
.hero {
  position: relative;
  z-index: 2;
  padding-top: 10px;
  text-align: center;
}
.hero__title {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: clamp(2.15rem, 9.8vw, 4.5rem);
  line-height: 1.12;
  letter-spacing: .005em;
  color: var(--wine);
  max-width: 10.6em;
  margin-inline: auto;
  direction: ltr;
  text-wrap: balance;
}
.hero__text {
  margin: 22px auto 0;
  max-width: 34em;
  padding-inline: 6px;
  font-size: clamp(.95rem, 3.9vw, 1.15rem);
  line-height: 1.95;
  font-weight: 300;
  color: var(--ink);
}

body { position: relative; }
.page-hero-short .hero-bg { height: clamp(380px, 110vw, 520px); }
