/* =========================================================
   YFPC — MASTER STYLESHEET
   Youth for Purpose Canada
   ========================================================= */

:root {
    --red: #D80621;
    --red-dark: #9F061A;
    --black: #0B0B0B;
    --ink: #151515;
    --white: #FFFFFF;
    --soft: #F5F5F2;
    --muted: #6E6E6E;
    --line: rgba(11,11,11,.12);
    --radius: 24px;
    --shadow: 0 22px 70px rgba(0,0,0,.12);
    --container: 1240px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "DM Sans", sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.65;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

img,
video {
    max-width: 100%;
    height: auto;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.section {
    padding: 110px 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    left: 16px;
    top: -80px;
    z-index: 9999;
    background: var(--red);
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
}

.skip-link:focus {
    top: 16px;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    transition: .35s ease;
}

/* Top bar */

.topbar {
    background: var(--black);
    color: #fff;
    font-size: 12px;
}

.topbar-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.topbar p {
    margin: 0;
    opacity: .8;
}

.topbar-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar-links a {
    color: rgba(255,255,255,.75);
    transition: .2s;
}

.topbar-links a:hover {
    color: #fff;
}

/* Navbar */

.navbar {
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid transparent;
    transition: .35s ease;
}

.site-header.scrolled .navbar {
    box-shadow: 0 12px 35px rgba(0,0,0,.08);
    border-bottom-color: var(--line);
}

.nav-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

/* Logo */

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    min-width: 0;
}

.brand-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-copy strong {
    font: 800 19px/1 Manrope, sans-serif;
    letter-spacing: -.02em;
}

.brand-copy small {
    font-size: 9px;
    letter-spacing: .04em;
    color: var(--muted);
    margin-top: 5px;
}

/* Main navigation */

.nav-menu {
    display: flex;
    align-items: center;
    gap: 3px;
}

.nav-menu > a,
.dropdown-trigger {
    padding: 11px 9px;
    font-size: 12px;
    font-weight: 700;
    border: 0;
    background: transparent;
    color: var(--ink);
    white-space: nowrap;
    transition: .2s;
}

.nav-menu > a:hover,
.nav-menu > a.active,
.dropdown-trigger:hover {
    color: var(--red);
}

.nav-dropdown {
    position: relative;
}

.dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.dropdown-trigger span {
    font-size: 13px;
    transition: transform .2s;
}

.nav-dropdown:hover .dropdown-trigger span {
    transform: rotate(180deg);
}

/* Dropdown */

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 235px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: .25s ease;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    transition: .2s;
}

.dropdown-menu a:hover {
    background: #f7f7f7;
    color: var(--red);
}

/* Header utility links */

.nav-contact,
.nav-subscribe {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.nav-contact {
    color: var(--red) !important;
}

.nav-subscribe {
    border: 1px solid var(--line) !important;
    border-radius: 999px;
    padding-inline: 15px !important;
    margin-left: 4px;
}

.nav-subscribe:hover {
    border-color: var(--red) !important;
    background: rgba(216,6,33,.05);
}

/* Donate */

.nav-donate {
    background: var(--red) !important;
    color: #fff !important;
    border-radius: 999px;
    padding-inline: 18px !important;
    margin-left: 5px;
    box-shadow: 0 8px 22px rgba(216,6,33,.2);
}

.nav-donate:hover {
    background: var(--red-dark) !important;
    color: #fff !important;
}

/* Social links in navigation */

.nav-socials {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 4px;
}

.nav-socials a {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    font-size: 10px !important;
    font-weight: 800 !important;
    transition: .25s;
}

.nav-socials a:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff !important;
    transform: translateY(-2px);
}

/* Hamburger */

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    position: relative;
    z-index: 20;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--black);
    margin: 4px auto;
    transition: .25s;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    background: var(--black);
}

.hero-video,
.hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video {
    opacity: .45;
    filter: saturate(.7);
}

