/* =========================================================================
   Aspire for Hope — design system
   Scoped under .aspire-page so it never fights OceanWP or the previews.
   Palette, type and rhythm follow the project brief.
   ========================================================================= */

.aspire-page {
	/* Brand palette */
	--navy: #1E2353;
	--ink: #070A29;
	--red: #BA1517;
	--red-dk: #9e1113;
	--green: #188844;
	--green-dk: #146e38;
	--yellow: #F4D403;
	--halfwhite: #F5F6FB;
	--white: #FFFFFF;

	--navy-body: #cfd3ee;   /* body text on navy */
	--text: #2b2f4a;        /* body text on light */
	--muted: #5b607e;       /* secondary text on light */
	--line: #e5e7f2;        /* hairline borders */

	--maxw: 1160px;
	--gutter: clamp(20px, 5vw, 40px);
	--radius: 8px;
	--radius-lg: 16px;
	--shadow: 0 1px 2px rgba(7,10,41,.04), 0 10px 30px rgba(7,10,41,.06);
	--shadow-hover: 0 4px 10px rgba(7,10,41,.08), 0 18px 44px rgba(7,10,41,.12);

	--font-head: "Montserrat", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
	--font-body: "Poppins", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;

	color: var(--text);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.65;
}

/* Reset a few things OceanWP / browsers vary on, only inside our scope */
.aspire-page *,
.aspire-page *::before,
.aspire-page *::after { box-sizing: border-box; }

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

.aspire-page h1,
.aspire-page h2,
.aspire-page h3,
.aspire-page h4 {
	font-family: var(--font-head);
	color: var(--ink);
	line-height: 1.15;
	text-wrap: balance;
	margin: 0 0 .5em;
	font-weight: 700;
}

.aspire-page p { margin: 0 0 1rem; max-width: 65ch; }
.aspire-page a:not(.btn) { color: var(--red); text-decoration: none; }
.aspire-page a:not(.btn):hover { text-decoration: underline; }

/* ---- Focus states (accessible, visible) ------------------------------- */
.aspire-page a:focus-visible,
.aspire-page button:focus-visible,
.aspire-page .btn:focus-visible,
.aspire-page .acc-q:focus-visible {
	outline: 3px solid var(--yellow);
	outline-offset: 2px;
	border-radius: 4px;
}

/* ---- Layout ----------------------------------------------------------- */
.aspire-section { padding: clamp(40px, 5.5vw, 72px) 0; }
.aspire-container {
	width: 100%;
	max-width: var(--maxw);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.aspire-narrow { max-width: 760px; }

/* Section backgrounds — mostly white / half-white; navy only as anchors */
.bg-white { background: var(--white); }
.bg-half  { background: var(--halfwhite); }
.bg-navy {
	background: var(--navy);
	color: var(--navy-body);
	background-image: radial-gradient(120% 120% at 100% 0%, rgba(255,255,255,.06), transparent 55%);
}
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: #fff; }
.bg-navy .eyebrow { color: var(--yellow); }

/* ---- Type helpers ----------------------------------------------------- */
.eyebrow {
	font-family: var(--font-body);
	font-weight: 600;
	font-size: .78rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--red);
	margin: 0 0 .75rem;
	display: inline-block;
}
.aspire-page h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; }
.aspire-page h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.aspire-page h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); }
.bg-navy .lead { color: var(--navy-body); }

.section-head { max-width: 720px; margin-bottom: clamp(22px, 3vw, 38px); }
.section-head.center { margin-inline: auto; text-align: center; }

/* Yellow underline accent (small only) */
.u-accent { position: relative; }
.u-accent::after {
	content: ""; display: block; width: 56px; height: 4px;
	background: var(--yellow); border-radius: 2px; margin-top: .6rem;
}
.center .u-accent::after { margin-inline: auto; }

