/* sayidbilal.com hub — tokens + components. Spec: ../DESIGN.md */

:root {
  /* semantic — primitives live in 07-Visual-Identity.md */
  --bg-page: #01081D;
  --bg-banner: #010514;
  --surface: #0A1F44;
  --surface-accent: #0A1F44;
  --border-card: rgba(214, 246, 255, 0.10);
  --border-card-hover: rgba(214, 246, 255, 0.22);
  --text: #FFFFFF;
  --text-sub: #A1A1A1;
  --accent: #F5B614;
  --highlight: #D6F6FF;
  --stars: #F5B614;

  /* component */
  --btn-bg: var(--accent);
  --btn-fg: #0A1F44;
  --btn-hover-bg: #FFC42E;
  --btn-hover-fg: #0A1F44;
  --btn-pressed-bg: #E06A2B;
  --btn-pressed-fg: #0A1F44;
  --card-radius: 20px;
  --card-pad: 24px;
  --card-pad-primary: 32px;
  --chip-bg: rgba(214, 246, 255, 0.06);

  --font-display: 'Sora', sans-serif;
  --font-body: 'Montserrat', sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-page);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.col {
  max-width: 680px;
  margin-inline: auto;
  padding-inline: 20px;
}

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

:focus-visible {
  outline: 2px solid var(--highlight);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--accent); color: #0A1F44; }

/* ---------- hero ---------- */

.banner {
  position: relative;
  height: clamp(180px, 28vw, 280px);
  background: linear-gradient(
    to bottom,
    #050817 0%,
    #0A1230 48%,
    #C96A5E 76%,
    #F2A05C 91%,
    #F5B614 100%
  );
  display: grid;
  place-items: center;
  overflow: hidden;
}

.banner::after { /* soft edge into page bg */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(to bottom, transparent, rgba(1, 8, 29, 0.55));
}

.salaam {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 7vw, 58px);
  letter-spacing: 0.01em;
  transform: translateY(-10%);
  user-select: none;
}

.salaam-text { color: rgba(214, 246, 255, 0.55); }

.wave {
  display: inline-block;
  transform-origin: 72% 72%;
  animation: wave 2.6s ease-in-out 0.5s infinite; /* waves, short rest, repeats */
}

@keyframes wave {
  0%   { transform: rotate(0); }
  9%   { transform: rotate(15deg); }
  18%  { transform: rotate(-9deg); }
  27%  { transform: rotate(15deg); }
  36%  { transform: rotate(-5deg); }
  45%  { transform: rotate(10deg); }
  54%  { transform: rotate(0); }
  100% { transform: rotate(0); }   /* rest beat between waves */
}

.hero-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.avatar {
  width: 144px;
  height: 144px;
  border-radius: 50%;
  border: 4px solid var(--bg-page);
  background: var(--accent);
  margin-top: -72px; /* overlap the banner edge */
  position: relative;
  z-index: 1;
}

.name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 6vw, 40px);
  line-height: 1.15;
  margin-top: 22px;
}

.verified { width: 0.62em; height: 0.62em; flex: none; }

.site-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  font-size: 15px;
  font-weight: 600;
}

.site-item { display: inline-flex; align-items: center; gap: 8px; transition: color 180ms ease; }

a.site-item:hover { color: var(--highlight); }

.site-item svg { width: 17px; height: 17px; color: var(--highlight); flex: none; }

.site-dot { color: var(--text-sub); }

.meta {
  color: var(--text-sub);
  font-size: 14px;
  margin-top: 12px;
}

/* role line + location line stacked (Sayid 2026-07-16) */
.meta-line {
  display: block;
}

.meta-line + .meta-line {
  margin-top: 4px;
}

.tagline {
  font-size: clamp(17px, 2.6vw, 19px);
  font-weight: 600;
  line-height: 1.5;
  max-width: 30em;
  margin-top: 22px;
}

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--chip-bg);
  border: 1px solid var(--border-card);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  min-height: 36px;
  transition: background 180ms ease, border-color 180ms ease;
}

.chip:hover { background: rgba(214, 246, 255, 0.12); border-color: var(--border-card-hover); }

.chip svg { width: 15px; height: 15px; fill: var(--highlight); flex: none; }

/* ---------- sections ---------- */

main { display: flex; flex-direction: column; gap: 64px; margin: 64px auto 0; }

section { display: flex; flex-direction: column; gap: 16px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--highlight);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}

/* ---------- cards ---------- */

.card {
  display: block;
  /* slightly translucent + frosted so the floating letters pass beneath,
     with a faint gold wash so navy tiles don't sit flat */
  background:
    radial-gradient(ellipse 120% 110% at 100% 0%, rgba(245, 182, 20, 0.08), transparent 55%),
    rgba(10, 31, 68, 0.80);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border: 1px solid var(--border-card);
  border-radius: var(--card-radius);
  padding: var(--card-pad);
  transition: transform 180ms ease, border-color 180ms ease;
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(245, 182, 20, 0.10);
  border: 1px solid rgba(245, 182, 20, 0.30);
  margin-bottom: 14px;
}

