/* ============================================================
   TechCollect NZ — Shared Stylesheet
   Colours: Purple #343284 | Orange #f49712 | White #ffffff
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a2e;
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }

a { color: #343284; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Layout Helpers ───────────────────────────────────────── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section--tight { padding: 48px 0; }
.section--grey { background: #f7f7fb; }
.section--purple { background: #343284; color: #fff; }
.section--orange { background: #f49712; color: #fff; }

.text-center { text-align: center; }
.text-purple { color: #343284; }
.text-orange { color: #f49712; }

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f49712;
  margin-bottom: 12px;
}

.section-title {
  color: #343284;
  margin-bottom: 16px;
}

.section--purple .section-title,
.section--purple .section-label { color: #fff; }
.section--purple .section-label { color: rgba(255,255,255,0.7); }

.section-intro {
  font-size: 1.1rem;
  color: #555;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section--purple .section-intro { color: rgba(255,255,255,0.85); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: #f49712;
  color: #fff;
  border-color: #f49712;
}
.btn-primary:hover {
  background: #d4830f;
  border-color: #d4830f;
  text-decoration: none;
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: #343284;
  border-color: #343284;
}
.btn-secondary:hover {
  background: #343284;
  color: #fff;
  text-decoration: none;
}

.btn-white {
  background: #fff;
  color: #343284;
  border-color: #fff;
}
.btn-white:hover {
  background: transparent;
  color: #fff;
  text-decoration: none;
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  text-decoration: none;
  color: #fff;
}

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  background: #fff;
  border-bottom: 1px solid #e8e8f0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(52,50,132,0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav__logo-mark {
  width: 52px;
  height: 38px;
  background: #343284;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.nav__logo-mark .mark-t  { color: #f49712; }
.nav__logo-mark .mark-cnz { color: #fff; }

.nav__logo-text {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.1;
}
.nav__logo-text .logo-tech {
  display: inline;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f49712;
  letter-spacing: normal;
}
.nav__logo-text .logo-collect {
  display: inline;
  font-size: 1.05rem;
  font-weight: 700;
  color: #343284;
  letter-spacing: normal;
}

.nav__logo-text .nav__tagline {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: #888;
  letter-spacing: 0.04em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  flex-wrap: nowrap;
}

.nav__links a {
  padding: 8px 9px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}

.nav__links a:hover,
.nav__links a.active {
  background: #f0f0f8;
  color: #343284;
}

.nav__cta {
  background: #f49712;
  color: #fff;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.88rem;
}

.nav__cta:hover {
  background: #d4830f;
  color: #fff;
}

/* Nav sub-menu (Recycle My Tech dropdown) */
.nav__has-sub { position: relative; }
.nav__sub {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border: 1px solid #e8e8f0;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  list-style: none;
  min-width: 180px;
  padding: 6px;
  z-index: 200;
}
.nav__has-sub:hover .nav__sub { display: block; }
.nav__sub li a {
  display: block;
  padding: 9px 14px;
  font-size: 0.85rem;
  color: #333;
  border-radius: 6px;
  white-space: nowrap;
  font-weight: 500;
}
.nav__sub li a:hover,
.nav__sub li a.active {
  background: #f0f0f8;
  color: #343284;
  text-decoration: none;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  width: 24px;
  height: 2px;
  background: #343284;
  display: block;
  border-radius: 2px;
  transition: all 0.2s;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #343284 0%, #1e1c6e 100%);
  color: #fff;
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 420px;
  height: 420px;
  background: rgba(244,151,18,0.08);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.hero__content { position: relative; z-index: 1; }

.hero__label {
  display: inline-block;
  background: rgba(244,151,18,0.2);
  color: #f49712;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(244,151,18,0.3);
}

.hero h1 { color: #fff; margin-bottom: 20px; }

.hero__sub {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin-bottom: 36px;
}

.hero__btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Audience Cards ───────────────────────────────────────── */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.audience-card {
  background: #fff;
  border: 2px solid #e8e8f0;
  border-radius: 12px;
  padding: 32px 28px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  display: block;
}

.audience-card:hover {
  border-color: #343284;
  box-shadow: 0 8px 24px rgba(52,50,132,0.12);
  transform: translateY(-2px);
  text-decoration: none;
}

.audience-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 16px;
}

.audience-card__icon--consumer { background: #e8f4fd; }
.audience-card__icon--brand    { background: #eef0ff; }
.audience-card__icon--global   { background: #f0fff4; }
.audience-card__icon--council  { background: #fff8e8; }

.audience-card h3 {
  color: #343284;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.audience-card p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 16px;
  line-height: 1.5;
}

.audience-card__link {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f49712;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Stats Strip ──────────────────────────────────────────── */
.stats-strip {
  background: #343284;
  color: #fff;
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  text-align: center;
}

.stat__number {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: #f49712;
  line-height: 1;
  margin-bottom: 6px;
}

.stat__label {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.3;
}

/* ── How It Works ─────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-top: 48px;
  position: relative;
}

.step {
  text-align: center;
}

.step__number {
  width: 56px;
  height: 56px;
  background: #343284;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  margin: 0 auto 20px;
}

.step h3 {
  color: #343284;
  margin-bottom: 10px;
}

.step p {
  font-size: 0.92rem;
  color: #666;
}

/* ── Accepted Items ───────────────────────────────────────── */
.items-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.items-list {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  border: 2px solid #e8e8f0;
}

.items-list--yes { border-top: 4px solid #22c55e; }
.items-list--no  { border-top: 4px solid #ef4444; }

.items-list h3 {
  margin-bottom: 16px;
  font-size: 1rem;
}

.items-list--yes h3 { color: #16a34a; }
.items-list--no  h3 { color: #dc2626; }

.items-list ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.items-list ul li {
  font-size: 0.9rem;
  color: #444;
  display: flex;
  align-items: center;
  gap: 8px;
}

.items-list ul li::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.items-list--yes ul li::before { background: #22c55e; }
.items-list--no  ul li::before { background: #ef4444; }

/* ── Members Logos ────────────────────────────────────────── */
.logos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
}

.logo-chip {
  background: #fff;
  border: 1px solid #e8e8f0;
  border-radius: 10px;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
}
.logo-chip img {
  height: 56px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

/* ── Funded-by strip ─────────────────────────────────────── */
.funded-by-strip {
  background: #fff;
  border-bottom: 1px solid #e8e8f0;
  padding: 20px 0;
}
.funded-by-strip .container {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}
.funded-by-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #aaa;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.funded-by-logos {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}
.funded-logo {
  height: 40px;
  width: 120px;        /* fixed bounding box — equal slot for every logo */
  object-fit: contain;
  flex-shrink: 0;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: filter 0.2s, opacity 0.2s;
}
.funded-logo:hover { filter: grayscale(0%); opacity: 1; }

/* ── Council logos grid ───────────────────────────────────── */
.council-logos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
}
.council-chip {
  background: #fff;
  border: 1px solid #e8e8f0;
  border-radius: 10px;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
}
.council-chip img {
  height: 40px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
}
.council-chip span {
  font-size: 0.82rem;
  font-weight: 600;
  color: #555;
}
.council-chip--dark {
  background: #1a3060;
  border-color: #1a3060;
}

/* ── Member ticker ────────────────────────────────────────── */
.member-ticker-wrap {
  background: #f7f7fb;
  border-top: 1px solid #e8e8f0;
  padding: 18px 0;
  overflow: hidden;
}
.member-ticker__track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: memberTicker 28s linear infinite;
}
.member-ticker__track:hover { animation-play-state: paused; }
/* Each set is half the track; padding-right = gap so the seam is invisible */
.member-ticker__set {
  display: flex;
  align-items: center;
  gap: 64px;
  padding-right: 64px;
}
.ticker-logo {
  height: 40px;        /* uniform height — width flows from each logo's natural ratio */
  width: auto;
  max-width: 220px;    /* wide enough for 5:1 ratio logos at full height */
  flex-shrink: 0;
  display: block;
  filter: grayscale(100%);
  opacity: 0.55;
  transition: filter 0.25s, opacity 0.25s;
}
.ticker-logo:hover { filter: grayscale(0%); opacity: 1; }
.ticker-logo--dark { border-radius: 4px; }
@keyframes memberTicker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Benefit Cards ────────────────────────────────────────── */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.benefit-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  border: 1px solid #e8e8f0;
}

.benefit-card__icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.benefit-card h3 {
  color: #343284;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.benefit-card p {
  font-size: 0.9rem;
  color: #666;
}

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, #343284, #1e1c6e);
  color: #fff;
  padding: 72px 0;
  text-align: center;
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: 12px;
}

.cta-banner p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner__btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Alert / Info Box ─────────────────────────────────────── */
.alert {
  border-radius: 10px;
  padding: 20px 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 32px 0;
}

.alert--info {
  background: #eef0ff;
  border-left: 4px solid #343284;
}

.alert--warning {
  background: #fff8e8;
  border-left: 4px solid #f49712;
}

.alert__icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 1px; }

.alert__text { font-size: 0.92rem; color: #444; }
.alert__text strong { color: #343284; }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.7);
  padding: 56px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer__brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.footer__brand-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer__col h4 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

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

.footer__col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.15s;
}

.footer__col ul li a:hover {
  color: #f49712;
  text-decoration: none;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}

.footer__bottom a {
  color: rgba(255,255,255,0.5);
}

.footer__bottom a:hover { color: #f49712; }

.footer__cert {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

.cert-badge {
  background: rgba(244,151,18,0.15);
  border: 1px solid rgba(244,151,18,0.3);
  color: #f49712;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

/* ── Responsive ───────────────────────────────────────────── */
/* ── Beta Banner ──────────────────────────────────────────── */
.beta-banner {
  background: #f49712;
  color: #fff;
  text-align: center;
  padding: 10px 24px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 200;
}
.beta-banner a { color: #fff; text-decoration: underline; }

/* ── Hero image slot ──────────────────────────────────────── */
.hero--has-image {
  position: relative;
  overflow: hidden;
}
.hero__image {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.18;
}
.hero__image-credit {
  position: absolute;
  bottom: 10px;
  right: 16px;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
}

/* ── Count-up animation ───────────────────────────────────── */
.stat__number { transition: all 0.3s; }

/* ── Back to top ──────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: #343284;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(52,50,132,0.3);
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.25s ease;
  z-index: 90;
  text-decoration: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover {
  background: #f49712;
  text-decoration: none;
  color: #fff;
}

/* ── Mobile sticky CTA ────────────────────────────────────── */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 12px 16px;
  background: #fff;
  border-top: 1px solid #e8e8f0;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
}
.mobile-cta a {
  display: block;
  background: #f49712;
  color: #fff;
  text-align: center;
  padding: 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

/* ── Nav: hide tagline on mid-size screens to free up space ── */
@media (max-width: 1150px) {
  .nav__tagline { display: none; }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .section { padding: 56px 0; }

  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #e8e8f0;
    padding: 16px 24px 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    gap: 2px;
  }

  .nav__hamburger { display: flex; }

  /* Fix hero overflow on mobile */
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: clamp(1.7rem, 7vw, 2.4rem); word-break: break-word; }
  .hero__sub { font-size: 1rem; }
  .hero__btns { flex-direction: column; align-items: stretch; }
  .hero__btns .btn { text-align: center; }

  .items-grid { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr 1fr; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }

  /* Show mobile sticky CTA */
  .mobile-cta { display: block; }

  /* Give space above mobile CTA */
  .footer { padding-bottom: 96px; }

  /* Back to top moves left of mobile CTA area */
  .back-to-top { bottom: 80px; right: 16px; }
}

@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .audience-grid { grid-template-columns: 1fr; }
}
