/* ============================================================
   GulfCard — style.css
   Palette: نخيل #0C3D33 | ذهب #E0A82E | رمل #F7F4EC | حبر #172420
   ============================================================ */
:root {
  --palm: #0C3D33;
  --palm-deep: #082B24;
  --gold: #E0A82E;
  --gold-soft: #F3D488;
  --sand: #F7F4EC;
  --ink: #172420;
  --mist: #5E6F69;
  --line: #E3DDCE;
  --white: #FFFFFF;
  --radius: 18px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  background: var(--sand);
  color: var(--ink);
  line-height: 1.8;
  direction: rtl;
}

h1, h2, h3, .display { font-family: 'Alexandria', 'IBM Plex Sans Arabic', sans-serif; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.logo { font-family: 'Alexandria', sans-serif; font-weight: 800; font-size: 1.35rem; color: var(--palm); text-decoration: none; letter-spacing: -0.5px; }
.logo span { color: var(--gold); }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--palm); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.btn {
  display: inline-block; padding: 13px 30px; border-radius: 999px;
  font-family: 'Alexandria', sans-serif; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.btn-gold { background: var(--gold); color: var(--palm-deep); box-shadow: 0 4px 14px rgba(224,168,46,.35); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(224,168,46,.45); }
.btn-ghost { background: transparent; color: var(--palm); border: 2px solid var(--palm); }
.btn-ghost:hover { background: var(--palm); color: var(--white); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; background: var(--palm); color: var(--gold-soft);
  font-size: 0.8rem; font-weight: 600; padding: 6px 16px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; line-height: 1.35; color: var(--palm-deep); margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--gold); position: relative; }
.hero p.lede { font-size: 1.12rem; color: var(--mist); max-width: 48ch; margin-bottom: 30px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 0.85rem; color: var(--mist); }

/* ---------- Card fan (signature) ---------- */
.card-fan { position: relative; height: 380px; display: flex; align-items: center; justify-content: center; }
.gift-card {
  position: absolute; width: 300px; height: 185px; border-radius: 16px;
  padding: 22px; color: var(--white);
  box-shadow: 0 18px 40px rgba(8, 43, 36, 0.25);
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
}
.gift-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.28) 48%, transparent 62%);
  transform: translateX(220%);
  animation: sheen 4.5s ease-in-out infinite;
}
@keyframes sheen { 0%, 55% { transform: translateX(220%); } 80%, 100% { transform: translateX(-220%); } }
.gift-card .gc-brand { font-family: 'Alexandria', sans-serif; font-weight: 800; font-size: 1.15rem; }
.gift-card .gc-value { font-size: 1.9rem; font-weight: 800; font-family: 'Alexandria', sans-serif; }
.gift-card .gc-label { font-size: 0.75rem; opacity: 0.85; }
.gc-1 { background: linear-gradient(135deg, #0C3D33, #17685A); transform: rotate(-9deg) translate(60px, 14px); }
.gc-2 { background: linear-gradient(135deg, #B3801A, #E0A82E); transform: rotate(4deg) translate(-20px, -8px); z-index: 2; }
.gc-2::after { animation-delay: 1.2s; }
.gc-3 { background: linear-gradient(135deg, #23443E, #3E6B60); transform: rotate(13deg) translate(-100px, 30px); }
.gc-3::after { animation-delay: 2.4s; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 800; color: var(--palm-deep); margin-bottom: 12px; }
.section-head p { color: var(--mist); }

/* Steps — real sequence, numbering justified */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px; position: relative;
}
.step-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--palm); color: var(--gold-soft);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Alexandria', sans-serif; font-weight: 800; font-size: 1.1rem; margin-bottom: 16px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--palm-deep); }
.step p { font-size: 0.95rem; color: var(--mist); }

/* Rewards grid */
.rewards { background: var(--palm-deep); }
.rewards .section-head h2 { color: var(--gold-soft); }
.rewards .section-head p { color: #B8C7C1; }
.reward-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.reward {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(243,212,136,0.18);
  border-radius: var(--radius); padding: 24px 18px; text-align: center; color: var(--white);
}
.reward .r-icon { font-size: 1.9rem; margin-bottom: 10px; }
.reward h3 { font-size: 1rem; color: var(--gold-soft); margin-bottom: 6px; }
.reward p { font-size: 0.83rem; color: #B8C7C1; }

/* Trust */
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.trust-item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; gap: 16px; align-items: flex-start;
}
.trust-item .t-mark {
  min-width: 34px; height: 34px; border-radius: 10px; background: var(--gold-soft);
  color: var(--palm-deep); display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.trust-item h3 { font-size: 1rem; color: var(--palm-deep); margin-bottom: 4px; }
.trust-item p { font-size: 0.92rem; color: var(--mist); }

/* FAQ */
details {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 22px; margin-bottom: 12px;
}
details summary { font-family: 'Alexandria', sans-serif; font-weight: 700; cursor: pointer; color: var(--palm-deep); }
details p { margin-top: 10px; color: var(--mist); font-size: 0.95rem; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--palm), #17685A); border-radius: 24px; padding: 52px 40px; text-align: center; color: var(--white); }
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 2rem); color: var(--gold-soft); margin-bottom: 12px; }
.cta-band p { color: #C9D6D1; margin-bottom: 26px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px 0; margin-top: 40px; }
.foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.foot-links { display: flex; gap: 22px; }
.foot a { color: var(--mist); text-decoration: none; font-size: 0.88rem; }
.foot a:hover { color: var(--palm); }
.foot .copy { color: var(--mist); font-size: 0.85rem; }

/* ---------- Legal pages ---------- */
.legal { max-width: 780px; margin: 0 auto; padding: 56px 24px; }
.legal h1 { color: var(--palm-deep); font-size: 1.9rem; margin-bottom: 8px; }
.legal .updated { color: var(--mist); font-size: 0.85rem; margin-bottom: 36px; }
.legal h2 { color: var(--palm); font-size: 1.2rem; margin: 32px 0 10px; }
.legal p, .legal li { color: #34423D; font-size: 0.98rem; }
.legal ul { padding-right: 22px; margin: 8px 0; }
.legal .notice {
  background: var(--gold-soft); border-radius: 12px; padding: 16px 20px; margin: 20px 0;
  font-size: 0.93rem; color: var(--palm-deep);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .card-fan { height: 300px; transform: scale(0.82); }
  .steps { grid-template-columns: 1fr; }
  .reward-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
