/* 1st Asquith Scout Group
   Colours and type follow the Scouts Australia Brand Book:
   Nunito Sans (Black for headings, Regular/Bold for body), Australian Navy Blue
   and Dark Grey as base colours, Scouts NSW blues as accents, and the official
   Section colours for anything Section-specific. Please don't alter the hex values. */

:root {
  --navy: #28265c;         /* Australian Navy Blue, PMS 280c */
  --grey: #575756;         /* Dark Grey – typography */
  --medium-blue: #3d5c93;  /* Scouts Medium Blue */
  --dark-blue: #1c4270;    /* Scouts Dark Blue */
  --dark-green: #00674b;   /* Scouts Dark Green */
  --teal: #008f88;         /* Scouts Teal */
  --nsw-cyan: #44c8f5;     /* Scouts NSW Cyan */
  --nsw-blue: #009cd3;     /* Scouts NSW Blue */
  --nsw-mid: #006b9e;      /* Scouts NSW Medium Blue */

  --cubs: #ffc62e;
  --scouts: #0cae4b;
  --venturers: #a22237;
  --rovers: #de2a26;

  --paper: #ffffff;
  --mist: #f3f6fa;
  --line: #dde3ec;
  --radius: 14px;
  --wrap: 1120px;
  --shadow: 0 1px 2px rgba(40, 38, 92, .06), 0 8px 24px rgba(40, 38, 92, .08);
}

