/* Scouting & Facilitation sub-page. Self-contained: no other stylesheet is needed. */

/* ---------- colours and basics ---------- */
:root {
    --bg: #fbfaf7;
    --ink: #0f172a;
    --muted: #5b6475;
    --card: #ffffff;
    --line: rgba(15, 23, 42, 0.09);
    --ac: #0891b2;          /* main accent colour */
    --ac2: #67e8f9;         /* lighter accent */
    --soft: #fde68a;        /* warm highlight */
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }

body {
    font-family: Poppins, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.7;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
.wrap { width: min(1120px, 92%); margin: auto; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--ac); outline-offset: 3px; }


/* ---------- cursor glow (moved by script.js) ---------- */
.glow {
    position: fixed; left: 0; top: 0; z-index: 0;
    width: 420px; height: 420px; margin: -210px 0 0 -210px;
    border-radius: 50%; pointer-events: none; will-change: transform;
    background: radial-gradient(circle, rgba(103, 232, 249, 0.35), transparent 65%);
}


/* ---------- menu ---------- */
.nav {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 0.8rem 4%;
    background: rgba(251, 250, 247, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.brand { font-weight: 700; font-size: 1.2rem; text-decoration: none; }
.brand span { color: var(--ac); }
.nav nav { display: flex; flex-wrap: wrap; gap: 0.2rem 1.2rem; }
.nav nav a { text-decoration: none; font-size: 0.92rem; font-weight: 500; color: var(--muted); }
.nav nav a:hover, .nav nav a.on { color: var(--ac); }


/* ---------- buttons ---------- */
.btn {
    display: inline-block; padding: 0.7rem 1.4rem;
    background: var(--ink); color: #fff;
    border: 2px solid var(--ink); border-radius: 99px;
    font-size: 0.92rem; font-weight: 600; text-decoration: none;
    transition: box-shadow 0.25s; will-change: transform;
}
.btn:hover { box-shadow: 0 8px 22px rgba(15, 23, 42, 0.25); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.small { padding: 0.4rem 1.1rem; }


/* ---------- hero ---------- */
.hero { position: relative; padding: 4rem 0 3.5rem; overflow: hidden; }

.blob { position: absolute; z-index: 0; border-radius: 50%; filter: blur(60px); opacity: 0.55; will-change: transform; }
.b1 { width: 340px; height: 340px; background: var(--ac2); right: 5%; top: -60px; }
.b2 { width: 260px; height: 260px; background: var(--soft); left: -60px; bottom: -40px; }

.hero-grid {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.3fr 0.8fr; gap: 3rem; align-items: center;
}

.crumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.2rem; list-style: none; font-size: 0.85rem; color: var(--muted); }
.crumbs li + li::before { content: "\203A"; margin-right: 0.4rem; }
.crumbs a { color: var(--ac); text-decoration: none; }

.eyebrow { margin-bottom: 0.5rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ac); }

h1 { margin-bottom: 1rem; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.1; }
h1 em {
    font-style: normal;
    background: linear-gradient(90deg, var(--ac), #8b5cf6);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
h2 { margin-bottom: 1rem; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; }

.lead { max-width: 600px; font-size: 1.05rem; color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }




/* ---------- quick links ---------- */
.jump { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 1.6rem 0 0; }
.jump a {
    padding: 0.35rem 1.1rem; border: 1px solid var(--line); border-radius: 99px;
    background: var(--card); font-size: 0.85rem; text-decoration: none; transition: all 0.2s;
}
.jump a:hover { border-color: var(--ac); color: var(--ac); }


/* ---------- sections ---------- */
main { position: relative; z-index: 1; }
.block { padding: 3.5rem 0 1rem; scroll-margin-top: 5rem; }
.intro { max-width: 680px; margin-bottom: 1.4rem; color: var(--muted); }

/* about */
.about { max-width: 760px; }
.about p { margin-bottom: 1rem; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin-top: 1.5rem; list-style: none; }
.facts li { padding: 1rem 1.2rem; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.facts small { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ac); }
.facts b { font-weight: 600; line-height: 1.4; display: block; }

/* strength cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; }
.card { padding: 1.6rem; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); transition: box-shadow 0.3s; }
.card:hover { box-shadow: 0 18px 40px rgba(8, 145, 178, 0.18); }
.card i {
    display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 0.9rem;
    border-radius: 15px; font-size: 1.3rem; color: #fff;
    background: linear-gradient(135deg, var(--ac), var(--ac2));
}
.card h3 { margin-bottom: 0.3rem; font-size: 1.05rem; }
.card p { font-size: 0.9rem; color: var(--muted); }

/* trainings list */
.steps { display: grid; gap: 1rem; list-style: none; }
.steps li {
    display: flex; align-items: center; gap: 1.1rem; padding: 1.2rem 1.4rem;
    background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--ac);
    border-radius: 18px; box-shadow: var(--shadow);
}
.steps i { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(8, 145, 178, 0.1); color: var(--ac); font-size: 1.2rem; }
.steps h3 { font-size: 1.05rem; line-height: 1.4; }
.steps p { font-size: 0.9rem; color: var(--muted); }


/* ---------- activities ---------- */
.entry {
    margin-top: 2rem; padding: 2rem;
    background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow);
}
.tag { display: inline-block; padding: 0.1rem 0.9rem; border: 1px solid var(--ac); border-radius: 99px; font-size: 0.75rem; font-weight: 600; color: var(--ac); }
.entry h3 { margin: 0.5rem 0 0.3rem; font-size: 1.6rem; line-height: 1.25; }
.where { margin-bottom: 1rem; font-size: 0.9rem; color: var(--muted); }
.where i { color: var(--ac); margin-right: 0.3rem; }
.entry > p { max-width: 780px; color: var(--muted); }
.points { margin: 1rem 0 1.6rem 1.2rem; color: var(--muted); }
.points li { margin-bottom: 0.2rem; }

/* photo gallery: photos of any shape flow into columns */
.gallery { columns: 3 230px; column-gap: 1rem; }
.gallery figure { margin: 0 0 1rem; break-inside: avoid; }
.gallery img { display: block; width: 100%; height: auto; border-radius: 14px; cursor: zoom-in; transition: transform 0.3s, box-shadow 0.3s; }
.gallery img:hover { transform: scale(1.02); box-shadow: 0 12px 28px rgba(15, 23, 42, 0.2); }
.gallery figcaption { padding-top: 0.35rem; font-size: 0.82rem; line-height: 1.4; color: var(--muted); }

/* photo viewer */
dialog.viewer { margin: auto; padding: 1rem; width: min(96vw, 1000px); border: 0; border-radius: 20px; background: #fff; }
dialog.viewer::backdrop { background: rgba(15, 23, 42, 0.85); }
.viewer img { display: block; max-width: 100%; max-height: 72vh; margin: auto; border-radius: 12px; }
.viewer p { margin: 0.7rem 0; text-align: center; font-size: 0.92rem; }
.viewer .bar { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.viewer button { padding: 0.4rem 1.2rem; border: 0; border-radius: 99px; background: var(--ink); color: #fff; cursor: pointer; }
.viewer button:disabled { opacity: 0.35; cursor: default; }


/* ---------- footer ---------- */
footer { position: relative; z-index: 1; margin-top: 4rem; padding: 2.5rem 0; text-align: center; border-top: 1px solid var(--line); color: var(--muted); }
.soc { display: flex; justify-content: center; gap: 1.2rem; margin-top: 0.8rem; font-size: 1.4rem; }
.soc a { transition: color 0.2s, transform 0.2s; }
.soc a:hover { color: var(--ac); transform: translateY(-3px); }

#top {
    position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 60; display: none;
    width: 46px; height: 46px; border: 0; border-radius: 50%;
    background: var(--ink); color: #fff; font-size: 1.1rem; cursor: pointer;
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s, transform 0.6s; }
.reveal.in { opacity: 1; transform: none; }


/* ---------- phones and tablets ---------- */
@media (max-width: 820px) {
    .nav { flex-wrap: wrap; padding: 0.6rem 4%; }
    .nav nav { order: 3; width: 100%; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1rem; padding-bottom: 0; overflow: visible; white-space: normal; }
    .entry { padding: 1.3rem; }
    .glow { display: none; }
    .gallery { columns: 2 150px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .track { animation: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
}


/* ---------- sub-page extras ---------- */
.hero { padding: 3rem 0 2rem; }
.hero .wrap { position: relative; z-index: 1; }
.hero .lead { margin-top: 0.2rem; }
.jump a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.block h2 + .intro { margin-top: -0.4rem; }

/* ---------- photos page ---------- */
.count { font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.group + .group { margin-top: 1rem; }
.group h3 { margin: 0.2rem 0 0.2rem; font-size: 1.5rem; }
.group .where { margin-bottom: 1.2rem; }
