@import url("../fonts/fonts.css");

/* ==========================================================================
   GT QUEENS — Design tokens
   Derived from the Elementor global kit of gt-queens.world
   ========================================================================== */
:root {
  /* Colour */
  --c-black: #000000;
  --c-violet: #36209e;
  --c-violet-deep: #1b1050;
  --c-white: #ffffff;
  --c-text: rgba(255, 255, 255, 0.78);
  --c-muted: rgba(255, 255, 255, 0.4);
  --c-line: rgba(255, 255, 255, 0.18);
  --c-line-soft: rgba(255, 255, 255, 0.08);

  /* Type */
  --f-display: "Unbounded", "Noto Kufi Arabic", sans-serif;
  --f-body: "Outfit", "Tajawal", sans-serif;
  --f-script: "Parisienne", cursive;

  /* Signature asymmetric radii (kit: buttons 20px 0, media 40px 0) */
  --r-btn: 20px 0 20px 0;
  --r-card: 40px 0 40px 0;

  /* Rhythm */
  --shell: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --section-y: clamp(4.5rem, 10vw, 9rem);
  --header-h: 88px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--c-black);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
video { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--c-white);
  outline-offset: 3px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.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;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--c-white);
  color: var(--c-black);
  border-radius: var(--r-btn);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

/* ==========================================================================
   Typography primitives
   ========================================================================== */
.eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(0.8125rem, 0.74rem + 0.35vw, 1.125rem);
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--c-muted);
  text-transform: uppercase;
}

.section-title {
  margin: 0 0 1.5rem;
  font-family: var(--f-display);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(1.375rem, 1.05rem + 1.6vw, 1.875rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--c-white);
  text-transform: uppercase;
  text-wrap: balance;
}

.lede { max-width: 62ch; }
.lede p { margin: 0 0 1.25rem; }
.lede p:last-child { margin-bottom: 0; }

.section { padding-block: var(--section-y); }

/* The violet bloom that bleeds across the Vision → What We Do seam,
   reproducing the kit's linear-gradient(#000, #36209E) pairing. */
.violet-field {
  background:
    radial-gradient(120% 70% at 50% 50%, rgba(54, 32, 158, 0.9) 0%, rgba(54, 32, 158, 0) 72%),
    linear-gradient(180deg, #000 0%, #150c40 30%, #150c40 70%, #000 100%);
}

/* ==========================================================================
   Buttons — kit: transparent fill, 1px white border, radius 20px 0, hover fills black
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 15px 25px;
  min-height: 52px;
  border: 1px solid var(--c-white);
  border-radius: var(--r-btn);
  background: transparent;
  color: var(--c-white);
  font-family: var(--f-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.btn:hover,
.btn:focus-visible {
  background: var(--c-white);
  color: var(--c-black);
}

.btn--ghost { border-color: var(--c-line); }
.btn--ghost:hover,
.btn--ghost:focus-visible { border-color: var(--c-white); }

/* ==========================================================================
   Header — logo + language switch + single CTA (no navigation, per brief)
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  min-height: var(--header-h);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.is-stuck {
  background: var(--c-black);
  border-bottom: 1px solid var(--c-line-soft);
}

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: inline-flex; flex: 0 0 auto; }
.brand img { width: clamp(120px, 14vw, 158px); height: auto; }

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1.25rem);
}

.header-actions .btn {
  min-height: 46px;
  padding: 12px 22px;
  font-size: 0.9375rem;
  white-space: nowrap;
}

/* ==========================================================================
   Language switcher
   ========================================================================== */
.lang { position: relative; }

.lang__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 11px 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-btn);
  color: var(--c-white);
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.lang__toggle:hover { border-color: var(--c-white); }
.lang__toggle svg { width: 10px; height: 10px; transition: transform 0.3s ease; }
.lang__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.lang__label { font-weight: 500; }
.lang__code { display: none; font-weight: 500; }

.lang__menu {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  z-index: 10;
  min-width: 190px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #0b0b0e;
  border: 1px solid var(--c-line);
  border-radius: 16px 0 16px 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}
.lang.is-open .lang__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang__menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px 0 10px 0;
  color: var(--c-text);
  font-size: 0.9375rem;
  text-align: start;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.lang__menu button:hover { background: rgba(255, 255, 255, 0.08); color: var(--c-white); }
.lang__menu button[aria-current="true"] { color: var(--c-white); }
.lang__menu button[aria-current="true"]::after { content: "—"; color: var(--c-muted); }
.lang__menu span:last-child { font-size: 0.75rem; letter-spacing: 0.08em; color: var(--c-muted); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  padding-block: calc(var(--header-h) + 2rem) clamp(4rem, 10vh, 7rem);
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 35%),
    linear-gradient(to top, #000 4%, rgba(11, 6, 40, 0.55) 40%, rgba(0, 0, 0, 0) 72%);
}

