/*
Theme Name: Next Rep Football
Description: Custom theme for nextrepfootball.com, ported from the original static/PHP site.
Author: Next Rep Football
Version: 1.0
*/

:root {
  --bg: #0e1a2e;
  --bg-raised: #16273f;
  --navy: #1A2A4A;
  --accent: #E8651A;
  --silver: #9c9e9d;
  --text: #f4f5f4;
  --text-dim: #9aa4b2;
  --border: #223452;
}

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

html, body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.35;
  mask-image: radial-gradient(circle at 50% 40%, black, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

/* Scroll-reveal utility, shared site-wide */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(232,101,26,0.16) 0%, transparent 65%);
  pointer-events: none;
  z-index: -1;
}
.field-line {
  height: 3px;
  width: 64px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  position: relative;
  z-index: 1;
}

.hero-inner {
  max-width: 640px;
  width: 100%;
  text-align: center;
}

.logo {
  width: min(220px, 60vw);
  height: auto;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4));
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.wordmark {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(2.75rem, 9vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--silver);
}

.wordmark .accent {
  display: block;
  color: var(--accent);
}

.tagline {
  margin-top: 1.5rem;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
}

.copy {
  margin-top: 1.25rem;
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-cta {
  display: inline-block;
  padding: 0.95rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-radius: 6px;
  transition: filter 0.15s ease, transform 0.1s ease;
}

.btn-cta:active {
  transform: scale(0.98);
}

.btn-cta.primary {
  background: var(--accent);
  color: #fff;
}

.btn-cta.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-cta:hover {
  filter: brightness(1.1);
}

.stats {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.stats .stat-num {
  font-family: 'Anton', sans-serif;
  font-size: 2rem;
  color: var(--accent);
}

.stats .stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.about {
  position: relative;
  z-index: 1;
  background: var(--bg-raised);
  padding: 4rem 1.5rem;
}

.about-inner {
  max-width: 680px;
  margin: 0 auto;
}

.about .eyebrow {
  text-align: center;
}

.about h2 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.about p {
  color: var(--text-dim);
  margin-bottom: 1.1rem;
  font-size: 1rem;
}

@media (max-width: 420px) {
  .hero-ctas {
    flex-direction: column;
  }
  .btn-cta {
    width: 100%;
    text-align: center;
  }
}

/* Trust bar under hero CTAs */
.trust-bar {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.trust-bar span { display: flex; align-items: center; gap: .5rem; }
.trust-bar .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: none; }

/* Section shell used by feature/how-it-works/cta-band */
.section-shell {
  position: relative;
  z-index: 1;
  padding: 5rem 1.5rem;
}
.section-head {
  max-width: 620px;
  margin: 0 auto 3rem;
  text-align: center;
}
.section-head .eyebrow { text-align: center; }
.section-head h2 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .01em;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--text);
}
.section-head p { margin-top: .85rem; color: var(--text-dim); }

/* Feature grid ("Why NRF") */
.feature-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem 1.75rem;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.feature-card::before {
  content: attr(data-num);
  position: absolute;
  top: -0.5rem;
  right: 0.5rem;
  font-family: 'Anton', sans-serif;
  font-size: 4.5rem;
  color: var(--border);
  line-height: 1;
  z-index: 0;
  opacity: .6;
}
.feature-card-inner { position: relative; z-index: 1; }
.feature-card .feature-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(232,101,26,.14);
  border-radius: 10px;
  color: var(--accent);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 1.1rem;
}
.feature-card h3 { color: var(--text); font-size: 1.15rem; margin-bottom: .5rem; }
.feature-card p { color: var(--text-dim); font-size: .92rem; line-height: 1.6; }

/* "What's inside" checklist strip */
.inside-strip {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.inside-item {
  background: var(--bg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.inside-item .tag {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent);
}
.inside-item h4 { color: var(--text); font-size: 1.02rem; }
.inside-item p { color: var(--text-dim); font-size: .85rem; line-height: 1.55; }

/* Closing CTA band */
.cta-band {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4.5rem 1.5rem;
  text-align: center;
}
.cta-band h2 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 5vw, 2.75rem);
  color: #fff;
  margin-bottom: .85rem;
}
.cta-band p { color: var(--text-dim); max-width: 480px; margin: 0 auto 2rem; }

