/* Landing polish layer: loads after landing.css and landing-fx.css and only refines them.
   Fonts are served by the site itself (no Google Fonts request: faster first paint, works when Google is slow or blocked). */

@font-face {
  font-family: "Noto Sans Arabic";
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/NotoSansArabic-var.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Naskh Arabic";
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/NotoNaskhArabic-var.woff2") format("woff2");
}

/* ---- reading: size, measure, balance ---- */
body {
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 7vw, 4.9rem);
  line-height: 1.12;
}

.hero .lead {
  font-size: clamp(1.1rem, 1.8vw, 1.28rem);
  line-height: 1.85;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  line-height: 1.25;
}

.card h3,
.stats h3 {
  font-size: 1.2rem;
}

.card p,
.stats p {
  font-size: 1rem;
  line-height: 1.8;
}

.proof li strong {
  font-size: 1.15rem;
}

/* ---- rhythm: one vertical beat between sections ---- */
main > section:not(.hero):not(.news) {
  padding-block: clamp(2.75rem, 6vw, 5rem);
}

main > section[id] {
  scroll-margin-top: calc(var(--nav-h, 64px) + 12px);
}

/* ---- cards: no live blur on a flat dark ground (costs scroll smoothness on phones), a clear hover and press ---- */
.stats article,
.card,
.partner-card,
.contact-form,
.contact-meta {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: rgba(255, 255, 255, 0.05);
}

@media (hover: hover) and (pointer: fine) {
  .card,
  .stats article {
    transition: transform 0.28s var(--ease, cubic-bezier(0.16, 1, 0.3, 1)), border-color 0.28s ease, background-color 0.28s ease;
  }

  .card:hover,
  .stats article:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.45);
    background: rgba(255, 255, 255, 0.075);
  }
}

.btn:active,
.gallery-nav:active,
.dock a:active {
  transform: scale(0.97);
}

/* ---- gallery: the viewport fills its frame (it used to be narrower and hug one side, leaving a dead band) ---- */
.gallery-viewport {
  width: 100%;
  aspect-ratio: auto;
  height: min(62vh, 520px, 66vw);
  min-height: 240px;
}

/* ---- gallery: a picture is never cut (logos, posters, screenshots stay whole on the dark ground) ---- */
.shot.is-contain img {
  object-fit: contain;
  transform: none;
}

.shot.is-contain .shot-open {
  background: #0a0a0c;
}

/* ---- keyboard focus and touch ---- */
:focus-visible {
  outline: 2px solid var(--gold-bright, #f5d76e);
  outline-offset: 3px;
  border-radius: 6px;
}

.dock a {
  min-height: 48px;
}

::selection {
  background: rgba(245, 215, 110, 0.28);
  color: #fff;
}

html {
  scrollbar-color: rgba(212, 175, 55, 0.45) #0a0a0c;
  scrollbar-width: thin;
}

/* ---- footer: a designed close with real navigation ---- */
.site-footer {
  padding: 2.75rem 1rem 1.5rem;
}

.site-footer .footer-name {
  margin: 0.25rem 0 1rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--fg);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.5rem;
  margin: 0 auto 1rem;
  max-width: 40rem;
}

.footer-nav a {
  padding: 0.5rem 0.25rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--fg-muted);
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--gold-bright);
}

.footer-contact {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 0 0 1.25rem;
}

.footer-contact a {
  color: var(--gold-bright);
  font-weight: 600;
  padding: 0.5rem 0.25rem;
}

@media (max-width: 760px) {
  .site-footer {
    padding-bottom: calc(var(--dock-h, 68px) + 1.25rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .stats article,
  .footer-nav a {
    transition: none;
  }

  .card:hover,
  .stats article:hover {
    transform: none;
  }
}

/* gallery dots: the dot stays small, its touch area does not */
.gallery-dots button {
  position: relative;
}

.gallery-dots button::after {
  content: "";
  position: absolute;
  inset: -16px -8px;
}
