/* ==========================================================================
   Apex Retails — stylesheet
   Palette derived from the Apex Retails logo mark (navy + orange).
   ========================================================================== */

:root {
  /* Brand */
  --navy: #004058;
  --navy-deep: #00212d;
  --navy-mid: #0a3a4a;
  --orange: #ff7a00;
  --orange-deep: #dd6600;

  /* Neutrals (tinted toward the brand navy rather than plain gray) */
  --ink: #0b2027;
  --muted: #4f6b74;
  --tint: #eaf3f4;
  --tint-deep: #dcebec;
  --line: #d7e4e6;
  --white: #ffffff;

  /* Type */
  --font-display: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  /* Layout */
  --container: 1160px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --header-h: 100px;
  --orange-pale: #ffbf8a;
}

/* ---------------------------------------------------------------------- */
/* Reset / base                                                           */
/* ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------------------------------------------------------------------- */
/* Utility                                                                 */
/* ---------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 500;
  margin-bottom: 14px;
}

.section {
  padding: 108px 0;
}
.section--tint { background: var(--tint); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy .eyebrow { color: var(--orange); }

.section-head {
  max-width: 620px;
  margin-bottom: 56px;
}
.section-head.center { max-width: 700px; margin-left: auto; margin-right: auto; text-align: center; }

.section-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); }
.section-head p { margin-top: 18px; color: var(--muted); font-size: 1.06rem; }
.section--navy .section-head p { color: #b9d3da; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  position: relative;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn--outline {
  position: relative;
}
.btn--outline::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -10px;
  height: 2px;
  background: var(--orange);
  transition: right 0.25s ease;
  border-radius: 2px;
}
.btn--outline:hover::after { right: 0; }

.btn--outline { border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn--outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.btn--outline-navy { border-color: var(--navy); color: var(--navy); }
.btn--outline-navy:hover { background: var(--navy); color: var(--white); }

/* ---------------------------------------------------------------------- */
/* Header                                                                  */
/* ---------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(0, 33, 45, 0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; }
.brand img { height: 60px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--navy);
  position: relative;
  padding: 6px 2px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--orange);
  transition: right 0.25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }

.nav-cta { margin-left: 8px; }
.nav-cta .btn { padding: 16px 38px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 34px;
  padding: 6px 0;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ---------------------------------------------------------------------- */
/* Hero                                                                    */
/* ---------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 92px) 0 96px;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.09) 1.4px, transparent 1.4px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent 75%);
  z-index: -1;
}
.hero__inner { text-align: center; max-width: 780px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(2.15rem, 4.6vw, 3.5rem);
  line-height: 1.12;
}
.hero h1 span { display: block; }
.hero h1 span + span { margin-top: 0.75em; }
.hero h1 .accent { color: var(--orange); }

.hero__lede {
  margin: 30px auto 0;
  max-width: 620px;
  font-size: 1.12rem;
  color: #cfe3e8;
}
.hero__lede + .hero__lede { margin-top: 14px; }

.hero__actions {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Signature graphic: the buying journey */
.journey {
  margin-top: 76px;
}
.journey svg { width: 100%; height: auto; max-width: 760px; margin: 0 auto; display: block; }
.journey figcaption { margin-top: 4px; }

/* ---------------------------------------------------------------------- */
/* Marketplaces strip                                                      */
/* ---------------------------------------------------------------------- */
.marketplaces {
  padding: 88px 0;
  text-align: center;
  border-bottom: 1px solid var(--line);
  overflow-x: hidden;
}
.marketplaces .container { max-width: 1320px; }
.marketplaces .eyebrow { margin-bottom: 30px; }
.marketplace-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  flex-wrap: nowrap;
}
.marketplace-item {
  flex: 1 1 380px;
  min-width: 0;
  max-width: 380px;
  height: 132px;
  padding: 0 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.marketplace-item:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,33,45,0.08); }
.marketplace-item img { display: block; max-height: 76px; height: auto; width: auto; max-width: 100%; }

