/* ============================================================
   Medyaf — Landing page styles
   Visual language mirrors the Flutter app:
     • Dark-green canvas + gold/sand gradient blobs
     • Sand-tinted glass cards + Apple-Invites style invite thumbs
     • Cairo (Arabic) + Inter (English) typography
   ============================================================ */

:root {
  /* Brand tokens — same hex values as wedding-couples-app/lib/core/theme/app_theme.dart */
  --green: #0F2E2B;
  --green-700: #14403B;
  --green-900: #081A18;
  --gold: #C9A66B;
  --gold-700: #A58550;
  --sand: #F3EDE2;
  --sand-200: #F7F2E9;
  --sand-300: #ECE3D2;
  --ink: #0E1A18;
  --ink-500: #4A5856;
  --brand-red: #EF4444;
  --brand-green: #22C55E;

  --bg: #FFFFFF;
  --shadow: 0 18px 44px rgba(15, 46, 43, .10);
  --shadow-strong: 0 28px 64px rgba(15, 46, 43, .18);

  --radius-pill: 999px;
  --radius-card: 22px;
  --radius-lg: 28px;
}

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

html { scroll-behavior: smooth; }
html, body {
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Cairo', 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

[dir="ltr"] body, [dir="ltr"] {
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
  font-family: inherit;
}
.btn-primary {
  background: var(--green);
  color: var(--sand);
  box-shadow: var(--shadow);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-gold {
  background: var(--gold);
  color: var(--green);
  box-shadow: var(--shadow);
}
.btn-gold:hover { transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--green);
  border-color: rgba(15, 46, 43, .18);
}
.btn-ghost:hover { background: var(--sand-200); }

/* ---------- Header ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(15, 46, 43, .06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--green);
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-weight: 800;
  font-size: 18px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}
.nav-links a {
  color: var(--ink-500);
  font-weight: 600;
  font-size: 14px;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--green); }
@media (max-width: 760px) {
  .nav-links { display: none; }
}

.lang-switch {
  display: flex;
  gap: 2px;
  padding: 4px;
  background: var(--sand-300);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
}
.lang-switch a {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  color: var(--ink-500);
  transition: all .15s ease;
}
.lang-switch a.active {
  background: var(--green);
  color: var(--sand);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 84px 0 64px;
  background:
    radial-gradient(50% 70% at 100% 0%, rgba(201, 166, 107, .25), transparent 70%),
    radial-gradient(60% 80% at 0% 100%, rgba(15, 46, 43, .14), transparent 70%),
    linear-gradient(180deg, #FFFFFF 0%, var(--sand-200) 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.eyebrow {
  display: inline-block;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(201, 166, 107, .18);
  color: var(--gold-700);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  margin-bottom: 20px;
}

h1.hero-title {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.12;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 18px;
}
h1.hero-title .accent { color: var(--green); }

.hero-lead {
  font-size: 17px;
  color: var(--ink-500);
  max-width: 540px;
  margin-bottom: 28px;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.cta-row .meta {
  font-size: 13px;
  color: var(--ink-500);
}

/* Hero card visual — Apple-Invites style */
.hero-card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  background: var(--green-700);
}
.hero-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,.78) 100%);
}
.hero-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero-card .chip {
  position: absolute;
  top: 16px;
  inset-inline-start: 16px;
  background: rgba(0, 0, 0, .42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, .22);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}
.hero-card .chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

.hero-card .save {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .32);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .22);
  z-index: 2;
}

.hero-card .body {
  position: absolute;
  inset-inline: 22px;
  bottom: 24px;
  color: #fff;
  z-index: 2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .55);
}
.hero-card .body .name { font-size: 26px; font-weight: 800; line-height: 1.2; }
.hero-card .body .sub  { font-size: 13.5px; opacity: .85; margin-top: 4px; }
.hero-card .body .meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12.5px; margin-top: 14px; opacity: .92; }

/* ---------- Marquee ---------- */
.marquee {
  padding: 16px 0 48px;
  background: var(--sand-200);
  position: relative;
  overflow: hidden;
}
.marquee::before, .marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  pointer-events: none;
  z-index: 2;
}
.marquee::before { left: 0;  background: linear-gradient(to right, var(--sand-200), transparent); }
.marquee::after  { right: 0; background: linear-gradient(to left,  var(--sand-200), transparent); }

.marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee-roll 60s linear infinite;
  padding: 28px 0;
}
@keyframes marquee-roll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
[dir="rtl"] .marquee-track {
  animation: marquee-roll-rtl 60s linear infinite;
}
@keyframes marquee-roll-rtl {
  from { transform: translateX(0); }
  to   { transform: translateX(50%); }
}

.tile {
  flex: 0 0 200px;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: var(--green);
  box-shadow: var(--shadow);
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 45%, rgba(0,0,0,.65) 100%);
}
.tile .chip {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  background: rgba(0,0,0,.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  font-size: 10.5px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.22);
  z-index: 2;
}
.tile .name {
  position: absolute;
  inset-inline: 14px;
  bottom: 14px;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  z-index: 2;
  text-shadow: 0 1px 6px rgba(0,0,0,.7);
}

