/* SOAP Studio — shared styles */

:root {
  --red: #E6231B;
  --dark: #0B0B0C;
  --cream: #F2EFEA;
  --margin: 40px;
  --footer-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--red);
  font-family: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  padding-bottom: var(--footer-h);
}

/* inner pages: cream background, black text, red accents */
body.light { background: var(--cream); color: var(--dark); }

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

.label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.45;
}

/* ---------- top bar (all pages) ---------- */
.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 24px;
  padding: var(--margin);
  pointer-events: none;
}
.top-bar > * { pointer-events: auto; }

.top-left {
  max-width: 350px;
}

.top-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}
.top-nav a { opacity: 0.92; transition: opacity 0.2s; }
.top-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

/* inner (cream) pages: top-bar text is red instead of black */
body.light .top-bar { color: var(--red); }

/* ---------- work with us pill — top centre ---------- */
/* Pulled up so the pill TEXT sits on the same line as the top-bar text;
   the pill border is allowed to dip into the top margin. */
.pill-wrap {
  position: fixed;
  top: calc(var(--margin) - 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
}
.pill {
  display: inline-block;
  border: 1.5px solid var(--red);
  background: transparent;
  color: var(--red);
  padding: 13px 30px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.pill:hover { background: var(--red); color: var(--cream); }

/* ---------- fixed brand footer — justified full width ---------- */
/* First logo flush to the left margin, last flush to the right margin —
   same margin as the top-left info text and the giant SOAP wordmark. */
.brand-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  height: var(--footer-h);
  background: var(--red);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 0 var(--margin);
}
.brand-bar img {
  height: 30px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: brightness(0) invert(1); /* renders every logo white for a unified bar */
}
.brand-bar img.tall { height: 38px; }

/* ---------- inner pages shared ---------- */
.page {
  padding: 150px var(--margin) 60px;
}
.page p.body {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--dark);
}
.page p.body a {
  color: var(--red);
  font-weight: 600;
}
.page p.body a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- follower / view stats (about + portfolio) ---------- */
.stats {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.stat { text-align: center; flex: 1; }
.stat .num {
  font-size: clamp(22px, 3.2vw, 40px);
  font-weight: 900;
  color: var(--red);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat .cap {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
  color: var(--dark);
}

/* ---------- narrower screens ---------- */
/* Centred pill would crowd the top bar: hide it on inner pages
   (index.html re-shows it stacked under the info text). */
@media (max-width: 960px) {
  .pill-wrap { display: none; }
}

/* ---------- mobile ---------- */
@media (max-width: 720px) {
  :root { --margin: 20px; --footer-h: 60px; }
  .top-left { max-width: 60vw; }
  .label { font-size: 12px; }
  .brand-bar { gap: 14px; }
  .brand-bar img { height: 18px; max-width: 64px; }
  .brand-bar img.tall { height: 24px; }
  .stats { flex-wrap: wrap; }
  .stat { flex: 1 1 40%; }
}
