/*
Theme Name: 420Express
Theme URI: https://420express.org/
Author: 420 Express
Author URI: https://420express.org/
Description: Custom dark theme for 420express.org — digital products, tutoring, and newsletter. Lightweight, no frameworks, mobile-responsive.
Version: 1.0.7
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 420express
*/

/* ============ Tokens ============ */
:root {
  --bg: #0d0f12;
  --surface: #14171d;
  --surface-2: #1a1f28;
  --border: #232833;
  --text: #eef0f4;
  --muted: #9aa0b0;
  --faint: #5a606e;
  --accent: #f0a83e;          /* warm amber */
  --accent-hover: #d18f2a;
  --accent-ink: #171106;
  --accent-soft: #2a2113;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ============ Base ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; }
.img-responsive { max-width: 100%; height: auto; border-radius: 12px; display: block; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.site-main { min-height: 60vh; }

/* Page editor content defaults */
.page-content > *:first-child { margin-top: 0; }
.page-content p, .page-content ul, .page-content ol { margin: 0 0 1.1em; color: var(--muted); }
.page-content p strong, .page-content li strong { color: var(--text); }
.page-content ul, .page-content ol { padding-left: 1.4em; }
.page-content li { margin-bottom: 0.45em; }
.page-content h2, .page-content h3, .page-content h4 { color: var(--text); line-height: 1.3; margin: 1.6em 0 0.6em; }
.page-content h2 { font-size: 26px; }
.page-content h3 { font-size: 20px; }
.page-content em { color: var(--muted); }

/* ============ Marquee banner ============ */
.marquee-bar {
  background: var(--accent);
  color: var(--accent-ink);
  overflow: hidden;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 0;
  position: relative;
  z-index: 60;
}
.marquee-track {
  display: inline-flex;
  animation: marquee-scroll 28s linear infinite;
  will-change: transform;
}
.marquee-track span { padding-right: 0; }
.marquee-track i { font-style: normal; padding: 0 10px; opacity: 0.65; }
.marquee-bar:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ============ Header ============ */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(13, 15, 18, 0.92);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  padding-bottom: 16px;
}
.site-logo {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 1px;
  color: var(--text);
  text-decoration: none;
}
.site-logo span { color: var(--accent); }
.site-nav .nav-links { display: flex; gap: 24px; list-style: none; }
.site-nav .nav-links a,
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.site-nav a:hover { color: var(--text); }
.site-nav ul { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; }

/* ============ Hero ============ */
.hero { text-align: center; padding: 72px 0 54px; animation: hero-rise 0.9s ease-out both; }
.hero h1 { font-size: 42px; line-height: 1.18; margin-bottom: 16px; letter-spacing: -0.5px; animation: hero-rise 0.9s 0.1s ease-out both; }
.hero p { animation: hero-rise 0.9s 0.2s ease-out both; }
.hero .cta-row { animation: hero-rise 0.9s 0.3s ease-out both; }
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero, .hero h1, .hero p, .hero .cta-row { animation: none; }
}
.hero h1 { font-size: 42px; line-height: 1.18; margin-bottom: 16px; letter-spacing: -0.5px; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p { color: var(--muted); font-size: 18px; max-width: 580px; margin: 0 auto 30px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-ghost { border-color: var(--border); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--faint); color: var(--text); }

/* Prominent buy button (product cards) */
.btn-buy {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 17px;
  padding: 16px 28px;
  border-radius: 12px;
  text-decoration: none;
  margin-top: 18px;
}
.btn-buy:hover { background: var(--accent-hover); color: var(--accent-ink); }

/* Download button (thank-you pages) */
.btn-download {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 17px;
  padding: 16px 34px;
  border-radius: 12px;
  text-decoration: none;
  margin: 10px 8px 10px 0;
}
.btn-download:hover { background: var(--accent-hover); color: var(--accent-ink); }
.download-row { margin: 22px 0; }

/* ============ Zones / cards ============ */
.zones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  padding: 8px 0 44px;
}
.zone {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}
.zone .icon { font-size: 30px; margin-bottom: 12px; }
.zone h3 { font-size: 18px; margin-bottom: 8px; color: var(--text); }
.zone p { color: var(--muted); font-size: 14px; margin-bottom: 14px; flex-grow: 1; }
.zone a.zone-link { color: var(--accent); text-decoration: none; font-size: 14px; font-weight: 700; }
.zone a.zone-link:hover { text-decoration: underline; }

.price-tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

