/* Ecom Scalers FZCO corporate site.
   Design language carried from the Shopiator brand:
   Outfit typeface, near-black text, gold accent (#d4a017), royal-blue dark sections. */

:root {
  --fg: #111111;
  --fg-muted: #3d3833;
  --bg: #ffffff;
  --surface: #eef2ff;
  --border: #d7ddf0;
  --gold: #d4a017;
  --gold-text: #6e530c;
  --dark: #1d4ed8;
  --dark-muted: #c2d1ff;
  --maxw: 1120px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Outfit", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: "Outfit", system-ui, sans-serif;
  letter-spacing: -0.025em;
  line-height: 1.12;
  font-weight: 700;
  text-align: left;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }

p { text-align: left; }

a { color: var(--dark); text-decoration: none; }
a:hover { text-decoration: underline; }

strong { font-weight: 700; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.gold { color: var(--gold-text); }

/* ── Header ───────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: var(--dark);
  position: relative;
  flex: none;
}
.brand-mark::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--gold);
}
.brand-fz { color: var(--fg-muted); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  color: var(--fg-muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a:hover { color: var(--fg); text-decoration: none; }
.nav .nav-cta {
  color: var(--fg);
  font-weight: 700;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}

/* ── Buttons ──────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--gold);
  color: #000;
  box-shadow: 0 2px 10px rgba(200, 155, 60, 0.32);
}
.btn-primary:hover { background: #c09010; transform: scale(1.04); }
.btn-ghost {
  border: 2px solid var(--fg);
  color: var(--fg);
  background: transparent;
}
.btn-ghost:hover { background: var(--fg); color: #fff; }

/* ── Hero ─────────────────────────────────── */
.hero {
  background:
    radial-gradient(at 12% 18%, rgba(29, 78, 216, 0.08) 0%, transparent 55%),
    radial-gradient(at 88% 8%, rgba(212, 160, 23, 0.10) 0%, transparent 50%);
  padding: clamp(56px, 9vw, 104px) 0 clamp(48px, 7vw, 84px);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--gold-text);
  margin-bottom: 20px;
}
.hero h1 { max-width: 16ch; }
.lede {
  font-size: clamp(1.02rem, 1.7vw, 1.2rem);
  color: var(--fg-muted);
  max-width: 60ch;
  margin-top: 22px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 56px;
  padding-top: 34px;
  border-top: 1px solid var(--border);
  max-width: 720px;
}
.hero-stats dt {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.hero-stats dd {
  font-size: 0.9rem;
  color: var(--fg-muted);
  margin-top: 4px;
}
.hero-note {
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--fg-muted);
}

/* ── Clients ──────────────────────────────── */
.clients {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #fff;
  padding: 40px 0 44px;
}
.clients-label {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--fg-muted);
  margin-bottom: 28px;
}
.clients-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 28px 20px;
  align-items: center;
  justify-items: center;
}
.clients-grid img {
  max-width: 100%;
  height: 34px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.62;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.clients-grid img:hover { filter: grayscale(0); opacity: 1; }

/* ── Sections ─────────────────────────────── */
.section { padding: clamp(60px, 9vw, 108px) 0; }
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--gold-text);
  margin-bottom: 16px;
}
.section-eyebrow.light { color: var(--dark-muted); }
.section-lede {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 62ch;
  margin-top: 16px;
}
.section h2 + .section-lede { margin-top: 18px; }

.section-dark {
  background: var(--dark);
  color: #fff;
}
.section-dark h2 { color: #fff; }
.section-dark .section-lede { color: var(--dark-muted); }

.section-muted { background: var(--surface); }

/* ── Grids / cards ────────────────────────── */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.section h2 + .grid { margin-top: 44px; }
.section-lede + .grid { margin-top: 44px; }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 24px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--fg-muted); font-size: 0.95rem; }

.approach-grid { margin-top: 44px; }
.approach-item {
  border-top: 2px solid rgba(255, 255, 255, 0.22);
  padding-top: 18px;
}
.approach-num {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
}
.approach-item h3 { color: #fff; margin: 8px 0 8px; }
.approach-item p { color: var(--dark-muted); font-size: 0.93rem; }

/* ── Company ──────────────────────────────── */
.company-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}
.company-inner h2 { margin-bottom: 20px; }
.company-inner p { color: var(--fg-muted); margin-bottom: 16px; }
.company-facts {
  list-style: none;
  margin-top: 28px;
  border-top: 1px solid var(--border);
}
.company-facts li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.company-facts li span { color: var(--fg-muted); }
.company-facts li strong { text-align: right; }
.company-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 26px;
}
.company-card h3 { margin-bottom: 8px; }
.company-card h3 + p, .company-card address + h3 { margin-top: 20px; }
.company-card address { font-style: normal; color: var(--fg-muted); font-size: 0.95rem; line-height: 1.8; }
.company-card p { font-size: 0.95rem; }

/* ── Contact ──────────────────────────────── */
.contact-inner { text-align: left; }
.contact-primary { margin-top: 32px; }
.contact-alt { margin-top: 20px; font-size: 0.92rem; color: var(--fg-muted); }

/* ── Footer ───────────────────────────────── */
.site-footer {
  background: #0f1e46;
  color: #aeb9d6;
  padding: 48px 0;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-legal {
  color: #8b98bd;
  font-size: 0.82rem;
  max-width: 74ch;
  line-height: 1.7;
}
.footer-copy { color: #6f7ea8; font-size: 0.8rem; margin-top: 14px; }

/* ── Responsive ───────────────────────────── */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .company-inner { grid-template-columns: 1fr; gap: 36px; }
  .clients-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { gap: 16px; }
  .nav a:not(.nav-cta) { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 16px; }
  .hero-stats { grid-template-columns: 1fr; gap: 18px; text-align: left; }
  .btn { width: 100%; }
  .company-facts li { flex-direction: column; gap: 2px; }
  .company-facts li strong { text-align: left; }
}
