/* =========================================================
   NUBBINS OUTDOOR ADVENTURES — DESIGN TOKENS
   ========================================================= */
:root{
  --forest-deep:   #1B2414;
  --forest:        #2C3B24;
  --forest-mid:    #4A5E33;
  --parchment:     #F0E8CE;
  --parchment-dim: #E4D9B7;
  --ink:           #221D14;
  --tan:           #C7A368;
  --rust:          #8B4A2B;

  --display: "Fraunces", "Times New Roman", serif;
  --script:  "Caveat", cursive;
  --body:    "Karla", "Helvetica Neue", Arial, sans-serif;

  --edge: 2px solid var(--forest);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--parchment);
  color:var(--ink);
  font-family:var(--body);
  font-size:17px;
  line-height:1.55;
}
img{ max-width:100%; display:block; }
a{ color:inherit; }
h1,h2,h3{ font-family:var(--display); margin:0 0 .4em; letter-spacing:.01em; }
.script{ font-family:var(--script); font-weight:700; }

.wrap{
  max-width:1080px;
  margin:0 auto;
  padding:0 24px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; transition-duration:0.001ms !important; }
}

/* ---------- trail divider signature element ---------- */
.trail-divider{
  display:flex;
  justify-content:center;
  padding:6px 24px;
}
.pine-row{
  width:min(340px, 80vw);
  height:28px;
  color:var(--forest);
  opacity:.8;
}

/* ---------- nav ---------- */
.site-nav{
  position:sticky; top:0; z-index:50;
  background:var(--parchment);
  border-bottom:var(--edge);
}
.site-nav .wrap{
  display:flex; align-items:center; justify-content:space-between;
  padding-top:10px; padding-bottom:10px;
  gap:8px;
}
.brand{
  display:flex; align-items:center; gap:8px;
  font-family:var(--display); font-weight:900;
  font-size:clamp(12px, 3.2vw, 20px);
  text-decoration:none; color:var(--forest-deep);
  min-width:0; flex-shrink:1;
}
.brand-text{ white-space:nowrap; }
.brand img{ width:auto; height:clamp(52px, 13vw, 72px); flex-shrink:0; border-radius:0; border:none; background:transparent; object-fit:contain; margin-top:8px; }
.nav-links{ display:flex; gap:28px; list-style:none; margin:0; padding:0; }
.nav-links a{
  text-decoration:none; font-weight:700; font-size:14px;
  letter-spacing:.06em; text-transform:uppercase; color:var(--forest);
  border-bottom:2px solid transparent; padding-bottom:2px;
  transition:border-color .15s ease;
}
.nav-links a:hover, .nav-links a:focus-visible{ border-color:var(--tan); }
.nav-toggle{ display:none; }

/* ---------- hero ---------- */
.hero{
  position:relative;
  background:
    linear-gradient(180deg, rgba(20,26,15,.35) 0%, rgba(18,22,13,.55) 45%, rgba(15,19,11,.92) 100%),
    url("images/hero-photo.jpg") center 30%/cover no-repeat;
  color:var(--parchment);
  padding:110px 24px 90px;
  text-align:center;
}
.hero-inner{ position:relative; max-width:660px; margin:0 auto; }
.hero-badge{
  width:190px; height:190px; border-radius:50%;
  margin:0 auto 26px;
  box-shadow:0 16px 30px rgba(0,0,0,.5);
  animation:badge-in .8s ease-out both;
}
@keyframes badge-in{
  from{ opacity:0; transform:scale(.85) rotate(-6deg); }
  to{ opacity:1; transform:scale(1) rotate(0); }
}
.hero h1{
  font-size:clamp(30px,5.4vw,50px);
  line-height:1.1;
  color:var(--tan);
  text-transform:uppercase;
  letter-spacing:.02em;
  text-shadow:0 2px 0 rgba(0,0,0,.4), 0 4px 18px rgba(0,0,0,.35);
}
.hero .tagline{
  font-family:var(--script);
  font-size:clamp(24px,3.4vw,32px);
  color:var(--tan);
  margin-bottom:28px;
}
.hero p.lede{ opacity:.85; margin-bottom:34px; }
.cta-row{ display:flex; gap:16px; justify-content:center; flex-wrap:wrap; }

