/* Arzaq — Coming Soon. Colours come from arzaq-brand (README: background #062810, glow #1B562E, gold #D9A33A). */
:root {
  --bg: #062810;
  --bg-deep: #031a09;
  --glow: #1b562e;
  --gold: #d9a33a;
  --gold-light: #f2d488;
  --gold-deep: #a9741f;
  --cream: #f6eedb;
  --cream-dim: rgba(246, 238, 219, 0.72);
  --ink: #0b3a1c;
  --line: rgba(217, 163, 58, 0.45);
  --font: "Cairo", "Segoe UI", Tahoma, sans-serif;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--cream);
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(42, 110, 60, 0.55), transparent 70%),
    radial-gradient(ellipse 90% 70% at 50% 40%, #0d3f1d 0%, var(--bg) 55%, var(--bg-deep) 100%);
  background-color: var(--bg);
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: hidden;
  display: flow-root; /* keep .page margins inside body so min-height + margins = exactly one screen */
}

/* Language switching: both languages live in the markup; only the active one is shown. */
html[lang="ar"] [data-l="en"],
html[lang="en"] [data-l="ar"] {
  display: none !important;
}

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

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

a {
  color: var(--gold-light);
  text-underline-offset: 3px;
}

a:hover {
  color: #fff3cf;
}

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Frame ---------- */
.page {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  overflow: hidden;
  isolation: isolate;
}

@media (min-width: 768px) {
  .page {
    width: calc(100% - 40px);
    margin-block: 20px;
    border: 1px solid var(--line);
    border-radius: 44px;
    background:
      radial-gradient(ellipse 60% 40% at 50% 8%, rgba(217, 163, 58, 0.12), transparent 70%),
      radial-gradient(ellipse 80% 60% at 50% 35%, rgba(27, 86, 46, 0.55), transparent 75%);
    box-shadow:
      inset 0 0 0 6px rgba(6, 40, 16, 0.6),
      inset 0 0 0 7px rgba(217, 163, 58, 0.18),
      0 30px 80px rgba(0, 0, 0, 0.45);
  }
}

.decor-leaf {
  position: absolute;
  z-index: -1;
  width: clamp(120px, 18vw, 240px);
  opacity: 0.22;
  filter: blur(3px);
  pointer-events: none;
}

.decor-leaf.one {
  top: -20px;
  left: -40px;
  transform: rotate(18deg);
}

.decor-leaf.two {
  top: 22%;
  right: -60px;
  transform: scaleX(-1) rotate(10deg);
}

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 0;
}

@media (min-width: 768px) {
  .topbar {
    padding: 22px 28px 0;
  }
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  font: 600 0.9rem/1 var(--font);
  color: var(--gold-light);
  background: rgba(3, 26, 9, 0.55);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.lang-toggle:hover {
  background: rgba(217, 163, 58, 0.14);
  border-color: var(--gold);
}

.lang-toggle svg {
  width: 18px;
  height: 18px;
}

/* ---------- Hero ---------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
}

.brand {
  margin: 4px 0 0;
  line-height: 0;
}

.logo {
  width: clamp(128px, 17vw, 200px);
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 30px rgba(217, 163, 58, 0.18));
}

.ruled {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0;
}

.ruled::before,
.ruled::after {
  content: "";
  flex: 0 0 auto;
  width: clamp(28px, 7vw, 64px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.ruled::after {
  transform: scaleX(-1);
}

.tagline {
  margin-top: 10px;
}

.tagline-main {
  font-size: clamp(1rem, 2.3vw, 1.3rem);
  font-weight: 600;
  color: var(--cream);
}

.tagline-sub {
  margin: 2px 0 0;
  font-size: clamp(0.7rem, 1.5vw, 0.82rem);
  font-weight: 600;
  color: var(--gold-light);
  opacity: 0.9;
}

.tagline-sub [lang="en"] {
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

/* Brush banner */
.banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2px, 1vw, 10px);
  width: min(620px, 100%);
  margin-top: clamp(18px, 3vw, 30px);
}

.banner .leaf {
  flex: 0 0 auto;
  width: clamp(30px, 6vw, 58px);
  height: auto;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35));
}

.banner .leaf.end {
  transform: scaleX(-1);
}

.brush {
  position: relative;
  flex: 1 1 auto;
  display: grid;
  place-items: center;
  min-height: clamp(76px, 13vw, 124px);
}

.brush-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
}

.brush-text {
  position: relative;
  margin: 0;
  padding: 0 0.4em 0.08em;
  font-size: clamp(2rem, 6.4vw, 3.5rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 240, 200, 0.35);
}

