/* ==========================================================
   Yawmuna Luxury Digital Invitations — Landing Page Styles
   Mobile-First & Ultra Responsive across all devices (320px - 4K)
========================================================== */

html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
  width: 100%;
}

body.landing {
  background: var(--cream);
  color: var(--text);
  font-family: 'Cairo', system-ui, -apple-system, sans-serif;
  margin: 0;
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom);
}

.lwrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
  width: 100%;
  box-sizing: border-box;
}

/* ── Header ────────────────────────────────────────────── */
.lhead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 246, 236, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201, 162, 75, 0.28);
  width: 100%;
}

.lhead-in {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  text-decoration: none;
  flex-shrink: 0;
}
.logo:hover {
  text-decoration: none;
}
.logo img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}
.logo span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo b {
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--gold);
  font-weight: 800;
}
.logo small {
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.lnav {
  display: flex;
  gap: 6px;
  justify-content: center;
}
.lnav a {
  color: var(--muted);
  padding: 7px 14px;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 99px;
  transition: all 0.2s ease;
  text-decoration: none;
}
.lnav a:hover {
  color: var(--primary);
  background: rgba(201, 162, 75, 0.15);
}

.lbtns {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

/* ── Hero Section ───────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fbf6ec 0%, #f6ead3 100%);
  width: 100%;
}

.hero::before {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(201, 162, 75, 0.2);
  filter: blur(60px);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: -90px;
  top: 160px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(122, 34, 48, 0.09);
  filter: blur(60px);
  pointer-events: none;
}

.hero-in {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  padding: 65px 18px;
  z-index: 1;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(201, 162, 75, 0.5);
  background: rgba(201, 162, 75, 0.12);
  color: var(--primary);
  padding: 4px 14px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.2;
  margin: 0;
  font-weight: 800;
  color: var(--primary);
}

.shimmer {
  background: linear-gradient(90deg, #b8902f, #f0d98b, #b8902f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: shine 4s linear infinite;
}

@keyframes shine {
  to { background-position: 200% center; }
}

.hero p.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 32rem;
  margin: 18px 0 0;
  line-height: 1.7;
}

.hbtns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.btn.lg {
  padding: 12px 24px;
  font-size: 0.98rem;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(122, 34, 48, 0.22);
}

.hstats {
  display: flex;
  gap: 22px;
  margin-top: 32px;
}
.hstats > div {
  padding-inline-end: 22px;
  border-inline-end: 1px solid var(--border);
}
.hstats > div:last-child {
  border: 0;
}
.hstats b {
  display: block;
  font-family: 'Amiri', serif;
  font-size: 1.7rem;
  color: var(--primary);
  line-height: 1.1;
}
.hstats small {
  color: var(--muted);
  font-size: 0.78rem;
}

/* ── Phone Mockup ───────────────────────────────────────── */
.phone-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: visible;
}

.phone {
  position: relative;
  width: 260px;
  aspect-ratio: 9/16;
  animation: float 6s ease-in-out infinite;
}

.phone::before,
.phone::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 2.5rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.phone::before {
  background: linear-gradient(135deg, rgba(201, 162, 75, 0.35), rgba(122, 34, 48, 0.2));
  transform: rotate(3deg);
}

.phone::after {
  background: linear-gradient(135deg, rgba(122, 34, 48, 0.15), rgba(201, 162, 75, 0.3));
  transform: rotate(-2deg);
}

.phone-in {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 8px solid #1f2937;
  background: #1f2937;
  border-radius: 2.5rem;
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
}

.phone-in video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.8rem;
  background: #000;
  display: block;
}

.phone-in::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 16px;
  background: #1f2937;
  border-radius: 0 0 12px 12px;
  z-index: 3;
}

@keyframes float {
  50% { transform: translateY(-10px); }
}

/* ── Trust Banner ───────────────────────────────────────── */
.trust {
  background: rgba(122, 34, 48, 0.96);
  color: #fbf6ec;
  border-block: 1px solid rgba(201, 162, 75, 0.25);
  width: 100%;
}

