/* ==========================================================================
   Page styles: youthministry/youthministry.html
   Global/shared styles live in assets/css/style.css (and tailwind.css).
   ========================================================================== */

/* ============================================================
   ZENVIA-INSPIRED THEME &mdash; Marist Youth Ministry
   Palette: Soft canvas | warm ivory | earthy sage | deep charcoal
============================================================ */
:root {
    --canvas:   #E8EEF2;
    --card:     #FFFFFF;
    --card-alt: #F4F7F9;
    --heading:  #1A2332;
    --body:     #4A5568;
    --muted:    #8895A7;
    --accent:   #c41e3a;
    --accent2:  #9B7D5A;     /* warm amber-brown */
    --sage:     #5A7A6A;     /* sage green */
    --border:   rgba(0,0,0,.07);
    --shadow:   0 4px 32px rgba(26,35,50,.07), 0 1px 4px rgba(26,35,50,.04);
    --shadow-lg: 0 20px 60px rgba(26,35,50,.10), 0 4px 16px rgba(26,35,50,.06);
}

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

/* Override site-wide dark body */
body.ym-page {
    background: var(--canvas) !important;
    color: var(--heading) !important;
    font-family: 'Inter', sans-serif !important;
}

/* ---- Nav override to stay light ---- */
body.ym-page header {
    background: rgba(232,238,242,.92) !important;
    border-bottom: 1px solid var(--border) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
body.ym-page header .logo-text { color: var(--heading) !important; }
body.ym-page header .nav-link,
body.ym-page header .dropbtn { color: var(--body) !important; font-weight: 600; }
body.ym-page header .nav-link:hover,
body.ym-page header .dropbtn:hover { color: var(--accent) !important; }
body.ym-page header .dropdown-content {
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-lg) !important;
}
body.ym-page header .dropdown-content a { color: var(--body) !important; }
body.ym-page header .dropdown-content a:hover { color: var(--accent) !important; background: var(--card-alt) !important; }

/* ---- Breadcrumb ---- */
.ym-breadcrumb {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}
.ym-breadcrumb a { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; transition: color .2s; }
.ym-breadcrumb a:hover { color: var(--accent); }
.ym-breadcrumb span { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.ym-breadcrumb .sep { color: var(--muted); opacity: .4; margin: 0 8px; font-size: 10px; }

/* ---- HERO ---- */
.ym-hero {
    background: var(--canvas);
    padding: 48px 0 0;
    overflow: hidden;
}
.ym-hero-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
}
.ym-hero-card {
    background: var(--card);
    border-radius: 32px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 560px;
}
@media(max-width:900px){ .ym-hero-card{ grid-template-columns:1fr; } }

.ym-hero-left {
    padding: 64px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
}
@media(max-width:900px){ .ym-hero-left{ padding:40px 32px; } }

.ym-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(196,30,58,.08);
    border: 1px solid rgba(196,30,58,.2);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    width: fit-content;
}
.ym-pill .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%,100%{ opacity:1; transform:scale(1); }
    50%{ opacity:.5; transform:scale(1.4); }
}

.ym-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.6rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--heading);
    line-height: 1.12;
    letter-spacing: -.02em;
}
.ym-hero-title em {
    font-style: italic;
    color: var(--accent);
}
.ym-hero-desc {
    font-size: 15px;
    color: var(--body);
    line-height: 1.75;
    font-weight: 400;
    max-width: 420px;
}
.ym-hero-quote {
    border-left: 3px solid var(--accent);
    padding-left: 18px;
    font-size: 14px;
    font-style: italic;
    color: var(--muted);
    font-weight: 500;
}