html[lang="en"] .brush-text {
  font-size: clamp(1.8rem, 5.6vw, 3.1rem);
  letter-spacing: 0.02em;
}

.lead {
  margin: clamp(14px, 2.4vw, 22px) 0 0;
  font-size: clamp(1.1rem, 2.8vw, 1.6rem);
  font-weight: 700;
  line-height: 1.5;
}

.motto {
  margin-top: 4px;
  font-size: clamp(0.9rem, 1.9vw, 1.05rem);
  color: var(--gold-light);
}

/* Stage: phone with produce on both sides */
.stage {
  position: relative;
  width: calc(100% + 32px);
  margin-inline: -16px;
  height: clamp(330px, 46vw, 500px);
  margin-top: clamp(12px, 2vw, 24px);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: clamp(18px, 3vw, 34px);
}

.produce {
  position: absolute;
  bottom: 0;
  height: 100%;
  width: auto;
  max-width: 48%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

/* Two masks intersected: fade top/bottom, and fade both sides (strongest towards the phone). */
.produce.left {
  left: 0;
  object-position: left bottom;
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0, #000 30%, #000 82%, transparent 100%),
    linear-gradient(to right, transparent 0, #000 14%, #000 52%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent 0, #000 30%, #000 82%, transparent 100%),
    linear-gradient(to right, transparent 0, #000 14%, #000 52%, transparent 100%);
  mask-composite: intersect;
}

.produce.right {
  right: 0;
  object-position: right bottom;
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0, #000 30%, #000 82%, transparent 100%),
    linear-gradient(to left, transparent 0, #000 14%, #000 52%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent 0, #000 30%, #000 82%, transparent 100%),
    linear-gradient(to left, transparent 0, #000 14%, #000 52%, transparent 100%);
  mask-composite: intersect;
}

@media (min-width: 900px) {
  .produce {
    max-width: 40%;
  }

  .produce.left {
    left: 2%;
  }

  .produce.right {
    right: 2%;
  }
}

@media (max-width: 520px) {
  .produce {
    max-width: 56%;
    opacity: 0.8;
  }

  .produce.left {
    left: -14%;
  }

  .produce.right {
    right: -14%;
  }
}

.floor {
  position: absolute;
  bottom: clamp(6px, 1.4vw, 16px);
  left: 50%;
  width: clamp(200px, 34vw, 380px);
  height: 34px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.65), transparent 70%);
  z-index: 1;
}

.phone-wrap {
  position: relative;
  z-index: 2;
  perspective: 1100px;
}

.phone {
  position: relative;
  width: clamp(150px, 20vw, 228px);
  aspect-ratio: 9 / 18.6;
  padding: 7px;
  border-radius: clamp(26px, 3.4vw, 38px);
  background: linear-gradient(135deg, #3a3a3a, #0e0e0e 40%, #262626 70%, #0b0b0b);
  box-shadow:
    inset 0 0 0 1.5px #555,
    inset 0 0 0 3px #111,
    -14px 22px 40px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(217, 163, 58, 0.12);
  transform: rotateY(-14deg) rotateX(4deg) rotateZ(-2deg);
  transform-style: preserve-3d;
  animation: float 6s ease-in-out infinite;
}

.screen {
  position: relative;
  height: 100%;
  border-radius: clamp(20px, 2.8vw, 31px);
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 80% 55% at 50% 40%, #23703a 0%, #0f4321 55%, #072b12 100%);
}

.screen::before {
  /* glass reflection */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.14) 0%, transparent 32%);
  pointer-events: none;
  z-index: 3;
}

.notch {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 34%;
  height: 16px;
  transform: translateX(-50%);
  background: #050505;
  border-radius: 999px;
  z-index: 2;
}

.status {
  position: absolute;
  top: 8px;
  inset-inline: 14px;
  display: flex;
  justify-content: space-between;
  font: 600 0.5rem/1 var(--font);
  color: rgba(255, 255, 255, 0.85);
  direction: ltr;
  z-index: 2;
}

.screen-logo {
  width: 62%;
  height: auto;
  margin-top: -12%;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
}

.screen-leaf {
  position: absolute;
  bottom: -8%;
  width: 58%;
  opacity: 0.55;
}

.screen-leaf.a {
  left: -14%;
  transform: rotate(-12deg);
}

.screen-leaf.b {
  right: -18%;
  bottom: -14%;
  transform: scaleX(-1) rotate(-20deg);
  opacity: 0.4;
}

@keyframes float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -8px;
  }
}

