/* Al Sharq · brand: Qishani teal, basalt, Mizzi stone, Qamar al-Din apricot
   Concept: sunrise over the souq. Sunburst behind the logo, star-lattice ground,
   ablaq (alternating black/cream stone) edges on every card. */
@font-face { font-family: "Reem Kufi"; src: url("/fonts/reem-kufi.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Readex Pro"; src: url("/fonts/readex-pro.woff2") format("woff2"); font-weight: 160 700; font-display: swap; }

:root {
  --qishani: #1F6A70;
  --qishani-deep: #17555A;
  --basalt: #2A2826;
  --stone: #E8DDC7;
  --qamar: #E37922;
  --muted-on-stone: #605952;
  --radius: 6px;
  --ease: cubic-bezier(.2, .8, .2, 1);

  /* eight-point star lattice, drawn in stone at very low opacity */
  --lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Cg fill='none' stroke='%23E8DDC7' stroke-opacity='.10' stroke-width='1'%3E%3Crect x='22' y='22' width='44' height='44'/%3E%3Crect x='22' y='22' width='44' height='44' transform='rotate(45 44 44)'/%3E%3Ccircle cx='44' cy='44' r='31.1'/%3E%3C/g%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .95 0 0 0 0 .85 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --qishani: #1F6A70; } }
:root[data-theme="dark"] { --qishani: #1F6A70; }

*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; overflow-x: clip; background: var(--qishani-deep); -webkit-text-size-adjust: 100%; }
body {
  position: relative; isolation: isolate; overflow: clip;
  min-height: 100%; min-height: 100dvh; margin: 0; display: flex; flex-direction: column;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(227, 121, 34, .22), transparent 60%),
    radial-gradient(90% 70% at 50% 100%, var(--qishani-deep), transparent 70%),
    var(--lattice) 50% 0 / 88px 88px,
    var(--qishani);
  color: var(--stone);
  font-family: "Readex Pro", "Noto Sans Arabic", Tahoma, sans-serif; line-height: 1.6;
  padding-top: env(safe-area-inset-top, 0px);
}
/* film grain over the hero area only (absolute, not fixed: nothing repaints on scroll) */
body::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: min(100%, 760px); z-index: 10; pointer-events: none;
  background: var(--grain); opacity: .09; mix-blend-mode: soft-light;
}

.page {
  position: relative; width: 100%; max-width: 460px; margin: 0 auto;
  padding: 18px 18px 14px; flex: 1 0 auto; text-align: center;
}

