/* ==========================================================================
   Leesburg Stake Youth — 2027 Trek
   "Rejoice in Christ"
   Warm pioneer-trail palette — intentionally distinct from
   churchofjesuschrist.org's navy/gold system (no shared colors, fonts,
   logo treatment, or layout conventions).
   ========================================================================== */

:root{
  --rust:        #A1472E;
  --rust-dark:   #7C3722;
  --amber:       #C9862F;
  --amber-light: #E8B469;
  --forest:      #495E3C;
  --forest-dark: #333F28;
  --cream:       #F8F0E1;
  --cream-card:  #FFFBF3;
  --ink:         #3A2A1D;
  --ink-soft:    #6B5745;
  --border:      #E4D3B6;
  --shadow:      0 6px 18px rgba(58,42,29,0.12);
  --radius:      14px;
  --maxw:        1080px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font-family:'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height:1.6;
}
h1,h2,h3,h4{
  font-family:'Lora', Georgia, serif;
  color:var(--rust-dark);
  line-height:1.25;
  margin:0 0 .5em;
}
p{ margin:0 0 1em; }
a{ color:var(--rust); text-decoration:none; }
a:hover{ text-decoration:underline; }
img{ max-width:100%; display:block; }
ul{ padding-left:1.25em; }

.container{
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 20px;
}

/* ---------- Header / Nav ---------- */
.site-header{
  background:var(--forest-dark);
  color:#fff;
  position:sticky;
  top:0;
  z-index:100;
  box-shadow:0 2px 10px rgba(0,0,0,0.15);
}
.nav-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 20px;
  max-width:var(--maxw);
  margin:0 auto;
}
.brand{
  display:flex;
  flex-direction:column;
  color:#fff;
  line-height:1.1;
}
.brand:hover{ text-decoration:none; }
.brand .brand-top{
  font-family:'Lora',serif;
  font-size:1.25rem;
  font-weight:700;
  letter-spacing:.3px;
}
.brand .brand-sub{
  font-size:.78rem;
  color:var(--amber-light);
  text-transform:uppercase;
  letter-spacing:1.5px;
}
.nav-links{
  display:flex;
  gap:6px;
  list-style:none;
  margin:0;
  padding:0;
}
.nav-links a{
  color:#f1e6d2;
  font-weight:600;
  font-size:.95rem;
  padding:8px 14px;
  border-radius:8px;
  display:block;
}
.nav-links a:hover,
.nav-links a.active{
  background:rgba(255,255,255,0.12);
  color:#fff;
  text-decoration:none;
}
.nav-toggle{
  display:none;
  background:none;
  border:none;
  color:#fff;
  font-size:1.6rem;
  cursor:pointer;
}

@media (max-width:800px){
  .nav-toggle{ display:block; }
  .nav-links{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    right:0;
    flex-direction:column;
    background:var(--forest-dark);
    padding:8px 12px 16px;
    gap:2px;
  }
  .nav-links.open{ display:flex; }
}

