@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=DM+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --navy: #0B162B;
    --navy-2: #12304A;
    --teal: #0D7C77;
    --teal-light: #DDF2EF;
    --coral: #E36B52;
    --gold: #D9A441;
    --gold-light: #F5D98A;
    --ivory: #FAF6EC;
    --paper: #FFFDF8;
    --ink: #172033;
    --muted: #5D6878;
    --primary: var(--teal);
    --accent: var(--coral);
    --highlight: var(--gold);
    --cream: var(--ivory);
    --dark: var(--navy);
    --bg-body: var(--ivory);
    --text-main: var(--ink);
    --shadow-sm: 0 7px 20px rgba(11,22,43,.07);
    --shadow-md: 0 18px 50px rgba(11,22,43,.11);
    --shadow-lg: 0 32px 80px rgba(11,22,43,.16);
    --radius-md: 18px;
    --radius-lg: 30px;
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: 'DM Sans', system-ui, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 7% 8%, rgba(13,124,119,.06), transparent 22rem),
        var(--ivory);
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: var(--navy);
    letter-spacing: -.025em;
}
h1 { font-size: clamp(3.2rem, 7vw, 6.4rem); line-height: .94; }
h2 { font-size: clamp(2.45rem, 5vw, 4.25rem); line-height: 1; }
h3 { font-size: clamp(1.65rem, 3vw, 2.3rem); }
p { color: var(--muted); }
.container { width: min(92%, 1240px); }
.section { padding: clamp(5rem, 9vw, 8rem) 0; }
.reveal { opacity: 1; transform: none; }

/* Brand header and wordmark */
.header {
    min-height: 76px;
    padding: .65rem 0;
    background: rgba(255,253,248,.9);
    border-bottom: 1px solid rgba(11,22,43,.07);
    box-shadow: 0 10px 34px rgba(11,22,43,.06);
    backdrop-filter: blur(20px) saturate(1.2);
}
.cc-brand { gap: .7rem; }
.cc-brand-mark { width: 52px; height: 52px; flex: 0 0 auto; border-radius: 50%; box-shadow: 0 8px 22px rgba(11,22,43,.16); }
.cc-brand-copy { display: grid; line-height: 1; }
.cc-brand-copy strong { color: var(--navy); font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 900; letter-spacing: .13em; }
.cc-brand-copy small { color: var(--teal); font-family: 'DM Sans', sans-serif; font-size: .69rem; font-weight: 800; letter-spacing: .34em; margin-top: .38rem; }
.nav-links { gap: .1rem; }
.nav-link {
    color: #304056;
    font-family: 'DM Sans', sans-serif;
    font-size: .76rem;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: .58rem .7rem;
}
.nav-link:hover, .nav-link.active { color: var(--teal); background: rgba(13,124,119,.08); }
.nav-link.btn-accent { background: var(--navy) !important; border-color: var(--navy) !important; color: white !important; padding-inline: 1rem; }

