/* ===============================
   NorthForge3D — The Deuce Styles
   =============================== */

/* Base */
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, sans-serif;
  background-color: #0a0f0a;
  color: #e8f5ed;
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 1.12rem; /* slightly larger overall text */
}

/* ===============================
   HERO SECTION (Parallax + Overlay)
   =============================== */
#hero {
  position: relative;
  height: 100vh;
  /* Desktop default: parallax + cover */
  background: url('/img/thedeuce.jpg') center/cover no-repeat fixed;
  color: #e8f5ed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.8) 80%);
  transition: opacity 0.6s ease;
}
#hero.scrolled::after { opacity: 0.9; }
#hero .overlay { position: relative; z-index: 2; transition: transform 0.3s ease, opacity 0.3s ease; }
.hero-logo { width: 120px; margin-bottom: 1rem; }
#hero h1 { font-size: 3rem; margin: 0.2rem 0; letter-spacing: 0.1em; }
#hero h2 { font-size: 1.5rem; margin: 0.2rem 0 1rem 0; color: #5df27c; }
#hero .tagline { font-size: 1rem; opacity: 0.8; }

/* ===============================
   CONTENT SECTIONS
   =============================== */
section.content,
section.alt {
  position: relative;
  z-index: 3;
  backdrop-filter: blur(6px);
  background: rgba(10, 20, 10, 0.6);
  margin: 4rem auto;
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  max-width: 840px; /* slightly tighter than 900px */
  color: #e8f5ed;
  box-shadow: 0 0 30px rgba(10, 20, 10, 0.4);
  transition: opacity 1s ease, transform 1s ease;
}
section.alt { background: rgba(15, 25, 15, 0.7); }

/* Center all non-list text for readability (overridden later) */
section h2,
section p,
section .dual-list {
  text-align: center;
}

/* Lists: center block within text column and indent bullets more */
section ul {
  margin-left: auto;
  margin-right: auto;
  padding-left: 2.3rem; /* increased indent */
}
section table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
section table th, section table td {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 0.5rem; text-align: left;
}
.dual-list { font-size: 1.05rem; }

/* === Bullet list wrap: center the block, left-align items === */
.list-wrap {
  display: grid;
  place-items: center;
  margin: 1.1rem 0;
}
.list-wrap ul {
  text-align: left;           /* keep bullets left */
  list-style: disc;
  padding-left: 1.6rem;       /* slightly more indent */
  margin: 0;
  width: min(680px, 90%);     /* readable line length */
}

/* ===============================
   GET INVOLVED SECTION
   =============================== */
.get-involved .actions {
  display: flex; gap: 12px; flex-wrap: wrap; margin: 1rem 0 0.5rem 0;
}
.btn {
  display: inline-block;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid #34c759;
  color: #041b0e;
  background: #34c759;
  transition: all 0.2s ease;
}
.btn:hover { filter: brightness(1.1); }
.btn:disabled { opacity: 0.7; cursor: not-allowed; }
.btn.ghost { color: #e8f5ed; background: transparent; border-color: rgba(52,199,89,0.6); }
.tiny-note { opacity: 0.7; font-size: 0.9rem; }

/* ===============================
   CALL TO ACTION
   =============================== */
#cta {
  text-align: center;
  padding: 4rem 1rem;
  background: linear-gradient(to bottom, #0b150b, #0a0f0a);
}
#cta h2 { color: #5df27c; }

/* Constrain CTA heading + blurb to match the form width */
#cta .cta-wrap {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  text-align: center;
}
#cta .cta-wrap > h2,
#cta .cta-wrap > p {
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

/* ===============================
   FOOTER
   =============================== */
footer {
  text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  background: #080d08;
}
.footer-logo-wrap {
  display: flex; justify-content: center; align-items: center;
  gap: 0.5rem; margin-bottom: 0.5rem;
}
.footer-logo-icon { width: 48px; height: auto; opacity: 0.95; }
.footer-logo-txt  { width: 160px; height: auto; opacity: 0.9; }
footer p { font-size: 0.85rem; opacity: 0.8; }
@media (max-width: 480px) {
  .footer-logo-wrap { flex-direction: column; gap: 0.3rem; }
}