.hero-overlay {
    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.88) 0%,
            rgba(0,0,0,.64) 48%,
            rgba(0,0,0,.35) 100%
        ),
        linear-gradient(
            0deg,
            rgba(216,6,33,.2),
            transparent 45%
        );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 100px;
    display: grid;
    grid-template-columns: minmax(0,1fr) 300px;
    align-items: end;
    gap: 70px;
}

.hero-copy {
    max-width: 800px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #fff;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--red);
}

.eyebrow.dark {
    color: var(--red);
}

.hero h1,
h2,
h3 {
    font-family: Manrope, sans-serif;
}

.hero h1 {
    font-size: clamp(48px, 7vw, 94px);
    line-height: .98;
    letter-spacing: -.055em;
    margin: 24px 0;
    max-width: 900px;
}

.hero h1 em {
    color: #ff3049;
    font-style: normal;
}

.hero-copy > p {
    max-width: 680px;
    font-size: 18px;
    color: rgba(255,255,255,.78);
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 52px;
    padding: 0 23px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
    transition: .25s;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background: var(--red);
    color: #fff;
    box-shadow: 0 14px 35px rgba(216,6,33,.3);
}

.btn-primary:hover {
    background: var(--red-dark);
}

.btn-ghost {
    border: 1px solid rgba(255,255,255,.35);
    color: #fff;
    background: rgba(255,255,255,.05);
}

.btn-light {
    background: #fff;
    color: var(--black);
}

.btn-outline-light {
    border: 1px solid rgba(255,255,255,.4);
    color: #fff;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 34px;
    font-size: 9px;
    letter-spacing: .13em;
    font-weight: 800;
    color: rgba(255,255,255,.5);
    flex-wrap: wrap;
}

.hero-trust i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--red);
}

.hero-panel {
    padding: 25px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 22px;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(12px);
}

.panel-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .12em;
    opacity: .65;
}

.impact-number {
    font: 800 64px/1 Manrope;
    margin: 14px 0 8px;
}

.impact-number span {
    color: var(--red);
}

.hero-panel p {
    color: rgba(255,255,255,.7);
    font-size: 13px;
}

.hero-panel a {
    color: #fff;
    font-weight: 800;
    font-size: 12px;
}

.hero-scroll {
    position: absolute;
    z-index: 2;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .6;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-scroll span {
    width: 45px;
    height: 1px;
    background: #fff;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    opacity: .35;
    pointer-events: none;
}

.orb-one {
    width: 360px;
    height: 360px;
    right: -150px;
    top: 20%;
    background: radial-gradient(
        circle,
        rgba(216,6,33,.8),
        transparent 68%
    );
}

.orb-two {
    width: 240px;
    height: 240px;
    left: -100px;
    bottom: 5%;
    background: radial-gradient(
        circle,
        rgba(216,6,33,.55),
        transparent 68%
    );
}

.hero-grid-lines {
    position: absolute;
    inset: 0;
    opacity: .16;
    pointer-events: none;
    background-image:
        linear-gradient(
            rgba(255,255,255,.08) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.08) 1px,
            transparent 1px
        );
    background-size: 90px 90px;
}

/* =========================================================
   MARQUEE
   ========================================================= */

.marquee-strip {
    overflow: hidden;
    background: var(--red);
    color: #fff;
    padding: 13px 0;
}

.marquee-track {
    width: max-content;
    display: flex;
    align-items: center;
    gap: 28px;
    font: 800 11px Manrope;
    letter-spacing: .13em;
    animation: marquee 28s linear infinite;
}

.marquee-track b {
    opacity: .6;
}

@keyframes marquee {
    to {
        transform: translateX(-50%);
    }
}

/* =========================================================
   GENERAL SECTIONS
   ========================================================= */

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.section-heading h2 {
    font-size: clamp(38px,5vw,64px);
    line-height: 1.03;
    letter-spacing: -.045em;
    margin: 18px 0;
}

.section-heading h2 span,
.lead span {
    color: var(--red);
}

.section-heading p,
.intro-copy p {
    color: var(--muted);
}

.lead {
    font-size: 20px;
    line-height: 1.5;
}

.intro-copy {
    padding-top: 20px;
}

