/* ===== STMA Cub Scouts — shared styles =====
   Brand color pulled from Pack 3547 site: #0c6acf
   Edit the variables below to tweak the whole site at once. */
:root{
  --blue:#0c6acf;        /* primary (from your pack site) */
  --blue-dark:#0a3d7a;   /* headers / footer */
  --blue-2:#3f8fe0;      /* lighter accent */
  --gold:#ffc72c;        /* Scout gold accent */
  --ink:#1f2a37;         /* body text */
  --muted:#5b6b7c;       /* secondary text */
  --bg:#f4f8fd;          /* page background */
  --card:#ffffff;
  --line:#e2eaf3;
  --radius:16px;
  --shadow:0 10px 28px rgba(12,58,122,.10);
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;color:var(--ink);background:var(--bg);line-height:1.65}
a{color:var(--blue);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;display:block}
.wrap{max-width:1120px;margin:0 auto;padding:0 22px}

/* ---- top bar / nav ---- */
header.site{position:sticky;top:0;z-index:50;background:var(--blue-dark);box-shadow:0 2px 14px rgba(0,0,0,.18)}
.nav{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:12px;color:#fff;font-weight:800;font-size:1.15rem;letter-spacing:.3px}
.brand:hover{text-decoration:none}
.brand .badge{width:42px;height:42px;flex:0 0 42px}
.nav ul{list-style:none;display:flex;gap:20px;align-items:center;flex-wrap:wrap}
.nav ul a{color:#dce9fb;font-weight:600;font-size:.97rem}
.nav ul a:hover{color:#fff;text-decoration:none}
.btn{display:inline-block;background:var(--gold);color:var(--blue-dark);font-weight:800;padding:11px 22px;border-radius:40px;box-shadow:0 5px 0 #d9a30f;transition:transform .1s}
.btn:hover{transform:translateY(2px);box-shadow:0 3px 0 #d9a30f;text-decoration:none}
.btn.blue{background:#fff;color:var(--blue-dark);box-shadow:0 5px 0 #cdd9e8}
.btn.lg{font-size:1.08rem;padding:15px 34px}

/* ---- hero ---- */
.hero{position:relative;background:linear-gradient(135deg,var(--blue-dark),var(--blue) 60%,var(--blue-2));color:#fff;overflow:hidden}
.hero .wrap{position:relative;z-index:2;padding:74px 22px 84px;text-align:center}
.hero h1{font-size:2.9rem;line-height:1.1;margin-bottom:14px;text-shadow:0 2px 8px rgba(0,0,0,.22)}
.hero p.tag{font-size:1.25rem;max-width:680px;margin:0 auto 26px;opacity:.96}
.hero .cta{display:flex;gap:14px;justify-content:center;flex-wrap:wrap}
.hero .stars{position:absolute;inset:0;opacity:.16;z-index:1}
.pill{display:inline-block;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.3);color:#fff;font-weight:700;font-size:.85rem;padding:6px 16px;border-radius:30px;margin-bottom:18px}

/* ---- sections ---- */
section{padding:56px 0}
section h2{font-size:2rem;color:var(--blue-dark);text-align:center;margin-bottom:8px}
section .lead{text-align:center;color:var(--muted);max-width:720px;margin:0 auto 32px;font-size:1.08rem}
.alt{background:#fff;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}

/* ---- cards grid ---- */
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:22px}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden;display:flex;flex-direction:column;transition:transform .15s,box-shadow .15s}
.card:hover{transform:translateY(-5px);box-shadow:0 16px 34px rgba(12,58,122,.16)}
.card .body{padding:22px}
.card h3{color:var(--blue-dark);font-size:1.3rem;margin-bottom:6px}
.card .tag{display:inline-block;background:#eaf2fd;color:var(--blue-dark);font-weight:700;font-size:.78rem;padding:4px 12px;border-radius:20px;margin-bottom:10px}
.card p{color:var(--muted);font-size:.98rem;margin-bottom:14px}
.card .links{margin-top:auto;display:flex;gap:16px;flex-wrap:wrap}
.card .links a{font-weight:700}
.card .top{height:8px;background:var(--blue)}
.card:nth-child(2) .top{background:var(--gold)}
.card:nth-child(3) .top{background:#2fb37a}
.card:nth-child(4) .top{background:#e0562d}
.card:nth-child(5) .top{background:#6b3fa0}

/* photo slot placeholder */
.photo{background:#eef4fb;border-bottom:1px dashed #b9cde6;color:#7a93b3;display:flex;align-items:center;justify-content:center;text-align:center;font-weight:700;font-size:.9rem;min-height:150px;padding:16px}
.photo.tall{min-height:230px}

/* ---- feature (adventure) tiles ---- */
.feature{display:flex;gap:16px;align-items:flex-start;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:22px;box-shadow:var(--shadow)}
.feature .ic{flex:0 0 54px;width:54px;height:54px}
.feature h3{color:var(--blue-dark);font-size:1.15rem;margin-bottom:4px}
.feature ul{margin:6px 0 0 18px;color:var(--muted)}

/* ---- ranks ---- */
.ranks{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px}
.rank{background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px;text-align:center;box-shadow:var(--shadow)}
.rank .dot{width:40px;height:40px;border-radius:50%;margin:0 auto 8px;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800}
.rank strong{color:var(--blue-dark);display:block}
.rank span{font-size:.85rem;color:var(--muted)}

/* ---- FAQ ---- */
.faq{max-width:820px;margin:0 auto}
details{background:#fff;border:1px solid var(--line);border-radius:12px;margin-bottom:12px;box-shadow:var(--shadow);overflow:hidden}
summary{cursor:pointer;padding:16px 20px;font-weight:700;color:var(--blue-dark);list-style:none;display:flex;justify-content:space-between;align-items:center}
summary::-webkit-details-marker{display:none}
summary::after{content:'+';font-size:1.4rem;color:var(--blue)}
details[open] summary::after{content:'–'}
details .ans{padding:0 20px 18px;color:var(--muted)}

/* ---- contact / info band ---- */
.band{background:linear-gradient(135deg,var(--blue),var(--blue-2));color:#fff;text-align:center}
.band h2{color:#fff}
.band .lead{color:#eaf3ff}
.info{display:flex;gap:26px;justify-content:center;flex-wrap:wrap;margin-top:18px}
.info .box{background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.25);border-radius:14px;padding:18px 24px;min-width:220px}
.info .box strong{display:block;font-size:1.05rem;margin-bottom:2px}

/* ---- footer ---- */
footer.site{background:var(--blue-dark);color:#c9d9ee;padding:34px 0}
footer.site .cols{display:flex;justify-content:space-between;gap:24px;flex-wrap:wrap}
footer.site a{color:var(--gold)}
footer.site .fine{margin-top:20px;padding-top:16px;border-top:1px solid rgba(255,255,255,.15);font-size:.85rem;opacity:.8}

/* ---- pack page header ---- */
.packhead{background:linear-gradient(135deg,var(--blue-dark),var(--blue));color:#fff;padding:56px 0;text-align:center}
.packhead .pill{background:rgba(255,255,255,.18)}
.back{display:inline-block;margin-top:10px;color:#dce9fb;font-weight:600}
.prose{max-width:820px;margin:0 auto}
.prose h2{text-align:left}
.prose p{margin-bottom:14px;color:var(--ink)}

/* ===== PHOTOS (added when real images are in /images) ===== */
/* Hero background photo with a blue overlay so white text stays readable */
.hero.has-photo{background:linear-gradient(135deg,rgba(10,61,122,.88),rgba(12,106,207,.72)),
  url("images/Cub_Scouting_1920x1080 (1).png");
  background-size:cover;background-position:center}

/* Framed photo (rounded, shadowed) used inside content sections */
.framed{border-radius:var(--radius);box-shadow:var(--shadow);width:100%;max-height:420px;object-fit:cover;margin:8px auto 0;display:block}
.framed.narrow{max-width:640px}

/* Photo at the top of a pack card */
.card .cardimg{width:100%;height:180px;object-fit:cover;display:block;border-bottom:1px solid var(--line)}

/* Adventure Awaits tiles become photo cards */
.feature{flex-direction:column;gap:0;padding:0;overflow:hidden}
.feature .featimg{width:100%;height:190px;object-fit:cover;display:block}
.feature .fbody{padding:20px}
.feature .ic{display:none}

/* Rank card photo */
.card .rankimg{width:100%;height:170px;object-fit:cover;display:block;border-bottom:1px solid var(--line);background:#eef4fb}

/* Logo image in the nav / pack header */
.brand img.logo{height:42px;width:auto;display:block}
.packhead img.logo{height:74px;width:auto;margin:0 auto 10px;display:block;filter:drop-shadow(0 3px 6px rgba(0,0,0,.25))}

/* two/three-up photo strip */
.strip-photos{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin-top:8px}
.strip-photos img{width:100%;height:220px;object-fit:cover;border-radius:var(--radius);box-shadow:var(--shadow)}

@media(max-width:640px){
  .hero h1{font-size:2.1rem}
  .nav ul{gap:12px}
  footer.site .cols{flex-direction:column}
}