/* ---------- Section primitives ---------- */
section.section { padding: 88px 0; }
section.section.dark {
  background:
    radial-gradient(50% 60% at 100% 0%, rgba(201, 166, 107, .14), transparent 70%),
    radial-gradient(60% 70% at 0% 100%, rgba(243, 237, 226, .07), transparent 70%),
    var(--green-900);
  color: var(--sand);
}
section.section.sand { background: var(--sand-200); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head .kicker {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(201, 166, 107, .18);
  color: var(--gold-700);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  margin-bottom: 14px;
}
section.dark .section-head .kicker { background: rgba(201, 166, 107, .22); color: var(--gold); }

h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}
section.dark h2 { color: var(--sand); }
h2 + .sub {
  color: var(--ink-500);
  margin-top: 12px;
  font-size: 16px;
}
section.dark h2 + .sub { color: rgba(243, 237, 226, .75); }

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

.feat {
  background: #fff;
  border: 1px solid rgba(15, 46, 43, .08);
  border-radius: 20px;
  padding: 26px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.feat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feat .icon-tile {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--sand-300);
  display: grid; place-items: center;
  color: var(--gold-700);
  margin-bottom: 16px;
}
.feat .icon-tile svg { width: 24px; height: 24px; }
.feat h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
}
.feat p { color: var(--ink-500); font-size: 14px; line-height: 1.6; }

/* ---------- How it works (dark) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(243, 237, 226, .14);
  padding: 24px;
  border-radius: 18px;
}
.step .num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--green);
  display: grid; place-items: center;
  font-weight: 800; font-size: 15px;
  margin-bottom: 16px;
}
.step h4 { font-size: 16px; font-weight: 700; color: var(--sand); margin-bottom: 6px; }
.step p { font-size: 13.5px; color: rgba(243, 237, 226, .72); }

/* ---------- Marketplace teaser ---------- */
.market {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .market { grid-template-columns: 1fr; } }
.market-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  overflow: hidden;
  background: var(--green);
}
.market-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.market-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,.7) 100%);
}
.market-card .label {
  position: absolute;
  inset-inline: 18px;
  bottom: 18px;
  color: #fff;
  z-index: 2;
}
.market-card .label .t { font-weight: 800; font-size: 19px; margin-bottom: 4px; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.market-card .label .s { font-size: 13px; opacity: .85; }
.market-card .badge {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  background: rgba(0,0,0,.42);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.22);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}
.market-card .badge .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* ---------- CTA strip ---------- */
.cta-strip {
  background: linear-gradient(160deg, var(--green) 0%, var(--green-700) 100%);
  color: var(--sand);
  border-radius: 28px;
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-strong);
}
@media (max-width: 800px) { .cta-strip { grid-template-columns: 1fr; padding: 40px 28px; } }
.cta-strip h2 { color: var(--sand); }
.cta-strip .sub { color: rgba(243, 237, 226, .8); margin-top: 10px; }
.cta-strip .row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--green-900);
  color: rgba(243, 237, 226, .75);
  padding: 52px 0 28px;
  font-size: 14px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 32px;
}
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-brand { color: var(--sand); font-size: 15px; max-width: 320px; line-height: 1.55; }
.foot-brand .brand { color: var(--sand); margin-bottom: 12px; }
.foot-brand .brand-mark { background: var(--sand); color: var(--green); }
.foot-col h5 {
  color: var(--sand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.foot-col a {
  display: block;
  color: rgba(243, 237, 226, .72);
  padding: 4px 0;
  font-weight: 500;
  transition: color .15s ease;
}
.foot-col a:hover { color: var(--gold); }
.foot-bottom {
  border-top: 1px solid rgba(243, 237, 226, .10);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.foot-bottom small { color: rgba(243, 237, 226, .55); font-size: 12px; }

/* ---------- Tiny screen icon SVGs default styling ---------- */
.i { display: inline-block; vertical-align: middle; }

/* ---------- Header scrolled state ---------- */
header.site-header.is-scrolled {
  box-shadow: 0 8px 28px rgba(15, 46, 43, .06);
  background: rgba(255, 255, 255, .96);
}

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Legal pages ---------- */
.legal {
  padding: 64px 0 80px;
  background: linear-gradient(180deg, #fff 0%, var(--sand-200) 100%);
}
.legal-shell {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(15, 46, 43, .08);
  border-radius: 22px;
  padding: 44px clamp(20px, 4vw, 56px);
  box-shadow: var(--shadow);
}
.legal-shell h1 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}
.legal-shell .meta {
  color: var(--ink-500);
  font-size: 13.5px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(15, 46, 43, .08);
}
.legal-shell h2 {
  font-size: 19px;
  font-weight: 800;
  color: var(--green);
  margin-top: 28px;
  margin-bottom: 10px;
}
.legal-shell h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 22px;
  margin-bottom: 8px;
}
.legal-shell p {
  color: var(--ink-500);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 14px;
}
.legal-shell ul {
  padding-inline-start: 22px;
  margin-bottom: 14px;
}
.legal-shell ul li {
  color: var(--ink-500);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 6px;
}
.legal-shell a { color: var(--green); font-weight: 700; }
.legal-shell a:hover { text-decoration: underline; }

/* ---------- Section helpers used inline on home ---------- */
.section-text-center { text-align: center; }

