/* ==========================================================================
   KingsWord Toronto — Events, ministry pages, featured slider, footer grid
   Loaded after the main bundle. Uses the site's existing colour tokens.
   ========================================================================== */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---- Footer: 4 columns on desktop (Quick Links added) ------------------- */
@media (min-width: 768px) {
    .grid.kw-footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem; }
}

/* ==========================================================================
   Featured slider — full width, auto-sliding, no arrows / dots
   Portrait artwork on phones, landscape artwork from 768px up.
   ========================================================================== */
.kw-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: hsl(var(--church-dark));
    aspect-ratio: 913 / 1280;
}
@media (min-width: 768px) {
    .kw-slider { aspect-ratio: 2 / 1; }
}
.kw-slide {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity .9s ease, visibility 0s linear .9s;
}
.kw-slide.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity .9s ease;
    z-index: 1;
}
.kw-slide picture, .kw-slide img {
    display: block;
    width: 100%;
    height: 100%;
}
.kw-slide img { object-fit: cover; }
.kw-slide:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
@media (prefers-reduced-motion: reduce) {
    .kw-slide, .kw-slide.is-active { transition: none; }
}

/* ==========================================================================
   Ministry / event pages
   ========================================================================== */
.ev-page {
    --ev-accent: #f5c518;
    --ev-blue: #006194;
    --ev-blue-dark: #004a73;
    --ev-ink: hsl(var(--foreground));
    --ev-muted: hsl(var(--muted-foreground));
    --ev-navy: hsl(var(--church-dark));
}
.ev-theme-family   { --ev-accent: #ee5a2c; }
.ev-theme-kti      { --ev-accent: #e8472b; }
.ev-theme-seed     { --ev-accent: #f5c518; }
.ev-theme-achievers{ --ev-accent: #e0b43a; }
.ev-theme-events   { --ev-accent: #f5c518; }

.ev-container { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.ev-narrow    { max-width: 46rem; }

.ev-eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--ev-accent);
    margin-bottom: 1rem;
}
.ev-eyebrow--dark { color: var(--ev-blue); }

/* ---- Hero ---------------------------------------------------------------- */
.ev-hero {
    position: relative;
    z-index: 10;
    background: var(--ev-navy);
    color: #fff;
    padding: 8rem 0 7rem;
    border-radius: 0 0 3rem 3rem;
    overflow: hidden;
}
.ev-hero::before {
    content: "";
    position: absolute;
    width: 34rem; height: 34rem;
    right: -12rem; top: -14rem;
    border-radius: 50%;
    border: 3.5rem solid var(--ev-accent);
    opacity: .16;
    pointer-events: none;
}
.ev-hero__grid { position: relative; display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) {
    .ev-hero__grid { grid-template-columns: 1.05fr .95fr; gap: 3.5rem; }
    .ev-hero__grid--portrait { grid-template-columns: 1.25fr .75fr; }
}
.ev-hero h1 {
    font-family: "DM Serif Display", serif;
    font-weight: 400;
    font-size: clamp(2.4rem, 6vw, 4.25rem);
    line-height: 1.05;
    color: #fff;
    margin: 0 0 1rem;
}
.ev-hero__sub {
    font-family: "DM Serif Display", serif;
    font-size: clamp(1.25rem, 2.6vw, 1.75rem);
    line-height: 1.3;
    color: var(--ev-accent);
    margin: 0 0 1.25rem;
}
.ev-hero__copy { font-size: 1.1rem; line-height: 1.7; color: rgba(255,255,255,.82); max-width: 38rem; margin: 0 0 2rem; }
.ev-hero__media {
    margin: 0;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 60px -15px rgba(0,0,0,.55);
    border: 4px solid rgba(255,255,255,.12);
    background: #0b0f22;
}
.ev-hero__media img { display: block; width: 100%; height: auto; }
.ev-hero__media--portrait { max-width: 22rem; margin-left: auto; margin-right: auto; }

/* ---- Buttons ------------------------------------------------------------- */
.ev-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    border-radius: 9999px;
    background: var(--ev-blue);
    color: #fff;
    border: 2px solid rgba(255,255,255,.4);
    padding: .95rem 2rem;
    font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.ev-btn:hover { background: var(--ev-blue-dark); border-color: #fff; transform: translateY(-1px); color: #fff; }
.ev-btn:focus-visible { outline: 3px solid var(--ev-accent); outline-offset: 3px; }
.ev-btn--light { background: #fff; color: var(--ev-navy); border-color: #fff; }
.ev-btn--light:hover { background: #e8eef3; color: var(--ev-navy); }
.ev-btn--block { width: 100%; }
.ev-btn[disabled] { opacity: .65; cursor: progress; }

/* ---- Sections ------------------------------------------------------------ */
.ev-section { position: relative; z-index: 11; padding: 5rem 0; background: hsl(var(--background)); }
.ev-section--pull { margin-top: -3rem; border-radius: 3rem 3rem 0 0; padding-top: 6rem; }
.ev-section--white { background: #fff; }
.ev-h2 {
    font-family: "DM Serif Display", serif;
    font-weight: 400;
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    line-height: 1.15;
    color: var(--ev-ink);
    margin: 0 0 1.25rem;
}
.ev-lead { font-size: 1.1rem; line-height: 1.8; color: var(--ev-muted); margin: 0 0 1.1rem; }
.ev-center { text-align: center; }
.ev-center .ev-lead { margin-left: auto; margin-right: auto; }

/* ---- Cards --------------------------------------------------------------- */
.ev-grid { display: grid; gap: 1.5rem; margin-top: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.ev-card {
    position: relative;
    background: #fff;
    border-radius: 1.25rem;
    padding: 2rem 1.75rem 1.75rem;
    box-shadow: 0 10px 30px -18px rgba(17,22,45,.35);
    border: 1px solid hsl(var(--border));
    overflow: hidden;
}
.ev-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 5px; background: var(--ev-accent); }
.ev-card__num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.5rem; height: 2.5rem; border-radius: 9999px;
    background: var(--ev-navy); color: #fff;
    font-weight: 700; font-size: .9rem; margin-bottom: 1rem;
}
.ev-card h3 { font-family: "DM Serif Display", serif; font-weight: 400; font-size: 1.4rem; line-height: 1.25; color: var(--ev-ink); margin: 0 0 .6rem; }
.ev-card p  { margin: 0; line-height: 1.7; color: var(--ev-muted); }

/* ---- Check list ---------------------------------------------------------- */
.ev-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .9rem; }
.ev-list li { position: relative; padding-left: 2.2rem; line-height: 1.65; color: var(--ev-ink); }
.ev-list li::before {
    content: ""; position: absolute; left: 0; top: .15rem;
    width: 1.35rem; height: 1.35rem; border-radius: 9999px;
    background: var(--ev-accent)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2311162d' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
        center / 70% no-repeat;
}
.ev-two { display: grid; gap: 3rem; }
@media (min-width: 900px) { .ev-two { grid-template-columns: 1fr 1fr; align-items: start; } }

/* ---- Vision band --------------------------------------------------------- */
.ev-vision { background: var(--ev-blue); color: #fff; padding: 4.5rem 0; text-align: center; position: relative; z-index: 11; }
.ev-vision .ev-eyebrow { color: #fff; opacity: .85; }
.ev-vision p { font-family: "DM Serif Display", serif; font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.4; margin: 0 auto; max-width: 52rem; color: #fff; }

/* ---- Scripture strip ----------------------------------------------------- */
.ev-scripture { margin-top: 2.5rem; padding: 1.25rem 1.5rem; border-left: 5px solid var(--ev-accent); background: #fff; border-radius: 0 1rem 1rem 0; box-shadow: 0 10px 30px -22px rgba(17,22,45,.4); }
.ev-scripture strong { display: block; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ev-blue); margin-bottom: .35rem; }
.ev-scripture span { color: var(--ev-ink); line-height: 1.6; }

/* ---- CTA + form ---------------------------------------------------------- */
.ev-cta { position: relative; z-index: 11; background: var(--ev-navy); color: #fff; padding: 5.5rem 0; border-radius: 3rem 3rem 0 0; margin-top: -3rem; }
.ev-cta__grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .ev-cta__grid { grid-template-columns: .9fr 1.1fr; gap: 4rem; } }
.ev-cta h2 { font-family: "DM Serif Display", serif; font-weight: 400; font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.1; color: #fff; margin: 0 0 1rem; }
.ev-cta p { color: rgba(255,255,255,.82); font-size: 1.1rem; line-height: 1.75; margin: 0 0 1.25rem; }
.ev-cta--single .ev-cta__grid { grid-template-columns: 1fr; text-align: center; }
.ev-cta--single p { max-width: 38rem; margin-left: auto; margin-right: auto; }

.ev-form { background: #fff; color: var(--ev-ink); border-radius: 1.5rem; padding: 2rem 1.75rem; box-shadow: 0 30px 60px -25px rgba(0,0,0,.6); }
.ev-form h3 { font-family: "DM Serif Display", serif; font-weight: 400; font-size: 1.6rem; color: var(--ev-ink); margin: 0 0 1.25rem; }
.ev-field { margin-bottom: 1rem; }
.ev-field > label, .ev-legend { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; }
.ev-field input[type="text"], .ev-field input[type="email"], .ev-field input[type="tel"], .ev-field select, .ev-field textarea {
    width: 100%; box-sizing: border-box;
    border: 1.5px solid #11162d !important; border-radius: .6rem;
    background: #fff; padding: .7rem .85rem; font: inherit; font-size: .95rem;
}
.ev-field input:focus, .ev-field select:focus, .ev-field textarea:focus { outline: 3px solid rgba(0,97,148,.35); outline-offset: 1px; border-color: var(--ev-blue) !important; }
.ev-row { display: grid; gap: 1rem; }
@media (min-width: 560px) { .ev-row { grid-template-columns: 1fr 1fr; } }
.ev-checks { border: 0; padding: 0; margin: 0 0 1rem; }
.ev-checks .ev-opts { display: grid; gap: .5rem; }
@media (min-width: 560px) { .ev-checks .ev-opts { grid-template-columns: 1fr 1fr; } }
.ev-check { display: flex; align-items: flex-start; gap: .6rem; font-size: .92rem; line-height: 1.4; }
.ev-check input { width: 1.1rem; height: 1.1rem; margin-top: .15rem; accent-color: var(--ev-blue); flex: none; }
.ev-check label { font-weight: 400; margin: 0; }
.ev-note { font-size: .8rem; line-height: 1.5; color: var(--ev-muted); margin: .25rem 0 1.25rem; }
.ev-form .kw-form-message { margin-top: 1rem; font-size: .95rem; line-height: 1.5; }
.ev-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---- Related ministries -------------------------------------------------- */
.ev-related { background: hsl(var(--background)); padding: 5rem 0 6rem; position: relative; z-index: 11; margin-top: -3rem; border-radius: 3rem 3rem 0 0; }
.ev-link-card { display: block; text-decoration: none; background: #fff; border: 1px solid hsl(var(--border)); border-radius: 1.25rem; padding: 1.5rem; box-shadow: 0 10px 30px -22px rgba(17,22,45,.4); transition: transform .2s ease, box-shadow .2s ease; color: inherit; }
.ev-link-card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -20px rgba(17,22,45,.5); }
.ev-link-card h3 { font-family: "DM Serif Display", serif; font-weight: 400; font-size: 1.35rem; color: var(--ev-ink); margin: 0 0 .4rem; }
.ev-link-card p { margin: 0 0 1rem; color: var(--ev-muted); line-height: 1.6; font-size: .95rem; }
.ev-link-card span { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ev-blue); border-bottom: 2px solid var(--ev-blue); padding-bottom: .15rem; }

/* ==========================================================================
   Events listing page
   ========================================================================== */
.ev-upcoming { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 800px) { .ev-upcoming { grid-template-columns: 1fr 1fr; } }
.ev-when { display: flex; gap: 1.25rem; align-items: center; background: #fff; border: 1px solid hsl(var(--border)); border-radius: 1.25rem; padding: 1.5rem; box-shadow: 0 10px 30px -22px rgba(17,22,45,.4); }
.ev-when__date { flex: none; width: 5.2rem; text-align: center; background: var(--ev-navy); color: #fff; border-radius: 1rem; padding: .7rem .4rem; line-height: 1.1; }
.ev-when__date b { display: block; font-family: "DM Serif Display", serif; font-weight: 400; font-size: 2rem; }
.ev-when__date small { display: block; font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; opacity: .85; }
.ev-when h3 { font-family: "DM Serif Display", serif; font-weight: 400; font-size: 1.35rem; margin: 0 0 .25rem; color: var(--ev-ink); }
.ev-when p { margin: 0; color: var(--ev-muted); line-height: 1.55; font-size: .95rem; }

.ev-ministries { display: grid; gap: 1.75rem; margin-top: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
.ev-ministry { display: flex; flex-direction: column; background: #fff; border-radius: 1.5rem; overflow: hidden; text-decoration: none; color: inherit; border: 1px solid hsl(var(--border)); box-shadow: 0 14px 34px -22px rgba(17,22,45,.5); transition: transform .25s ease, box-shadow .25s ease; }
.ev-ministry:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -22px rgba(17,22,45,.55); }
.ev-ministry img { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; background: #0b0f22; }
.ev-ministry__body { padding: 1.5rem 1.5rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.ev-ministry h3 { font-family: "DM Serif Display", serif; font-weight: 400; font-size: 1.5rem; line-height: 1.2; margin: 0 0 .25rem; color: var(--ev-ink); }
.ev-ministry em { font-style: normal; font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ev-blue); margin-bottom: .75rem; display: block; }
.ev-ministry p { margin: 0 0 1.25rem; color: var(--ev-muted); line-height: 1.65; flex: 1; }
.ev-ministry span { align-self: flex-start; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ev-blue); border-bottom: 2px solid var(--ev-blue); padding-bottom: .15rem; }

/* ---- Fixes: form text inside the dark CTA band; 2x2 ministry grid -------- */
.ev-cta .ev-form p { color: var(--ev-muted); font-size: .95rem; line-height: 1.5; margin: 0; }
.ev-cta .ev-form .ev-note { font-size: .8rem; margin: .25rem 0 1.25rem; }
@media (min-width: 800px) { .ev-ministries { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ev-cta, .ev-ministries, #ministries { scroll-margin-top: 4rem; }
