/*
Theme Name: NCC Home Child
Description: Custom homepage theme layer for North Curve Club. Requires Blocksy.
Author: North Curve Club
Template: blocksy
Version: 1.10.0
Text Domain: ncc-home-child
*/

:root {
    --ncc-home-ink: #17201f;
    --ncc-home-muted: #64716d;
    --ncc-home-green: #137a57;
    --ncc-home-yellow: #ffc400;
    --ncc-home-surface: #f5f8f6;
}

/* Global NCC header/footer: replace the default Blocksy chrome only, never page content. */
body #header,
body #footer {
    display: none;
}

.ncc-site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #e7ece9;
    background: #ffffff;
    transition: box-shadow .28s ease, background .28s ease;
}

body.admin-bar .ncc-site-header { top: 32px; }
.ncc-site-header.is-scrolled { box-shadow: 0 8px 24px rgba(18, 45, 38, .10); }

.ncc-site-header-inner {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
    align-items: center;
    width: min(1320px, calc(100% - 48px));
    min-height: 94px;
    margin: 0 auto;
}

.ncc-site-branding { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ncc-site-branding .custom-logo-link { display: flex; max-width: 72px; }
.ncc-site-branding .custom-logo { width: auto; max-height: 58px; }
.ncc-site-name { color: #17324d; font-size: 21px; font-weight: 800; line-height: 1.1; text-decoration: none; }
.ncc-site-nav { justify-self: center; }
.ncc-site-nav-list,
.ncc-mobile-nav-list,
.ncc-footer-nav-list { padding: 0; margin: 0; list-style: none; }
.ncc-site-nav-list { display: flex; align-items: center; gap: clamp(20px, 3vw, 42px); }
.ncc-site-nav-list a { color: #17324d; font-size: 13px; font-weight: 800; letter-spacing: .025em; text-decoration: none; text-transform: uppercase; }
.ncc-site-nav-list a:hover,
.ncc-site-nav-list .current-menu-item > a { color: #137a57; }
.ncc-header-donate { justify-self: end; padding: 12px 24px; border-radius: 999px; background: #ffc400; color: #13231f; font-size: 13px; font-weight: 800; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.ncc-header-donate:hover { background: #eeb600; color: #13231f; transform: translateY(-1px); }
.ncc-menu-toggle { display: none; }

.ncc-site-footer { background: #102622; color: #d9e4df; padding: 70px max(24px, calc((100vw - 1180px) / 2)) 24px; }
.ncc-site-footer-grid { display: grid; grid-template-columns: 1.35fr .85fr 1fr; gap: 70px; max-width: 1180px; margin: 0 auto; }
.ncc-footer-name { color: #fff; font-size: 28px; font-weight: 800; text-decoration: none; }
.ncc-footer-brand p,
.ncc-footer-contact p { max-width: 390px; margin: 18px 0 0; color: #afc0b9; line-height: 1.7; }
.ncc-site-footer h2 { margin: 0 0 18px; color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.ncc-footer-nav-list { display: grid; gap: 11px; }
.ncc-footer-nav-list a,
.ncc-footer-contact a { color: #d9e4df; text-decoration: none; }
.ncc-footer-nav-list a:hover,
.ncc-footer-contact a:hover { color: #ffc400; }
.ncc-footer-contact a { display: block; margin-top: 15px; color: #ffc400; font-weight: 700; }
.ncc-site-footer-bottom { display: flex; justify-content: space-between; max-width: 1180px; margin: 52px auto 0; padding-top: 22px; border-top: 1px solid rgba(217, 228, 223, .18); color: #9db0a8; font-size: 13px; }
.ncc-site-footer-bottom a { color: inherit; text-decoration: none; }

@media (prefers-reduced-motion: no-preference) {
    .ncc-home-hero { animation: ncc-hero-drift 18s ease-in-out infinite alternate; }
    .ncc-motion-ready .ncc-home-hero-content { opacity: 0; transform: translateY(20px); }
    .ncc-motion-ready .ncc-home-hero-content.ncc-revealed { opacity: 1; transform: translateY(0); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
    .ncc-motion-ready .ncc-reveal { opacity: 0; transform: translateY(28px); }
    .ncc-motion-ready .ncc-reveal.ncc-revealed { opacity: 1; transform: translateY(0); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.8,.2,1); }
    .ncc-motion-ready .ncc-reveal-card { opacity: 0; transform: translateY(20px) scale(.985); }
    .ncc-motion-ready .ncc-reveal-card.ncc-revealed { opacity: 1; transform: translateY(0) scale(1); transition: opacity .56s ease, transform .56s cubic-bezier(.2,.8,.2,1); }
    .ncc-home-focus-card, .ncc-home-how-card, .ncc-home-team-card, .ncc-home-featured-card { transition: transform .25s ease, box-shadow .25s ease; }
    .ncc-home-focus-card:hover, .ncc-home-how-card:hover, .ncc-home-team-card:hover { transform: translateY(-5px); }
    .ncc-home-team-card img { transition: transform .5s ease; }
    .ncc-home-team-card:hover img { transform: scale(1.025); }
}

@keyframes ncc-hero-drift {
    from { background-position: 48% 50%; }
    to { background-position: 54% 50%; }
}

.ncc-mobile-menu { display: none; }
.ncc-mobile-menu:not([hidden]) { display: block; }
.ncc-back-to-top { position: fixed; right: 24px; bottom: 24px; z-index: 200; display: grid; width: 46px; height: 46px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: #ffc400; color: #13231f; box-shadow: 0 10px 24px rgba(16, 38, 34, .22); cursor: pointer; font-size: 25px; font-weight: 700; line-height: 1; opacity: 0; pointer-events: none; transform: translateY(14px); transition: opacity .22s ease, transform .22s ease, background .2s ease; }
.ncc-back-to-top:hover { background: #eeb600; }
.ncc-back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.ncc-donation-toast { position: fixed; left: 24px; bottom: 24px; z-index: 190; display: grid; width: min(360px, calc(100vw - 48px)); padding: 16px 42px 16px 16px; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; border: 1px solid #dce7e1; border-radius: 14px; background: #fff; box-shadow: 0 18px 42px rgba(13, 39, 32, .19); color: #17324d; opacity: 0; transform: translateY(16px); transition: opacity .32s ease, transform .32s ease; }
.ncc-donation-toast.is-visible { opacity: 1; transform: translateY(0); }
.ncc-donation-toast-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: #eff8f3; color: #137a57; font-size: 16px; }
.ncc-donation-toast strong, .ncc-donation-toast-detail { display: block; }
.ncc-donation-toast strong { font-size: 14px; line-height: 1.35; }
.ncc-donation-toast-detail { margin-top: 2px; color: #64716d; font-size: 12px; }
.ncc-donation-toast-close { position: absolute; top: 8px; right: 9px; padding: 4px 7px; border: 0; background: transparent; color: #64716d; cursor: pointer; font-size: 19px; line-height: 1; }

.ncc-home-page {
    overflow: hidden;
    background: #ffffff;
}

.ncc-home-hero {
    position: relative;
    display: grid;
    min-height: min(760px, 88vh);
    place-items: center;
    padding: 180px 24px 110px;
    background: #173b35 center / cover no-repeat;
    color: #ffffff;
    text-align: center;
}

.ncc-home-hero::before {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 24, 22, 0.86), rgba(8, 24, 22, 0.34));
    content: "";
}

.ncc-home-hero-content {
    position: relative;
    z-index: 1;
    width: min(860px, 100%);
}

.ncc-home-eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--ncc-home-yellow);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ncc-home-hero h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(44px, 7vw, 82px);
    line-height: 1.04;
}

.ncc-home-hero p {
    max-width: 680px;
    margin: 24px auto 0;
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.6;
}

.ncc-home-hero-actions,
.ncc-home-featured-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 34px;
}

.ncc-home-button {
    display: inline-block;
    min-width: 170px;
    padding: 16px 24px;
    border-radius: 8px;
    background: var(--ncc-home-yellow);
    color: #111111;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.ncc-home-button:hover {
    background: #e6ad00;
    color: #111111;
    box-shadow: 0 10px 18px rgba(255, 196, 0, .24);
    transform: translateY(-2px);
}
.ncc-home-button:active { transform: translateY(0) scale(.98); }

.ncc-home-button-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.72);
    color: #ffffff;
}

.ncc-home-button-secondary:hover {
    background: #ffffff;
    color: var(--ncc-home-ink);
}

.ncc-home-section {
    width: min(1180px, calc(100% - 40px));
    margin: 104px auto;
}

.ncc-home-section-heading {
    max-width: 700px;
    margin: 0 auto 40px;
    text-align: center;
}

.ncc-home-section-heading span {
    color: var(--ncc-home-green);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ncc-home-section-heading h2 {
    margin: 10px 0 12px;
    color: var(--ncc-home-ink);
    font-size: clamp(32px, 4.5vw, 52px);
    line-height: 1.1;
}

.ncc-home-section-heading p {
    margin: 0;
    color: var(--ncc-home-muted);
    font-size: 17px;
    line-height: 1.6;
}

.ncc-home-featured-card {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e9e5;
    border-radius: 24px;
    box-shadow: 0 18px 48px rgba(43, 61, 79, 0.1);
}

.ncc-home-featured-image-link {
    display: block;
    min-height: 470px;
    background: #dbe8e1;
}

.ncc-home-featured-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ncc-home-featured-image-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    min-height: 470px;
    place-items: center;
    background: linear-gradient(135deg, #153b35, #2e705d);
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
}

.ncc-home-featured-content {
    display: flex;
    flex-direction: column;
    padding: 52px;
}

.ncc-home-featured-status {
    color: var(--ncc-home-green);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ncc-home-featured-content h3 {
    margin: 13px 0 16px;
    color: var(--ncc-home-ink);
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.13;
}

.ncc-home-featured-content h3 a {
    color: inherit;
    text-decoration: none;
}

.ncc-home-featured-excerpt {
    margin: 0 0 28px;
    color: var(--ncc-home-muted);
    font-size: 16px;
    line-height: 1.65;
}

.ncc-home-progress-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--ncc-home-muted);
    font-size: 13px;
}

.ncc-home-progress-meta strong {
    color: var(--ncc-home-ink);
    font-size: 22px;
}

.ncc-home-progress {
    height: 8px;
    margin: 13px 0 30px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7eeea;
}

.ncc-home-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--ncc-home-yellow);
    transition: width 1.25s cubic-bezier(.2,.8,.2,1);
}

.ncc-home-featured-actions {
    justify-content: flex-start;
    margin-top: auto;
}

.ncc-home-featured-all {
    align-self: center;
    color: var(--ncc-home-ink);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.ncc-home-focus {
    background: var(--ncc-home-surface);
    padding: 100px max(20px, calc((100vw - 1180px) / 2));
}

.ncc-home-impact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    overflow: hidden;
    margin: 104px 0;
    background: #f8f5ef;
    perspective: 1200px;
}

.ncc-home-impact-image { position: relative; min-height: 680px; overflow: hidden; background: #dce9e4; transform-style: preserve-3d; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease; will-change: transform; }
.ncc-home-impact-image::after { position: absolute; z-index: 1; inset: 0; background: linear-gradient(155deg, rgba(8, 28, 24, .05) 30%, rgba(8, 28, 24, .5) 100%); content: ""; pointer-events: none; }
.ncc-home-impact-image img { display: block; width: 100%; height: 100%; object-fit: cover; transform: translateZ(0) scale(1.025); transition: transform .5s ease; }
.ncc-home-impact-image-placeholder { background: linear-gradient(135deg, #15483e, #7f9f87); }
.ncc-impact-visual-title { position: absolute; z-index: 2; right: 9%; bottom: 13%; left: 9%; color: #fff; font-size: clamp(32px, 4vw, 58px); font-weight: 800; line-height: 1.08; text-align: center; text-shadow: 0 6px 18px rgba(0,0,0,.25); transform: translateZ(58px); }
.ncc-home-impact-content { max-width: 620px; padding: 92px clamp(30px, 7vw, 110px); }
.ncc-home-impact-content .ncc-home-eyebrow { color: var(--ncc-home-green); }
.ncc-home-impact-content h2 { margin: 0; color: var(--ncc-home-ink); font-size: clamp(36px, 4vw, 58px); line-height: 1.08; }
.ncc-home-impact-intro { margin: 22px 0 42px; color: var(--ncc-home-muted); font-size: 17px; line-height: 1.65; }
.ncc-home-impact-list { display: grid; gap: 28px; }
.ncc-home-impact-list article { display: grid; grid-template-columns: 42px 1fr; gap: 14px; }
.ncc-home-impact-list article > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: #fff1b5; font-size: 18px; }
.ncc-home-impact-list h3 { margin: 2px 0 7px; color: var(--ncc-home-ink); font-size: 22px; }
.ncc-home-impact-list p { margin: 0; color: var(--ncc-home-muted); line-height: 1.6; }

.ncc-home-stats { margin: 104px 0; padding: 92px 24px; background: #163e36; color: #fff; }
.ncc-home-stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; width: min(1180px, 100%); margin: 0 auto; text-align: center; }
.ncc-home-stats-grid strong { display: block; color: #ffc400; font-size: clamp(42px, 5vw, 74px); line-height: 1; }
.ncc-home-stats-grid span { display: block; margin-top: 13px; font-size: 18px; font-weight: 700; }

.ncc-home-team-slider { position: relative; }
.ncc-home-team-track { display: grid; grid-auto-columns: calc((100% - 72px) / 4); grid-auto-flow: column; gap: 24px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; }
.ncc-home-team-track::-webkit-scrollbar { display: none; }
.ncc-home-team-card { scroll-snap-align: start; text-align: center; }
.ncc-home-team-card img,
.ncc-home-team-placeholder { display: block; width: 100%; aspect-ratio: 1 / 1.12; object-fit: cover; border-radius: 16px; background: #e6ece8; }
.ncc-home-team-placeholder { display: grid; place-items: center; color: #173b35; font-weight: 800; font-size: 22px; }
.ncc-home-team-card h3 { margin: 18px 0 5px; color: var(--ncc-home-ink); font-size: 21px; }
.ncc-home-team-card p { margin: 0; color: var(--ncc-home-muted); }
.ncc-team-arrow { position: absolute; z-index: 2; top: 42%; width: 46px; height: 46px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 8px 22px rgba(23, 32, 31, .17); color: var(--ncc-home-ink); cursor: pointer; font-size: 22px; }
.ncc-team-prev { left: -23px; }.ncc-team-next { right: -23px; }

.ncc-home-focus-grid,
.ncc-home-how-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.ncc-home-focus-card,
.ncc-home-how-card {
    padding: 30px;
    border: 1px solid #e4ebe7;
    border-radius: 18px;
    background: #ffffff;
}

.ncc-home-focus-icon,
.ncc-home-how-number {
    display: grid;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    place-items: center;
    border-radius: 50%;
    background: #fff3be;
    font-size: 20px;
    font-weight: 700;
}

.ncc-home-focus-card h3,
.ncc-home-how-card h3 {
    margin: 0 0 10px;
    color: var(--ncc-home-ink);
    font-size: 22px;
}

.ncc-home-focus-card p,
.ncc-home-how-card p {
    margin: 0;
    color: var(--ncc-home-muted);
    line-height: 1.65;
}

.ncc-home-final-cta {
    margin: 104px 20px 0;
    padding: 84px 24px;
    border-radius: 24px 24px 0 0;
    background: #173b35;
    color: #ffffff;
    text-align: center;
}

.ncc-home-final-cta h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.1;
}

.ncc-home-final-cta p {
    max-width: 620px;
    margin: 18px auto 0;
    font-size: 18px;
    line-height: 1.6;
}

@media (max-width: 800px) {
    .ncc-site-header-inner {
        grid-template-columns: 1fr auto;
        width: min(100% - 40px, 640px);
        min-height: 76px;
    }

    .ncc-site-branding .custom-logo-link { max-width: 56px; }
    .ncc-site-branding .custom-logo { max-height: 46px; }
    .ncc-site-name { font-size: 18px; }
    .ncc-site-nav,
    .ncc-header-donate { display: none; }
    .ncc-menu-toggle {
        display: grid;
        width: 42px;
        height: 42px;
        padding: 10px;
        border: 0;
        background: transparent;
        cursor: pointer;
        gap: 5px;
    }
    .ncc-menu-toggle span:not(.screen-reader-text) { display: block; height: 2px; background: #17324d; }
    .ncc-mobile-menu {
        position: fixed;
        z-index: 1000;
        inset: 0;
        padding: 0;
        background: rgba(12, 28, 26, .42);
        text-align: center;
    }
    .ncc-menu-is-open { overflow: hidden; }
    .ncc-mobile-menu-panel { position: absolute; top: 0; right: 0; display: flex; width: min(85vw, 460px); min-height: 100%; padding: 100px 28px 32px; flex-direction: column; background: #0c1c1a; box-shadow: -18px 0 44px rgba(0, 0, 0, .18); transform: translateX(100%); transition: transform .34s cubic-bezier(.22,.8,.25,1); }
    .ncc-mobile-menu.is-open .ncc-mobile-menu-panel { transform: translateX(0); }
    .ncc-mobile-menu-close { position: absolute; top: 21px; right: 24px; border: 0; background: transparent; color: #fff; font-size: 36px; line-height: 1; cursor: pointer; }
    .ncc-mobile-nav-list { display: grid; gap: 22px; }
    .ncc-mobile-nav-list a { color: #fff; font-size: 28px; font-weight: 800; text-decoration: none; }
    .ncc-mobile-nav-list .current-menu-item > a { color: #ffc400; }
    .ncc-mobile-donate { display: inline-block; margin-top: 42px; padding: 15px 30px; border-radius: 999px; background: #ffc400; color: #13231f; font-weight: 800; text-decoration: none; }
    .ncc-back-to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
    .ncc-donation-toast { left: 16px; bottom: 16px; width: min(360px, calc(100vw - 32px)); }

    .ncc-home-hero {
        min-height: 640px;
        padding: 150px 24px 84px;
        text-align: left;
    }

    .ncc-home-hero p {
        margin-right: 0;
        margin-left: 0;
    }

    .ncc-home-hero-actions {
        justify-content: flex-start;
    }

    .ncc-home-section {
        width: min(100% - 32px, 560px);
        margin: 68px auto;
    }

    .ncc-home-featured-card,
    .ncc-home-focus-grid,
    .ncc-home-how-grid,
    .ncc-home-impact {
        grid-template-columns: 1fr;
    }

    .ncc-home-stats { margin: 68px 0; padding: 62px 24px; }
    .ncc-home-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 38px 20px; }
    .ncc-home-team-track { grid-auto-columns: calc((100% - 18px) / 1.75); gap: 18px; scroll-snap-type: x mandatory; }
    .ncc-team-arrow { display: none; }

    .ncc-home-featured-image-link,
    .ncc-home-featured-image-placeholder {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .ncc-home-featured-content {
        padding: 30px 24px;
    }

    .ncc-home-featured-actions {
        justify-content: flex-start;
    }

    .ncc-home-featured-actions .ncc-home-button {
        width: 100%;
        text-align: center;
    }

    .ncc-home-focus {
        padding: 68px 16px;
    }

    .ncc-home-impact { margin: 68px 0; }
    .ncc-home-impact-image { min-height: 0; aspect-ratio: 4 / 3; }
    .ncc-impact-visual-title { right: 8%; bottom: 11%; left: 8%; font-size: clamp(27px, 7vw, 38px); }
    .ncc-home-impact-content { padding: 58px 24px; }

    .ncc-home-final-cta {
        margin: 68px 0 0;
        border-radius: 0;
    }

    .ncc-site-footer { padding: 52px 24px 22px; }
    .ncc-site-footer-grid { grid-template-columns: 1fr; gap: 38px; }
    .ncc-site-footer-bottom { gap: 18px; margin-top: 42px; }
}

@media (max-width: 782px) {
    body.admin-bar .ncc-site-header { top: 46px; }
}