/* Categories */
.categories {
  list-style: none;
  margin: clamp(8px, 2vw, 18px) 0 0;
  padding: 0;
  width: min(1000px, 100%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  row-gap: 18px;
}

@media (min-width: 760px) {
  .categories {
    grid-template-columns: repeat(8, 1fr);
  }

  .categories li + li {
    border-inline-start: 1px solid rgba(217, 163, 58, 0.28);
  }
}

.categories li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-inline: 4px;
  font-size: clamp(0.78rem, 1.4vw, 0.9rem);
  font-weight: 600;
  color: var(--cream);
  line-height: 1.3;
}

.cat-icon {
  display: grid;
  place-items: center;
  width: clamp(54px, 6.4vw, 70px);
  height: clamp(54px, 6.4vw, 70px);
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: radial-gradient(circle at 50% 35%, rgba(217, 163, 58, 0.16), rgba(3, 26, 9, 0.6));
  box-shadow: 0 0 0 4px rgba(217, 163, 58, 0.08), 0 6px 14px rgba(0, 0, 0, 0.3);
}

.cat-icon svg {
  width: 56%;
  height: 56%;
  fill: none;
  stroke: var(--gold-light);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Store badges */
.stores {
  margin-top: clamp(26px, 4vw, 38px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.stores-label {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-light);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  direction: ltr;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 156px;
  padding: 7px 16px 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  text-align: left;
  font-family: "Segoe UI", -apple-system, Helvetica, Arial, sans-serif;
  cursor: default;
}

.badge svg {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  fill: #fff;
}

.badge small {
  display: block;
  font-size: 0.62rem;
  line-height: 1.1;
  opacity: 0.9;
}

.badge strong {
  display: block;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.15;
}

/* Contact */
.contact {
  margin: clamp(22px, 3vw, 30px) 0 0;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.98rem;
  color: var(--cream-dim);
}

.contact svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.7;
}

.contact a {
  font-weight: 700;
  direction: ltr;
  unicode-bidi: isolate;
}

/* Footer */
.legal {
  margin-top: clamp(26px, 4vw, 40px);
  padding: 22px 16px 26px;
  border-top: 1px solid rgba(217, 163, 58, 0.22);
  background: rgba(3, 20, 8, 0.45);
  text-align: center;
  font-size: 0.8rem;
  color: var(--cream-dim);
  line-height: 1.75;
}

.legal p {
  max-width: 820px;
  margin: 0 auto;
}

.legal .legal-en {
  margin-top: 4px;
  font-size: 0.74rem;
  opacity: 0.85;
}

html[lang="en"] .legal .legal-en {
  margin-top: 0;
  font-size: 0.8rem;
  opacity: 1;
}

.legal-meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 22px;
}

.legal nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  font-weight: 600;
}

.legal .copy {
  margin: 0;
  font-size: 0.74rem;
  opacity: 0.75;
}

/* ---------- Desktop: the whole page fits one screen ----------
   Text column on the start side, phone + produce on the end side, categories underneath.
   Sizes follow the viewport height so a 1366×768 laptop and a 1080p/1440p monitor all fit without scrolling. */