/* Buttons */
.btn {
    min-height: 50px;
    padding: .88rem 1.45rem;
    border-radius: 14px;
    font-family: 'DM Sans', sans-serif;
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .08em;
    box-shadow: none;
}
.btn-primary { background: var(--teal); color: white; }
.btn-primary:hover { background: #086B67; box-shadow: 0 12px 28px rgba(13,124,119,.22); }
.btn-accent { background: var(--coral); color: white; }
.btn-accent:hover { background: #C95741; box-shadow: 0 12px 28px rgba(227,107,82,.22); }
.btn-outline { border-color: rgba(11,22,43,.26); color: var(--navy); background: rgba(255,255,255,.62); }
.btn-outline:hover { background: var(--navy); border-color: var(--navy); color: white; }

/* Two audience hero experiences */
.brand-hero {
    position: relative;
    min-height: 760px;
    display: grid;
    align-items: center;
    overflow: hidden;
    padding: 150px 0 80px;
    isolation: isolate;
}
.brand-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -3;
    background:
        radial-gradient(circle at 80% 28%, rgba(245,217,138,.24), transparent 24rem),
        radial-gradient(circle at 12% 82%, rgba(13,124,119,.18), transparent 25rem),
        linear-gradient(145deg, #071424 0%, #102B42 55%, #0A5555 125%);
}
.brand-hero--youth::before {
    background:
        radial-gradient(circle at 78% 28%, rgba(227,107,82,.25), transparent 24rem),
        radial-gradient(circle at 12% 82%, rgba(245,217,138,.18), transparent 25rem),
        linear-gradient(145deg, #101A31 0%, #18384A 55%, #7B3E35 135%);
}
.brand-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: .12;
    background-image: linear-gradient(rgba(255,255,255,.3) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.3) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, black, transparent 86%);
}
.brand-hero-grid::after {
    content: '';
    position: absolute;
    inset: 0 0 0 42%;
    z-index: -1;
    background: url('../assets/checkmate-community-banner-v1.webp') center/cover no-repeat;
    opacity: .15;
    mask-image: linear-gradient(90deg, transparent, #000 28%, #000);
    pointer-events: none;
}
.brand-hero-grid { position: relative; }
.brand-hero-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(310px,.85fr); gap: clamp(2rem, 6vw, 6.5rem); align-items: center; }
.brand-hero-copy { position: relative; z-index: 3; }
.brand-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .52rem .9rem;
    border: 1px solid rgba(245,217,138,.34);
    border-radius: 999px;
    background: rgba(255,255,255,.075);
    color: var(--gold-light);
    font-size: .73rem;
    font-weight: 850;
    letter-spacing: .17em;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
}
.brand-hero h1 { color: white; margin: 1.25rem 0 1.4rem; max-width: 840px; text-shadow: 0 12px 50px rgba(0,0,0,.22); }
.brand-hero h1 em { color: var(--gold-light); font-style: normal; }
.brand-hero--youth h1 em { color: #FFAB94; }
.brand-hero-lede { max-width: 700px; color: rgba(255,255,255,.78); font-size: clamp(1.02rem, 1.8vw, 1.22rem); line-height: 1.8; }
.brand-hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }
.brand-hero .btn-outline { color: white; border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.06); }
.brand-hero .btn-outline:hover { background: white; color: var(--navy); }
.brand-trust-row { display: flex; flex-wrap: wrap; gap: .7rem 1.25rem; margin-top: 2rem; color: rgba(255,255,255,.63); font-size: .77rem; font-weight: 650; letter-spacing: .03em; }
.brand-trust-row span::before { content: '\2713'; color: var(--gold-light); margin-right: .4rem; font-weight: 900; }
.brand-hero-visual { position: relative; min-height: 560px; display: grid; place-items: end center; }
.brand-hero-visual::before {
    content: '';
    position: absolute;
    width: min(38vw, 480px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217,164,65,.23), rgba(13,124,119,.08) 55%, transparent 72%);
    border: 1px solid rgba(245,217,138,.15);
    box-shadow: 0 0 0 30px rgba(255,255,255,.025), 0 0 0 60px rgba(255,255,255,.018);
    top: 48%;
    left: 50%;
    transform: translate(-50%,-50%);
}
.brand-kingsley { position: relative; z-index: 2; width: min(100%, 470px); max-height: 640px; object-fit: contain; filter: drop-shadow(0 35px 45px rgba(0,0,0,.35)); border-radius: 0; }
.kingsley-note {
    position: absolute;
    z-index: 4;
    right: -1rem;
    top: 18%;
    max-width: 205px;
    padding: 1rem 1.05rem;
    border-radius: 20px 20px 20px 4px;
    background: var(--paper);
    color: var(--navy);
    font-size: .86rem;
    font-weight: 750;
    line-height: 1.45;
    box-shadow: var(--shadow-lg);
}
.kingsley-note strong { color: var(--teal); }

/* Audience switcher */
.cc-modebar {
    top: 88px;
    padding: .44rem;
    gap: .28rem;
    background: rgba(7,20,36,.94);
    border: 1px solid rgba(217,164,65,.38);
    box-shadow: 0 16px 40px rgba(0,0,0,.28);
    backdrop-filter: blur(16px);
}
.cc-modebar .cc-lbl { color: var(--gold-light); font-size: .67rem; letter-spacing: .12em; text-transform: uppercase; }
.cc-modebar button { font-family: 'DM Sans', sans-serif; font-size: .78rem; padding: .63rem 1rem; }
.cc-modebar button.on { background: var(--teal); box-shadow: 0 5px 18px rgba(13,124,119,.3); }
.cc-modebar button.youth.on { background: var(--coral); box-shadow: 0 5px 18px rgba(227,107,82,.3); }