/* ---------- hero: sunrise ---------- */
.hero { --logo-h: clamp(150px, 25vh, 240px); position: relative; display: flex; flex-direction: column; align-items: center; padding-top: 8px; }
.hero::before, .hero::after {
  content: ""; position: absolute; left: 50%; top: calc(8px + var(--logo-h) / 2); translate: -50% -50%;
  border-radius: 50%; pointer-events: none; z-index: -1;
}
/* rotating rays, faded out toward the rim */
.hero::before {
  width: 780px; height: 780px;
  background: repeating-conic-gradient(from 0deg, rgba(227, 121, 34, .20) 0 6deg, transparent 6deg 12deg);
  -webkit-mask-image: radial-gradient(circle, #000 12%, transparent 62%);
          mask-image: radial-gradient(circle, #000 12%, transparent 62%);
  animation: spin 140s linear infinite;
}
/* the sun itself */
.hero::after {
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(227, 121, 34, .55) 0, rgba(227, 121, 34, .22) 42%, transparent 70%);
  animation: breathe 7s ease-in-out infinite;
}
.logo {
  display: block; width: auto; height: var(--logo-h); max-width: 100%;
  filter: drop-shadow(0 18px 28px rgba(16, 48, 52, .45));
}
.tagline {
  margin: 14px 0 0; font-family: "Reem Kufi", "Readex Pro", sans-serif; font-weight: 600;
  font-size: clamp(21px, 5.6vw, 26px); line-height: 1.45;
}
.tagline-en { margin: 2px 0 0; font-size: 14px; letter-spacing: .02em; }

/* ablaq rule under the tagline */
.tagline-en::after {
  content: ""; display: block; width: 96px; height: 8px; margin: 12px auto 0;
  background: repeating-linear-gradient(90deg, var(--basalt) 0 12px, var(--stone) 12px 24px);
  border-radius: 2px;
}

/* ---------- link cards ---------- */
.links { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.link {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 58px;
  padding: 8px 14px 8px 14px; padding-inline-start: 28px;
  background: var(--stone); color: var(--basalt); border-radius: var(--radius);
  text-decoration: none; text-align: start; overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 10px 22px -10px rgba(10, 36, 40, .65);
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease), filter 160ms ease;
}
/* ablaq edge on the start side */
.link::before {
  content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 12px;
  background: repeating-linear-gradient(180deg, var(--basalt) 0 11px, var(--stone) 11px 22px);
  transition: width 260ms var(--ease);
}
.link:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 16px 28px -12px rgba(10, 36, 40, .8); }
.link:hover::before { width: 16px; }
.link:active { transform: translateY(0) scale(.985); }
.link:focus-visible { outline: 3px solid var(--stone); outline-offset: 3px; }
/* WhatsApp is the main action: apricot edge and ring instead of an apricot card, so the green logo stays readable */
.link--primary { box-shadow: 0 0 0 2px var(--qamar), 0 10px 22px -10px rgba(10, 36, 40, .65); }
.link--primary:hover { box-shadow: 0 0 0 2px var(--qamar), 0 16px 28px -12px rgba(10, 36, 40, .8); }
.link--primary::before { background: repeating-linear-gradient(180deg, var(--qamar) 0 11px, var(--stone) 11px 22px); }
/* brand logo tiles: official glyphs (Simple Icons, CC0) in each service's colour */
.ico { flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #fff; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .14); transition: transform 260ms var(--ease); }
.ico svg { width: 24px; height: 24px; fill: currentColor; }
.ico--wa { background: #25D366; }
.ico--ig { background: radial-gradient(circle at 30% 107%, #FDF497 0, #FDF497 5%, #FD5949 45%, #D6249F 60%, #285AEB 90%); }
.ico--fb { background: #1877F2; }
.ico--gm { background: #EA4335; }
.link:hover .ico { transform: scale(1.1) rotate(-5deg); }
.label { display: flex; flex-direction: column; min-width: 0; }
.label .ar { font-size: 16.5px; font-weight: 600; line-height: 1.4; }
.label .en { font-size: 13px; line-height: 1.4; color: var(--muted-on-stone); text-align: start; }

/* ---------- about ---------- */
.about { margin-top: 18px; font-size: 14.5px; line-height: 1.7; }
.about p { margin: 0 0 4px; }

/* ---------- address ---------- */
.info {
  margin-top: 20px; padding: 14px 12px; font-size: 14px;
  border-block: 1px solid rgba(232, 221, 199, .28);
  position: relative;
}
.info::before { /* tiny star on the top rule */
  content: ""; position: absolute; top: -7px; left: 50%; translate: -50% 0; width: 13px; height: 13px;
  background: var(--qamar); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.info p { margin: 0 0 4px; }
.info .calls { margin-top: 6px; }
.info .calls a { color: inherit; font-weight: 500; letter-spacing: .02em; text-underline-offset: 3px; padding: 6px 2px; }
.info .calls a:hover { color: var(--qamar); }
.info .calls a:focus-visible { outline: 2px solid var(--stone); outline-offset: 2px; border-radius: 2px; }
.info .plus { margin-top: 8px; font-weight: 500; letter-spacing: .06em; color: var(--stone); }

/* ---------- footer ---------- */
.footer { flex: 0 0 auto; text-align: center; font-size: 13px; }
.footer p { margin: 6px 0 10px; }
.footer .credit { margin-top: -4px; }
.footer .credit a { color: inherit; text-underline-offset: 3px; }
.footer .credit a:hover { color: var(--qamar); }
.footer .credit a:focus-visible { outline: 2px solid var(--stone); outline-offset: 3px; border-radius: 2px; }
.band { display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--basalt); }
.band span { display: block; height: 10px; }
.band span:nth-child(1), .band span:nth-child(3) { background: var(--basalt); }
.band span:nth-child(2) { background: var(--stone); }

/* ---------- entrance ---------- */
.logo, .tagline, .tagline-en, .link, .about, .info {
  animation: rise 800ms var(--ease) both;
}
.logo { animation-name: rise-logo; animation-duration: 1100ms; }
.tagline { animation-delay: 220ms; }
.tagline-en { animation-delay: 300ms; }
.link:nth-child(1) { animation-delay: 420ms; }
.link:nth-child(2) { animation-delay: 500ms; }
.link:nth-child(3) { animation-delay: 580ms; }
.link:nth-child(4) { animation-delay: 660ms; }
.about { animation-delay: 740ms; }
.info { animation-delay: 820ms; }

@keyframes rise { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
@keyframes rise-logo { from { opacity: 0; translate: 0 40px; scale: .92; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes breathe { 0%, 100% { opacity: .85; scale: 1; } 50% { opacity: 1; scale: 1.08; } }

/* ---------- desktop: two columns, sized to the viewport height so 100% zoom needs no scrolling ---------- */
@media (min-width: 900px) {
  .page {
    max-width: 1180px; padding: clamp(12px, 3vh, 36px) 40px;
    display: grid; grid-template-columns: 1fr minmax(0, 620px); column-gap: 56px;
    grid-template-rows: 1fr auto auto auto 1fr; align-items: start;
  }
  .hero { --logo-h: clamp(170px, 42vh, 420px); grid-row: 1 / -1; align-self: center; }
  .hero::before { width: 900px; height: 900px; }
  .hero::after { width: 420px; height: 420px; }
  .tagline { font-size: clamp(22px, 3.4vh, 30px); margin-top: clamp(10px, 2.4vh, 22px); }
  .links { grid-row: 2; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 0; display: grid; }
  .link { min-height: 62px; padding-inline-start: 26px; gap: 10px; }
  .about { grid-row: 3; margin-top: clamp(12px, 2.4vh, 22px); }
  .info { grid-row: 4; margin-top: clamp(14px, 2.4vh, 22px); }
  .footer { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 22px; }
  .footer .credit { margin-top: 6px; }
  .band { flex: 1 0 100%; }
}
/* short laptop screens (about 768 px tall or less) */
@media (min-width: 900px) and (max-height: 760px) {
  .link { min-height: 54px; padding-block: 6px; }
  .ico { width: 36px; height: 36px; border-radius: 10px; }
  .ico svg { width: 21px; height: 21px; }
  .label .en { font-size: 12px; line-height: 1.3; }
  .about { font-size: 13.5px; line-height: 1.6; }
  .info { padding-block: 10px; font-size: 13px; }
  .info p { margin-bottom: 2px; }
  .tagline-en::after { margin-top: 10px; }
  .footer p { margin-block: 4px 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .logo, .tagline, .tagline-en, .link, .about, .info { animation: none; }
  .hero::before, .hero::after { animation: none; }
  .link, .link::before, .ico { transition: none; }
}