.trust-in {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 32px;
  font-size: 0.88rem;
  font-weight: 600;
}

.trust-in div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.trust-in i {
  color: var(--gold);
}

/* ── Sections ───────────────────────────────────────────── */
.lsec {
  padding: 65px 0;
  width: 100%;
}
.lsec.alt {
  background: rgba(251, 246, 236, 0.55);
  border-block: 1px solid rgba(201, 162, 75, 0.18);
}

.shead {
  text-align: center;
  margin-bottom: 36px;
  padding: 0 12px;
}
.shead .pill {
  margin-bottom: 10px;
  background: #fff;
}
.shead h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin: 0;
  font-weight: 800;
  color: var(--primary);
}
.shead p {
  color: var(--muted);
  margin: 6px 0 0;
  font-size: 0.95rem;
}

.orn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--gold);
}
.orn i:first-child,
.orn i:last-child {
  height: 1px;
  width: 80px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ── Features ───────────────────────────────────────────── */
.feats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 16px;
}

.feat {
  background: #fffdf9;
  border: 1px solid rgba(201, 162, 75, 0.28);
  border-radius: 16px;
  padding: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.feat .ico {
  margin-bottom: 12px;
}
.feat h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
}
.feat p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

/* ── Templates Catalogue ────────────────────────────────── */
.tgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px;
}

.tcard {
  display: block;
  position: relative;
  background: #fff;
  border: 1px solid rgba(201, 162, 75, 0.32);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(122, 34, 48, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  color: inherit;
  cursor: pointer;
}
.tcard:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(122, 34, 48, 0.18);
  text-decoration: none;
}

.tmedia {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #181113;
  overflow: hidden;
}
.tmedia video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #181113;
}
.tmedia::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.75) 0%, transparent 60%);
  pointer-events: none;
}

.tbadge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--gold);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 99px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.tplay-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(201, 162, 75, 0.6);
  color: #fbf6ec;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
}
.tplay-pill i {
  color: #f0d98b;
  font-size: 0.75rem;
}
.tcard:hover .tplay-pill {
  background: var(--primary);
  border-color: #f0d98b;
}

.tname {
  position: absolute;
  bottom: 12px;
  right: 14px;
  left: 14px;
  z-index: 2;
  color: #fff;
  pointer-events: none;
}
.tname b {
  display: block;
  font-family: 'Amiri', serif;
  font-size: 1.35rem;
  line-height: 1.25;
}
.tname small {
  font-size: 0.78rem;
  opacity: 0.85;
}

.tbody {
  padding: 16px;
}
.tbody p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.tags span {
  border: 1px solid rgba(201, 162, 75, 0.45);
  background: rgba(201, 162, 75, 0.08);
  color: var(--primary);
  border-radius: 99px;
  font-size: 0.72rem;
  padding: 2px 10px;
  font-weight: 600;
}

.tfoot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.tfoot .btn {
  min-height: 38px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
}

.custom {
  text-align: center;
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.92rem;
}
.custom a {
  font-weight: 700;
  color: var(--primary);
  text-decoration: underline;
}

/* ── Steps ──────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 24px;
}
.step {
  position: relative;
  background: #fffdf9;
  border: 1px solid rgba(201, 162, 75, 0.3);
  border-radius: 16px;
  padding: 20px;
}
.step .no {
  position: absolute;
  top: -12px;
  right: -8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 4px 10px rgba(122, 34, 48, 0.3);
}
.step .arr {
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
}
.step:last-child .arr {
  display: none;
}
.step h3 {
  margin: 10px 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
}
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

/* ── Call To Action ─────────────────────────────────────── */
.cta {
  position: relative;
  background: linear-gradient(135deg, #7a2230, #5a1722);
  color: #fbf6ec;
  text-align: center;
  padding: 65px 18px;
  overflow: hidden;
  width: 100%;
}
.cta::before {
  content: "";
  position: absolute;
  left: -60px;
  bottom: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(201, 162, 75, 0.18);
  filter: blur(50px);
}
.cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin: 8px 0;
  font-weight: 800;
}
.cta p {
  max-width: 36rem;
  margin: 0 auto 24px;
  opacity: 0.92;
  font-size: 1rem;
  line-height: 1.7;
}

