/* ==========================================================================
   Warley MRC • screen.css (consolidated)
   - Hero (with safe animation layering)
   - Cinematic cards
   - Facts + Quote bands
   - FAQ (collapsible)
   - Reveal-on-scroll (accessible by default)
   - Mobile 100vh fixes / stacking safety
   ========================================================================== */

/* ---- Base safety ---- */
html, body {
  overflow-x: hidden;
}
body {
  overflow-y: auto;           /* never hide page scroll */
  font-family: "Lato", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.5;
}


 .bodylight {
  background-color: #fefde5;
  color: #0e0f0f;
  background-image:url(/images/warleylinkbg.png);
}

.bodydark {
  background-color: #0e0f0f;
  color: #fefde5;
  background-image:url(/images/warleylinkbgwhite.png);
}


.warleyYellow {
	color:#f4e664;
}

.goldborder {border-color:#caa971 !important}
	
.goldtext {color:#caa971;}

.gold {background-color:#caa971;color:black;}

.bodydark #btnnavupper {display:none;}

.bodylight #btnnavlower  {display:none;}

/* Anchor targets (so # links scroll below sticky-ish headers) */
.section-anchor { scroll-margin-top: 80px; }

/* Lift primary sections above any background effects */
#btnnavupper, #navbar,
.w3-row-padding, .facts-band, .quote-band, .faq-band, footer {
  position: relative;
  z-index: 3;
}

/* ==========================================================================
   HERO
   - Background image via pseudo-element
   - Overlay for contrast
   - Content layered above, animation layers kept behind
   ========================================================================== */

.hero{
  position: relative;
  min-height: clamp(420px, 80svh, 780px); /* avoids mobile 100vh traps */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate; /* predictable z-index stacking */
}

/* Background image (update path if needed) */
.hero::before{
  content: "";
  position: absolute; inset: 0;
  background: url('/images/warleyhand.png') center / cover no-repeat;
  z-index: 0;
}

/* Gentle dark overlay to keep text legible */
.hero::after{
  content: "";
  position: absolute; inset: 0;
  background: rgba(14, 15, 15, .50);
  backdrop-filter: blur(2px);
  z-index: 1;
}

/* Actual hero content */
.hero > *{
  position: relative;
  z-index: 2;
}

/* Optional logo in hero */
.logo{
  position: absolute;
  top: 20px; left: 20px;
  width: 64px;
  z-index: 2;
}

/* Optional CTA style if you use .join-button (kept minimal) */
.join-button{
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: #f4e664;
  color: #0e0f0f;
  font-weight: 700;
}
.join-button:hover{ filter: brightness(.95); }

/* Small screens */
@media (max-width:600px){
  .hero h1{ font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .logo   { width: 32px; }
}

/* If the animation injects layers, keep them behind & non-blocking */
.hero .hero-anim,
.hero .hero-overlay,
.hero canvas,
.hero svg{
  position: absolute;
  inset: 0;
  z-index: 1;              /* below hero content */
  pointer-events: none;     /* never block clicks/scroll */
}

/* ==========================================================================
   CINEMATIC CARDS
   ========================================================================== */

.cinematic{
  position: relative;
  height: 320px;
  overflow: hidden;
  color: #fff;
}
.cinematic img,
.cinematic video{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cinematic::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.6));
}
.cinematic-content{
  position:absolute;
  left:50%; top:50%;
  transform: translate(-50%, -50%);
  text-align:center;
  z-index:1;
}
.cinematic h2{ margin: 0 0 6px; }

/* Ken Burns (only runs when .play is added by JS if you want it) */
.kenburns{ transform: scale(1.04); }
.kenburns.play{ animation: zoomSlow 8s ease-in-out infinite alternate; }
@keyframes zoomSlow { from{ transform: scale(1.04) } to{ transform: scale(1.14) } }

/* ==========================================================================
   FACTS BAND
   ========================================================================== */

.facts-band{
  background: #0e0f0f;
  color: #fefde5;
}
.fact{
  text-align: center;
  padding: 18px 12px;
}
.fact h3{
  margin: 0 0 6px;
  font-size: 1.25rem;
}
.fact p{
  margin: 0;
  opacity: .9;
}

/* ==========================================================================
   QUOTE BAND
   ========================================================================== */

.quote-band{
  background: #1a1b1b;
  color: #fefde5;
}
.quote-wrap{
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 16px;
  text-align: center;
}
.quote-text{
  font-size: 1.25rem;
  line-height: 1.6;
  margin: 0 0 8px;
}
.quote-who{ opacity: .85; }

/* ==========================================================================
   FAQ
   - Height-animated answers (works with a tiny JS toggle)
   ========================================================================== */

.faq-band{ color: #fefde5; }
.faq-col { max-width: 980px; margin: 0 auto; padding: 8px 0 24px; }
.faq-title{ text-align: center; margin: 0 0 12px; }

.faq-grid{ display: grid; gap: 16px; }
@media (min-width: 992px){
  .faq-grid{ grid-template-columns: 1fr 1fr; }
}

.faq-item{
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: rgba(0,0,0,.72);
  overflow: hidden;
}
.faq-q{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 600;
}
.faq-q:hover{ background: rgba(255,255,255,.04); }
.faq-icon{ transition: transform .25s ease; font-weight: 700; }

.faq-a-wrap{
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq-a{ padding: 0 16px 0; opacity: .95; }
.faq-item.open .faq-a{ padding: 12px 16px 16px; }
.faq-item.open .faq-icon{ transform: rotate(45deg); } /* + -> × */

/* ==========================================================================
   REVEAL-ON-SCROLL
   - Accessible-first: visible by default
   - If JS is present, animate elements as they enter
   ========================================================================== */

.reveal{ opacity: 1; transform: none; } /* default visible */

.js .reveal{
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s ease, transform 1s ease;
}
.js .reveal.in-view{
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce){
  .reveal, .js .reveal, .js .reveal.in-view{
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .kenburns, .kenburns.play{
    transform: none !important;
    animation: none !important;
  }
}

/* ==========================================================================
   OPTIONAL: small helpers
   ========================================================================== */

/* If you use a sticky/fixed nav elsewhere, this keeps main content below it */
:root { --nav-h: 64px; }
main{ margin-top: var(--nav-h); scroll-margin-top: var(--nav-h); }


/* ==== HOTFIX: restore full-screen hero & footer styling ==== */

/* 1) Hero: fill the viewport on desktop, tame on mobile */
.hero{
  min-height: 100vh;               /* desktop/full-size fallback */
}
@supports (min-height: 100dvh){
  .hero{ min-height: 100dvh; }     /* modern browsers account for UI bars */
}
@media (max-width: 768px){
  .hero{ min-height: 58svh; }      /* avoid “swallowing” the page on phones */
}

/* If any margins collapsed into the hero, neutralise them */
.hero > *:first-child { margin-top: 0; }

/* 2) Footer: bring back dark styling + centre */
footer{
  background: #0e0f0f;
  color: #fefde5;
  text-align: center;
  padding: 24px 16px;
  border-top: 1px solid rgba(255,255,255,.12);
}
footer a{
  color: #f4e664;
  text-decoration: underline;
}
footer .w3-1024w{ max-width: 1024px; margin: 0 auto; }

/* 3) Safety: no unintended page offsets that could shrink hero */
main{ margin-top: 0; }  /* remove if you’re not using a sticky nav */

/* Smooth scroll globally */
html {
  scroll-behavior: smooth;
}

/* Respect accessibility settings */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}

/* Ensure the #navbar anchor doesn't hide under the top bar */
#navbar {
  scroll-margin-top: 20px; /* adjust if your top strip is taller */
}

/* NAV ALWAYS ON TOP */
#btnnavupper,
#navbar{
  position: relative;
  z-index: 1000;      /* higher than page sections */
  overflow: visible;  /* let dropdowns hang outside the bar */
}

/* Ensure dropdown menus stack above everything */
.w3-dropdown-hover,
.w3-dropdown-click{
  position: relative; /* anchor for absolute dropdown */
}
.w3-dropdown-content{
  z-index: 2000;      /* above navbar & content */
}

/* Keep the rest of the page beneath the nav */
.w3-row-padding,
.facts-band,
.quote-band,
.faq-band,
footer{
  position: relative;
  z-index: 3;
}

/* Strong header bar */
.page-header {
  background: #0e0f0f;
  color: #fff;
  padding: 40px 16px;
  border-bottom: 4px solid #caa971;
}
.page-header h1 {
  margin: 0;
  font-size: 2.2rem;
}
.page-header p {
  margin: 8px 0 0;
  font-size: 1.1rem;
  opacity: 0.85;
}

/* White content body */
.page-body {
  background: #fff;
  margin-top: 0;
}

/* Side image strip */
.image-strip {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.image-strip img {
  width: 100%;
  border-radius: 6px;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .image-strip {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
  }
  .image-strip img {
    flex: 1 1 calc(50% - 8px);
  }
}
@media (max-width: 600px) {
  .image-strip img {
    flex: 1 1 100%;
  }
}