/* Section theming: --sc is the Section colour, --sc-ink is text that sits on it */
.s-cubs      { --sc: var(--cubs);      --sc-ink: var(--navy); }
.s-scouts    { --sc: var(--scouts);    --sc-ink: var(--navy); }
.s-venturers { --sc: var(--venturers); --sc-ink: #fff; }
.s-rovers    { --sc: var(--rovers);    --sc-ink: #fff; }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Nunito Sans", Arial, Helvetica, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--grey);
  background: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-weight: 900;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 6vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.25rem; line-height: 1.25; }
p { margin: 0 0 1em; }
a { color: var(--nsw-mid); text-underline-offset: .15em; }
a:hover { color: var(--navy); }
strong { color: var(--navy); }

:focus-visible { outline: 3px solid var(--nsw-cyan); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 46rem; }
.lead { font-size: 1.2rem; }
.eyebrow {
  font-weight: 900; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--nsw-mid); margin: 0 0 .75rem;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: #fff; color: var(--navy); padding: .6rem 1rem; border-radius: 8px; font-weight: 700;
}
.skip:focus { top: 1rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 900; text-decoration: none; cursor: pointer;
  padding: .8rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  background: var(--nsw-cyan); color: var(--navy);
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { background: #7ad8f8; color: var(--navy); transform: translateY(-1px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--dark-blue); color: #fff; }
.btn-ghost { background: transparent; border-color: currentColor; color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.btn-section { background: var(--sc); color: var(--sc-ink); }
.btn-section:hover { background: var(--sc); color: var(--sc-ink); filter: brightness(1.06); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* Header */
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .9rem; color: #fff; text-decoration: none; min-width: 0; }
.brand:hover { color: #fff; }
.brand img { height: 44px; width: auto; flex: none; }
.brand-name {
  font-weight: 900; font-size: 1.05rem; line-height: 1.15; letter-spacing: -.01em;
  padding-left: .9rem; border-left: 1px solid rgba(255, 255, 255, .3);
}
.brand-name span { display: block; font-weight: 400; font-size: .8rem; letter-spacing: .02em; opacity: .8; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.nav a {
  display: block; padding: .5rem .7rem; border-radius: 8px;
  color: #fff; text-decoration: none; font-weight: 700; font-size: .98rem;
}
.nav a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--nsw-cyan); border-radius: 8px 8px 0 0; }
.nav .nav-cta a { background: var(--nsw-cyan); color: var(--navy); border-radius: 999px; padding-inline: 1.1rem; margin-left: .5rem; font-weight: 900; }
.nav .nav-cta a:hover { background: #7ad8f8; }
.nav .nav-cta a[aria-current="page"] { box-shadow: none; border-radius: 999px; }

.nav-toggle {
  display: none; font: inherit; font-weight: 900; color: #fff; cursor: pointer;
  background: transparent; border: 2px solid rgba(255, 255, 255, .5); border-radius: 999px; padding: .4rem 1rem;
}

@media (max-width: 960px) {
  .nav-toggle { display: block; flex: none; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); border-top: 1px solid rgba(255, 255, 255, .15); padding: .5rem 1rem 1.25rem; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { padding: .8rem .5rem; font-size: 1.1rem; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--nsw-cyan); border-radius: 0; padding-left: 1rem; }
  .nav .nav-cta a { margin: .75rem 0 0; text-align: center; }
}
@media (max-width: 420px) {
  .brand img { height: 36px; }
  .brand-name span { display: none; }
}

/* Home hero */
.hero { position: relative; color: #fff; background: var(--navy); isolation: isolate; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(40, 38, 92, .92) 0%, rgba(40, 38, 92, .7) 45%, rgba(40, 38, 92, .15) 100%);
}
.hero .wrap { padding-block: clamp(4rem, 12vw, 9rem) clamp(5rem, 13vw, 10rem); }
.hero h1 { color: #fff; max-width: 12ch; }
.hero p { max-width: 34rem; font-size: 1.25rem; color: #fff; }
.hero .eyebrow { color: var(--nsw-cyan); }
.contour { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(40px, 7vw, 90px); }

/* Bands */
.band { padding-block: clamp(3rem, 7vw, 5.5rem); }
.band-mist { background: var(--mist); }
.band-head { max-width: 44rem; margin-bottom: 2rem; }

/* Section cards */
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; color: inherit; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
a.card:hover { transform: translateY(-4px); color: inherit; box-shadow: 0 2px 4px rgba(40, 38, 92, .08), 0 16px 36px rgba(40, 38, 92, .14); }
.card-top { background: var(--sc); color: var(--sc-ink); padding: 1.25rem 1.25rem 1rem; }
.card-top h3 { color: inherit; font-size: 1.6rem; margin: 0; }
.card-top p { margin: .15rem 0 0; font-weight: 700; }
.card-body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.card-body p { margin-bottom: .9rem; }
.card-when { font-weight: 900; color: var(--navy); }
.card-when span { display: block; font-weight: 400; color: var(--grey); }
.card-more { margin-top: auto; font-weight: 900; color: var(--nsw-mid); }

/* Feature grid */
.features { display: grid; gap: 1.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature { border-top: 4px solid var(--nsw-cyan); padding-top: 1rem; }
.feature:nth-child(4n+2) { border-color: var(--teal); }
.feature:nth-child(4n+3) { border-color: var(--medium-blue); }
.feature:nth-child(4n+4) { border-color: var(--dark-green); }
.s-cubs .feature, .s-scouts .feature, .s-venturers .feature, .s-rovers .feature { border-color: var(--sc); }
.feature p:last-child { margin: 0; }

/* Timetable */
.times { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.times li { display: grid; grid-template-columns: 9rem 1fr auto; gap: .25rem 1rem; align-items: center; padding: 1rem 1.25rem 1rem 1.5rem; border-left: 8px solid var(--sc); }
.times li + li { border-top: 1px solid var(--line); }
.times .day { font-weight: 900; color: var(--navy); font-size: 1.1rem; }
.times .who a { font-weight: 900; color: var(--navy); }
.times .who span { margin-left: .4rem; }
.times .time { font-weight: 700; color: var(--navy); white-space: nowrap; }
.times .tonight { display: none; margin-left: .5rem; padding: .1rem .55rem; border-radius: 999px; background: var(--navy); color: #fff; font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; }
.times li.is-today { background: #f8fbfe; }
.times li.is-today .tonight { display: inline-block; }
.note { font-size: .95rem; margin-top: 1rem; }
@media (max-width: 620px) {
  .times li { grid-template-columns: 1fr auto; }
  .times .who { grid-column: 1 / -1; grid-row: 2; }
}

/* Two-column layouts */
.split { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) { .split { grid-template-columns: 1.15fr .85fr; gap: 4rem; } }

.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; }
.panel h3 { margin-bottom: .75rem; }
.panel dl { margin: 0; }
.panel dt { font-weight: 900; color: var(--navy); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-top: 1rem; }
.panel dt:first-child { margin-top: 0; }
.panel dd { margin: .15rem 0 0; }
.panel-section { border-top: 8px solid var(--sc); }

.ticks { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.ticks li { position: relative; padding-left: 1.75rem; margin-bottom: .55rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: .8rem; height: .8rem; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--sc, var(--nsw-blue)); }

/* Inner page hero */
.page-hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.page-hero .wrap { padding-block: clamp(2.75rem, 7vw, 5rem) clamp(4rem, 9vw, 6.5rem); position: relative; }
.page-hero h1 { color: inherit; margin-bottom: .3em; }
.page-hero p { max-width: 40rem; font-size: 1.2rem; margin: 0; }
.page-hero .eyebrow { color: var(--nsw-cyan); }
.page-hero-section { background: var(--sc); color: var(--sc-ink); }
.page-hero-section .eyebrow { color: inherit; opacity: .85; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.chips li { background: rgba(255, 255, 255, .92); color: var(--navy); font-weight: 900; padding: .35rem .9rem; border-radius: 999px; font-size: .95rem; }

/* Promise and Law */
.law { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.law div { background: #fff; border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.law h3 { margin-bottom: .4rem; }
.law p { margin: 0; }
blockquote { margin: 0 0 1.5rem; padding: 1.25rem 1.5rem; border-left: 6px solid var(--nsw-cyan); background: #fff; border-radius: 0 var(--radius) var(--radius) 0; font-size: 1.15rem; color: var(--navy); font-weight: 700; }

/* Steps */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { counter-increment: step; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 900; font-size: 1.2rem; margin-bottom: .9rem; }
.steps p:last-child { margin: 0; }

/* FAQs */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 900; color: var(--navy); font-size: 1.1rem; padding: 1rem 2rem 1rem 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .7rem; font-size: 1.5rem; line-height: 1; color: var(--nsw-mid); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { max-width: 44rem; }

/* Forms */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; gap: 1.1rem; }
@media (min-width: 620px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 900; color: var(--navy); margin-bottom: .3rem; }
.field label small { font-weight: 400; color: var(--grey); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--navy); background: #fff;
  border: 2px solid #c3ccd9; border-radius: 10px; padding: .7rem .85rem;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--nsw-blue); box-shadow: 0 0 0 4px rgba(68, 200, 245, .35); }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0; padding: .9rem 1.1rem; border-radius: 10px; font-weight: 700; }
.form-status:empty { display: none; }
.form-status.ok { background: #e3f6ea; color: #0a5c2b; }
.form-status.err { background: #fde8e7; color: #8f1a17; }
.form-status a { color: inherit; }

/* Call-to-action band, with contour shapes echoing the brand's map-inspired graphics */
.cta { position: relative; background: var(--navy); color: #fff; overflow: hidden; isolation: isolate; }
.cta::before, .cta::after { content: ""; position: absolute; z-index: -1; border-radius: 58% 42% 55% 45% / 48% 60% 40% 52%; }
.cta::before { width: 32rem; height: 24rem; right: -9rem; top: -8rem; background: var(--dark-blue); }
.cta::after { width: 22rem; height: 17rem; right: -3rem; bottom: -9rem; background: var(--teal); opacity: .55; border-radius: 45% 55% 40% 60% / 60% 42% 58% 40%; }
.cta .wrap { padding-block: clamp(3rem, 7vw, 5rem); }
.cta h2 { color: #fff; }
.cta p { max-width: 36rem; font-size: 1.15rem; }

/* Previous / next Section links */
.pager { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.5rem; }
.pager a { font-weight: 900; text-decoration: none; }
.pager a:hover { text-decoration: underline; }

/* Footer */
.site-footer { background: #1d1b47; color: #d5d8e6; font-size: .98rem; }
.site-footer .wrap { padding-block: 3rem 1.5rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-footer h2 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--nsw-cyan); }
.site-footer address { font-style: normal; }
.footer-logo { height: 48px; width: auto; margin-bottom: 1rem; }
.footer-base { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .88rem; display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; }
.footer-base p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