.text-link {
    display: inline-flex;
    gap: 15px;
    margin-top: 20px;
    color: var(--red);
    font-weight: 800;
    font-size: 13px;
}

/* =========================================================
   SERVICES
   ========================================================= */

.section-dark {
    background: var(--black);
    color: #fff;
}

.section-heading.centered {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 55px;
}

.section-heading.centered p {
    color: rgba(255,255,255,.6);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px;
}

.service-card {
    min-height: 250px;
    padding: 28px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 20px;
    background: rgba(255,255,255,.035);
    position: relative;
    transition: .3s;
}

.service-card:hover {
    transform: translateY(-8px);
    background: rgba(216,6,33,.1);
    border-color: rgba(216,6,33,.5);
}

.service-card > span {
    color: var(--red);
    font: 700 11px Manrope;
}

.service-card h3 {
    font-size: 24px;
    margin: 50px 0 8px;
}

.service-card p {
    color: rgba(255,255,255,.55);
    font-size: 13px;
    max-width: 290px;
}

.service-card a {
    position: absolute;
    right: 25px;
    bottom: 25px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
}

/* =========================================================
   IMPACT
   ========================================================= */

.impact {
    background: #fff;
}

.impact-header {
    display: grid;
    grid-template-columns: 1fr .7fr;
    gap: 70px;
    align-items: end;
    margin-bottom: 55px;
}

.impact-intro {
    color: var(--muted);
    font-size: 18px;
    max-width: 480px;
    line-height: 1.55;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.stat {
    padding: 35px 25px;
    border-right: 1px solid var(--line);
    position: relative;
}

.stat:last-child {
    border-right: 0;
}

.stat strong {
    font: 800 clamp(48px,6vw,76px)/1 Manrope;
    letter-spacing: -.06em;
}

.stat > span {
    color: var(--red);
    font: 800 24px Manrope;
}

.stat p {
    color: var(--muted);
    font-size: 12px;
    margin: 12px 0 0;
    text-transform: uppercase;
    letter-spacing: .1em;
}

/* =========================================================
   REBIS
   ========================================================= */

.rebis {
    background: var(--soft);
}

.rebis-head {
    align-items: end;
    margin-bottom: 50px;
}

.rebis-grid {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 12px;
}

.rebis-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 20px;
    min-height: 255px;
}

.rebis-letter {
    font: 800 52px Manrope;
    color: var(--red);
    line-height: 1;
    margin-bottom: 35px;
}

.rebis-card h3 {
    font-size: 17px;
    margin: 0 0 8px;
}

.rebis-card p {
    color: var(--muted);
    font-size: 12px;
}

/* =========================================================
   PROGRAMME SHOWCASE
   ========================================================= */

.programmes-showcase {
    background: #f8f8f6;
}

.programme-feature-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr .85fr;
    grid-template-rows: 270px 270px;
    gap: 15px;
}

.programme-feature {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 260px;
    transition: .35s;
}

.programme-feature:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.programme-feature span {
    font-size: 9px;
    letter-spacing: .14em;
    font-weight: 800;
    opacity: .7;
    position: absolute;
    top: 27px;
    left: 30px;
}

.programme-feature h3 {
    font-size: 30px;
    line-height: 1;
    margin: 0 0 9px;
}

.programme-feature p {
    font-size: 12px;
    margin: 0 0 18px;
    max-width: 390px;
    opacity: .72;
}

.programme-feature b {
    font-size: 11px;
}

.feature-red {
    grid-row: span 2;
    background: var(--red);
    color: #fff;
    padding: 38px;
}

.feature-red h3 {
    font-size: clamp(42px,5vw,70px);
    max-width: 420px;
    letter-spacing: -.05em;
}

.feature-red p {
    font-size: 15px;
    max-width: 400px;
}

.feature-image {
    background:
        linear-gradient(
            0deg,
            rgba(0,0,0,.85),
            rgba(0,0,0,.15)
        ),
        url("../images/Picture2ii.jpg") center/cover;
    color: #fff;
}

.feature-dark {
    background: var(--black);
    color: #fff;
}