.btn{
  display:inline-block;
  padding:13px 28px;
  border-radius:999px;
  font-weight:800;
  font-size:14px;
  letter-spacing:.05em;
  text-transform:uppercase;
  text-decoration:none;
  border:2px solid transparent;
  cursor:pointer;
  transition:transform .12s ease, box-shadow .12s ease;
}
.btn:hover{ transform:translateY(-2px); }
.btn:focus-visible{ outline:3px solid var(--tan); outline-offset:2px; }
.btn-primary{ background:var(--tan); color:var(--forest-deep); }
.btn-primary:hover{ box-shadow:0 6px 0 rgba(0,0,0,.2); }
.btn-outline{
  background:transparent; color:var(--parchment);
  border-color:var(--parchment);
}
.btn-outline:hover{ background:rgba(240,232,206,.1); }
.btn-forest{ background:var(--forest); color:var(--parchment); }
.btn-disabled{
  background:transparent; color:var(--ink); opacity:.4;
  border:2px dashed var(--forest); cursor:not-allowed;
}
.btn-disabled:hover{ transform:none; }

/* ---------- section shells ---------- */
section{ padding:84px 0; }
.section-head{ text-align:center; margin-bottom:52px; }
.eyebrow{
  display:block; font-family:var(--script); font-size:26px;
  color:var(--rust); margin-bottom:2px;
}
.section-head h2{ font-size:clamp(28px,4vw,40px); color:var(--forest-deep); }

/* ---------- about ---------- */
.about-grid{
  display:grid;
  grid-template-columns:280px 1fr;
  gap:56px;
  align-items:center;
}
.about-portrait{
  border-radius:50%;
  border:4px solid var(--forest);
  box-shadow:0 0 0 8px var(--parchment), 0 0 0 10px var(--forest);
  aspect-ratio:1/1;
  object-fit:cover;
  justify-self:center;
}
.about-text h3{ color:var(--forest-deep); font-size:22px; }
.about-text p{ margin-bottom:16px; }
.about-stats{
  display:flex; gap:32px; margin-top:24px; flex-wrap:wrap;
}
.stat{ }
.stat b{
  display:block; font-family:var(--display); font-size:26px; color:var(--rust);
}
.stat span{ font-size:13px; text-transform:uppercase; letter-spacing:.08em; opacity:.7; }

/* ---------- youtube ---------- */
.youtube-section{
  background:var(--forest);
  color:var(--parchment);
}
.youtube-section .section-head h2{ color:var(--parchment); }
.youtube-section .eyebrow{ color:var(--tan); }
.yt-layout{
  display:grid;
  grid-template-columns:1.3fr 1fr;
  gap:44px;
  align-items:center;
}
.video-frame{
  position:relative;
  width:100%;
  padding-top:56.25%;
  background:var(--forest-deep);
  border:3px solid var(--tan);
  border-radius:10px;
  overflow:hidden;
}
.video-frame iframe{
  position:absolute; inset:0; width:100%; height:100%; border:0;
}
.video-frame .placeholder{
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  flex-direction:column; gap:10px;
  text-align:center; padding:20px;
  opacity:.8;
}
.yt-copy p{ opacity:.9; margin-bottom:22px; }

/* ---------- shop ---------- */
.product-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:28px;
}
.product-card{
  background:#fff;
  border:1px solid var(--parchment-dim);
  border-radius:18px;
  padding:28px 22px;
  text-align:center;
  box-shadow:0 2px 10px rgba(27,36,20,.06);
  transition:transform .15s ease, box-shadow .15s ease;
}
.product-card:hover{ transform:translateY(-5px); box-shadow:0 14px 26px rgba(27,36,20,.12); }
.product-photo{
  width:128px; height:128px; border-radius:50%;
  margin:0 auto 18px;
  background:var(--parchment-dim);
  display:flex; align-items:center; justify-content:center;
  border:3px solid var(--tan);
}
.product-photo svg{ width:64px; height:64px; }
.product-photo img{ width:100%; height:100%; object-fit:cover; border-radius:50%; }
.product-card h3{ font-size:19px; margin-bottom:4px; color:var(--forest-deep); }
.product-card .price{
  font-family:var(--display); color:var(--rust); font-size:19px; font-weight:600; margin-bottom:10px;
}
.product-card p.desc{
  font-size:14px; opacity:.75; margin:0 auto 18px;
  max-width:220px; min-height:38px;
}
.shop-note{
  max-width:640px; margin:44px auto 0; text-align:center;
  font-size:14px; opacity:.75; padding-top:24px; border-top:2px dashed var(--forest);
}
.shop-teaser{
  max-width:520px; margin:0 auto; text-align:center;
}
.shop-teaser p{ margin-bottom:26px; opacity:.85; }

