/* =========================================================
   Campbellfield Youth Centre Inc. — Official Website Styles
   Theme derived from the official logo: deep navy on cream
   ========================================================= */

:root {
  --navy: #1e2a54;
  --navy-dark: #141d3d;
  --navy-light: #35446f;
  --cream: #f6f1e3;
  --cream-dark: #ece4cf;
  --gold: #c9a227;
  --gold-dark: #a8861c;
  --white: #ffffff;
  --text: #2b3245;
  --text-muted: #5d6577;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(20, 29, 61, 0.10);
  --shadow-sm: 0 4px 14px rgba(20, 29, 61, 0.08);
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
}

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

a { color: var(--navy); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Top utility bar ---------- */
.top-bar {
  background: var(--navy-dark);
  color: #cdd4e6;
  font-size: 13.5px;
  padding: 7px 0;
}
.top-bar .container {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.top-bar a { color: #e8ebf4; text-decoration: none; }
.top-bar a:hover { color: var(--gold); }
.top-bar .tb-item { display: inline-flex; align-items: center; gap: 7px; margin-right: 22px; }
.top-bar i { color: var(--gold); }
.tb-right { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Header / navigation ---------- */
.site-header {
  background: var(--white);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 12px rgba(20,29,61,.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img {
  width: 62px; height: 62px; object-fit: cover; border-radius: 50%;
  border: 2px solid var(--cream-dark);
}
.brand-text .brand-name {
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 17.5px;
  color: var(--navy); letter-spacing: .2px; line-height: 1.2; display: block; white-space: nowrap;
}
.brand-text .brand-tag {
  font-size: 12px; color: var(--text-muted); letter-spacing: 1.6px; text-transform: uppercase;
}

.main-nav ul { list-style: none; display: flex; align-items: center; gap: 2px; }
.main-nav a {
  text-decoration: none; color: var(--navy); font-weight: 600; font-size: 14.5px;
  padding: 10px 11px; border-radius: 6px; transition: all .2s; white-space: nowrap;
}
.main-nav a:hover { background: var(--cream); }
.main-nav a.active { color: var(--gold-dark); }
.main-nav a.nav-cta {
  background: var(--navy); color: var(--white); margin-left: 8px; padding: 11px 16px;
}
.main-nav a.nav-cta:hover { background: var(--navy-light); }

.nav-toggle {
  display: none; background: none; border: none; font-size: 26px; color: var(--navy); cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 15.5px;
  padding: 14px 30px; border-radius: 6px; transition: all .25s; border: 2px solid transparent;
}
.btn-primary { background: var(--gold); color: var(--navy-dark); }
.btn-primary:hover { background: var(--gold-dark); color: var(--white); transform: translateY(-2px); }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-light); transform: translateY(-2px); }
.btn-outline-navy { border-color: var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 560px; display: flex; align-items: center;
  background: linear-gradient(rgba(20,29,61,.78), rgba(30,42,84,.62)), url('../images/hero-youth.jpg') center/cover no-repeat;
}
.hero-content { max-width: 760px; padding: 90px 0; }
.hero-kicker {
  display: inline-block; background: rgba(201,162,39,.16); border: 1px solid rgba(201,162,39,.5);
  color: #ecd58a; font-size: 13px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
  padding: 7px 18px; border-radius: 30px; margin-bottom: 22px;
}
.hero h1 { color: var(--white); font-size: clamp(34px, 5vw, 54px); margin-bottom: 20px; }
.hero h1 .accent { color: var(--gold); }
.hero p { color: #dfe4f0; font-size: 19px; max-width: 620px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(rgba(20,29,61,.82), rgba(30,42,84,.75)), url('../images/hero-youth.jpg') center 30%/cover no-repeat;
  padding: 92px 0 70px; text-align: center;
}
.page-hero h1 { color: var(--white); font-size: clamp(30px, 4vw, 44px); margin-bottom: 12px; }
.page-hero p { color: #d7ddec; max-width: 640px; margin: 0 auto; font-size: 17.5px; }
.breadcrumb { color: #aab4d0; font-size: 13.5px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 14px; }
.breadcrumb a { color: var(--gold); text-decoration: none; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--cream); }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-kicker {
  color: var(--gold-dark); font-weight: 700; font-size: 13px; letter-spacing: 2.5px;
  text-transform: uppercase; display: block; margin-bottom: 10px;
}
.section-head h2, .section-head-left h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 14px; }
.section-head p { color: var(--text-muted); font-size: 17px; }
.section-head-left { margin-bottom: 36px; }

/* ---------- Grids & cards ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  overflow: hidden; transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card img { height: 210px; width: 100%; object-fit: cover; }
.card-body { padding: 26px 26px 30px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 20px; margin-bottom: 10px; }
.card-body p { color: var(--text-muted); font-size: 15.5px; flex: 1; }
.card-link {
  margin-top: 18px; font-weight: 700; font-size: 14.5px; color: var(--gold-dark);
  text-decoration: none; letter-spacing: .4px;
}
.card-link:hover { color: var(--navy); }

/* Icon feature blocks */
.feature {
  background: var(--white); border-radius: var(--radius); padding: 34px 28px;
  box-shadow: var(--shadow-sm); border-top: 4px solid var(--gold);
}
.feature .icon {
  width: 58px; height: 58px; border-radius: 12px; background: var(--cream);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.feature .icon i { font-size: 24px; color: var(--navy); }
.feature h3 { font-size: 19px; margin-bottom: 10px; }
.feature p { color: var(--text-muted); font-size: 15.5px; }

/* Mission / vision panels */
.mv-panel {
  background: var(--navy); color: var(--white); border-radius: var(--radius);
  padding: 42px 38px; position: relative; overflow: hidden;
}
.mv-panel.gold { background: var(--gold); color: var(--navy-dark); }
.mv-panel h3 { color: inherit; font-size: 23px; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.mv-panel p { font-size: 16px; opacity: .93; }
.mv-panel .watermark {
  position: absolute; right: -18px; bottom: -24px; font-size: 130px; opacity: .08;
}

/* Stats band */
.stats-band { background: var(--navy); padding: 62px 0; }
.stats-band .grid-4 { text-align: center; }
.stat h3 { color: var(--gold); font-size: 42px; font-weight: 700; }
.stat p { color: #c3cbe0; font-size: 15px; letter-spacing: .5px; }

/* Checklist */
.checklist { list-style: none; margin-top: 8px; }
.checklist li { padding: 7px 0 7px 34px; position: relative; color: var(--text); }
.checklist li i { position: absolute; left: 0; top: 12px; color: var(--gold-dark); }

/* Image frame */
.img-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.img-frame img { width: 100%; height: 100%; object-fit: cover; }
.img-badge {
  position: absolute; left: 22px; bottom: 22px; background: var(--gold); color: var(--navy-dark);
  font-weight: 700; padding: 12px 20px; border-radius: 8px; font-size: 14.5px; box-shadow: var(--shadow-sm);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(rgba(20,29,61,.88), rgba(20,29,61,.88)), url('../images/program-community.jpg') center/cover no-repeat;
  text-align: center; padding: 88px 0;
}
.cta-band h2 { color: var(--white); font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 14px; }
.cta-band p { color: #d7ddec; max-width: 620px; margin: 0 auto 32px; font-size: 17.5px; }

/* ---------- Team ---------- */
.team-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 34px 26px; text-align: center; transition: transform .25s;
}
.team-card:hover { transform: translateY(-5px); }
.team-avatar {
  width: 86px; height: 86px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif; font-size: 28px; font-weight: 700; letter-spacing: 1px;
}
.team-card h3 { font-size: 18.5px; margin-bottom: 4px; }
.team-role { color: var(--gold-dark); font-weight: 600; font-size: 14px; letter-spacing: .6px; text-transform: uppercase; margin-bottom: 12px; }
.team-email { font-size: 14px; color: var(--text-muted); word-break: break-all; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.team-email:hover { color: var(--navy); }

/* ---------- Info tables ---------- */
.info-table { width: 100%; border-collapse: collapse; background: var(--white); box-shadow: var(--shadow-sm); border-radius: var(--radius); overflow: hidden; }
.info-table th, .info-table td { text-align: left; padding: 15px 22px; font-size: 15.5px; }
.info-table th { background: var(--navy); color: var(--white); font-family: 'Poppins', sans-serif; font-weight: 600; }
.info-table tr:nth-child(even) td { background: var(--cream); }
.info-table td:first-child { font-weight: 600; color: var(--navy); width: 38%; }

/* ---------- Program detail rows ---------- */
.program-row { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; padding: 46px 0; border-bottom: 1px solid var(--cream-dark); }
.program-row:last-child { border-bottom: none; }
.program-row.reverse .program-media { order: 2; }
.program-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.program-media img { width: 100%; height: 330px; object-fit: cover; }
.program-copy h3 { font-size: 25px; margin-bottom: 14px; }
.program-copy .tag {
  display: inline-block; background: var(--cream); color: var(--navy); font-size: 12.5px;
  font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; padding: 6px 14px;
  border-radius: 30px; margin-bottom: 14px;
}
.program-copy p { color: var(--text-muted); margin-bottom: 12px; }

/* ---------- Grant cards ---------- */
.grant-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 32px 28px; border-left: 5px solid var(--gold); transition: transform .25s;
}
.grant-card:hover { transform: translateY(-5px); }
.grant-card h3 { font-size: 19px; margin-bottom: 10px; display: flex; align-items: center; gap: 12px; }
.grant-card h3 i { color: var(--gold-dark); }
.grant-card p { color: var(--text-muted); font-size: 15.5px; }

.steps { counter-reset: step; }
.step { display: flex; gap: 22px; padding: 22px 0; border-bottom: 1px dashed var(--cream-dark); }
.step:last-child { border-bottom: none; }
.step-num {
  flex: 0 0 52px; height: 52px; border-radius: 50%; background: var(--navy); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-family: 'Poppins', sans-serif;
  font-weight: 700; font-size: 21px;
}
.step h4 { font-size: 17.5px; margin-bottom: 5px; }
.step p { color: var(--text-muted); font-size: 15.5px; }

/* ---------- Contact ---------- */
.contact-info-card {
  background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 40px 34px;
}
.contact-info-card h3 { color: var(--white); font-size: 22px; margin-bottom: 22px; }
.contact-line { display: flex; gap: 16px; margin-bottom: 22px; }
.contact-line i { color: var(--gold); font-size: 19px; margin-top: 5px; }
.contact-line strong { display: block; color: var(--white); font-size: 15.5px; }
.contact-line span, .contact-line a { color: #c3cbe0; font-size: 15px; text-decoration: none; }
.contact-line a:hover { color: var(--gold); }

.contact-form { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px 36px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; color: var(--navy); font-size: 14.5px; margin-bottom: 7px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid #d8d2bf; border-radius: 7px;
  font-family: inherit; font-size: 15.5px; color: var(--text); background: #fcfaf4; transition: border .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--navy); background: var(--white);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: 13.5px; color: var(--text-muted); margin-top: 14px; }

.map-embed { border: 0; width: 100%; height: 380px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* ---------- Acknowledgement ---------- */
.acknowledgement {
  background: var(--cream); border-left: 5px solid var(--gold);
  padding: 26px 30px; border-radius: 8px; font-size: 15px; color: var(--text-muted); font-style: italic;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #b9c1d8; padding: 70px 0 0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 48px; }
.footer-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.footer-brand img { width: 54px; height: 54px; border-radius: 50%; }
.footer-brand span { font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--white); font-size: 17px; line-height: 1.3; }
.site-footer h4 { color: var(--white); font-size: 16px; margin-bottom: 18px; letter-spacing: .5px; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: #b9c1d8; text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--gold); }
.footer-contact li { display: flex; gap: 11px; }
.footer-contact i { color: var(--gold); margin-top: 5px; }
.footer-acnc {
  background: rgba(255,255,255,.05); border-radius: 8px; padding: 16px 18px; margin-top: 20px; font-size: 13.5px;
}
.footer-acnc strong { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; display: flex;
  justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13.5px;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1120px) and (min-width: 821px) {
  .brand-text .brand-tag { display: none; }
  .brand img { width: 50px; height: 50px; }
  .main-nav a { font-size: 13.5px; padding: 9px 8px; }
  .main-nav a.nav-cta { padding: 10px 13px; margin-left: 4px; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); box-shadow: 0 14px 24px rgba(20,29,61,.14);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 12px 18px 20px; gap: 2px; }
  .main-nav a { display: block; padding: 13px 12px; }
  .main-nav a.nav-cta { margin: 10px 0 0; text-align: center; }
  .grid-2, .program-row { grid-template-columns: 1fr; gap: 30px; }
  .program-row.reverse .program-media { order: 0; }
  .top-bar .tb-hide-mobile { display: none; }
}

@media (max-width: 560px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 62px 0; }
  .hero { min-height: 480px; }
  .brand-text .brand-name { font-size: 16px; }
  .brand img { width: 52px; height: 52px; }
}