/* ---- Icons ------------------------------------------------------------ */
.aspire-icon { display: inline-flex; }
.aspire-icon svg { width: 1.5em; height: 1.5em; }
.icon-badge {
	width: 52px; height: 52px; border-radius: 12px;
	display: inline-flex; align-items: center; justify-content: center;
	background: #fbe9e6; color: var(--red); margin-bottom: 14px;
}
.icon-badge svg { width: 26px; height: 26px; }
.icon-badge.green { background: #e2f3e9; color: var(--green); }
.icon-badge.navy { background: #e6e8f6; color: var(--navy); }

/* ---- Buttons ---------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; gap: .5rem;
	font-family: var(--font-body); font-weight: 600; font-size: 1rem;
	line-height: 1; padding: .85rem 1.5rem; border-radius: var(--radius);
	border: 2px solid transparent; cursor: pointer; transition: all .18s ease;
	text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 1.1em; height: 1.1em; }

.aspire-page .btn-red { background: var(--red); color: #fff; border-color: var(--red); }
.aspire-page .btn-red:hover { background: var(--red-dk); border-color: var(--red-dk); color: #fff; }

.aspire-page .btn-green { background: var(--green); color: #fff; border-color: var(--green); }
.aspire-page .btn-green:hover { background: var(--green-dk); border-color: var(--green-dk); color: #fff; }

.aspire-page .btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.aspire-page .btn-navy:hover { background: #161a40; border-color: #161a40; color: #fff; }

.aspire-page .btn-green-outline { background: transparent; color: var(--green); border-color: var(--green); }
.aspire-page .btn-green-outline:hover { background: var(--green); color: #fff; }

.aspire-page .btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.aspire-page .btn-outline-white:hover { background: #fff; color: var(--navy); border-color: #fff; }

.aspire-page .btn-white { background: #fff; color: var(--navy); border-color: #fff; }
.aspire-page .btn-white:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }

.aspire-page .btn-yellow { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.aspire-page .btn-yellow:hover { background: #ffe23a; border-color: #ffe23a; }

.link-red {
	color: var(--red); font-weight: 600; display: inline-flex; align-items: center; gap: .35rem;
}
.link-red::after { content: "→"; transition: transform .18s ease; }
.link-red:hover::after { transform: translateX(3px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.5rem; }

/* =========================================================================
   HOMEPAGE
   ========================================================================= */

/* 1. Hero */
.hero-grid {
	display: grid; grid-template-columns: 1.05fr .95fr;
	gap: clamp(28px, 5vw, 64px); align-items: center;
}
.hero-copy h1 { margin-bottom: .5rem; }
.hero-copy .lead { margin-bottom: 0; }
.hero-media img {
	width: 100%; border-radius: var(--radius-lg);
	box-shadow: var(--shadow); aspect-ratio: 4 / 3.4; object-fit: cover;
}
.hero-media { position: relative; }
.hero-media .hero-tag {
	position: absolute; left: 18px; bottom: 18px;
	background: #fff; color: var(--ink); font-weight: 600; font-size: .85rem;
	padding: .5rem .85rem; border-radius: 10px; box-shadow: var(--shadow);
	display: inline-flex; align-items: center; gap: .4rem;
}
.hero-media .hero-tag .aspire-icon { color: var(--green); }

/* 2. Stat bar (navy) */
.stat-grid {
	display: grid; grid-template-columns: repeat(4, 1fr);
	gap: clamp(20px, 3vw, 40px); text-align: center;
}
.stat .num {
	font-family: var(--font-head); font-weight: 800; color: var(--yellow);
	font-size: clamp(2.1rem, 4.5vw, 3rem); line-height: 1;
}
.stat .lbl { color: #fff; margin-top: .4rem; font-weight: 500; }
.stat-foot { text-align: center; color: var(--navy-body); font-size: .85rem; margin: 24px 0 0; opacity: .8; }

/* 3. Intro */
.intro-grid {
	display: grid; grid-template-columns: .9fr 1.1fr;
	gap: clamp(28px, 5vw, 64px); align-items: center;
}
.intro-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4/3.6; object-fit: cover; width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.25rem 0; list-style: none; padding: 0; }
.chips li {
	display: inline-flex; align-items: center; gap: .4rem;
	background: var(--halfwhite); border: 1px solid var(--line);
	padding: .45rem .85rem; border-radius: 999px; font-size: .9rem; font-weight: 500;
}
.chips li .aspire-icon { color: var(--green); }
.chips li .aspire-icon svg { width: 1.1em; height: 1.1em; }

/* 4 + related. Program / feature card grids */
.card-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
	padding: 26px; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
	display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); font-size: .96rem; margin-bottom: 1rem; }
.card .link-red { margin-top: auto; }