.feature-light {
    background: #fff;
    border: 1px solid var(--line);
}

/* =========================================================
   CARE
   ========================================================= */

.care-banner {
    position: relative;
    overflow: hidden;
    background: var(--black);
    color: #fff;
}

.care-banner-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 75% 40%,
            rgba(216,6,33,.38),
            transparent 35%
        );
}

.care-content {
    position: relative;
    min-height: 500px;
    display: grid;
    grid-template-columns: 1.1fr .7fr;
    align-items: center;
    gap: 80px;
}

.care-content h2 {
    font-size: clamp(44px,6vw,78px);
    line-height: .98;
    letter-spacing: -.05em;
    margin: 20px 0;
}

.care-content h2 span {
    color: #ff3049;
}

.care-side p {
    color: rgba(255,255,255,.65);
    font-size: 17px;
}

.care-side ul {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 18px;
    color: rgba(255,255,255,.62);
    font-size: 12px;
}

.care-side li::before {
    content: "✓";
    color: #ff3049;
    margin-right: 8px;
    font-weight: 800;
}

/* =========================================================
   OPPORTUNITIES
   ========================================================= */

.opportunity-cards {
    display: grid;
    gap: 14px;
}

.opportunity-card {
    padding: 27px;
    border: 1px solid var(--line);
    border-radius: 18px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 5px 20px;
    transition: .25s;
}

.opportunity-card:hover {
    border-color: var(--red);
    transform: translateX(8px);
}

.opportunity-card span {
    grid-column: 1/-1;
    color: var(--red);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
}

.opportunity-card strong {
    font: 700 21px Manrope;
}

.opportunity-card i {
    align-self: center;
    font-style: normal;
    font-size: 24px;
}

/* =========================================================
   CTA
   ========================================================= */

.cta {
    padding-top: 30px;
}

.cta-box {
    padding: 65px;
    border-radius: 28px;
    background: var(--black);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    overflow: hidden;
    position: relative;
}

.cta-box::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    right: -120px;
    top: -100px;
    background:
        radial-gradient(
            circle,
            rgba(216,6,33,.5),
            transparent 68%
        );
}

.cta-box > * {
    position: relative;
    z-index: 1;
}

.cta-box h2 {
    font-size: clamp(40px,5vw,64px);
    line-height: 1;
    margin: 15px 0 0;
}

.cta-box h2 span {
    color: #ff3049;
}

.cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* =========================================================
   7 ADVERTISEMENT SLIDER
   ========================================================= */

.ad-slider-section {
    padding: 80px 0;
    background: var(--soft);
}

.ad-slider-heading {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 35px;
}

.ad-slider-heading h2 {
    font-size: clamp(35px,5vw,58px);
    line-height: 1;
    letter-spacing: -.05em;
    margin: 15px 0;
}

.ad-slider-heading h2 span {
    color: var(--red);
}

.ad-slider-heading p {
    color: var(--muted);
    margin: 0;
}

.yfpc-ad-slider {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: var(--black);
    box-shadow: var(--shadow);
}

.yfpc-ad-track {
    display: flex;
    width: 700%;
    transition: transform .65s cubic-bezier(.22,.61,.36,1);
}

.yfpc-ad-slide {
    width: calc(100% / 7);
    flex: 0 0 calc(100% / 7);
    position: relative;
    min-height: 420px;
    overflow: hidden;
    color: #fff;
}

.yfpc-ad-slide img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    display: block;
}

.yfpc-ad-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 45px;
    background:
        linear-gradient(
            0deg,
            rgba(0,0,0,.88),
            rgba(0,0,0,.05) 75%
        );
}

.yfpc-ad-overlay h3 {
    font-size: clamp(30px,4vw,55px);
    line-height: 1;
    margin: 10px 0;
    max-width: 700px;
}

.yfpc-ad-overlay p {
    max-width: 620px;
    color: rgba(255,255,255,.75);
    margin: 0 0 20px;
}

