/* ═══════════════════════════════════════════════════════
   MHAYER SIKA — premium dark site styles
   Matches the card aesthetic: deep navy bg, gold accents,
   Lato for Latin, Cairo for Arabic, generous whitespace.
═══════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────── */
:root {
  --bg:          #10101C;
  --bg-2:        #15152A;
  --bg-3:        #1C1C34;
  --ink:         #F2F2F2;
  --ink-soft:    #B4B4C0;
  --ink-dim:     #6E6E80;
  --gold:        #C6A64E;
  --gold-dim:    #786432;
  --gold-faint:  #504426;
  --accent:      #3498DB;

  --radius:      18px;
  --radius-lg:   24px;
  --shadow-xl:   0 30px 80px rgba(0,0,0,.6);
  --shadow-gold: 0 0 0 1px rgba(198,166,78,.18), 0 20px 60px rgba(198,166,78,.08);

  --font-sans:   "Lato", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-ar:     "Cairo", "Lato", system-ui, sans-serif;

  --container:   1180px;
  --container-narrow: 780px;

  --ease:        cubic-bezier(.2,.8,.2,1);
}

/* ── Reset ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html[dir="rtl"] body { font-family: var(--font-ar); }

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

/* ── Layout ──────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.section--alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%); }

.section__head { margin-bottom: clamp(36px, 5vw, 64px); }
.section__head--center { text-align: center; }

.section__kicker {
  font-size: 12px;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
  font-weight: 700;
}
.section__title {
  font-size: clamp(30px, 4.2vw, 52px);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 16px;
}
.section__sub {
  color: var(--ink-soft);
  font-size: 17px;
  margin: 0;
  max-width: 60ch;
}
.section__head--center .section__sub { margin-inline: auto; }

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
  min-height: 48px; /* touch target */
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn--sm { padding: 10px 18px; font-size: 13px; }
.btn--lg { padding: 18px 36px; font-size: 16px; }

.btn--gold {
  background: linear-gradient(180deg, #D6B665 0%, var(--gold) 100%);
  color: #1A1505;
  box-shadow: var(--shadow-gold);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(198,166,78,.4), 0 24px 50px rgba(198,166,78,.2); }

.btn--ghost {
  border-color: rgba(198,166,78,.35);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--gold); background: rgba(198,166,78,.08); }