/* ---------------------------------------------------------------------- */
/* Process (How Do We Work)                                                */
/* ---------------------------------------------------------------------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process-grid::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: repeating-linear-gradient(to right, var(--line) 0 10px, transparent 10px 18px);
  z-index: 0;
}
.process-step {
  position: relative;
  z-index: 1;
  padding: 0 20px;
}
.process-step:first-child { padding-left: 0; }
.process-step:last-child { padding-right: 0; }

.process-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--navy);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 500;
  margin-bottom: 22px;
}
.process-step h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.process-step p { color: var(--muted); font-size: 0.98rem; }

/* ---------------------------------------------------------------------- */
/* Feature / service sections (Purchasing, Brand Protection, Management)   */
/* ---------------------------------------------------------------------- */
.feature {
  display: grid;
  grid-template-columns: 0.68fr 1.32fr;
  gap: 56px;
  align-items: center;
}
.feature--reverse { grid-template-columns: 1.32fr 0.68fr; }
.feature--reverse .feature__visual { order: 2; }
.feature--reverse .feature__copy { order: 1; }

.feature__visual {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3.1;
  max-width: 300px;
  justify-self: center;
  width: 100%;
}
.section--tint .feature__visual { background: var(--white); }
.feature__visual svg { width: 100%; height: 100%; max-width: 190px; }

.feature__copy h3 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  margin-bottom: 18px;
}
.feature__copy p { color: var(--muted); font-size: 1.03rem; }
.feature__copy p + p { margin-top: 14px; }

.feature__list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.97rem; color: var(--ink); }
.feature__list li .bullet-copy { display: flex; flex-direction: column; gap: 3px; }
.feature__list strong { font-weight: 700; color: var(--navy); white-space: nowrap; font-size: 0.98rem; }
.feature__list li svg { margin-top: 3px; }
.feature__list svg { flex: none; margin-top: 3px; }

.feature + .feature { margin-top: 130px; }

/* ---------------------------------------------------------------------- */
/* Contact                                                                 */
/* ---------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.contact-copy h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); }

.contact-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-lg);
  padding: 8px 40px 4px;
  text-align: left;
}
.contact-card .reach-label {
  padding: 22px 0 4px;
  color: #8fb4bd;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.contact-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.contact-row:last-child { border-bottom: none; }
.contact-row .label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8fb4bd;
  margin-bottom: 6px;
}
.contact-row a, .contact-row span.value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
}
.contact-row a:hover { color: var(--orange); }
.contact-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,122,0,0.15);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}

/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-deep);
  color: #a9c6cd;
  padding: 64px 0 28px;
  font-size: 0.94rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img { height: 46px; margin-bottom: 18px; }
.footer-brand p { color: #8fb0b8; }
.footer-brand p span { display: block; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6f95a0;
  font-weight: 500;
  margin-bottom: 16px;
}
.footer-col p, .footer-col a { display: block; color: #cfe3e8; margin-bottom: 8px; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  padding-top: 26px;
  text-align: center;
  color: #6f95a0;
  font-size: 0.85rem;
}

/* ---------------------------------------------------------------------- */
/* Responsive                                                              */
/* ---------------------------------------------------------------------- */
@media (max-width: 980px) {
  .feature, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature--reverse .feature__visual { order: 1; }
  .feature--reverse .feature__copy { order: 2; }
  .feature__visual { max-width: 320px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .process-grid::before { display: none; }
  .process-step { padding: 0 !important; }
}

@media (max-width: 760px) {
  :root { --header-h: 92px; }
  .brand img { height: 56px; }
  .marketplace-row { flex-wrap: wrap; }
  .marketplace-item { width: 100%; max-width: 320px; height: 108px; flex: 1 1 100%; }
  .marketplace-item img { max-height: 60px; }
  .section { padding: 76px 0; }
  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 28px 24px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav-links.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin: 14px 0 0; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .process-grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: stretch; }
}