/* 5. Scenario / story cards */
.story-grid { display: grid; gap: 22px; grid-template-columns: repeat(2, 1fr); }
.story-card { overflow: hidden; padding: 0; }
.story-card .story-img { aspect-ratio: 16/8; object-fit: cover; width: 100%; }
.story-card .story-body { padding: 24px 26px 26px; display: flex; flex-direction: column; }
.story-card h3 { display: flex; align-items: center; gap: .5rem; }
.story-card h3 .aspire-icon { color: var(--red); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; list-style: none; padding: 0; }
.tags li {
	font-size: .78rem; font-weight: 600; letter-spacing: .02em;
	background: #eef0f8; color: var(--navy); padding: .3rem .7rem; border-radius: 999px;
}

/* 6. Testimonials (navy carousel) */
.tw-track-wrap { position: relative; }
.tw-track {
	display: grid; grid-auto-flow: column; grid-auto-columns: calc(50% - 11px);
	gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
	scroll-behavior: smooth; padding-bottom: 8px;
	scrollbar-width: none;
}
.tw-track::-webkit-scrollbar { display: none; }
.tw-track > * { scroll-snap-align: start; }

/* Stories reuse the slider mechanics on a light section */
.stories-track { grid-auto-columns: calc(50% - 11px); align-items: stretch; }
.stories-track .story-card { height: 100%; }
.slider-light .tw-btn { border-color: rgba(30, 35, 83, .35); color: var(--navy); }
.slider-light .tw-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.quote-card {
	background: #fff; color: var(--text); border-radius: var(--radius-lg);
	padding: 30px 30px 26px; scroll-snap-align: start; box-shadow: var(--shadow);
	display: flex; flex-direction: column;
}
.quote-card .aspire-icon { color: var(--yellow); }
.quote-card .aspire-icon svg { width: 2.2rem; height: 2.2rem; }
.quote-card blockquote { font-size: 1.08rem; line-height: 1.6; margin: 12px 0 16px; color: var(--ink); }
.quote-card cite { font-style: normal; font-weight: 600; color: var(--muted); margin-top: auto; }
.tw-controls { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }
.tw-btn {
	width: 44px; height: 44px; border-radius: 999px; border: 2px solid rgba(255,255,255,.5);
	color: #fff; background: transparent; display: inline-flex; align-items: center; justify-content: center;
	font-size: 1.1rem; transition: all .18s ease;
}
.tw-btn:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* 7. Get involved (triple CTA) */
.cta-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.cta-card { text-align: left; }
.cta-card h3 { margin-bottom: .35rem; }
.cta-card .btn { margin-top: 1.1rem; }

/* 8. Helpline banner */
.helpline-band { text-align: center; }
.helpline-band .helpline-inner { max-width: 760px; margin-inline: auto; }
.helpline-details {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px;
	margin: 18px 0 6px; color: var(--navy-body); font-weight: 500;
}
.helpline-details span { display: inline-flex; align-items: center; gap: .45rem; }
.helpline-details .aspire-icon { color: var(--yellow); }
.helpline-band .btn-row { justify-content: center; }

/* =========================================================================
   PROGRAM (CHILD) PAGE
   ========================================================================= */

/* Breadcrumb */
.breadcrumb { padding: 20px 0 0; font-size: .85rem; color: var(--muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.breadcrumb li::after { content: "›"; margin-left: .4rem; color: var(--muted); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--muted); font-weight: 500; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }

/* Program hero */
.prog-hero-grid {
	display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 56px); align-items: center;
}
.prog-hero .prog-eyebrow { display: inline-flex; align-items: center; gap: .5rem; }
.prog-hero .prog-eyebrow .aspire-icon { color: var(--red); }
.prog-hero .prog-eyebrow .aspire-icon svg { width: 1.2em; height: 1.2em; }
.prog-hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4/3.2; object-fit: cover; width: 100%; }