.yfpc-ad-label {
    color: #ff3049;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.ad-slider-controls {
    position: absolute;
    inset: auto 30px 25px auto;
    display: flex;
    gap: 8px;
    z-index: 5;
}

.ad-slider-controls button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.3);
    background: rgba(0,0,0,.35);
    color: #fff;
    transition: .25s;
}

.ad-slider-controls button:hover {
    background: var(--red);
    border-color: var(--red);
}

.ad-slider-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 20px;
}

.ad-slider-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #ccc;
}

.ad-slider-dots button.active {
    width: 25px;
    border-radius: 20px;
    background: var(--red);
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    background: #080808;
    color: #fff;
    padding-top: 75px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr .8fr .8fr 1.3fr;
    gap: 50px;
    padding-bottom: 55px;
}

.footer-brand h3 {
    font-size: 18px;
    margin: 22px 0 5px;
}

.footer-brand p,
.newsletter p {
    color: rgba(255,255,255,.55);
    font-size: 13px;
    max-width: 330px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font: 800 22px Manrope;
}

.footer-logo img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.site-footer h4 {
    margin: 0 0 18px;
    font: 700 14px Manrope;
}

.site-footer > .container a {
    display: block;
    color: rgba(255,255,255,.6);
    font-size: 13px;
    margin: 10px 0;
}

.site-footer > .container a:hover {
    color: #fff;
}

/* Footer socials */

.socials {
    display: flex;
    gap: 8px;
    margin-top: 22px;
}

.socials a {
    width: 36px;
    height: 36px;
    display: grid !important;
    place-items: center;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;
    margin: 0 !important;
    font-size: 11px !important;
    transition: .25s;
}

.socials a:hover {
    background: var(--red);
    border-color: var(--red);
    transform: translateY(-3px);
}

/* Newsletter */

.newsletter-form {
    display: flex;
    background: #fff;
    border-radius: 12px;
    padding: 5px;
    margin-top: 20px;
}

.newsletter-form input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    padding: 10px 12px;
}

.newsletter-form button {
    width: 42px;
    border: 0;
    border-radius: 9px;
    background: var(--red);
    color: #fff;
}

.newsletter-form button:hover {
    background: var(--red-dark);
}

#newsletterMessage {
    display: block;
    color: #aaa;
    margin-top: 8px;
    font-size: 11px;
}

/* Footer bottom */

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.footer-bottom p {
    color: rgba(255,255,255,.4);
    font-size: 11px;
    margin: 0;
}

.footer-bottom div {
    display: flex;
    gap: 18px;
}

.footer-bottom div a {
    margin: 0 !important;
    font-size: 11px !important;
}

/* =========================================================
   FLOATING BUTTONS
   ========================================================= */

.back-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: .25s;
    box-shadow: 0 10px 25px rgba(216,6,33,.3);
}

.back-top.show {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.chat-launcher {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--black);
    padding: 11px 15px;
    border-radius: 999px;
    box-shadow: 0 12px 35px rgba(0,0,0,.16);
    font-size: 12px;
    font-weight: 800;
}

.chat-dot {
    width: 8px;
    height: 8px;
    background: #22a06b;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(34,160,107,.12);
}

/* =========================================================
   ANIMATION
   ========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity .8s ease,
        transform .8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

.delay-1 {
    transition-delay: .12s;
}

.delay-2 {
    transition-delay: .22s;
}

.delay-3 {
    transition-delay: .32s;
}

/* =========================================================
   ABOUT
   ========================================================= */

.about-dark {
    background: var(--black);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.about-dark:after {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    right: -220px;
    top: -160px;
    background:
        radial-gradient(
            circle,
            rgba(216,6,33,.45),
            transparent 68%
        );
}

.about-hero {
    min-height: 68vh;
    padding: 175px 0 90px;
}

.about-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr .7fr;
    gap: 90px;
    align-items: end;
}

.about-hero h1 {
    font: 800 clamp(52px,7vw,92px)/.95 Manrope;
    letter-spacing: -.06em;
    margin: 25px 0 0;
}

.about-hero h1 em {
    color: #ff3049;
    font-style: normal;
}