/* Shared site nav (was partials/header.php) */
.nrf-nav{position:sticky;top:0;z-index:100;background:#1A2A4A;border-bottom:1px solid #2A3A5A;display:flex;align-items:center;justify-content:space-between;padding:.85rem 5vw;font-family:'Segoe UI',system-ui,-apple-system,sans-serif}
.nrf-nav a{color:#fff;text-decoration:none}
.nrf-nav .nrf-brand{font-weight:800;letter-spacing:.03em;font-size:1.05rem;display:flex;align-items:center;gap:.5rem;white-space:nowrap}
.nrf-nav .nrf-brand span{color:#E8651A}
.nrf-nav-links{display:flex;align-items:center;gap:1.75rem;font-size:.92rem;font-weight:600}
.nrf-nav-links a:hover{color:#E8651A}
.nrf-nav-links .nrf-nav-cta{background:#E8651A;color:#fff;padding:.5rem 1.1rem;border-radius:6px}
.nrf-nav-links .nrf-nav-cta:hover{color:#fff;filter:brightness(1.08)}
@media(max-width:560px){.nrf-nav{padding:.75rem 1.25rem}.nrf-nav-links{gap:.85rem;font-size:.78rem}.nrf-nav-links .nrf-nav-cta{padding:.4rem .75rem}}

/* Shared site footer (was partials/footer.php) */
.nrf-footer{position:relative;z-index:1;background:#0F1A2E;color:#9aa4b2;padding:3rem 5vw 2rem;font-family:'Segoe UI',system-ui,-apple-system,sans-serif}
.nrf-footer-inner{max-width:1100px;margin:0 auto;display:flex;flex-wrap:wrap;gap:2.5rem;justify-content:space-between;align-items:flex-start}
.nrf-footer-brand{color:#fff;font-weight:800;letter-spacing:.03em;font-size:1.05rem;margin-bottom:.5rem}
.nrf-footer-brand span{color:#E8651A}
.nrf-footer-tag{max-width:320px;font-size:.88rem;line-height:1.6}
.nrf-footer-social{display:inline-flex;align-items:center;gap:.5rem;margin-top:1rem;color:#9aa4b2;text-decoration:none;font-size:.85rem;font-weight:600}
.nrf-footer-social:hover{color:#E8651A}
.nrf-footer-links{display:flex;gap:2.5rem;flex-wrap:wrap}
.nrf-footer-col h4{color:#fff;font-size:.78rem;letter-spacing:.08em;text-transform:uppercase;margin-bottom:.85rem}
.nrf-footer-col a{display:block;color:#9aa4b2;text-decoration:none;font-size:.88rem;margin-bottom:.55rem}
.nrf-footer-col a:hover{color:#E8651A}
.nrf-footer-form{max-width:320px}
.nrf-footer-form h4{color:#fff;font-size:.78rem;letter-spacing:.08em;text-transform:uppercase;margin-bottom:.6rem}
.nrf-footer-form p{font-size:.82rem;margin-bottom:.85rem}
.nrf-footer-bottom{max-width:1100px;margin:2.5rem auto 0;padding-top:1.5rem;border-top:1px solid #223452;text-align:center;font-size:.78rem}

/* Blog */
.blog-hero{padding:3.5rem 5vw 2rem;text-align:center;max-width:760px;margin:0 auto;position:relative;z-index:1}
.blog-hero .eyebrow{text-align:center}
.blog-hero h1{font-size:clamp(2rem,5vw,2.75rem);margin-bottom:.75rem;color:var(--text)}
.blog-hero p{color:var(--text-dim);font-size:1.05rem}
.post-grid{max-width:1100px;margin:0 auto;padding:1rem 5vw 4rem;display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.75rem;position:relative;z-index:1}
.post-card{background:var(--bg-raised);border:1px solid var(--border);border-radius:12px;padding:1.75rem;display:flex;flex-direction:column;gap:.6rem}
.post-card .post-thumb{width:100%;height:160px;object-fit:cover;border-radius:8px;margin-bottom:.5rem}
.post-card .post-meta{font-size:.75rem;letter-spacing:.05em;text-transform:uppercase;color:var(--accent);font-weight:600}
.post-card h2{font-size:1.3rem;line-height:1.3}
.post-card h2 a{color:var(--text);text-decoration:none}
.post-card h2 a:hover{color:var(--accent)}
.post-card .post-excerpt{color:var(--text-dim);font-size:.92rem;flex:1}
.post-card .read-more{color:var(--accent);font-size:.88rem;font-weight:700;text-decoration:none}
.no-posts{max-width:600px;margin:0 auto;padding:2rem 5vw 5rem;text-align:center;color:var(--text-dim);position:relative;z-index:1}
.pagination-nav{max-width:1100px;margin:0 auto;padding:0 5vw 4rem;display:flex;justify-content:center;gap:1rem;position:relative;z-index:1}
.pagination-nav a{color:var(--accent);text-decoration:none;font-weight:600;font-size:.9rem}

.nrf-post{max-width:720px;margin:0 auto;padding:3.5rem 5vw 5rem;position:relative;z-index:1}
.nrf-post .post-meta{font-size:.78rem;letter-spacing:.08em;text-transform:uppercase;color:var(--accent);font-weight:600;margin-bottom:.75rem}
.nrf-post h1{font-size:clamp(1.9rem,5vw,2.5rem);color:var(--text);margin-bottom:1.5rem;line-height:1.2}
.nrf-post .post-thumb{width:100%;border-radius:12px;margin-bottom:2rem}
.nrf-post .post-content{color:var(--text-dim);font-size:1.05rem;line-height:1.75}
.nrf-post .post-content p{margin-bottom:1.25rem}
.nrf-post .post-content h2{color:var(--text);margin:2rem 0 1rem;font-size:1.5rem}
.nrf-post .post-content h3{color:var(--text);margin:1.75rem 0 .85rem;font-size:1.25rem}
.nrf-post .post-content ul,.nrf-post .post-content ol{margin:0 0 1.25rem 1.5rem}
.nrf-post .post-content img{max-width:100%;height:auto;border-radius:8px;margin:1.5rem 0}
.nrf-post .post-content a{color:var(--accent)}
.nrf-post .post-content blockquote{border-left:3px solid var(--accent);padding-left:1.25rem;color:var(--text);font-style:italic;margin:1.5rem 0}
.nrf-post .back-link{display:inline-block;margin-top:2.5rem;color:var(--accent);text-decoration:none;font-weight:600;font-size:.9rem}
