/* Tasks4Teens shared site styles — used by index.html, neighbors.html,
   workers.html, safety.html.

   Color tokens are semantic (--surface, --text, --accent, ...) rather than
   named after a literal color, because workers.html re-declares this same
   :root block with light-theme values after this stylesheet loads. Every
   rule below should reference the tokens, never a literal hex/rgb, so a
   page can re-theme itself just by overriding :root. */

:root {
  --surface: #1e3a2f;
  --surface-rgb: 30, 58, 47;
  --surface-alt: #24483a;
  --surface-card: #234436;
  --text: #f0ebe0;
  --text-rgb: 240, 235, 224;
  --text-muted: #c8c4b8;
  --accent: #8caf9e;
  --accent-rgb: 140, 175, 158;
  --accent-hover: #a0c3b2;
  --pill-hover: #ffffff;
  --border: rgba(var(--text-rgb), 0.14);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--surface);
  color: var(--text);
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

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

img, svg { max-width: 100%; display: block; }

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(var(--surface-rgb), 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
nav.wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Anton', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.03em;
  color: var(--text);
}
.logo:hover { text-decoration: none; }
.logo-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  font-size: 0.95rem;
}
.nav-links a { color: var(--text-muted); }
.nav-links a.active { color: var(--text); font-weight: 600; }
.nav-cta {
  background: var(--accent);
  color: var(--surface);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}
.nav-cta:hover { text-decoration: none; background: var(--accent-hover); }
.nav-toggle { display: none; }

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 80px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(var(--accent-rgb), 0.14), transparent 70%),
    var(--surface);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateX(100%);
  animation: heroBgSlide 27.5s infinite;
}
.hero-bg-photo:nth-child(1) { animation-delay: 0s; }
.hero-bg-photo:nth-child(2) { animation-delay: 5.5s; }
.hero-bg-photo:nth-child(3) { animation-delay: 11s; }
.hero-bg-photo:nth-child(4) { animation-delay: 16.5s; }
.hero-bg-photo:nth-child(5) { animation-delay: 22s; }
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 58, 47, 0.77);
}
.hero > .wrap {
  position: relative;
  z-index: 1;
}

@keyframes heroBgSlide {
  0% { transform: translateX(100%); }
  5% { transform: translateX(0%); }
  20% { transform: translateX(0%); }
  25%, 100% { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-photo {
    animation: none;
    transform: none;
    opacity: 0;
  }
  .hero-bg-photo:first-child {
    opacity: 1;
  }
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  color: var(--text);
  margin-bottom: 8px;
}
.hero h1 .line2 { color: var(--text-muted); }
.hero p.sub {
  max-width: 560px;
  margin: 24px auto 40px;
  font-size: 1.15rem;
  color: var(--text-muted);
  font-weight: 300;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Page intro (used by neighbors/workers/safety in place of the hero) */
.page-intro { padding: 32px 0 0; }
.page-intro .section-head { margin-bottom: 32px; }
.page-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 12px;
}
.page-title-row h1 {
  margin-top: 4px;
}
.page-icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--surface); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { border-color: var(--text-muted); color: var(--text); }
.btn-outline:hover { background: rgba(var(--text-rgb), 0.06); }

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text);
  color: var(--surface);
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  min-width: 210px;
  justify-content: center;
}
.store-btn:hover { background: var(--pill-hover); text-decoration: none; transform: translateY(-2px); }
.store-btn small { display: block; font-weight: 400; font-size: 0.7rem; opacity: 0.7; }
.store-btn strong { font-size: 1rem; font-family: 'Josefin Sans', sans-serif; }
.store-icon { width: 22px; height: 22px; flex-shrink: 0; }

/* Section framing */
section { padding: 88px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h1, .section-head h2 { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--text); margin-bottom: 16px; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; font-weight: 300; }

.divider {
  height: 1px;
  background: var(--border);
  max-width: 1100px;
  margin: 0 auto;
}

/* Neighbors / Workers cards */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 800px) {
  .audience-grid { grid-template-columns: 1fr; }
}
.audience-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}
.detail-card {
  max-width: 640px;
  margin: 0 auto;
}
.teaser-card {
  display: block;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.teaser-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--accent-rgb), 0.5);
  text-decoration: none;
}
.teaser-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}
.card-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
.card-body {
  padding: 40px;
}
.audience-card .tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.card-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  flex-shrink: 0;
}
.audience-card h3 {
  font-size: 1.9rem;
  color: var(--text);
}
.audience-card p {
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 22px;
}
.audience-card ul {
  list-style: none;
  margin-bottom: 26px;
}
.audience-card li {
  padding-left: 26px;
  position: relative;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 0.95rem;
}
.audience-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.detail-card ul {
  margin-bottom: 0;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; }
}
.step {
  text-align: center;
  padding: 0 12px;
}
.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  color: var(--accent);
  font-family: 'Anton', sans-serif;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.step h3 {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 10px;
  text-transform: none;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 700;
}
.step p {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 300;
}

/* Trust & safety */
.trust {
  background: var(--surface-alt);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .trust-grid { grid-template-columns: 1fr; }
}
.trust-item {
  text-align: center;
  padding: 8px;
}
.trust-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--accent);
}
.trust-item h3 {
  font-size: 1rem;
  color: var(--text);
  text-transform: none;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 700;
  margin-bottom: 8px;
}
.trust-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 300;
}

/* Download CTA */
.download {
  text-align: center;
}
.download h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 16px; }
.download p { color: var(--text-muted); max-width: 480px; margin: 0 auto 36px; font-weight: 300; }
.download-buttons {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}
.download-groups {
  display: flex;
  gap: 44px;
  justify-content: center;
  flex-wrap: wrap;
}
.download-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.download-group-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
footer .logo { margin-bottom: 8px; }
.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 300;
}
.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
  font-size: 0.9rem;
}
.footer-links a { color: var(--text-muted); }
.footer-bottom {
  color: rgba(var(--text-rgb), 0.5);
  font-size: 0.82rem;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