/* ── Floating WhatsApp Button ───────────────────────────── */
.fwa {
  position: fixed;
  left: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #fff;
  padding: 11px 20px;
  border-radius: 99px;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  transition: transform 0.2s ease;
}
.fwa:hover {
  text-decoration: none;
  transform: scale(1.05);
}

/* ── Table Responsiveness ───────────────────────────────── */
.tbl {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  width: 100%;
}

/* ==========================================================
   Responsive Breakpoints & Device Adaptations
========================================================== */

/* Tablets (< 860px) */
@media (max-width: 860px) {
  .hero-in {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 44px 18px;
    gap: 28px;
  }
  .hero p.lead {
    margin-inline: auto;
  }
  .hbtns, .hstats {
    justify-content: center;
  }
  .step .arr {
    display: none;
  }
  .phone-wrap {
    order: -1;
  }
  .lnav {
    display: none;
  }
}

/* Mobile Devices (< 600px) */
@media (max-width: 600px) {
  .lhead-in {
    padding: 8px 12px;
    gap: 8px;
  }
  .logo img {
    width: 38px;
    height: 38px;
  }
  .logo b {
    font-size: 0.98rem;
  }
  .logo small {
    display: none;
  }
  .lbtns {
    gap: 6px;
  }
  .lbtns .btn.sm {
    min-height: 38px;
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  .hide-m {
    display: none !important;
  }

  .hero-in {
    padding: 24px 12px 36px;
    gap: 20px;
  }
  .hero h1 {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }
  .hero p.lead {
    font-size: 0.95rem;
    margin-top: 12px;
  }
  .hbtns {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .hbtns .btn {
    width: 100%;
    min-height: 48px;
    font-size: 0.95rem;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .hstats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 22px;
    padding: 12px 6px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(201, 162, 75, 0.28);
    border-radius: 14px;
    width: 100%;
    box-sizing: border-box;
  }
  .hstats > div {
    border: 0;
    padding: 0;
    text-align: center;
  }
  .hstats b {
    font-size: 1.35rem;
  }
  .hstats small {
    font-size: 0.68rem;
    line-height: 1.25;
  }

  .phone-wrap {
    width: 100%;
    overflow: hidden;
    padding: 4px 0;
  }
  .phone {
    width: 210px;
    max-width: 70vw;
  }
  .phone::before,
  .phone::after {
    transform: none !important;
    opacity: 0.5;
  }

  .lsec {
    padding: 44px 0;
  }
  .shead {
    margin-bottom: 24px;
  }
  .trust-in {
    gap: 8px 16px;
    font-size: 0.78rem;
    padding: 10px 12px;
  }

  .tgrid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .tmedia {
    aspect-ratio: 16 / 10;
  }
  .tbody {
    padding: 14px;
  }
  .tfoot .btn {
    min-height: 44px;
    font-size: 0.84rem;
    padding: 8px 14px;
  }

  .feats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .feat {
    padding: 12px;
  }
  .feat p {
    font-size: 0.78rem;
  }

  .step {
    padding: 16px;
  }

  .cta {
    padding: 44px 16px;
  }
  .cta .btn {
    width: 100%;
    min-height: 48px;
    margin-bottom: 8px;
  }

  .fwa {
    left: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    padding: 14px;
    border-radius: 50%;
  }
  .fwa span {
    display: none;
  }
}

/* Very Small Phones (< 400px) */
@media (max-width: 400px) {
  .hero h1 {
    font-size: 1.85rem;
  }
  .phone {
    width: 175px;
  }
  .feats {
    grid-template-columns: 1fr;
  }
  .hstats b {
    font-size: 1.2rem;
  }
  .hstats small {
    font-size: 0.64rem;
  }
}