.hero__title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.75rem, 1.2rem + 7.6vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--c-white);
}

.hero__tagline {
  margin: 1rem 0 0;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1rem, 0.86rem + 0.7vw, 1.375rem);
  line-height: 1.4;
  color: var(--c-white);
}

.hero__rule {
  width: 84px;
  height: 1px;
  margin-top: 2rem;
  background: var(--c-white);
  opacity: 0.5;
}

/* ==========================================================================
   Film — the single mixed-events reel
   ========================================================================== */
.film { padding-block: clamp(3rem, 8vw, 6rem); background: var(--c-black); }

.film__frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-card);
  background: #0b0b0e;
  aspect-ratio: 16 / 9;
}
.film__frame video,
.film__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.film__toggle {
  position: absolute;
  inset-block-end: 1.25rem;
  inset-inline-start: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 10px 18px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--c-line);
  border-radius: var(--r-btn);
  color: var(--c-white);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.film__toggle:hover { background: rgba(0, 0, 0, 0.8); border-color: var(--c-white); }

/* ==========================================================================
   Manifesto — the founder's statement + signature
   ========================================================================== */
.manifesto { background: var(--c-black); }

.manifesto__inner {
  max-width: 62rem;
  margin-inline: auto;
  text-align: center;
}

.manifesto blockquote {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.0625rem, 0.9rem + 0.85vw, 1.5rem);
  line-height: 1.7;
  color: var(--c-white);
  text-wrap: pretty;
}
.manifesto blockquote p { margin: 0 0 1.35em; }
.manifesto blockquote p:last-child { margin-bottom: 0; }
.manifesto blockquote em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.92);
}

.manifesto__mark {
  display: block;
  width: 58px;
  margin: 0 auto 2.5rem;
}
.manifesto__mark img { width: 100%; height: auto; opacity: 0.5; }

.signature {
  margin-top: clamp(2.5rem, 6vw, 3.75rem);
}
.signature__name {
  margin: 0;
  font-family: var(--f-script);
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  line-height: 1.1;
  color: var(--c-white);
}
.signature__role {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-muted);
}

/* ==========================================================================
   Vision
   ========================================================================== */
.vision__inner { max-width: 58rem; }

/* ==========================================================================
   What we do — three pillars
   ========================================================================== */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
  gap: clamp(1.75rem, 3.5vw, 2.75rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.pillar {
  display: flex;
  flex-direction: column;
}

.pillar__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-card);
  aspect-ratio: 4 / 3;
  background: #0b0b0e;
}
.pillar__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}
.pillar:hover .pillar__media img {
  transform: scale(1.06);
  filter: grayscale(0.15) contrast(1.05);
}

.pillar__title {
  margin: 1.75rem 0 0.75rem;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--c-white);
  text-transform: uppercase;
}

.pillar__text {
  margin: 0 0 1.75rem;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.pillar .btn {
  align-self: flex-start;
  margin-top: auto;
  font-size: 0.9375rem;
}

/* ==========================================================================
   Partners — infinite marquee of logo cards
   ========================================================================== */
.partners { background: var(--c-black); }
.partners__head { text-align: center; }

.marquee {
  --marquee-duration: 46s;
  position: relative;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  gap: 1.5rem;
  animation: marquee var(--marquee-duration) linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 0.75rem)); }
}

.logo-card {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: clamp(160px, 20vw, 208px);
  aspect-ratio: 16 / 11;
  padding: 1.5rem;
  background: var(--c-white);
  border-radius: var(--r-card);
}
.logo-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { position: relative; overflow: hidden; }

.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.contact__media {
  overflow: hidden;
  border-radius: var(--r-card);
  aspect-ratio: 3 / 2;
}
.contact__media img { width: 100%; height: 100%; object-fit: cover; }

.contact__mail {
  display: inline-flex;
  margin-top: 1.75rem;
  /* The address is one unbreakable token — size it off the container so it
     always fits on a single line rather than snapping mid-domain. */
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1rem, 0.75rem + 1vw, 1.5rem);
  line-height: 1.3;
  color: var(--c-white);
  white-space: nowrap;
}
.contact__mail span {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  transition: background-size 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding-bottom: 4px;
}
.contact__mail:hover span { background-size: 0 1px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding-block: clamp(3rem, 7vw, 5rem);
  background: var(--c-black);
  border-top: 1px solid var(--c-line-soft);
  text-align: center;
}

.site-footer .brand {
  display: block;
  width: 132px;
  margin-inline: auto;
}
.site-footer .brand img { width: 100%; height: auto; }