/* ===============================
   SUBSCRIBE FORM (CTA)
   =============================== */
.signup {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.8rem;
  justify-items: center;
}
.signup .row {
  display: flex;
  flex-direction: column;          /* stack: input → consent → button */
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  max-width: 340px;                /* tighter than typical phone width */
  margin-inline: auto;
}

/* Input: centered text & placeholder */
.input {
  width: 100%;
  max-width: 340px;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 2px solid rgba(93, 242, 124, 0.35);
  background: rgba(8, 13, 8, 0.88);
  color: #e8f5ed;
  outline: none;
  font-size: 1.12rem;
  line-height: 1.2;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.input::placeholder { color: rgba(232,245,237,0.7); }
.input:focus {
  border-color: #5df27c;
  box-shadow: 0 0 0 4px rgba(93,242,124,0.15);
  background: rgba(8, 13, 8, 0.96);
}

/* Consent: constrained to input width and centered */
.consent-inline {
  width: 100%;
  max-width: 340px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: start;
  text-align: center;
  opacity: 0.95;
}
.consent-inline input[type="checkbox"] {
  transform: translateY(3px);
  accent-color: #34c759;
  justify-self: center;
}
.consent-inline label { line-height: 1.4; }

/* Button: same width as input */
.btn-lg {
  width: 100%;
  max-width: 340px;
  height: auto;
  font-size: 1.08rem;
  line-height: 1.2;
  white-space: nowrap;
  padding: 1rem 1.2rem;
}

/* Messages (match form width & center) */
.msg {
  min-height: 1.1em;
  font-size: 0.95rem;
  opacity: 0.9;
  max-width: 340px;
  margin: 0.25rem auto 0;
}
.msg.success { color: #5df27c; }
.msg.error   { color: #ff8d8d; }

/* Utilities */
.hp {
  position: absolute !important;
  left: -9999px !important;
  height: 0 !important;
  width: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.sr-only {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
}

/* ===============================
   ANIMATIONS (Fade & Reveal)
   =============================== */
.fade-up { opacity: 0; transform: translateY(40px); }
.fade-in { opacity: 0; }
.visible { opacity: 1 !important; transform: translateY(0) !important; }

/* ===============================
   NORTHERN LIGHT HERO GLOW
   =============================== */
@keyframes auroraPulse {
  0% {
    text-shadow:
      0 0 10px rgba(93, 242, 124, 0.3),
      0 0 20px rgba(93, 242, 124, 0.2),
      0 0 40px rgba(93, 242, 124, 0.1);
  }
  50% {
    text-shadow:
      0 0 25px rgba(93, 242, 124, 0.6),
      0 0 60px rgba(93, 242, 124, 0.4),
      0 0 90px rgba(93, 242, 124, 0.2);
  }
  100% {
    text-shadow:
      0 0 10px rgba(93, 242, 124, 0.3),
      0 0 20px rgba(93, 242, 124, 0.2),
      0 0 40px rgba(93, 242, 124, 0.1);
  }
}
#hero h1 {
  font-size: 3rem;
  margin: 0.2rem 0;
  letter-spacing: 0.1em;
  animation: auroraPulse 6s ease-in-out infinite;
}

/* ===============================
   RESPONSIVE
   =============================== */

/* iPhone / small screens: keep full image visible, avoid iOS parallax bugs */
@media (max-width: 640px) {
  #hero {
    background-position: center top;
    background-size: contain;        /* no side cropping */
    background-color: #0a1b14;       /* brand letterbox fill */
    background-attachment: scroll;   /* disable fixed for iOS */
    min-height: 56vh;
  }

  #hero h1 { font-size: 2.3rem; }
  #hero h2 { font-size: 1.2rem; }

  .content, .alt {
    margin: 2rem 1rem;
    padding: 1.5rem;
  }
}

/* === Revert non-list text centering === */
section p,
section .dual-list {
  text-align: left;   /* was center */
}

/* Keep list block styling from before */
.list-wrap {
  display: grid;
  place-items: center;     /* centers the UL as a block */
  margin: 1.1rem 0;
}
.list-wrap ul {
  text-align: left;        /* list items left-justified */
  list-style: disc;
  padding-left: 1.6rem;
  margin: 0;
  width: min(680px, 90%);
}

/* Mid-page CTA: lighter feel than footer CTA */
#cta-mid {
  text-align: center;
  padding: 3rem 1rem 2.5rem;
  background: linear-gradient(to bottom, rgba(11,21,11,0.6), rgba(10,15,10,0.4));
  margin: 3rem auto 0;
}

/* Re-use existing .cta-wrap sizing so both CTAs match */
#cta-mid .cta-wrap > h3,
#cta-mid .cta-wrap > p {
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}
#cta-mid h3 { color: #5df27c; margin-top: 0; }

