/* ============================================================
   SourcersBiz — modern rebuild
   ============================================================ */
:root {
  --ink: #0b1220;
  --ink-soft: #16203a;
  --paper: #f7f9fc;
  --white: #ffffff;
  --text: #2b3548;
  --muted: #64748b;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --grad: linear-gradient(100deg, #2563eb 0%, #06b6d4 100%);
  --ring: rgba(37, 99, 235, 0.35);
  --radius: 18px;
  --shadow: 0 12px 40px rgba(11, 18, 32, 0.10);
  --font-display: "Sora", sans-serif;
  --font-body: "Inter", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { width: min(1160px, 92%); margin-inline: auto; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  padding: 0.8rem 1.7rem; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 8px 24px var(--ring);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px var(--ring); }
.btn--ghost {
  background: transparent; color: inherit;
  box-shadow: inset 0 0 0 1.5px currentColor;
  opacity: 0.85;
}
.btn--ghost:hover { transform: translateY(-2px); opacity: 1; }
.btn--sm { padding: 0.55rem 1.25rem; font-size: 0.85rem; }
.btn--lg { padding: 1rem 2.2rem; font-size: 1rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 1rem 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  color: #fff;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(11, 18, 32, 0.08);
  padding: 0.6rem 0;
  color: var(--ink);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; }
.nav__logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
}
.nav__logo em { font-style: normal; color: var(--cyan); }
.nav__logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--grad); color: #fff;
  display: grid; place-items: center; font-size: 1.05rem;
}
.nav__links { display: flex; align-items: center; gap: 1.8rem; }
.nav__link { font-weight: 500; font-size: 0.95rem; opacity: 0.85; transition: opacity 0.2s; }
.nav__link:hover { opacity: 1; }
.nav__burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 6px;
}
.nav__burger span {
  width: 24px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  background: var(--ink); color: #fff;
  overflow: hidden;
  padding: 8rem 0 5rem;
}
.hero__grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
}
.hero__glow {
  position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.5;
  pointer-events: none;
}
.hero__glow--1 { width: 560px; height: 560px; background: #2563eb; top: -180px; right: -120px; }
.hero__glow--2 { width: 480px; height: 480px; background: #0e7490; bottom: -200px; left: -140px; }
.hero__inner { position: relative; text-align: center; max-width: 860px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: #9fb4d8;
  border: 1px solid rgba(255,255,255,0.14); border-radius: 999px;
  padding: 0.45rem 1.1rem; margin-bottom: 1.8rem;
  background: rgba(255,255,255,0.04);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.hero__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.06; letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem); color: #aab8d0;
  max-width: 620px; margin: 0 auto 2.4rem;
}
.hero__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 4rem; }
.hero__stats {
  display: flex; justify-content: center; gap: clamp(2rem, 6vw, 5rem); flex-wrap: wrap;
  padding-top: 2.5rem; border-top: 1px solid rgba(255,255,255,0.1);
}
.stat { text-align: center; }
.stat__num, .stat__plus {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.8rem);
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__label { display: block; font-size: 0.88rem; color: #8fa1bf; margin-top: 0.2rem; }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--grad); color: #fff; overflow: hidden;
  padding: 0.9rem 0;
}
.marquee__track {
  display: flex; gap: 2.5rem; align-items: center; width: max-content;
  animation: marquee 28s linear infinite;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
}
.marquee__track i { font-style: normal; opacity: 0.7; }
.marquee__track span { white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections (shared) ---------- */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section--dark { background: var(--ink); color: #fff; }
.section--tint { background: #eef3fa; }
.section__eyebrow {
  font-family: var(--font-display); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 0.9rem;
}
.section--dark .section__eyebrow { color: var(--cyan); }
.section__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.15; letter-spacing: -0.015em;
  color: var(--ink); margin-bottom: 1.2rem;
}
.section--dark .section__title { color: #fff; }
.section__lead { color: var(--muted); font-size: 1.05rem; margin-bottom: 1.8rem; }
.section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap; margin-bottom: 3.2rem;
}
.section__note { color: var(--muted); max-width: 300px; font-size: 0.95rem; }

/* ---------- About ---------- */
.about__inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem); align-items: center;
}
.about__collage {
  position: relative;
  display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 220px 220px;
  gap: 1rem;
}
.about__collage img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.about__collage img:nth-child(1) { grid-row: 1 / 3; }
.about__badge {
  position: absolute; left: -1.2rem; bottom: -1.4rem;
  background: var(--ink); color: #fff;
  border-radius: var(--radius); padding: 1.1rem 1.5rem;
  display: flex; align-items: center; gap: 0.8rem;
  box-shadow: var(--shadow);
}
.about__badge strong {
  font-family: var(--font-display); font-size: 2rem; font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.about__badge span { font-size: 0.8rem; color: #aab8d0; line-height: 1.35; }
.checklist { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem 1.5rem; margin-bottom: 2.2rem; }
.checklist li {
  position: relative; padding-left: 2rem; font-weight: 500; font-size: 0.95rem; color: var(--ink-soft);
}
.checklist li::before {
  content: "✓";
  position: absolute; left: 0; top: 0.1em;
  width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: var(--grad); color: #fff;
  font-size: 0.7rem; font-weight: 700;
  display: grid; place-items: center;
}

/* ---------- Services ---------- */
.services__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem;
}
.card {
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.08);
  border-color: rgba(6,182,212,0.45);
}
.card__icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--grad); color: #fff;
  display: grid; place-items: center; margin-bottom: 1.4rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600;
  margin-bottom: 0.65rem; color: #fff;
}
.card p { color: #a9b6cc; font-size: 0.94rem; }

/* ---------- Process ---------- */
.process__track {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem;
  margin-top: 3rem; counter-reset: step;
}
.step {
  background: var(--white); border-radius: var(--radius);
  padding: 2rem 1.6rem;
  box-shadow: 0 4px 18px rgba(11,18,32,0.06);
  border-top: 3px solid transparent;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.step:hover {
  transform: translateY(-6px);
  border-top-color: var(--blue);
  box-shadow: var(--shadow);
}
.step__num {
  font-family: var(--font-display); font-weight: 800; font-size: 2.4rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 0.8rem;
}
.step h3 { font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; color: var(--ink); margin-bottom: 0.6rem; }
.step p { font-size: 0.9rem; color: var(--muted); }

/* ---------- Gallery ---------- */
.gallery__rows { display: grid; gap: 1.2rem; margin-top: 1rem; overflow: hidden; }
.gallery__row { overflow: hidden; }
.gallery__row-track {
  display: flex; gap: 1.2rem; width: max-content;
  animation: marquee 60s linear infinite;
}
.gallery__row[data-direction="right"] .gallery__row-track { animation-direction: reverse; }
.gallery__row:hover .gallery__row-track { animation-play-state: paused; }
.gallery__row-track img {
  height: 240px; width: auto; border-radius: 14px;
  object-fit: cover; cursor: zoom-in;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery__row-track img:hover {
  transform: scale(1.04); box-shadow: var(--shadow);
}

/* ---------- Contact ---------- */
.contact__inner {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem); align-items: start;
}
.contact__items { display: grid; gap: 1.8rem; margin-top: 2.2rem; }
.contact__item { display: grid; gap: 0.25rem; }
.contact__item-label {
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 0.3rem;
}
.contact__item a { font-weight: 600; color: var(--ink); font-size: 1.05rem; transition: color 0.2s; }
.contact__item a:hover { color: var(--blue); }
.contact__item p { color: var(--muted); }

.form {
  background: var(--white); border-radius: 24px;
  padding: clamp(1.6rem, 3.5vw, 2.6rem);
  box-shadow: var(--shadow);
}
.form__label { font-weight: 600; font-size: 0.95rem; color: var(--ink); margin-bottom: 0.8rem; }
.form__chips { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 0.4rem; }
.chip {
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 500;
  padding: 0.5rem 1rem; border-radius: 999px; cursor: pointer;
  background: #f0f4fa; color: var(--ink-soft);
  border: 1.5px solid transparent;
  transition: all 0.2s ease;
}
.chip:hover { border-color: var(--blue); }
.chip.is-active { background: var(--grad); color: #fff; box-shadow: 0 4px 14px var(--ring); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.form__field { position: relative; margin-top: 1.5rem; }
.form__field input, .form__field textarea {
  width: 100%; font-family: var(--font-body); font-size: 0.97rem; color: var(--ink);
  padding: 0.95rem 1.1rem;
  border: 1.5px solid #e2e8f0; border-radius: 12px; background: #fbfcfe;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.form__field input:focus, .form__field textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
}
.form__field label {
  position: absolute; left: 1rem; top: 0.95rem;
  font-size: 0.95rem; color: #94a3b8; pointer-events: none;
  transition: all 0.18s ease; background: transparent; padding: 0 0.3rem;
}
.form__field input:focus + label,
.form__field input:not(:placeholder-shown) + label,
.form__field textarea:focus + label,
.form__field textarea:not(:placeholder-shown) + label {
  top: -0.55rem; font-size: 0.75rem; color: var(--blue);
  background: var(--white); border-radius: 4px;
}
.form__field.has-error input, .form__field.has-error textarea { border-color: #ef4444; }
.form__error { color: #ef4444; font-size: 0.8rem; margin-top: 0.35rem; min-height: 0; }
.form__error:empty { display: none; }
.form__submit { width: 100%; margin-top: 1.8rem; }
.form__submit:disabled { opacity: 0.6; cursor: wait; transform: none; }
.form__success {
  margin-top: 1rem; padding: 0.8rem 1.1rem; border-radius: 12px;
  background: #ecfdf5; color: #047857; font-weight: 500; font-size: 0.93rem;
}

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #fff; padding: 2.6rem 0; }
.footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.footer__links { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer__links a { font-size: 0.9rem; color: #aab8d0; transition: color 0.2s; }
.footer__links a:hover { color: #fff; }
.footer__copy { font-size: 0.85rem; color: #6b7c99; }

/* ---------- Lightbox ---------- */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(7, 11, 20, 0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 4vh 4vw;
  backdrop-filter: blur(6px);
}
.lightbox img {
  max-width: 100%; max-height: 100%;
  border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.lightbox__close {
  position: absolute; top: 1.2rem; right: 1.6rem;
  background: none; border: 0; color: #fff;
  font-size: 2.6rem; line-height: 1; cursor: pointer; opacity: 0.8;
}
.lightbox__close:hover { opacity: 1; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track, .gallery__row-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .services__grid { grid-template-columns: 1fr 1fr; }
  .process__track { grid-template-columns: 1fr 1fr; }
  .about__inner, .contact__inner { grid-template-columns: 1fr; }
  .about__media { order: 2; margin-top: 1rem; }
}
@media (max-width: 680px) {
  .nav__links {
    position: fixed; inset: 0 0 auto 0; top: 0; padding: 5.5rem 8% 2.5rem;
    flex-direction: column; align-items: flex-start; gap: 1.4rem;
    background: rgba(11, 18, 32, 0.97); color: #fff;
    transform: translateY(-110%); transition: transform 0.35s ease;
    z-index: -1;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__burger { display: flex; }
  .services__grid, .process__track, .checklist, .form__row { grid-template-columns: 1fr; }
  .about__collage { grid-template-rows: 180px 180px; }
  .about__badge { left: 0.8rem; bottom: -1rem; padding: 0.8rem 1.1rem; }
  .gallery__row-track img { height: 170px; }
  .section__head { flex-direction: column; align-items: flex-start; }
  .footer__inner { flex-direction: column; text-align: center; justify-content: center; }
}