.about-hero-copy p {
    font-size: 19px;
    color: rgba(255,255,255,.68);
    margin: 0 0 28px;
}

.about-page-head {
    padding: 165px 0 85px;
    background: var(--soft);
}

.about-page-head h1 {
    font: 800 clamp(52px,7vw,88px)/.95 Manrope;
    letter-spacing: -.06em;
    margin: 20px 0;
}

.about-page-head h1 span {
    color: var(--red);
}

.about-page-head p {
    font-size: 18px;
    color: var(--muted);
    max-width: 620px;
}

.about-values {
    background: #f7f7f5;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 14px;
}

.value-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 30px;
    min-height: 260px;
    transition: .3s;
}

.value-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow);
}

.value-card b {
    color: var(--red);
    font: 800 12px Manrope;
}

.value-card h3 {
    font-size: 25px;
    margin: 65px 0 8px;
}

.value-card p {
    color: var(--muted);
    font-size: 13px;
}

.about-cta {
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 55px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.about-cta h2 {
    font: 800 clamp(35px,4vw,55px)/1 Manrope;
    letter-spacing: -.05em;
    max-width: 650px;
}

.btn-dark-outline {
    border: 1px solid var(--ink);
    color: var(--ink);
}

.mission-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 18px;
}

.mission-card {
    border-radius: 28px;
    padding: 45px;
    background: #f5f5f2;
    min-height: 390px;
}

.mission-card.mission-main {
    background: var(--black);
    color: #fff;
}

.mission-card > span {
    font: 800 11px Manrope;
    letter-spacing: .14em;
    color: var(--red);
}

.mission-card h2 {
    font-size: clamp(32px,4vw,54px);
    line-height: 1.03;
    letter-spacing: -.045em;
    margin: 35px 0 15px;
}

.mission-card p {
    color: var(--muted);
    max-width: 650px;
}

.mission-card.mission-main p {
    color: rgba(255,255,255,.58);
}

.objective-list {
    max-width: 1000px;
}

.objective {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 30px;
    padding: 35px 0;
    border-top: 1px solid var(--line);
}

.objective:last-child {
    border-bottom: 1px solid var(--line);
}

.objective > b {
    font: 800 18px Manrope;
    color: var(--red);
}

.objective h2 {
    font-size: 29px;
    margin: 0 0 6px;
}

.objective p {
    color: var(--muted);
    margin: 0;
}

/* =========================================================
   PROGRAMMES
   ========================================================= */

.programme-hero {
    position: relative;
    overflow: hidden;
    background: var(--black);
    color: #fff;
    padding: 165px 0 90px;
    min-height: 65vh;
}

.programme-hero:after {
    content: "";
    position: absolute;
    width: 650px;
    height: 650px;
    right: -280px;
    top: -250px;
    background:
        radial-gradient(
            circle,
            rgba(216,6,33,.48),
            transparent 67%
        );
}

.programme-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr .65fr;
    gap: 80px;
    align-items: end;
}

.programme-hero h1 {
    font: 800 clamp(55px,7.5vw,105px)/.9 Manrope;
    letter-spacing: -.07em;
    margin: 22px 0 0;
}

.programme-hero h1 em {
    font-style: normal;
    color: #ff3049;
}

.programme-hero-copy p {
    font-size: 20px;
    line-height: 1.45;
    color: rgba(255,255,255,.68);
    margin: 0 0 25px;
}

.programme-content-grid {
    display: grid;
    grid-template-columns: 1fr .9fr;
    gap: 90px;
}

.programme-content-grid p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--muted);
}

.programme-service-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 14px;
}

.programme-service-card {
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 24px;
    background: #fff;
    min-width: 0;
}

/* =========================================================
   YFPC — RESPONSIVE LAYOUT NORMALIZATION
   Desktop / iPad / Mobile alignment layer
========================================================= */