.ym-hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.ym-btn-primary {
    background: var(--heading);
    color: #fff;
    padding: 14px 28px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background .2s, transform .15s;
    border: none;
    cursor: pointer;
}
.ym-btn-primary:hover { background: var(--accent); transform: translateY(-1px); }
.ym-btn-ghost {
    color: var(--body);
    padding: 14px 24px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid var(--border);
    transition: border-color .2s, color .2s;
    background: transparent;
}
.ym-btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.ym-social-proof {
    display: flex;
    align-items: center;
    gap: 14px;
}
.ym-avatars {
    display: flex;
}
.ym-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    border: 2.5px solid var(--card);
    margin-left: -10px;
    background: linear-gradient(135deg, var(--accent), #7f1d1d);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800; color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.ym-avatars .ym-avatar:first-child { margin-left: 0; }
.ym-social-text { font-size: 12px; font-weight: 600; color: var(--muted); }
.ym-social-text strong { color: var(--heading); }

/* Hero right &mdash; image */
.ym-hero-right {
    position: relative;
    overflow: hidden;
}
.ym-hero-right img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .8s ease;
}
.ym-hero-right:hover img { transform: scale(1.03); }
.ym-hero-right-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(196,30,58,.12), transparent 60%);
    z-index: 1;
}
.ym-hero-right-badge {
    position: absolute;
    bottom: 28px; left: 28px;
    z-index: 2;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 14px 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 12px;
}
.ym-hero-right-badge .badge-icon {
    width: 40px; height: 40px; border-radius: 12px;
    background: rgba(196,30,58,.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: var(--accent);
}
.ym-hero-right-badge .badge-text { font-size: 12px; font-weight: 700; color: var(--heading); line-height: 1.4; }
.ym-hero-right-badge .badge-sub  { font-size: 10px; font-weight: 500; color: var(--muted); }

/* ---- STATS STRIP ---- */
.ym-stats-strip {
    background: var(--card);
    border-top: 1px solid var(--border);
    border-radius: 0 0 32px 32px;
    padding: 28px 48px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}
.ym-stat { text-align: center; }
.ym-stat-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--heading);
    line-height: 1;
    font-family: 'Playfair Display', serif;
}
.ym-stat-num span { color: var(--accent); }
.ym-stat-label { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }

/* ---- SECTION WRAPPER ---- */
.ym-section {
    max-width: 1320px;
    margin: 0 auto;
    padding: 80px 32px;
}
.ym-section-sm { padding: 56px 32px; }

.ym-section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: 16px;
}
.ym-section-label::before {
    content: '';
    display: block;
    width: 24px; height: 2px;
    background: var(--sage);
    border-radius: 2px;
}

.ym-section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--heading);
    line-height: 1.15;
    letter-spacing: -.02em;
}
.ym-section-title em { color: var(--accent); font-style: italic; }
.ym-section-body {
    font-size: 15px;
    color: var(--body);
    line-height: 1.8;
    font-weight: 400;
}

/* ---- MISSION SECTION ---- */
.ym-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
@media(max-width:900px){ .ym-mission-grid{ grid-template-columns:1fr; } }

.ym-mission-img-wrap {
    position: relative;
}
.ym-mission-img-wrap img {
    width: 100%;
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
    display: block;
    object-fit: cover;
    height: 460px;
}
.ym-mission-img-card {
    position: absolute;
    top: 28px; right: -28px;
    background: var(--card);
    border-radius: 20px;
    padding: 18px 22px;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
}
@media(max-width:900px){ .ym-mission-img-card{ display:none; } }
.ym-mission-img-card .card-label { font-size: 10px; font-weight: 700; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.ym-mission-img-card .card-val { font-size: 22px; font-weight: 800; color: var(--heading); font-family: 'Playfair Display', serif; }
.ym-mission-img-card .card-sub { font-size: 11px; color: var(--body); font-weight: 500; }

.ym-mission-content { display: flex; flex-direction: column; gap: 24px; }
.ym-mission-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .1em;
}
.ym-mission-tag::after { content:''; flex:1; height:1.5px; background:rgba(196,30,58,.2); }

/* ---- CORE PILLARS ---- */
.ym-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media(max-width:900px){ .ym-pillars-grid{ grid-template-columns:1fr; } }

.ym-pillar-card {
    background: var(--card);
    border-radius: 24px;
    padding: 40px 36px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform .3s, box-shadow .3s;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow: hidden;
}
.ym-pillar-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0;
    transition: opacity .3s;
}
.ym-pillar-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.ym-pillar-card:hover::before { opacity: 1; }