/* Quick contact strip */
.contact-strip {
	display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center;
	background: var(--halfwhite); border: 1px solid var(--line); border-radius: var(--radius-lg);
	padding: 18px 24px; margin-top: 8px;
}
.contact-strip .ci { display: inline-flex; align-items: center; gap: .55rem; font-weight: 500; }
.contact-strip .ci .icon-badge { width: 40px; height: 40px; margin: 0; border-radius: 10px; }
.contact-strip .ci .icon-badge svg { width: 20px; height: 20px; }
.contact-strip .ci small { display: block; color: var(--muted); font-weight: 500; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.contact-strip .ci a { color: var(--ink); }

/* Text + image body sections */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.split.media-left .split-media { order: -1; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4/3.2; object-fit: cover; width: 100%; }
.bg-navy .split-media img { box-shadow: 0 18px 44px rgba(0,0,0,.35); }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.checklist li { display: flex; gap: .65rem; align-items: flex-start; }
.checklist li .aspire-icon { color: var(--green); flex: none; margin-top: 2px; }
.bg-navy .checklist li .aspire-icon { color: var(--yellow); }

/* Contact call-out block */
.callout {
	background: var(--halfwhite); border: 1px solid var(--line);
	border-left: 4px solid var(--red); border-radius: var(--radius);
	padding: 24px 28px;
}
.callout h2, .callout h3 { margin-top: 0; }
.bg-navy .callout { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); border-left-color: var(--yellow); }

/* Counsellor profile placeholder cards */
.profile-card { text-align: center; align-items: center; }
.profile-avatar {
	width: 84px; height: 84px; border-radius: 999px; background: #e6e8f6;
	display: inline-flex; align-items: center; justify-content: center; color: var(--navy);
	margin-bottom: 14px;
}
.profile-avatar svg { width: 40px; height: 40px; }
.profile-card .role { color: var(--muted); font-size: .9rem; }
.profile-note { color: var(--muted); font-size: .85rem; margin-top: 6px; }

/* Accordion / FAQ */
.accordion { border-top: 1px solid var(--line); max-width: 820px; }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-q {
	width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
	font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--ink);
	padding: 20px 44px 20px 0; position: relative;
}
.acc-q::after {
	content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
	font-size: 1.5rem; color: var(--red); font-weight: 400; transition: transform .2s ease;
}
.acc-item.open .acc-q::after { content: "–"; }
.acc-a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.acc-a p { padding: 0 0 20px; color: var(--muted); margin: 0; }

/* Form placeholder — clearly marked empty container, NO form built */
.form-placeholder {
	min-height: 420px; border: 2px dashed var(--bord, #c3c6db); border-radius: var(--radius-lg);
	background:
		repeating-linear-gradient(-45deg, rgba(30,35,83,.03) 0 12px, transparent 12px 24px);
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	text-align: center; padding: 40px 24px; gap: 10px; color: var(--muted);
}
.bg-navy .form-placeholder { border-color: rgba(255,255,255,.4); color: var(--navy-body); background: repeating-linear-gradient(-45deg, rgba(255,255,255,.05) 0 12px, transparent 12px 24px); }
.form-placeholder .fp-label { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--ink); letter-spacing: .01em; }
.bg-navy .form-placeholder .fp-label { color: #fff; }
.form-placeholder .fp-hint { font-size: .85rem; max-width: 46ch; }
.form-placeholder .icon-badge { margin: 0; }

/* Closing "get started" CTA */
.getstarted-inner { max-width: 760px; }
.bg-half .getstarted-inner .btn-row,
.getstarted-inner .btn-row { margin-top: 1.5rem; }
.getstarted-contact { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 14px; font-weight: 500; }
.getstarted-contact span { display: inline-flex; align-items: center; gap: .45rem; }
.getstarted-contact .aspire-icon { color: var(--green); }
.bg-navy .getstarted-contact .aspire-icon { color: var(--yellow); }

/* =========================================================================
   Entrance animation — one per section, from a VISIBLE resting state.
   Elements are fully visible by default; JS adds .reveal-ready to animate in.
   ========================================================================= */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	.js .reveal { opacity: 1 !important; transform: none !important; transition: none; }
	.btn:hover, .card:hover { transform: none; }
	.acc-a, .tw-track { transition: none; scroll-behavior: auto; }
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 900px) {
	.card-grid, .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
	.stat-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
	.cta-grid { grid-template-columns: 1fr; }
	.tw-track { grid-auto-columns: 100%; }
}

@media (max-width: 720px) {
	.hero-grid, .intro-grid, .prog-hero-grid, .split { grid-template-columns: 1fr; }
	.split.media-left .split-media { order: 0; }
	.hero-media, .intro-media, .prog-hero-media { order: -1; }
	.story-grid { grid-template-columns: 1fr; }
	.checklist { grid-template-columns: 1fr; }
	.card-grid, .card-grid.cols-4 { grid-template-columns: 1fr; }
	.contact-strip { gap: 14px; }
}