.footer__mail {
  display: inline-block;
  margin-top: 1.75rem;
  font-size: 1rem;
  color: var(--c-white);
}
.footer__mail:hover { color: var(--c-muted); }

.socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}
.socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--c-white);
  opacity: 0.75;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.socials a:hover { opacity: 1; transform: translateY(-2px); }
.socials svg { width: 19px; height: 19px; fill: currentColor; }

.legal {
  margin: 2.5rem 0 0;
  font-size: 0.8125rem;
  font-style: italic;
  line-height: 1.9;
  color: var(--c-muted);
}
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--c-white); }

/* ==========================================================================
   Legal document page (privacy policy)
   ========================================================================== */
.page-legal { background: var(--c-black); }

.legal-page__body {
  padding-block: calc(var(--header-h) + clamp(3rem, 7vw, 5rem)) var(--section-y);
}

.legal-page__head {
  max-width: 46rem;
  margin: 0 auto clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}

.legal-page__title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3rem);
  line-height: 1.15;
  color: var(--c-white);
  text-transform: uppercase;
}

.legal-page__note {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  color: var(--c-muted);
}

/* The body copy is a long legal read: narrow measure, quiet contrast. */
.legal-page__doc {
  max-width: 46rem;
  margin-inline: auto;
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--c-text);
}

.legal-page__doc > :first-child { margin-top: 0; }

.legal-page__doc .doc-title {
  margin: 0 0 0.25rem;
  padding-top: clamp(2.5rem, 6vw, 4rem);
  border-top: 1px solid var(--c-line-soft);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(0.9375rem, 0.86rem + 0.4vw, 1.125rem);
  line-height: 1.4;
  color: var(--c-white);
  text-transform: none;
}
.legal-page__doc > .doc-title:first-child { padding-top: 0; border-top: 0; }

.legal-page__doc .doc-sub {
  margin: 0 0 2.5rem;
  font-size: 0.875rem;
  color: var(--c-muted);
}

.legal-page__doc h2 {
  margin: 2.75rem 0 0.85rem;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: var(--c-white);
}

.legal-page__doc h3 {
  margin: 2rem 0 0.6rem;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--c-white);
}

.legal-page__doc p { margin: 0 0 1.15rem; }
.legal-page__doc b { color: rgba(255, 255, 255, 0.95); font-weight: 500; }

.legal-page__doc .lead-item {
  margin: 1.75rem 0 0.6rem;
  color: var(--c-white);
  font-weight: 500;
}

.legal-page__doc ul {
  margin: 0 0 1.25rem;
  padding-inline-start: 1.35rem;
  list-style: none;
}
.legal-page__doc li {
  position: relative;
  margin-bottom: 0.5rem;
}
.legal-page__doc li::before {
  content: "";
  position: absolute;
  inset-inline-start: -1.35rem;
  top: 0.78em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}
.legal-page__doc .list-dash li::before {
  top: 0.88em;
  width: 11px;
  height: 1px;
  border-radius: 0;
}

.legal-page__doc a {
  color: var(--c-white);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  overflow-wrap: anywhere;
  transition: text-decoration-color 0.25s ease;
}
.legal-page__doc a:hover { text-decoration-color: var(--c-white); }

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Arabic / RTL
   ========================================================================== */
html[lang="ar"] {
  --f-display: "Noto Kufi Arabic", "Unbounded", sans-serif;
  --f-body: "Tajawal", "Outfit", sans-serif;
}
html[lang="ar"] body { line-height: 1.95; }
html[lang="ar"] .section-title,
html[lang="ar"] .manifesto blockquote em { font-style: normal; }
html[lang="ar"] .hero__title { letter-spacing: 0; }
/* The founder's signature stays in its Latin script. */
html[lang="ar"] .signature__name { font-family: var(--f-script); direction: ltr; }

[dir="rtl"] .hero__media img { object-position: 38% center; }
[dir="rtl"] .marquee__track { animation-direction: reverse; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  :root { --header-h: 76px; }
  .header-actions .btn { padding: 11px 16px; font-size: 0.875rem; }
}

@media (max-width: 620px) {
  .header-actions .btn--cta {
    padding: 10px 14px;
    font-size: 0.8125rem;
  }
  .lang__toggle { padding: 10px 11px; font-size: 0.8125rem; }
  .lang__label { display: none; }
  .lang__code { display: inline; }
  .hero__media img { object-position: 50% 22%; }
  .film__frame { aspect-ratio: 4 / 3; }
  .contact__media { aspect-ratio: 4 / 3; }
}

/* ==========================================================================
   Motion & print preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    animation: none;
  }
}

@media print {
  .site-header, .film, .marquee { display: none; }
  body { background: #fff; color: #000; }
}