/* ---------- Hero ---------- */
.hero{
  position:relative;
  color:#fff;
  background:
    linear-gradient(160deg, rgba(58,30,18,.78), rgba(124,55,34,.55)),
    var(--hero-img, linear-gradient(160deg,#7C3722,#495E3C));
  background-size:cover;
  background-position:center;
  padding:76px 20px 64px;
  text-align:center;
}
.hero .theme-tag{
  display:inline-block;
  background:rgba(255,255,255,0.14);
  border:1px solid rgba(255,255,255,0.35);
  color:var(--amber-light);
  font-weight:700;
  letter-spacing:2px;
  text-transform:uppercase;
  font-size:.8rem;
  padding:6px 16px;
  border-radius:999px;
  margin-bottom:18px;
}
.hero h1{
  color:#fff;
  font-size:clamp(2rem,5vw,3.1rem);
  margin-bottom:.3em;
}
.hero .hero-theme{
  font-family:'Lora',serif;
  font-style:italic;
  font-size:clamp(1.1rem,2.6vw,1.5rem);
  color:var(--amber-light);
  margin-bottom:.6em;
}
.hero .hero-sub{
  font-size:1.15rem;
  max-width:640px;
  margin:0 auto 1.5em;
  color:#f6ead7;
}
.hero-meta{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  justify-content:center;
  margin-bottom:2em;
}
.hero-meta .pill{
  background:rgba(255,255,255,0.12);
  border:1px solid rgba(255,255,255,0.3);
  border-radius:999px;
  padding:8px 18px;
  font-size:.95rem;
  font-weight:600;
}
.hero-image-note{
  font-size:.75rem;
  color:rgba(255,255,255,0.65);
  margin-top:18px;
}

.btn{
  display:inline-block;
  background:var(--amber);
  color:#2e200f;
  font-weight:700;
  padding:13px 26px;
  border-radius:10px;
  border:none;
  cursor:pointer;
  font-size:1rem;
  box-shadow:var(--shadow);
}
.btn:hover{ background:var(--amber-light); text-decoration:none; }
.btn-outline{
  background:transparent;
  border:2px solid rgba(255,255,255,0.7);
  color:#fff;
}
.btn-outline:hover{ background:rgba(255,255,255,0.15); }
.btn-row{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  justify-content:center;
}

/* ---------- Image-based top banner (homepage) ---------- */
.hero-banner{
  width:100%;
  line-height:0;
  background:var(--forest-dark);
}
.hero-banner img{
  width:100%;
  height:auto;
  display:block;
}
.hero-cta{
  background:var(--cream-card);
  border-bottom:1px solid var(--border);
  padding:32px 20px 40px;
  text-align:center;
}
.hero-cta .hero-sub{
  max-width:640px;
  margin:0 auto 22px;
  color:var(--ink-soft);
  font-size:1.1rem;
}
.btn-outline-dark{
  background:transparent;
  border:2px solid var(--rust);
  color:var(--rust-dark);
}
.btn-outline-dark:hover{ background:rgba(161,71,46,0.08); text-decoration:none; }

/* ---------- Christ-centered theme feature ---------- */
.theme-feature{
  background:linear-gradient(180deg,#0c1a2e,#152a45);
  color:#f0eee6;
  padding:60px 20px;
}
.theme-feature .container{
  display:grid;
  grid-template-columns:1.05fr 0.95fr;
  gap:48px;
  align-items:center;
}
.theme-feature .theme-copy .theme-eyebrow{
  display:inline-block;
  color:#c9a86a;
  font-weight:700;
  letter-spacing:2px;
  text-transform:uppercase;
  font-size:.78rem;
  margin-bottom:14px;
}
.theme-feature h2{
  color:#fff;
  font-size:clamp(1.8rem,3.4vw,2.5rem);
  font-style:italic;
  margin-bottom:.5em;
}
.theme-feature p{
  color:#d7d4c9;
  font-size:1.05rem;
  max-width:520px;
}
.theme-feature .theme-img{
  display:flex;
  justify-content:center;
}
.theme-feature .theme-img img{
  max-width:100%;
  width:420px;
  border-radius:10px;
  box-shadow:0 20px 50px rgba(0,0,0,0.45);
}
@media (max-width:800px){
  .theme-feature .container{
    grid-template-columns:1fr;
    text-align:center;
  }
  .theme-feature p{ margin-left:auto; margin-right:auto; }
  .theme-feature .theme-img{ order:-1; }
  .theme-feature .theme-img img{ width:260px; }
}

/* ---------- Sections / cards ---------- */
.section{ padding:56px 20px; }
.section-narrow{ max-width:760px; margin:0 auto; }
.section-head{ text-align:center; margin-bottom:36px; }
.section-head p{ color:var(--ink-soft); max-width:620px; margin:0 auto; }

.card-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:20px;
}
.card{
  background:var(--cream-card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:26px 22px;
  box-shadow:var(--shadow);
}
.card h3{ margin-bottom:.4em; font-size:1.15rem; }
.card .icon{ font-size:1.8rem; margin-bottom:10px; display:block; }

.badge{
  display:inline-block;
  font-size:.72rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:1px;
  padding:4px 10px;
  border-radius:999px;
}
.badge-soon{ background:#EADFC8; color:var(--ink-soft); }
.badge-ready{ background:#DCE6CF; color:var(--forest-dark); }
.badge-open{ background:#F6D8C7; color:var(--rust-dark); }

/* ---------- Alt bands ---------- */
.band-alt{ background:var(--cream-card); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.band-dark{
  background:var(--forest-dark);
  color:#f1e6d2;
}
.band-dark h2{ color:#fff; }

/* ---------- Forms / register page ---------- */
.form-embed-wrap{
  background:var(--cream-card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow);
}
.form-embed-wrap iframe{
  width:100%;
  height:1400px;
  border:none;
  border-radius:8px;
  background:#fff;
}
.notice{
  border-left:5px solid var(--rust);
  background:#FBEFE6;
  padding:16px 18px;
  border-radius:8px;
  margin-bottom:24px;
}
.notice.deadline{ border-left-color:var(--rust-dark); }
.notice strong{ color:var(--rust-dark); }

/* ---------- FAQ accordion ---------- */
.faq-category{ margin-bottom:14px; }
.faq-category-title{
  font-family:'Lora',serif;
  color:var(--forest-dark);
  font-size:1.1rem;
  margin:30px 0 12px;
  border-bottom:2px solid var(--amber-light);
  padding-bottom:6px;
}
.faq-item{
  background:var(--cream-card);
  border:1px solid var(--border);
  border-radius:10px;
  margin-bottom:10px;
  overflow:hidden;
}
.faq-question{
  width:100%;
  text-align:left;
  background:none;
  border:none;
  padding:16px 18px;
  font-weight:700;
  font-size:1rem;
  color:var(--ink);
  cursor:pointer;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  font-family:inherit;
}
.faq-question:hover{ color:var(--rust); }
.faq-question .chevron{
  transition:transform .2s ease;
  color:var(--rust);
  flex-shrink:0;
  font-size:1rem;
}
.faq-item.open .chevron{ transform:rotate(180deg); }
.faq-answer{
  max-height:0;
  overflow:hidden;
  transition:max-height .25s ease;
  padding:0 18px;
  color:var(--ink-soft);
}
.faq-item.open .faq-answer{ padding-bottom:16px; }

/* ---------- Resource / download cards ---------- */
.resource-card{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
.resource-card .r-action{ flex-shrink:0; }
.r-action .btn{ padding:9px 18px; font-size:.9rem; }
.r-action .disabled{
  display:inline-block;
  padding:9px 18px;
  font-size:.9rem;
  border-radius:10px;
  background:#E9E0CC;
  color:var(--ink-soft);
  font-weight:700;
}

/* ---------- Footer ---------- */
.site-footer{
  background:var(--forest-dark);
  color:#d9cdb8;
  padding:36px 20px 28px;
  font-size:.88rem;
}
.disclaimer{
  max-width:var(--maxw);
  margin:0 auto 18px;
  background:rgba(0,0,0,0.18);
  border:1px solid rgba(255,255,255,0.12);
  border-radius:10px;
  padding:16px 18px;
  color:#f1e6d2;
}
.disclaimer strong{ color:#fff; }
.footer-bottom{
  max-width:var(--maxw);
  margin:0 auto;
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:10px;
  color:#b8aa93;
}
.footer-bottom a{ color:#e8d9bd; }

/* ---------- Page hero (non-home pages) ---------- */
.page-hero{
  position:relative;
  background:
    linear-gradient(160deg, rgba(58,30,18,.82), rgba(51,63,40,.78)),
    var(--page-hero-img, linear-gradient(160deg,var(--rust-dark),var(--forest-dark)));
  background-size:cover;
  background-position:center;
  color:#fff;
  padding:64px 20px 54px;
  text-align:center;
}
.page-hero h1{ color:#fff; margin-bottom:.3em; }
.page-hero p{ color:#f1e6d2; max-width:600px; margin:0 auto; }

/* ---------- Photo feature row (two images side by side) ---------- */
.photo-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin:28px 0;
}
.photo-row img{
  width:100%;
  height:260px;
  object-fit:cover;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
@media (max-width:600px){
  .photo-row{ grid-template-columns:1fr; }
  .photo-row img{ height:220px; }
}

/* ---------- Photo gallery strip ---------- */
.gallery-strip{
  display:flex;
  gap:14px;
  overflow-x:auto;
  padding:6px 2px 18px;
  scroll-snap-type:x proximity;
}
.gallery-strip img{
  flex:0 0 auto;
  width:230px;
  height:170px;
  object-fit:cover;
  border-radius:10px;
  box-shadow:var(--shadow);
  scroll-snap-align:start;
}
.gallery-strip::-webkit-scrollbar{ height:8px; }
.gallery-strip::-webkit-scrollbar-thumb{ background:var(--border); border-radius:8px; }

@media (max-width:600px){
  .hero{ padding:56px 16px 48px; }
  .section{ padding:40px 16px; }
}