/* ── Nav ─────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16,16,28,.72);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(198,166,78,.08);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: .02em;
  font-size: 18px;
}
.nav__logo .star { width: 20px; height: 20px; fill: var(--gold); }

.nav__links {
  display: flex;
  gap: 28px;
  margin-inline-start: auto;
}
.nav__links a {
  font-size: 14px;
  color: var(--ink-soft);
  position: relative;
  padding: 8px 0;
  font-weight: 500;
  transition: color .2s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a::after {
  content: "";
  position: absolute;
  bottom: 2px;
  inset-inline-start: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width .25s var(--ease);
}
.nav__links a:hover::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  padding: 8px 14px;
  border: 1px solid rgba(198,166,78,.25);
  border-radius: 999px;
  color: var(--ink-soft);
  transition: all .2s var(--ease);
}
.lang-toggle:hover { color: var(--gold); border-color: var(--gold); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.burger span {
  width: 22px; height: 2px;
  background: var(--ink);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}

/* ── Hero ────────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(90px, 14vw, 160px) 0 clamp(80px, 10vw, 120px);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__glow {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .6;
}
.hero__glow--1 {
  background: radial-gradient(circle, rgba(111,76,209,.4), transparent 65%);
  top: -200px; inset-inline-start: -150px;
}
.hero__glow--2 {
  background: radial-gradient(circle, rgba(52,152,219,.3), transparent 65%);
  bottom: -300px; inset-inline-end: -200px;
}
.hero__grain {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: .4;
  pointer-events: none;
}

.hero__inner { text-align: center; position: relative; }

.hero__ornament svg {
  width: 42px; height: 42px;
  fill: var(--gold);
  margin: 0 auto 28px;
  opacity: .85;
  animation: gentle-pulse 4s ease-in-out infinite;
}
@keyframes gentle-pulse {
  0%, 100% { opacity: .85; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.06); }
}

.hero__eyebrow {
  font-size: 12px;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 24px;
  font-weight: 700;
}

.hero__title {
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.hero__title-main {
  font-size: clamp(44px, 9vw, 104px);
  font-weight: 900;
  letter-spacing: clamp(1px, .4vw, 5px);
  line-height: 1;
  background: linear-gradient(180deg, #FFFFFF 0%, #C5C5D0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__divider {
  width: 180px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  position: relative;
}
.hero__divider::before {
  content: "";
  position: absolute;
  inset-inline-start: 50%;
  top: 50%;
  width: 6px; height: 6px;
  background: var(--gold);
  transform: translate(-50%, -50%) rotate(45deg);
}
.hero__tagline {
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 300;
  letter-spacing: .1em;
  color: var(--gold);
  text-transform: uppercase;
}

.hero__lede {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 820px;
  margin: 0 auto;
  padding-top: 48px;
  border-top: 1px solid rgba(198,166,78,.15);
}
.hero__stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.hero__stats strong {
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 300;
  color: var(--gold);
  letter-spacing: .02em;
}
.hero__stats span {
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ── Steps ───────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  position: relative;
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
  border: 1px solid rgba(255,255,255,.04);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.step:hover {
  transform: translateY(-6px);
  border-color: rgba(198,166,78,.25);
  box-shadow: var(--shadow-gold);
}
.step__num {
  font-size: 52px;
  font-weight: 100;
  color: var(--gold);
  opacity: .6;
  letter-spacing: .05em;
  margin-bottom: 16px;
  font-family: var(--font-sans);
}
.step h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: .02em;
}
.step p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

/* ── Cards showcase ──────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-bottom: 56px;
  perspective: 1600px;
}

.card-wrap {
  position: relative;
  aspect-ratio: 560 / 720;
  perspective: 1600px;
  cursor: pointer;
}
.card-wrap--tall { aspect-ratio: 560 / 760; }
.card-wrap:focus { outline: 2px solid var(--gold); outline-offset: 6px; border-radius: var(--radius); }

.card-flip {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transition: transform .9s var(--ease);
}
.card-wrap.is-flipped .card-flip { transform: rotateY(180deg); }
@media (hover: hover) and (pointer: fine) {
  .card-wrap:hover .card-flip { transform: rotateY(180deg); }
}

.card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  box-shadow:
    0 20px 60px rgba(0,0,0,.5),
    0 0 0 1px rgba(198,166,78,.08) inset;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-face--back { transform: rotateY(180deg); }
.card-face img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: var(--bg);
}

/* CSS fallback card when no image is present */
.card-face--placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at 50% 30%, rgba(111,76,209,.25), transparent 60%), var(--bg);
  text-align: center;
}
.card-face--placeholder .ph-star {
  width: 28px; height: 28px;
  fill: var(--gold);
  margin-bottom: 24px;
}
.card-face--placeholder .ph-artist {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .12em;
  margin-bottom: 12px;
}
.card-face--placeholder .ph-title {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.card-face--placeholder .ph-year {
  font-size: 52px;
  font-weight: 100;
  color: var(--gold);
  letter-spacing: .02em;
}

.cards-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  color: var(--ink-soft);
  font-size: 14px;
}
.cards-legend > div {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.dot--front { background: var(--gold); }
.dot--back  { background: #FFFFFF; opacity: .5; }

/* ── Features ────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feature {
  padding: 32px 28px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.04);
  transition: border-color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
}
.feature:hover {
  border-color: rgba(198,166,78,.2);
  transform: translateY(-3px);
  background: rgba(198,166,78,.03);
}
.feature__icon {
  width: 26px; height: 26px;
  fill: var(--gold);
  margin-bottom: 20px;
}
.feature h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
}
.feature p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ── Form ────────────────────────────────────── */
.form {
  background: var(--bg-2);
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(198,166,78,.12);
  box-shadow: var(--shadow-xl);
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.field span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.field input,
.field textarea {
  font: inherit;
  font-size: 16px; /* prevents iOS zoom on focus */
  color: var(--ink);
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 14px 16px;
  min-height: 48px; /* touch target */
  transition: border-color .2s var(--ease), background .2s var(--ease);
  resize: vertical;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(0,0,0,.4);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-dim); }

.form__submit {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.form__hint {
  margin: 0;
  font-size: 13px;
  color: var(--ink-dim);
  max-width: 480px;
}

/* ── FAQ ─────────────────────────────────────── */
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq__item {
  background: var(--bg-2);
  border: 1px solid rgba(255,255,255,.04);
  border-radius: var(--radius);
  padding: 0 24px;
  transition: border-color .25s var(--ease);
}
.faq__item[open] { border-color: rgba(198,166,78,.25); }
.faq__item summary {
  list-style: none;
  padding: 22px 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--gold);
  transition: transform .3s var(--ease);
  font-weight: 300;
  line-height: 1;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p {
  margin: 0;
  padding: 0 0 24px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ── Footer ──────────────────────────────────── */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid rgba(198,166,78,.1);
  background: var(--bg);
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: .02em;
  font-size: 18px;
}
.footer__brand .star { width: 22px; height: 22px; fill: var(--gold); }
.footer__tag {
  margin: 0;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: .25em;
  text-transform: uppercase;
}
.footer__social {
  display: flex;
  gap: 14px;
}
.footer__social a {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(198,166,78,.2);
  transition: all .25s var(--ease);
}
.footer__social a:hover {
  border-color: var(--gold);
  background: rgba(198,166,78,.08);
  transform: translateY(-2px);
}
.footer__social svg {
  width: 18px; height: 18px;
  fill: var(--ink-soft);
  transition: fill .25s var(--ease);
}
.footer__social a:hover svg { fill: var(--gold); }
.footer__copy {
  margin: 8px 0 0;
  color: var(--ink-dim);
  font-size: 13px;
}

/* ── RTL tweaks ──────────────────────────────── */
html[dir="rtl"] .hero__title-main,
html[dir="rtl"] .section__title { letter-spacing: 0; }
html[dir="rtl"] .nav__links a::after,
html[dir="rtl"] .hero__eyebrow,
html[dir="rtl"] .section__kicker,
html[dir="rtl"] .hero__stats span,
html[dir="rtl"] .hero__tagline { letter-spacing: .05em; }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 860px) {
  .nav__links { display: none; position: absolute; top: 100%; inset-inline: 0; flex-direction: column; background: var(--bg-2); padding: 16px 24px; gap: 6px; border-bottom: 1px solid rgba(198,166,78,.15); }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px 0; }
  .nav__actions .btn { display: none; }
  .burger { display: inline-flex; margin-inline-start: auto; }
  .nav__inner { position: relative; }

  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .steps { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; max-width: 280px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero__title-main { letter-spacing: 2px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 20px; padding-top: 36px; }
  .hero__cta .btn { width: 100%; }
  .section { padding: 64px 0; }
  .section__title { font-size: 28px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .step { padding: 28px 22px; }
  .feature { padding: 24px 20px; }
  .faq__item { padding: 0 18px; }
  .faq__item summary { padding: 18px 0; font-size: 15px; }
  .form { padding: 22px; }
  .footer__social a { width: 44px; height: 44px; }
}

@media (max-width: 360px) {
  .cards-grid { grid-template-columns: 1fr; }
  .hero__title-main { font-size: 38px; letter-spacing: 1px; }
}

/* ── Prefers reduced motion ──────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
