/* ITBR Australia — static site styles
   Brand: deep indigo-blue stamp logo, accent sky blue, red star accents */

:root {
  --blue: #004EEB;
  --blue-deep: #2a2a7a;
  --sky: #1EA0FF;
  --red: #e40000;
  /* Original site banner palette (red -> indigo gradient + red button) */
  --banner-red: #CD3539;
  --banner-blue: #3E4095;
  --btn-red: #e60000;
  --ink: #1f2430;
  --muted: #69727d;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --border: #e3e8ef;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(16, 38, 76, 0.08);
  --max: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 { line-height: 1.2; color: var(--ink); }
h2.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-align: center;
  margin: 0 0 .4rem;
}
.section-lead {
  text-align: center;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section { padding: 72px 0; }
.section.soft { background: var(--bg-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(0,78,235,.28); }
.btn-primary:hover { background: #0040c4; color: #fff; }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-ghost { border-color: var(--blue); color: var(--blue); }
.btn-ghost:hover { background: var(--blue); color: #fff; }
.btn-red { background: var(--btn-red); color: #fff; box-shadow: 0 8px 20px rgba(230,0,0,.32); }
.btn-red:hover { background: #c40000; color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand span { font-size: 1.05rem; letter-spacing: .3px; }
.brand small { display: block; font-size: .62rem; font-weight: 600; color: var(--muted); letter-spacing: 1px; }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--ink);
  font-weight: 600;
  font-size: .95rem;
  padding: 8px 12px;
  border-radius: 8px;
}
.nav-links a:hover { background: var(--bg-soft); text-decoration: none; }
.nav-links a.active { color: var(--blue); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: linear-gradient(135deg, #002a8a 0%, #004EEB 55%, #1EA0FF 100%);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.18), transparent 45%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
  padding: 80px 0;
}
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 0 0 18px; }
.hero p { font-size: 1.12rem; color: rgba(255,255,255,.92); margin: 0 0 28px; max-width: 540px; }
.hero .eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--sky);
  background: rgba(255,255,255,.12);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-logo { display: flex; justify-content: center; }
.hero-logo img {
  width: min(340px, 80%);
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.35));
  background: #fff;
  border-radius: 50%;
  padding: 14px;
}

/* page hero (interior pages) — soft mesh gradient + grain */
.page-hero {
  position: relative;
  text-align: center;
  padding: 96px 0 104px;
  color: var(--ink);
  overflow: hidden;
  background:
    radial-gradient(42% 75% at 2% 32%, rgba(74, 98, 222, .55), transparent 58%),
    radial-gradient(40% 60% at 96% 18%, rgba(214, 122, 188, .42), transparent 60%),
    radial-gradient(55% 85% at 100% 102%, rgba(214, 58, 96, .55), transparent 60%),
    radial-gradient(45% 70% at 78% 88%, rgba(229, 80, 80, .38), transparent 62%),
    #f4f2f8;
}
/* subtle film grain overlay */
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  font-weight: 800;
  margin: 0 0 14px;
  color: #14151a;
}
.page-hero p { color: #55606e; max-width: 620px; margin: 0 auto; font-size: 1.05rem; }

/* breadcrumb */
.breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 6px 0 0;
  font-size: .95rem;
}
.breadcrumb a { color: #4a5160; font-weight: 600; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .sep { color: #9aa3b2; }
.breadcrumb .current { color: #14151a; font-weight: 700; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 22px; }
.stat .num { font-size: 2.4rem; font-weight: 800; color: var(--blue); }
.stat .label { color: var(--muted); font-weight: 600; }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 24px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(16,38,76,.14); }
.card h3 { margin: 0 0 10px; font-size: 1.2rem; }
.card .icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--sky));
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.card p { color: var(--muted); margin: 0; }

/* ---------- People (experts/volunteers) ---------- */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.person { text-align: center; }
.person img {
  width: 130px; height: 130px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 14px;
  border: 4px solid #fff;
  box-shadow: var(--shadow);
}
.person h3 { font-size: 1.05rem; margin: 0; }
.person .role { color: var(--blue); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .5px; }
.person a.li { display: inline-block; margin-top: 6px; color: var(--muted); font-size: .85rem; }

/* ---------- News / Events list ---------- */
.post {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.post:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(16,38,76,.14); }
.post .thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-soft); }
.post .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post .body { padding: 22px; }
.post .date { color: var(--sky); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; }
.post h3 { margin: 8px 0 10px; font-size: 1.18rem; }
.post p { color: var(--muted); margin: 0; }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(16,38,76,.05);
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--blue); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 22px 20px; color: var(--muted); }

/* ---------- Links page ---------- */
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.link-list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-weight: 600;
  color: var(--ink);
}
.link-list a:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.link-list a::after { content: "↗"; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta {
  background: linear-gradient(135deg, var(--banner-red) 0%, #8e3470 50%, var(--banner-blue) 100%);
  color: #fff;
  text-align: center;
  padding: 64px 20px;
}
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 12px; }
.cta p { color: rgba(255,255,255,.92); max-width: 560px; margin: 0 auto 26px; }

/* ---------- Footer ---------- */
.site-footer { background: #11162a; color: #c4ccdd; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; margin: 0 0 14px; font-size: 1rem; }
.site-footer a { color: #c4ccdd; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-brand img { width: 64px; margin-bottom: 14px; background:#fff; border-radius:50%; padding:6px; }
.socials { display: flex; gap: 12px; margin-top: 14px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.1);
  color: #fff; font-weight: 700;
}
.socials a:hover { background: var(--blue); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 36px; padding-top: 20px;
  text-align: center; font-size: .85rem; color: #8c95ab;
}

/* ---------- Video gallery ---------- */
.video-card .thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #002a8a, #1EA0FF);
  display: grid; place-items: center;
}
.video-card .thumb .play {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--red);
  display: grid; place-items: center; font-size: 1.6rem;
}
.video-card:hover .thumb .play { background:#fff; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-logo { order: -1; }
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .people { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 70px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 12px;
    gap: 4px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