.card-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--highlight);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

a.card:hover { transform: translateY(-2px); border-color: var(--border-card-hover); }

.card h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
}

.card p { font-size: 15px; color: var(--text-sub); margin-top: 8px; }

.card-primary {
  background:
    url("assets/pattern-arabesque.png") center / 1400px auto repeat,
    radial-gradient(ellipse 120% 140% at 85% -20%, rgba(214, 246, 255, 0.08), transparent 55%),
    rgba(10, 31, 68, 0.92);
  padding: var(--card-pad-primary);
}

.card-primary h2 { font-size: 22px; }
.card-primary p { color: rgba(255, 255, 255, 0.82); max-width: 34em; }

.badge {
  display: inline-block;
  background: rgba(1, 8, 29, 0.45);
  color: var(--highlight);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  border-radius: 999px;
  padding: 12px 28px;
  min-height: 44px;
  margin-top: 20px;
  transition: background 180ms ease, color 180ms ease;
}

a.card .pill { pointer-events: none; } /* whole card is the link */

.card-primary:hover .pill,
.pill:hover { background: var(--btn-hover-bg); color: var(--btn-hover-fg); }

.card-primary:active .pill,
.pill:active { background: var(--btn-pressed-bg); color: var(--btn-pressed-fg); }

.pill svg { width: 16px; height: 16px; }

.offer-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.text-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--highlight);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  margin-top: 14px;
  min-height: 24px;
}

.text-cta svg { width: 14px; height: 14px; transition: transform 180ms ease; }

a.card:hover .text-cta svg { transform: translateX(3px); }

/* ---------- videos ---------- */

.card-video { padding: 0; overflow: hidden; }

.video-facade {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: none;
  cursor: pointer;
}

.thumb, .video-facade iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.thumb-placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 80% 100% at 30% 100%, rgba(245, 182, 20, 0.10), transparent 60%),
    linear-gradient(160deg, #0A1F44, #010514);
}

.thumb-note {
  color: var(--text-sub);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.play-disc {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  transition: transform 180ms ease, background 180ms ease;
}

.play-disc svg { width: 26px; height: 26px; fill: #0A1F44; margin-left: 3px; }

.video-facade:hover .play-disc { transform: scale(1.06); background: var(--btn-hover-bg); }

.video-facade:active .play-disc { background: var(--btn-pressed-bg); }

.video-list { list-style: none; display: flex; flex-direction: column; }

.video-list li + li { border-top: 1px solid var(--border-card); }

.video-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  min-height: 44px;
}

.video-list li:first-child a { padding-top: 0; }
.video-list li:last-child a { padding-bottom: 0; }

.v-thumb {
  flex: none;
  width: 96px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  object-fit: cover;
  background: linear-gradient(160deg, #14305e, #0A1F44); /* shows while loading */
}

.v-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.v-title {
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.4;
  transition: color 180ms ease;
}

.video-list a:hover .v-title { color: var(--highlight); }

.v-sub { color: var(--text-sub); font-size: 12.5px; }

/* ---------- testimonial carousel ---------- */

.carousel { /* arrows flow below the track so they never sit on card text */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.car-track {
  flex: 1 1 100%;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: var(--card-radius);
}

.car-track::-webkit-scrollbar { display: none; }

.t-card {
  flex: 0 0 calc(50% - 8px);
  min-width: 240px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  padding: 28px;
  /* stand-out treatment: gold-washed surface + brighter border + oversized quote mark */
  background:
    radial-gradient(ellipse 130% 120% at 100% 0%, rgba(245, 182, 20, 0.08), transparent 55%),
    rgba(10, 31, 68, 0.80);
  border-color: rgba(245, 182, 20, 0.24);
}

.t-card::before {
  content: "\201C";
  position: absolute;
  top: 2px;
  right: 18px;
  font-family: var(--font-display);
  font-size: 76px;
  line-height: 1;
  color: rgba(214, 246, 255, 0.12);
  pointer-events: none;
}

.t-card blockquote {
  font-style: italic;
  font-size: 15px;
  line-height: 1.65;
  flex: 1;
  position: relative;
  padding-right: 26px; /* keep text clear of the quote mark */
}

.t-card p.stars { margin: 0 0 14px; }

.t-card figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.t-card img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }

.t-who { display: flex; flex-direction: column; }

.t-name { font-weight: 600; font-size: 14px; line-height: 1.35; }

.t-role { color: var(--text-sub); font-size: 12.5px; }

.card p.stars { /* out-specify .card p */
  color: var(--stars);
  font-size: 15px;
  letter-spacing: 3px;
  margin-top: 10px;
}

.car-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-card-hover);
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 180ms ease;
}