@media (min-width: 1024px) {
  .home .page {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 40px);
    min-height: calc(100dvh - 40px);
  }

  .home .topbar {
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    z-index: 5;
    padding: 2.4vh 28px 0;
  }

  .home .hero {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "brand   stage"
      "tagline stage"
      "banner  stage"
      "lead    stage"
      "motto   stage"
      "stores  stage"
      "contact stage"
      "cats    cats";
    grid-template-rows: auto auto auto auto auto auto auto auto;
    align-content: center;
    column-gap: 2vw;
    padding: 3vh 4vw 0;
  }

  .home .brand { grid-area: brand; justify-self: center; margin: 0; }
  .home .tagline { grid-area: tagline; margin-top: 0.8vh; }
  .home .banner { grid-area: banner; justify-self: center; width: min(540px, 100%); margin-top: 2.2vh; }
  .home .lead { grid-area: lead; margin-top: 1.6vh; }
  .home .motto { grid-area: motto; }
  .home .stores { grid-area: stores; margin-top: 2.6vh; }
  .home .contact { grid-area: contact; justify-self: center; margin-top: 1.4vh; }
  .home .categories { grid-area: cats; justify-self: center; margin-top: 2.4vh; }

  .home .stage {
    grid-area: stage;
    align-self: center;
    width: 100%;
    margin: 0;
    height: clamp(300px, 56vh, 620px);
    padding-bottom: 2.6vh;
  }

  .home .produce {
    max-width: 50%;
  }

  .home .produce.left {
    left: 0;
    -webkit-mask-image:
      linear-gradient(to bottom, transparent 0, #000 30%, #000 80%, transparent 100%),
      linear-gradient(to right, transparent 0, #000 30%, #000 55%, transparent 100%);
    mask-image:
      linear-gradient(to bottom, transparent 0, #000 30%, #000 80%, transparent 100%),
      linear-gradient(to right, transparent 0, #000 30%, #000 55%, transparent 100%);
  }

  .home .produce.right {
    right: 0;
    -webkit-mask-image:
      linear-gradient(to bottom, transparent 0, #000 30%, #000 80%, transparent 100%),
      linear-gradient(to left, transparent 0, #000 30%, #000 55%, transparent 100%);
    mask-image:
      linear-gradient(to bottom, transparent 0, #000 30%, #000 80%, transparent 100%),
      linear-gradient(to left, transparent 0, #000 30%, #000 55%, transparent 100%);
  }

  .home .phone {
    width: auto;
    height: clamp(250px, 48vh, 540px);
  }

  .home .logo {
    width: auto;
    height: clamp(92px, 15vh, 200px);
  }

  .home .tagline-main { font-size: clamp(0.95rem, 2.2vh, 1.3rem); }
  .home .tagline-sub { font-size: clamp(0.68rem, 1.45vh, 0.85rem); }
  .home .brush { min-height: clamp(62px, 9.5vh, 118px); }
  .home .brush-text { font-size: clamp(1.9rem, 5.4vh, 3.5rem); }
  html[lang="en"] .home .brush-text { font-size: clamp(1.7rem, 4.8vh, 3.1rem); }
  .home .lead { font-size: clamp(1.05rem, 2.8vh, 1.6rem); }
  .home .motto { font-size: clamp(0.9rem, 2vh, 1.1rem); }
  .home .stores-label { font-size: clamp(0.78rem, 1.6vh, 0.9rem); }
  .home .badge { padding-block: 0.6vh; }

  .home .categories li { gap: 0.8vh; font-size: clamp(0.76rem, 1.6vh, 0.92rem); }
  .home .cat-icon {
    width: clamp(44px, 6.6vh, 72px);
    height: clamp(44px, 6.6vh, 72px);
  }

  .home .legal {
    margin-top: 2.4vh;
    padding: 1.4vh 24px 1.6vh;
    font-size: 0.76rem;
    line-height: 1.6;
  }

  .home .legal .legal-en { margin-top: 0; }
  .home .legal-meta { margin-top: 0.6vh; }
}

/* Short laptop screens (e.g. 1280×720 with browser toolbars ≈ 620px tall). */
@media (min-width: 1024px) and (max-height: 700px) {
  .home .page {
    margin-block: 10px;
    min-height: calc(100vh - 20px);
    min-height: calc(100dvh - 20px);
  }

  .home .hero { padding-top: 2vh; }
  .home .logo { height: 80px; }
  .home .brush { min-height: 56px; }
  .home .cat-icon { width: 40px; height: 40px; }
  .home .stores { margin-top: 1.8vh; }
  .home .categories { margin-top: 1.6vh; }
  .home .legal { margin-top: 1.6vh; }
}

/* Entrance */
.reveal {
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.reveal.d1 { animation-delay: 0.08s; }
.reveal.d2 { animation-delay: 0.18s; }
.reveal.d3 { animation-delay: 0.28s; }
.reveal.d4 { animation-delay: 0.38s; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .phone {
    animation: none;
  }
}

/* ---------- Privacy page ---------- */
.doc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
}

@media (min-width: 768px) {
  .doc-header {
    padding: 22px 28px;
  }
}

.home-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
}

.home-link img {
  width: 44px;
  height: auto;
}

.doc {
  max-width: 820px;
  margin: 0 auto;
  padding: 8px 16px 10px;
}

.doc-card {
  padding: clamp(20px, 4vw, 40px);
  border: 1px solid rgba(217, 163, 58, 0.28);
  border-radius: 24px;
  background: rgba(3, 26, 9, 0.5);
}

.doc h1 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1.3;
}

.doc .updated {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: var(--cream-dim);
}

.doc h2 {
  margin: 28px 0 6px;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--gold-light);
}

.doc p,
.doc li {
  color: rgba(246, 238, 219, 0.88);
  font-size: 0.98rem;
}

.doc p {
  margin: 0 0 10px;
}

.doc ul {
  margin: 0 0 10px;
  padding-inline-start: 1.3em;
}

.doc .email {
  direction: ltr;
  unicode-bidi: isolate;
  font-weight: 700;
}
