/* Rangers Australia — Static Site Stylesheet */
:root {
  --navy: #1F2A44;
  --navy-dark: #151D30;
  --gold: #E8A020;
  --gold-dark: #C77F0D;
  --red: #B02E2E;
  --paper: #FAF6EE;
  --sage: #E9EFE7;
  --pine: #2E5B3F;
  --card: #FFFFFF;
  --border: #E4DECF;
  --text: #23283B;
  --muted: #5C6377;
  --serif: "Bitter", Georgia, serif;
  --sans: "Public Sans", -apple-system, sans-serif;
  --mono: "Space Mono", monospace;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold-dark); }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }

h1, h2, h3 { font-family: var(--serif); color: var(--navy-dark); line-height: 1.18; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4rem); font-weight: 800; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; margin-bottom: 16px; }
h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 10px; }
h4 { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--navy); }
.lead { font-size: 1.18rem; color: #454C63; }
.muted { color: var(--muted); }
.label {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold-dark); font-weight: 700;
  display: inline-block; margin-bottom: 12px;
}
hr.rule { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px; border-radius: 999px; font-weight: 700; font-size: 0.95rem;
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color .25s ease, transform .2s ease, box-shadow .25s ease, color .2s ease;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(31,42,68,.28); }
.btn-gold { background: var(--gold); color: var(--navy-dark); }
.btn-gold:hover { background: var(--gold-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(232,160,32,.35); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.45); backdrop-filter: blur(8px); }
.btn-light:hover { background: rgba(255,255,255,.24); color: #fff; }

/* Top bar */
.top-bar { background: var(--navy-dark); color: #C9D2E8; font-size: 0.82rem; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 24px; flex-wrap: wrap; }
.top-bar a { color: var(--gold); font-weight: 700; }
.top-bar .tb-group { display: flex; align-items: center; gap: 8px; }
.top-bar svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Header / Nav */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250,246,238,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(31,42,68,.12); }
.main-nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 12px; background: var(--navy);
  display: flex; align-items: center; justify-content: center; color: var(--gold); flex-shrink: 0;
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 800; color: var(--navy-dark); line-height: 1.1; }
.brand-name small { display: block; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.18em; color: var(--gold-dark); text-transform: uppercase; font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 22px; list-style: none; }
.nav-links a { color: #3A415A; font-weight: 600; font-size: 0.92rem; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-links a.active { border-bottom: 3px solid var(--gold); padding-bottom: 2px; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 10px 22px; font-size: 0.88rem; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--navy-dark); }
.menu-toggle svg { width: 28px; height: 28px; }

/* Hero */
.hero {
  position: relative; min-height: 680px; display: flex; align-items: center;
  border-radius: 0 0 28px 28px; overflow: hidden; color: #fff;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(21,29,48,.94) 0%, rgba(21,29,48,.72) 48%, rgba(21,29,48,.3) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 660px; padding: 100px 0; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 em { color: var(--gold); font-style: italic; }
.hero .lead { color: #D9DFEF; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; margin-bottom: 24px;
  border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28);
  font-size: 0.82rem; font-weight: 600; color: #F8D98A; backdrop-filter: blur(6px);
}
.hero-badge svg { width: 15px; height: 15px; }
.hero-stats { display: flex; gap: 36px; margin-top: 44px; flex-wrap: wrap; }
.hero-stat .num { font-family: var(--serif); font-size: 2rem; font-weight: 800; color: var(--gold); line-height: 1; }
.hero-stat .lbl { font-size: 0.8rem; color: #C9D2E8; margin-top: 6px; }

/* Page hero */
.page-hero { background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 70%, #2B3A5C 100%); color: #fff; padding: 92px 0 76px; border-radius: 0 0 28px 28px; }
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero .lead { color: #C9D2E8; max-width: 760px; }
.page-hero .label { color: var(--gold); }
.breadcrumb { font-size: 0.85rem; color: #8B96B5; margin-bottom: 18px; }
.breadcrumb a { color: #D9DFEF; }
.breadcrumb a:hover { color: var(--gold); }

/* Cards & grids */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(31,42,68,.1); border-color: var(--gold); }
.card .icon-tile {
  width: 54px; height: 54px; border-radius: 14px; background: var(--sage);
  display: flex; align-items: center; justify-content: center; color: var(--pine); margin-bottom: 18px;
}
.card .icon-tile svg { width: 26px; height: 26px; }
.card p { color: var(--muted); font-size: 0.96rem; }
.card-img { border-radius: 10px; height: 210px; object-fit: cover; width: 100%; margin-bottom: 22px; }

.section-alt { background: #F1EBDD; }
.section-sage { background: var(--sage); }
.section-navy { background: var(--navy); color: #D9DFEF; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy .lead { color: #C9D2E8; }
.section-head { max-width: 760px; margin-bottom: 52px; }

/* Trust banner */
.trust-banner { background: var(--pine); color: #fff; border-radius: var(--radius); padding: 38px 42px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.trust-banner svg { width: 46px; height: 46px; color: var(--gold); flex-shrink: 0; }
.trust-banner h3 { color: #fff; margin-bottom: 4px; }
.trust-banner p { color: #D5E3DA; font-size: 0.96rem; max-width: 720px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { font-family: var(--serif); font-size: 3rem; font-weight: 800; color: var(--navy); line-height: 1; }
.stat-label { font-size: 0.9rem; color: var(--muted); margin-top: 8px; }
.section-navy .stat-num { color: var(--gold); }
.section-navy .stat-label { color: #C9D2E8; }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: 0 26px 52px rgba(21,29,48,.16); }
.split.reverse > div:first-child { order: 2; }

/* Timeline */
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 3px; background: var(--border); border-radius: 2px; }
.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item::before {
  content: ""; position: absolute; left: -32px; top: 6px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--gold); border: 3px solid var(--paper); box-shadow: 0 0 0 2px var(--gold);
}
.timeline-year { font-family: var(--mono); font-weight: 700; color: var(--gold-dark); font-size: 0.85rem; letter-spacing: 0.08em; }

/* Age group tabs */
.age-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.age-tab { padding: 12px 24px; border-radius: 999px; border: 2px solid var(--border); background: #fff; cursor: pointer; font-family: var(--sans); font-weight: 700; font-size: 0.92rem; color: var(--muted); transition: all .2s; }
.age-tab.active, .age-tab:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.age-panel { display: none; }
.age-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.age-panel img { border-radius: var(--radius); }
.age-tag { display: inline-block; padding: 5px 14px; border-radius: 999px; background: var(--gold); color: var(--navy-dark); font-size: 0.78rem; font-weight: 800; font-family: var(--mono); letter-spacing: 0.06em; margin-bottom: 14px; }
.check-list { list-style: none; margin-top: 16px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; color: var(--muted); }
.check-list svg { width: 18px; height: 18px; color: var(--pine); flex-shrink: 0; margin-top: 4px; }

/* Events */
.event-row { display: flex; gap: 24px; align-items: flex-start; padding: 28px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); transition: transform .25s, box-shadow .25s; }
.event-row:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(31,42,68,.09); }
.event-row + .event-row { margin-top: 18px; }
.event-date {
  background: var(--navy); color: #fff; border-radius: 12px; text-align: center;
  padding: 14px 18px; min-width: 96px; flex-shrink: 0;
}
.event-date .d { font-family: var(--serif); font-size: 1.6rem; font-weight: 800; line-height: 1; display: block; }
.event-date .m { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); display: block; margin-top: 4px; }
.event-meta { font-size: 0.85rem; color: var(--muted); display: flex; gap: 18px; flex-wrap: wrap; margin-top: 8px; }
.event-meta span { display: inline-flex; gap: 6px; align-items: center; }
.event-meta svg { width: 14px; height: 14px; color: var(--gold-dark); }
.event-flag { font-size: 0.72rem; font-family: var(--mono); letter-spacing: 0.1em; text-transform: uppercase; background: var(--sage); color: var(--pine); padding: 4px 12px; border-radius: 999px; font-weight: 700; }

/* News */
.news-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(31,42,68,.1); }
.news-card img { height: 200px; object-fit: cover; width: 100%; }
.news-body { padding: 26px 28px 30px; flex: 1; display: flex; flex-direction: column; }
.news-date { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-dark); font-weight: 700; margin-bottom: 10px; }
.news-body p { color: var(--muted); font-size: 0.94rem; flex: 1; }
.news-link { font-weight: 700; font-size: 0.9rem; margin-top: 16px; display: inline-flex; gap: 6px; align-items: center; color: var(--navy); }
.news-link:hover { color: var(--gold-dark); }

/* Pledge / code */
.code-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.code-pill { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: 12px; padding: 16px 18px; text-align: center; font-family: var(--serif); font-weight: 700; color: #fff; font-size: 1.05rem; transition: background .2s, transform .2s; }
.code-pill:hover { background: rgba(232,160,32,.2); transform: translateY(-3px); }
.pledge-box { background: rgba(255,255,255,.06); border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; padding: 30px 34px; }
.pledge-box p { font-family: var(--serif); font-size: 1.25rem; font-style: italic; color: #F0EBDD; line-height: 1.6; }
.pledge-box cite { display: block; font-style: normal; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-top: 14px; }

/* Accordion */
.accordion { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.accordion-item + .accordion-item { border-top: 1px solid var(--border); }
.accordion-btn {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 22px 28px; font-family: var(--sans); font-size: 1.05rem; font-weight: 700;
  color: var(--navy-dark); display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.accordion-btn svg { width: 20px; height: 20px; transition: transform .3s; flex-shrink: 0; }
.accordion-item.open .accordion-btn svg { transform: rotate(180deg); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.accordion-panel > div { padding: 0 28px 24px; color: var(--muted); }

/* Testimonials */
.quote-card { background: #fff; border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; padding: 30px 34px; box-shadow: 0 4px 18px rgba(31,42,68,.06); }
.quote-card p { font-family: var(--serif); font-size: 1.15rem; font-style: italic; color: #3A415A; margin-bottom: 14px; }
.quote-card cite { font-style: normal; font-size: 0.88rem; font-weight: 700; color: var(--navy); }

/* Steps */
.step { display: flex; gap: 20px; align-items: flex-start; }
.step + .step { margin-top: 26px; }
.step-num {
  width: 46px; height: 46px; border-radius: 50%; background: var(--gold); color: var(--navy-dark);
  font-family: var(--serif); font-weight: 800; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; color: var(--navy-dark); }
input, select, textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--border); border-radius: 10px;
  font-family: var(--sans); font-size: 0.95rem; background: #fff; color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(31,42,68,.14); }
textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 6px; }
.form-success { display: none; background: var(--sage); border: 1px solid #B9CDBF; border-radius: var(--radius); padding: 20px 24px; margin-top: 20px; color: var(--pine); font-weight: 600; }
.form-error { color: #B02E2E; font-size: 0.82rem; margin-top: 4px; display: none; }

/* Contact */
.contact-tile { display: flex; gap: 16px; align-items: flex-start; padding: 24px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.contact-tile .icon-tile { width: 46px; height: 46px; border-radius: 12px; background: var(--sage); display: flex; align-items: center; justify-content: center; color: var(--pine); flex-shrink: 0; }
.contact-tile .icon-tile svg { width: 21px; height: 21px; }
.contact-tile p { font-size: 0.93rem; color: var(--muted); }
.map-frame { width: 100%; height: 400px; border: 0; border-radius: var(--radius); }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--navy-dark), var(--navy) 70%, #2B3A5C); color: #fff; border-radius: 24px; padding: 60px; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #C9D2E8; max-width: 600px; margin: 0 auto 30px; }
.cta-band .hero-actions { justify-content: center; }

/* Footer */
.site-footer { background: var(--navy-dark); color: #A9B4D0; margin-top: 90px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 42px; padding: 70px 0 52px; }
.site-footer h4 { color: #fff; margin-bottom: 18px; font-size: 1rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #A9B4D0; font-size: 0.92rem; transition: color .2s; }
.site-footer a:hover { color: var(--gold); }
.footer-brand .brand-name { color: #fff; }
.footer-about { font-size: 0.9rem; margin-top: 14px; max-width: 340px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; }
.footer-contact svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; margin-top: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 24px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.82rem; color: #7E89A8; }

/* Policy page */
.policy-content h2 { margin-top: 46px; }
.policy-content ul { margin: 12px 0 20px 24px; color: var(--muted); }
.policy-content li { margin-bottom: 8px; }
.policy-content p { color: var(--muted); margin-bottom: 14px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .split, .age-panel.active { grid-template-columns: 1fr; gap: 34px; }
  .split.reverse > div:first-child { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .code-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band { padding: 44px 26px; }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); flex-direction: column; align-items: flex-start;
    padding: 22px 24px; gap: 18px; border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-cta .btn { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .hero { min-height: 600px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .event-row { flex-direction: column; }
  .top-bar-inner { justify-content: center; text-align: center; }
  .code-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