.car-btn:hover:not(:disabled) { background: var(--accent); color: #0A1F44; }

.car-btn:active:not(:disabled) { background: var(--btn-pressed-bg); color: #0A1F44; }

.car-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.car-btn svg { width: 18px; height: 18px; }

/* ---------- trust stat ---------- */

.trust-stat {
  text-align: center;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-sub);
}

.trust-num, .trust-plus {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: 0;
  color: var(--text);
  vertical-align: -0.14em;
  padding-inline: 2px;
}

.trust-num { font-variant-numeric: tabular-nums; } /* no jitter while counting */

.trust-plus { color: var(--accent); padding-inline: 0 4px; }

/* ---------- story & highlights ---------- */

.card-story p { margin-top: 12px; }
.card-story p:first-child { margin-top: 0; }

.card-story .story-lead {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}

.card-story strong { color: var(--highlight); font-weight: 600; }

.card-label {
  font-size: 15px !important;
  color: var(--highlight);
  margin-bottom: 14px;
}

.highlights { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.highlights li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.88);
}

.highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%230A1F44' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ---------- map ---------- */

.card-map { padding: 0; overflow: hidden; position: relative; }

.map-canvas {
  position: relative;
  aspect-ratio: 16 / 7;
  /* stylized Amsterdam (SVG canal rings on top) — swap for a real tile later if wanted */
  background:
    radial-gradient(ellipse 70% 90% at 62% 40%, rgba(245, 182, 20, 0.08), transparent 60%),
    radial-gradient(rgba(214, 246, 255, 0.10) 1px, transparent 1.5px),
    var(--bg-banner);
  background-size: auto, 26px 26px, auto;
}

.map-art { position: absolute; inset: 0; width: 100%; height: 100%; }

.map-pin { /* the blue "you are here" dot */
  position: absolute;
  top: 40%;
  left: 62%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #4285F4;
  border: 3px solid #FFFFFF;
  box-shadow: 0 0 0 6px rgba(66, 133, 244, 0.25);
  translate: -50% -50%;
}

.map-pin::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 2px solid rgba(66, 133, 244, 0.65);
  animation: ping 2.4s ease-out infinite;
}

@keyframes ping {
  0%   { transform: scale(0.4); opacity: 0.9; }
  80%  { transform: scale(1.15); opacity: 0; }
  100% { transform: scale(1.15); opacity: 0; }
}

.map-label {
  position: absolute;
  left: 20px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  text-shadow: 0 1px 8px rgba(1, 5, 20, 0.8);
}

.map-place { font-family: var(--font-display); font-weight: 700; font-size: 17px; }

.map-sub { color: var(--text-sub); font-size: 12.5px; margin-top: 1px; }

/* ---------- capture ---------- */

.card-capture {
  background:
    url("assets/pattern-arabesque.png") center / 1400px auto repeat,
    radial-gradient(ellipse 120% 140% at 15% -20%, rgba(214, 246, 255, 0.07), transparent 55%),
    rgba(10, 31, 68, 0.92);
  text-align: center;
  padding: var(--card-pad-primary);
}

.card-capture h2 { font-size: 20px; }

.card-capture p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 30em;
  margin-inline: auto;
}

/* Khayrun store badges (Join the movement). Official artwork carries its own
   rounded corners + border: never add border-radius here (it notches them). */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.store-badges img {
  height: 48px;
  width: auto;
  display: block;
}

/* ---------- footer ---------- */

footer {
  margin-top: 80px;
  padding-block: 40px 48px;
  border-top: 1px solid var(--border-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.wordmark {
  font-family: 'Covered By Your Grace', cursive;
  font-weight: 400;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  transform: rotate(-2.5deg);
}

.foot-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
}

.foot-links a {
  color: var(--text-sub);
  font-size: 13px;
  transition: color 180ms ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.foot-links a:hover { color: var(--highlight); }

.foot-social {
  list-style: none;
  display: flex;
  gap: 10px;
}

.foot-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--chip-bg);
  border: 1px solid var(--border-card);
  display: grid;
  place-items: center;
  transition: background 180ms ease, border-color 180ms ease;
}

.foot-social a:hover { background: rgba(214, 246, 255, 0.12); border-color: var(--border-card-hover); }

.foot-social svg { width: 17px; height: 17px; fill: var(--highlight); }

.fine { color: var(--text-sub); font-size: 11px; opacity: 0.7; }

.disclaimer {
  max-width: 44em;
  line-height: 1.6;
  opacity: 0.5;
  margin-top: -8px; /* tuck under the copyright line */
}

/* ---------- reveal on scroll (JS-gated: no JS = fully visible) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 450ms var(--ease-out), transform 450ms var(--ease-out);
  transition-delay: calc(var(--stagger, 0) * 60ms);
}

.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 560px) {
  .site-dot { display: none; } /* site-line wraps to two lines — drop the dangling separator */
  .offer-pair { grid-template-columns: 1fr; }
  .t-card { flex-basis: 82%; }
  .card-primary { padding: var(--card-pad); }
  .card-primary .pill { width: 100%; justify-content: center; }
}

/* ---------- scroll progress bar ---------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--highlight));
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 10;
}

/* ---------- background effect layer ---------- */

.bg-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

header, main, footer { position: relative; z-index: 1; }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wave, .salaam:hover .wave, .map-pin::after { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .play-disc, .text-cta svg { transition: none; }
  a.card:hover { transform: none; }
}