.ym-pillar-icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    background: rgba(196,30,58,.08);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    color: var(--accent);
    transition: background .3s, color .3s;
}
.ym-pillar-card:hover .ym-pillar-icon {
    background: var(--accent);
    color: #fff;
}
.ym-pillar-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--heading);
    font-family: 'Playfair Display', serif;
}
.ym-pillar-body {
    font-size: 14px;
    color: var(--body);
    line-height: 1.75;
    font-weight: 400;
}

/* ---- QUOTE / CALLOUT SECTION ---- */
.ym-callout {
    background: var(--heading);
    border-radius: 32px;
    padding: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 28px;
    position: relative;
    overflow: hidden;
}
@media(max-width:768px){ .ym-callout{ padding:48px 28px; } }
.ym-callout::before {
    content: '\201C';
    position: absolute;
    top: -40px; left: 40px;
    font-family: 'Playfair Display', serif;
    font-size: 240px;
    color: rgba(255,255,255,.04);
    line-height: 1;
    pointer-events: none;
    user-select: none;
}
.ym-callout-quote {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3.5vw, 2.4rem);
    font-weight: 700;
    font-style: italic;
    color: #fff;
    max-width: 720px;
    line-height: 1.45;
}
.ym-callout-accent { color: var(--accent); }
.ym-callout-attr {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,.5);
    letter-spacing: .1em;
    text-transform: uppercase;
}
.ym-callout-orbs {
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196,30,58,.15), transparent 70%);
    top: -120px; right: -80px;
    pointer-events: none;
}
.ym-callout-orbs2 {
    position: absolute;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(90,122,106,.12), transparent 70%);
    bottom: -80px; left: -60px;
    pointer-events: none;
}

/* ---- FEATURES GRID ---- */
.ym-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
@media(max-width:768px){ .ym-features-grid{ grid-template-columns:1fr; } }

.ym-feature-card {
    background: var(--card);
    border-radius: 20px;
    padding: 32px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: transform .25s, box-shadow .25s;
}
.ym-feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.ym-feature-icon {
    width: 48px; height: 48px; flex-shrink: 0;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
}
.ym-feature-content h4 { font-size: 16px; font-weight: 700; color: var(--heading); margin-bottom: 8px; }
.ym-feature-content p  { font-size: 13px; color: var(--body); line-height: 1.7; }

/* ---- PROGRAMS / ACTIVITIES ---- */
.ym-programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media(max-width:900px){ .ym-programs-grid{ grid-template-columns:1fr 1fr; } }
@media(max-width:600px){ .ym-programs-grid{ grid-template-columns:1fr; } }

.ym-program-card {
    background: var(--card);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform .3s, box-shadow .3s;
}
.ym-program-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.ym-program-img {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    background: var(--card-alt);
}
.ym-program-body { padding: 24px; }
.ym-program-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: 8px;
}
.ym-program-title { font-size: 16px; font-weight: 700; color: var(--heading); margin-bottom: 8px; }
.ym-program-desc  { font-size: 13px; color: var(--body); line-height: 1.7; }

/* ---- FOOTER override for light theme ---- */
body.ym-page footer {
    background: var(--heading) !important;
    border-top: none !important;
}
body.ym-page footer h4 { color: rgba(255,255,255,.5) !important; }
body.ym-page footer p,
body.ym-page footer a.text-zinc-400 { color: rgba(255,255,255,.45) !important; }
body.ym-page footer a.text-zinc-400:hover { color: #fff !important; }
body.ym-page footer .border-b { border-color: rgba(255,255,255,.08) !important; }
body.ym-page footer .text-zinc-600 { color: rgba(255,255,255,.25) !important; }

/* ---- Ambient floating blobs ---- */
.ym-blob {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .25;
}
.ym-blob-1 { width:500px;height:500px; background:radial-gradient(circle,#c41e3a33,transparent 70%); top:-100px;right:-100px; }
.ym-blob-2 { width:400px;height:400px; background:radial-gradient(circle,#5A7A6A33,transparent 70%); bottom:10%;left:-80px; }
.ym-blob-3 { width:350px;height:350px; background:radial-gradient(circle,#9B7D5A22,transparent 70%); top:50%;right:10%; }

/* ---- Scroll-in animation ---- */
.ym-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .65s ease, transform .65s ease;
}
.ym-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