/* Ensure both CTA headings are centered */
#cta h2,
#cta-mid h3 {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ===============================
   CONTENT WIDTH + HEADINGS
   =============================== */

/* Tighter inner text width for readability */
section.content p,
section.content ul,
section.content h2,
section.content h3,
section.alt p,
section.alt ul,
section.alt h2,
section.alt h3 {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Add some brand color to headings in content sections */
section.content h2,
section.alt h2 {
  color: #5df27c; /* bright forge green */
}

section.content h3,
section.alt h3 {
  color: #a4f2c0; /* softer highlight for subheads */
  font-size: 1.2rem; /* slightly larger subheads */
}

/* ===============================
   WELCOME CALLOUT AT BOTTOM
   =============================== */

.welcome-callout {
  margin-top: 1.5rem;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5df27c;
  text-align: center;
  text-shadow:
    0 0 12px rgba(93, 242, 124, 0.55),
    0 0 28px rgba(93, 242, 124, 0.35),
    0 0 46px rgba(93, 242, 124, 0.2);
}

@media (max-width: 640px) {
  .welcome-callout {
    font-size: 1.05rem;
    letter-spacing: 0.06em;
  }
}

/* ===============================
   REFINEMENTS / OVERRIDES
   =============================== */

/* Slightly tighter section spacing */
section.content,
section.alt {
  margin: 3rem auto;
}

/* On mobile, a bit more breathing room than 2rem but still compact */
@media (max-width: 640px) {
  .content, .alt {
    margin: 2.5rem 1rem;
  }
}

/* More breathable lists */
section ul {
  line-height: 1.7;
}
section ul li {
  margin-bottom: 0.25rem;
}
section ul li:last-child {
  margin-bottom: 0;
}

/* Subtle emphasis on the key mission line */
.mission-highlight {
  font-size: 1.05em;
  font-weight: 600;
  text-align: center;
  margin: 1.5rem auto 1rem;
}

/* Make mid-page CTA feel lighter and card-like */
#cta-mid {
  background: transparent;
  border: 1px solid rgba(93, 242, 124, 0.15);
  border-radius: 1rem;
  padding: 2.5rem 1.5rem;
  max-width: 520px;
  margin: 3rem auto;
}

/* Strengthen bottom CTA background slightly */
#cta {
  background: linear-gradient(to bottom, #0b150b, #050805);
}

/* Slight visual step-down for first content H2 vs hero H2 */
section.content h2:first-of-type {
  margin-top: 0.5rem;
  font-size: 1.4rem;
}

.footer-links {
  margin-bottom: 0.6rem;
}

.footer-blog {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: #e8f5ed;
  font-size: 0.9rem;
  opacity: 0.85;
}

.footer-blog:hover {
  opacity: 1;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 0.4rem 0 0.6rem;
}

.footer-icon {
  width: 22px;
  height: 22px;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-social-link:hover .footer-icon {
  opacity: 1;
  transform: translateY(-1px);
}

.nf-page-top-link {
  max-width: 960px;
  margin: 16px auto 0;
  padding: 0 16px;
  text-align: left;
}

.nf-back-home {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  color: #ffffff;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.nf-back-home:hover {
  background: #27ae60; /* swap to your neon/forge green if you like */
  border-color: #27ae60;
  transform: translateY(-1px);
}

.footer-nav-links {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  opacity: 0.85;
}

.footer-nav-links a {
  text-decoration: none;
  color: inherit;
}

.footer-nav-links a:hover {
  text-decoration: underline;
}

.footer-sep {
  opacity: 0.6;
}