/* Elevated content rhythm */
.intro-strip, .values-section, .ctarow-section, .final-cta { background: var(--paper); }
.intro-grid { gap: 1rem; }
.intro-card, .value-card, .serve-pill, .step-card, .cta-tile {
    border: 1px solid rgba(11,22,43,.075);
    background: rgba(255,255,255,.84);
    box-shadow: var(--shadow-sm);
    border-radius: 24px;
}
.intro-card { text-align: left; padding: 1.6rem; }
.intro-card-icon { margin: 0 0 1.2rem; border-radius: 17px; background: var(--teal-light); color: var(--teal); }
.intro-card h4, .serve-pill span, .step-card h4, .activity-card h4, .cta-tile h4 { font-family: 'DM Sans', sans-serif; letter-spacing: -.02em; color: var(--navy); }
.serve-section { background: linear-gradient(180deg, var(--ivory), #EFF7F5); }
.serve-pill { padding: 1.8rem 1rem; }
.serve-pill i { color: var(--teal); }
.activity-grid { gap: 1.2rem; }
.activity-card { border-radius: 26px; overflow: hidden; border: 1px solid rgba(11,22,43,.075); box-shadow: var(--shadow-sm); background: white; }
.activity-card-img { height: 190px; position: relative; overflow: hidden; background: linear-gradient(145deg, #0E2A40, #0D7C77); }
.activity-card-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,20,36,.42), transparent 55%); }
.activity-card-img img { display: block !important; width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.activity-card:hover .activity-card-img img { transform: scale(1.045); }
.activity-card-body { padding: 1.55rem; }
.steps-section, .impact-section, .mission-band {
    background:
        radial-gradient(circle at 85% 20%, rgba(217,164,65,.14), transparent 22rem),
        linear-gradient(145deg, #071424, #12304A) !important;
}
.steps-section h2, .steps-section h4, .impact-section h2, .mission-band h2 { color: white; }
.steps-section p, .impact-section p, .mission-band p { color: rgba(255,255,255,.72) !important; }
.step-card { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.12); box-shadow: none; }
.step-card h4 { color: white; }
.step-num { background: var(--gold) !important; color: var(--navy) !important; }
.cta-tile { padding: 2rem 1.5rem; }
.cta-tile:hover { border-color: rgba(13,124,119,.28); box-shadow: var(--shadow-md); }

/* Inner pages */
.page-hero { height: min(62vh, 620px); min-height: 470px; margin-top: 76px; background: linear-gradient(145deg, #071424, #12304A 64%, #0D6663); }
.page-hero-bg { opacity: .45; animation: none; background-position: center; background-size: cover; }
.page-hero-overlay { background: linear-gradient(95deg, rgba(7,20,36,.92), rgba(7,20,36,.58) 62%, rgba(7,20,36,.35)); }
.page-hero::after { background: linear-gradient(to top, var(--ivory), transparent); }
.page-hero-title { color: white; font-size: clamp(3.1rem, 7vw, 5.8rem); }
.page-hero-sub { color: rgba(255,255,255,.78); font-family: 'DM Sans', sans-serif; line-height: 1.7; }
.page-hero-badge { color: var(--gold-light); border-color: rgba(217,164,65,.4); background: rgba(255,255,255,.06); font-family: 'DM Sans', sans-serif; }

/* Family legacy harmonized with the new identity */
.legacy-section { background: linear-gradient(145deg, #F8F1DF, #FFFDF8 48%, #E4F2EF); }
.legacy-kicker { background: rgba(13,124,119,.1); color: var(--teal); font-family: 'DM Sans', sans-serif; }
.legacy-card { border-radius: 28px; box-shadow: var(--shadow-md); }
.legacy-icon { background: var(--navy); }
.legacy-card:nth-child(2) .legacy-icon { background: var(--coral); }

/* Community events */
.event-spotlight {
    padding: clamp(4.5rem, 8vw, 7rem) 0;
    background:
        radial-gradient(circle at 92% 12%, rgba(217,164,65,.16), transparent 22rem),
        linear-gradient(145deg, #FFFDF8, #F1F8F6 58%, #FFF3EC);
    border-block: 1px solid rgba(11,22,43,.07);
}
.event-spotlight-grid { display: grid; grid-template-columns: minmax(260px,.72fr) minmax(0,1.28fr); gap: clamp(2.2rem, 6vw, 5.5rem); align-items: center; }
.event-flyer { display: block; max-width: 520px; justify-self: center; border-radius: 28px; overflow: hidden; box-shadow: 0 28px 70px rgba(7,20,36,.22); transform: rotate(-1.1deg); transition: transform .35s ease, box-shadow .35s ease; }
.event-flyer:hover { transform: rotate(0) translateY(-6px); box-shadow: 0 34px 80px rgba(7,20,36,.28); }
.event-flyer img { display: block; width: 100%; }
.event-eyebrow { color: var(--teal); background: var(--teal-light); border-color: rgba(13,124,119,.2); }
.event-spotlight-copy h2 { margin: .9rem 0 1.1rem; }
.event-intro { max-width: 680px; font-size: 1.08rem; line-height: 1.75; }
.event-facts { display: grid; gap: .72rem; margin: 1.7rem 0; }
.event-facts span { display: grid; grid-template-columns: 24px 1fr; column-gap: .7rem; color: var(--muted); line-height: 1.5; }
.event-facts i { grid-row: 1 / span 2; color: var(--coral); margin-top: .18rem; }
.event-facts strong { color: var(--navy); }
.event-role-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: .75rem; margin: 1.7rem 0; }
.event-role-grid div { padding: 1.15rem; border-radius: 18px; background: rgba(255,255,255,.86); border: 1px solid rgba(11,22,43,.08); box-shadow: var(--shadow-sm); }
.event-role-grid strong { display: block; color: var(--coral); font-family: 'DM Sans',sans-serif; text-transform: uppercase; font-size: .78rem; letter-spacing: .09em; margin-bottom: .4rem; }
.event-role-grid span { color: var(--muted); font-size: .88rem; line-height: 1.5; }
.event-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.save-date { margin-top: 1.7rem; padding: 1.2rem 1.3rem; border-left: 5px solid var(--gold); border-radius: 4px 18px 18px 4px; background: var(--navy); }
.save-date span { display: block; color: var(--gold-light); font-size: .69rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.save-date strong { display: block; color: white; margin: .35rem 0; font-size: 1.02rem; }
.save-date p { color: rgba(255,255,255,.7); font-size: .86rem; line-height: 1.55; margin: 0; }

/* Footer */
.site-footer { background: #071424; padding-top: 5.5rem; border-top: 4px solid var(--gold); }
.cc-footer-brand { align-items: center; gap: .8rem; }
.cc-footer-brand img { width: 54px; height: 54px; border-radius: 50%; }
.cc-footer-brand-copy { display: grid; line-height: 1; }
.cc-footer-brand-copy strong { color: white; font-family: 'DM Sans', sans-serif; font-size: 1rem; letter-spacing: .12em; }
.cc-footer-brand-copy small { color: var(--gold-light); font-family: 'DM Sans', sans-serif; font-size: .66rem; letter-spacing: .28em; margin-top: .4rem; }
.footer-col h5 { color: var(--gold-light); font-family: 'DM Sans', sans-serif; }
.footer-nav-list a, .footer-contact-line, .footer-brand p { color: rgba(255,255,255,.6); }

@media (max-width: 1100px) {
    .cc-brand-copy strong { font-size: .88rem; }
    .cc-brand-copy small { font-size: .6rem; }
    .nav-link { padding-inline: .5rem; font-size: .68rem; }
    .brand-hero-grid { grid-template-columns: 1fr .78fr; }
}
@media (max-width: 900px) {
    .cc-brand-mark { width: 44px; height: 44px; }
    .nav-links { background: var(--paper); }
    .brand-hero { min-height: auto; padding: 170px 0 70px; }
    .brand-hero-grid { grid-template-columns: 1fr; text-align: center; }
    .brand-hero-copy { display: grid; justify-items: center; }
    .brand-hero-actions, .brand-trust-row { justify-content: center; }
    .brand-hero-visual { min-height: 430px; margin-top: 1rem; }
    .brand-kingsley { width: min(90%, 400px); max-height: 500px; }
    .kingsley-note { right: 4%; }
    .brand-hero-grid::after { inset: 0; opacity: .1; mask-image: linear-gradient(to bottom, #000, transparent 78%); }
    .event-spotlight-grid { grid-template-columns: 1fr; }
    .event-flyer { max-width: 430px; }
}
@media (max-width: 600px) {
    .header { min-height: 68px; }
    .cc-brand-copy strong { font-size: .78rem; }
    .cc-brand-copy small { font-size: .53rem; letter-spacing: .25em; }
    .cc-modebar { top: 76px; max-width: calc(100vw - 24px); }
    .cc-modebar button { padding: .56rem .72rem; }
    .brand-hero { padding-top: 170px; }
    .brand-hero h1 { font-size: clamp(3rem, 15vw, 4.2rem); }
    .brand-hero-actions { display: grid; width: 100%; }
    .brand-hero-actions .btn { width: 100%; }
    .brand-trust-row { display: grid; gap: .5rem; }
    .brand-hero-visual { min-height: 390px; }
    .brand-kingsley { max-height: 430px; }
    .kingsley-note { top: 10%; right: 0; max-width: 170px; font-size: .76rem; }
    .intro-card { text-align: center; }
    .intro-card-icon { margin-inline: auto; }
    .event-role-grid { grid-template-columns: 1fr; }
    .event-actions { display: grid; }
    .event-actions .btn { width: 100%; }
    .event-flyer { border-radius: 20px; transform: none; }
    .page-hero { margin-top: 68px; min-height: 440px; }
}

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