/* ============================================================
   styles.css  ·  shared stylesheet for “Hey Fear” pages
   ============================================================ */

/* ----------  RESET & BASE  ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.45;
  color: #ffffff;
  background: #ffffff;
  text-align: center;
}
:root {
  --blue: #013fae;
  --red:  #d92020;
  --green: #00d86c;
  --dark: #000000;
}

/* ----------  LAYOUT & TYPOGRAPHY  ---------- */
.logo,
header img { max-width: 150px; height: auto; }
main { width: 100%; }
.content {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
}
h1 {
  font-family: 'Anton', sans-serif;
  font-size: 3.5em;
  margin: 0.5em 0;
  letter-spacing:2px;
}
h2 { font-size: 1.8em; margin-top: 1em; }
h3 {
  font-size: 1.6em;
  color: #00ff7f;
  margin: 1.5em 0 1em;
}
p {
  font-size: 1em;
  line-height: 1.6;
  margin: 1em 0;
}
strong { font-weight: 700; }

/* ----------  BUTTONS  ---------- */
.chat-btn,
.btn,
a.btn {
  display: inline-block;
  margin: 1.5em auto;
  padding: 12px 30px;
  background-color: #00ff7f;
  color: #000;
  text-decoration: none;
  border-radius: 20px;
  font-weight: 600;
  font-size: 1.2rem;
  font-family: 'Anton', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}
.chat-btn:hover,
.btn:hover,
a.btn:hover { background-color: #00cc66; }
.btn,
a.btn {
  padding: 0.45rem 1.4rem;
  background: var(--green);
  color: var(--dark);
  text-decoration: none;
  transition: transform 0.2s ease;
}
.btn:hover,
a.btn:hover { transform: scale(1.05); }

/* ----------  HEADER & FOOTER  ---------- */
header {
  background: #f5f5f5;
  padding: 1.4rem 0 0.7rem;
  text-align: center;
}
footer {
  background: #000;
  color: #ccc;
  padding: 15px 0;
  font-size: 0.9em;
  text-align: center;
}
footer a { color: #ccc; text-decoration: none; }

/* ----------  HELPERS & UTILITIES  ---------- */
.centered { text-align: center; }
section { width: 100%; }
.page--red   { background: var(--red); }
.page--white { background: #ffffff; }

/* ----------  COMPONENTS  ---------- */
.hero {
  background: var(--blue);
  padding: 2.2rem 1rem 2rem;
}
.hero h1 {
  font-size: clamp(1.3rem, 1.8vw + 1rem, 3rem);
  font-weight: 900;
  margin-bottom: 0.6rem;
}
.hero .alt {        /* green tilted “fear” word */
  display: inline-block;
  color: #24ff03;
  font-family: monospace;
  font-size: 1.3em;
  transform: rotate(-8deg);
}

.card-list {
  max-width: 650px;
  margin: 1.8rem auto 0;
  display: grid;
  gap: 1.4rem;
}
.card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  border: solid 4px #fff;
  filter: drop-shadow(8px 8px 10px #000);

}
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
    
}
.card h3 {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  padding: 0 0.6rem;
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}

.definition {
  background: var(--red);
  padding: 3rem 1.2rem 3.5rem;
}
.definition h2 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.definition p {
  max-width: 480px;
  margin: 0 auto 0.8rem;
  font-size: 1rem;
}

.media {
  max-width: 380px;
  margin: 2.6rem auto;
  border-radius: 6px;
  overflow: hidden;
}
.media img,
.media video {
  width: 100%;
  height: auto;
  display: block;
}

.call-faith,            /* red-page variant uses body.red background */
.call-to-faith {        /* white-page variant */
  padding: 3rem 1.2rem 4rem;
  color: var(--dark);   /* will be overridden back to white when parent bg is red */
  text-align: center;
}
.call-to-faith { background: #ffffff; }      /* white strip on page-one */

.call-faith h2,
.call-to-faith h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: currentColor;
}

.call-faith h3,
.call-to-faith h3 {
  font-size: 1.4rem;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.call-faith p,
.call-to-faith p {
  max-width: 500px;
  margin: 0 auto 1.4rem;
  font-size: 1rem;
}

.fear-title {
  font-size: clamp(2rem, 2vw + 1.5rem, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  text-shadow: 0 0 6px #000;
  background:#e11718;
  width: 400px;
}

.back-to-top {
  position: fixed;
  left: 1rem;
  bottom: 1.8rem;
  width: 44px;
  height: 44px;
  background: var(--dark);
  border-radius: 50%;
  display: grid;
  place-content: center;
  color: #ffffff;
  font-size: 1.2rem;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.back-to-top:hover { opacity: 1; }

/* ----------  VIDEO EMBED RESPONSIVE STYLE  ---------- */
.video-container {
  width: 100%;
  max-width: 800px; /* Optional max width */
  margin: 0 auto;
  border-radius: 10px;
  border: 4px solid white;
}

.video-container video {
  width: 100%;
  height: auto;
  display: block;
}

/* ----------  PAGE-SPECIFIC OVERRIDES  ---------- */
body.loss { background-color: #0d0b09; }
body.loss h2,
body.loneliness h2,
body.rejection h2,
body.not-enough h2 {
  font-size: 2.5rem;
  margin-top: 1em;
}
body.loss h3,
body.loneliness h3,
body.rejection h3,
body.not-enough h3 {
  font-size: 2rem;
  color: #00ff7f;
  margin: 1.5em 0 1em;
}
body.loneliness { background-color: #bb6e44; }
body.rejection { background-color: #4b1fcf; }
body.not-enough { background-color: #0c7a89; }
body.failure { background-color: #e50914; }
body.failure h2 {
  font-size: 3rem;
  margin-top: 1em;
  font-style: italic;
}
body.failure h3 {
  margin: 1.5em 0 1em;
  font-family: 'Anton', sans-serif;
  letter-spacing: 1px;
  font-size: 3rem;
  color: #00ff7f;
  text-transform: uppercase;
}
body.failure p {
  font-size: 1em;
  line-height: 1.6;
  margin: 1em 0;
}

.ms {
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  display: inline-block;
  background: transparent;
}

/* ----------  RESPONSIVE FIXES FOR MOBILE  ---------- */
@media (max-width: 600px) {
  .hero img {
    max-width: 90vw;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 1rem auto;
  }
  .card-list {
    grid-template-columns: 1fr;
    max-width: 95vw;
    gap: 1rem;
  }
  .content {
    padding: 10px;
    max-width: 98vw;
  }
  header img,
  .logo {
    max-width: 90vw;
    height: auto;
  }
  .video-container,
  .video-thumb {
    max-width: 98vw;
  }
  .fear-title {
    width: 95vw;
    font-size: 1.5rem;
  }
  section {
    width: 100vw;
    overflow-x: hidden;
  }
  body,
  html {
    overflow-x: hidden;
  }
}