/* ---------- shop page header ---------- */
.shop-hero{
  background:var(--forest-deep);
  color:var(--parchment);
  text-align:center;
  padding:56px 24px 46px;
}
.shop-hero .eyebrow{ font-family:var(--script); font-size:24px; color:var(--tan); }
.shop-hero h1{ font-size:clamp(30px,5vw,44px); color:var(--parchment); margin-bottom:8px; }
.shop-hero p{ opacity:.85; }
#shop-full{ padding-top:56px; }

/* ---------- support / donate ---------- */
.support-section{
  position:relative;
  background:
    linear-gradient(180deg, rgba(15,19,11,.88) 0%, rgba(15,19,11,.93) 100%),
    url("images/hero-photo.jpg") center 60%/cover no-repeat;
  color:var(--parchment);
  text-align:center;
}
.support-section .eyebrow{ color:var(--tan); }
.support-section h2{ color:var(--parchment); }
.support-section p.lede{
  max-width:600px; margin:0 auto 36px; opacity:.85;
}
.donate-row{
  display:flex; gap:16px; justify-content:center; flex-wrap:wrap;
}

/* ---------- admin login modal ---------- */
.admin-modal-backdrop{
  display:none;
  position:fixed; inset:0; z-index:200;
  background:rgba(20,26,15,.6);
  align-items:center; justify-content:center;
  padding:20px;
}
.admin-modal-backdrop.open{ display:flex; }
.admin-modal{
  position:relative;
  background:var(--parchment);
  border:2px solid var(--forest);
  border-radius:16px;
  padding:28px;
  max-width:360px; width:100%;
}
.admin-modal h2{ font-size:20px; color:var(--forest-deep); margin-bottom:4px; }
.admin-modal .hint{ font-size:14px; opacity:.75; margin-bottom:10px; }
.admin-modal label{
  display:block; font-weight:700; font-size:13px; text-transform:uppercase;
  letter-spacing:.05em; margin:12px 0 6px; color:var(--forest-deep);
}
.admin-modal input{
  width:100%; padding:11px 13px; border:2px solid var(--forest); border-radius:8px;
  font-family:var(--body); font-size:15px; background:#fff;
}
.admin-modal .status{ margin-top:12px; font-size:14px; }
.admin-modal .status.error{ color:var(--rust); font-weight:700; }
.admin-modal .status.ok{ color:var(--forest); font-weight:700; }
.admin-modal-close{
  position:absolute; top:12px; right:14px;
  background:none; border:none; font-size:24px; line-height:1;
  color:var(--forest-deep); cursor:pointer;
}

/* ---------- footer ---------- */
footer{
  background:var(--forest);
  color:var(--parchment);
  padding:40px 24px;
  text-align:center;
  font-size:14px;
}
footer .brand{ color:var(--parchment); justify-content:center; margin-bottom:14px; }
footer .socials{
  display:flex; gap:18px; justify-content:center; margin:14px 0;
  list-style:none; padding:0;
}
footer .socials a{ text-decoration:none; font-weight:700; }
footer .fine{ opacity:.6; margin-top:8px; }

/* ---------- responsive ---------- */
@media (max-width:820px){
  .about-grid, .yt-layout{ grid-template-columns:1fr; text-align:center; }
  .about-portrait{ width:200px; }
  .yt-copy{ text-align:center; }
}
@media (max-width:480px){
  .wrap{ padding:0 14px; }
}
@media (max-width:640px){
  .nav-links{
    position:fixed; inset:56px 0 auto 0;
    background:var(--parchment);
    flex-direction:column; align-items:center;
    padding:20px 0; gap:18px;
    border-bottom:var(--edge);
    transform:translateY(-120%);
    transition:transform .2s ease;
  }
  .nav-links.open{ transform:translateY(0); }
  .nav-toggle{
    display:inline-flex; align-items:center; justify-content:center;
    width:36px; height:36px; border-radius:8px;
    border:2px solid var(--forest); background:transparent;
    font-size:18px; cursor:pointer;
  }
  section{ padding:60px 0; }
}