:root {
    --container: 1240px;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

.container {
    width: min(1240px, calc(100% - 40px));
    margin-inline: auto;
}

/* Keep major page sections on the same vertical grid as header/footer. */
main > section > .container,
main > .section > .container,
.site-footer > .container {
    width: min(1240px, calc(100% - 40px));
    margin-inline: auto;
}

/* Prevent long words / URLs from breaking desktop cards. */
section, article, aside, div {
    min-width: 0;
}

img, video, iframe {
    max-width: 100%;
}

/* ---------------- DESKTOP ---------------- */
@media (min-width: 1181px) {

    .container {
        width: min(1240px, calc(100% - 48px));
    }

    .nav-inner {
        min-height: 82px;
        gap: 16px;
    }

    .brand-logo {
        width: 58px;
        height: 58px;
    }

    .brand-copy strong {
        font-size: 1.05rem;
    }

    .brand-copy small {
        font-size: .58rem;
    }

    .nav-menu {
        gap: 0;
        flex: 1;
        justify-content: flex-end;
    }

    .nav-menu > a,
    .dropdown-trigger {
        padding-left: 6px;
        padding-right: 6px;
        font-size: .72rem;
    }

    .nav-donate {
        margin-left: 5px;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .hero-content {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 55px;
    }

    .split-grid {
        gap: clamp(45px, 6vw, 80px);
    }

    .service-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ---------------- LARGE TABLET / IPAD LANDSCAPE ---------------- */
@media (min-width: 769px) and (max-width: 1180px) {

    .container,
    main > section > .container,
    main > .section > .container {
        width: min(100% - 48px, 1000px);
    }

    .section {
        padding: 90px 0;
    }

    .hero-content {
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 35px;
        padding-top: 80px;
    }

    .hero h1 {
        font-size: clamp(48px, 7vw, 76px);
    }

    .split-grid,
    .programme-content-grid,
    .programme-hero-grid,
    .donate-hero-grid,
    .donation-layout,
    .trust-grid,
    .recruitment-layout {
        grid-template-columns: 1fr 1fr;
        gap: 45px;
    }

    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .programme-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .content-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---------------- IPAD PORTRAIT / TABLET ---------------- */
@media (min-width: 601px) and (max-width: 768px) {

    .container,
    main > section > .container,
    main > .section > .container {
        width: min(100% - 40px, 720px);
    }

    .section {
        padding: 78px 0;
    }

    .hero-content,
    .split-grid,
    .programme-content-grid,
    .programme-hero-grid,
    .donate-hero-grid,
    .donation-layout,
    .trust-grid,
    .recruitment-layout {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .hero-content {
        padding-top: 70px;
    }

    .hero-panel {
        max-width: 360px;
    }

    .service-grid,
    .programme-service-grid,
    .content-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---------------- MOBILE ---------------- */
@media (max-width: 600px) {

    .container,
    main > section > .container,
    main > .section > .container {
        width: calc(100% - 30px);
    }

    .section {
        padding: 68px 0;
    }

    .hero {
        min-height: 760px;
    }

    .hero-content {
        display: block;
        padding-top: 80px;
    }

    .hero-copy {
        max-width: 100%;
    }

    .hero h1 {
        font-size: clamp(43px, 13vw, 62px);
    }

    .hero-panel {
        margin-top: 35px;
        max-width: 100%;
    }

    .hero-scroll {
        display: none;
    }

    .split-grid,
    .programme-content-grid,
    .programme-hero-grid,
    .donate-hero-grid,
    .donation-layout,
    .trust-grid,
    .recruitment-layout,
    .service-grid,
    .programme-service-grid,
    .content-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .section-heading h2 {
        font-size: clamp(34px, 10vw, 48px);
    }

    .lead {
        font-size: 18px;
    }

    .programme-hero {
        padding-top: 130px;
    }

    .content-hero,
    .article-page,
    .dashboard-hero,
    .donate-hero {
        padding-top: 130px;
    }
}

/* ---------------- SMALL PHONE ---------------- */
@media (max-width: 420px) {

    .container,
    main > section > .container,
    main > .section > .container {
        width: calc(100% - 24px);
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .btn {
        min-height: 50px;
    }
}

/* ---------------- ACCESSIBILITY ---------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