/* ============ Product cards (shop page) ============ */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  margin: 0 0 28px;
}
.product-card h2 { font-size: 28px; margin: 0 0 4px; color: var(--text); }
.product-tagline { color: var(--accent); font-size: 17px; font-weight: 600; margin-bottom: 16px; }
.product-price {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 16px;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.product-card p, .product-card li { color: var(--muted); }
.product-card ul { padding-left: 1.3em; margin: 0 0 1.1em; }
.product-card li { margin-bottom: 0.4em; }
.product-card .label { color: var(--text); font-weight: 700; margin: 1.2em 0 0.5em; }
.product-card img.img-responsive { margin: 18px 0; }

/* Product cards with thematic photographic backgrounds */
.product-card.has-bg {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  border-color: #2c313c;
}
.product-card.has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,15,18,0.55) 0%, rgba(13,15,18,0.42) 45%, rgba(13,15,18,0.68) 100%);
  border-radius: inherit;
  pointer-events: none;
}
/* The wall-art card uses a light botanical texture, so it needs a touch
   more overlay to keep white text readable while staying visibly textured. */
#wall-art.has-bg::before {
  background: linear-gradient(180deg, rgba(13,15,18,0.62) 0%, rgba(13,15,18,0.52) 45%, rgba(13,15,18,0.76) 100%);
}
.product-card.has-bg > * { position: relative; z-index: 1; }
/* Keep text crisp over photographic backgrounds on all screen sizes. */
.product-card.has-bg h2,
.product-card.has-bg p,
.product-card.has-bg .product-tagline,
.product-card.has-bg a {
  text-shadow: 0 1px 10px rgba(0,0,0,0.65);
}

/* ============ FAQ ============ */
.faq { margin: 1.4em 0; }
.faq-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 700;
  color: var(--text);
  list-style: none;
  font-size: 15px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "+ "; color: var(--accent); font-weight: 800; }
.faq-item[open] summary::before { content: "– "; }
.faq-item .faq-a { padding: 0 18px 16px; color: var(--muted); font-size: 15px; }

/* ============ Newsletter / email capture ============ */
.newsletter-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 30px;
  text-align: center;
  margin: 0 0 48px;
}
.newsletter-block h2, .newsletter-block h3 { font-size: 24px; margin-bottom: 8px; color: var(--text); }
.newsletter-block p { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.email-capture { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.email-capture input[type="email"] {
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  width: 280px;
  max-width: 100%;
  font-family: var(--font);
}
.email-capture input[type="email"]:focus { outline: none; border-color: var(--accent); }
.email-capture button {
  padding: 13px 26px;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  font-family: var(--font);
}
.email-capture button:hover { background: var(--accent-hover); }

/* ============ Thank-you pages ============ */
.thanks { text-align: center; padding: 64px 0 56px; }
.page-article .thanks { padding-top: 12px; } /* page.php already prints the title */
.thanks h1 { font-size: 36px; margin-bottom: 12px; }
.thanks h1 em { color: var(--accent); font-style: normal; }
.thanks p.lead { color: var(--muted); font-size: 17px; max-width: 560px; margin: 0 auto 8px; }
.thanks .recap {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin: 30px auto 0;
  max-width: 640px;
}
.thanks .recap h3 { font-size: 18px; margin-bottom: 10px; color: var(--text); }
.thanks .recap ul { padding-left: 1.3em; color: var(--muted); font-size: 15px; }
.thanks .recap li { margin-bottom: 0.4em; }

/* ============ Steps (tutoring) ============ */
.steps { counter-reset: step; margin: 1.4em 0; padding: 0; list-style: none; }
.steps li {
  position: relative;
  padding: 16px 18px 16px 58px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
  color: var(--muted);
}
.steps li strong { color: var(--text); }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============ Page header ============ */
.page-header { padding: 52px 0 8px; }
.page-title { font-size: 36px; letter-spacing: -0.5px; line-height: 1.2; }
.page-article { padding-bottom: 48px; }
.home-article .page-content { padding: 0; }

/* ============ CTA band ============ */
.cta-band {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
  text-align: center;
  margin: 0 0 48px;
}
.cta-band h2 { font-size: 24px; margin-bottom: 8px; color: var(--text); }
.cta-band p { color: var(--muted); margin-bottom: 20px; }

/* ============ Footer ============ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 26px 0 44px;
  color: var(--faint);
  font-size: 13px;
  text-align: center;
}
.site-footer a { color: var(--faint); text-decoration: none; }
.site-footer a:hover { color: var(--muted); }

/* ============ Responsive ============ */
@media (max-width: 640px) {
  .hero { padding: 52px 0 40px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  .page-title { font-size: 28px; }
  .thanks h1 { font-size: 28px; }
  .product-card { padding: 26px 20px; }
  .product-card h2 { font-size: 23px; }
  .site-nav .nav-links { gap: 16px; }
  .site-nav ul { gap: 16px; }
  .email-capture input[type="email"] { width: 100%; }
  .email-capture button { width: 100%; }
}
