/* ============================
   Variables & Reset (Light/Official Theme)
   ============================ */
:root {
    --bg-main: #fbfaf6;
    --bg-alt: #f0f3f8;
    --primary: #122b53; /* Deep Blue CMCI */
    --primary-glow: rgba(30, 58, 138, 0.2);
    --secondary: #cc3b32; /* CMCI Red */
    --accent: #ffd46d;
    --cobalt: #2456d9;
    --radius-card: 18px;
    --radius-control: 10px;
    --shadow-soft: 0 16px 40px rgba(18, 43, 83, 0.06);
    --text-main: #1e293b; /* Dark Slate */
    --text-muted: #586576;
    --glass-bg: #ffffff;
    --glass-border: rgba(30, 58, 138, 0.1);
    --font-sans: 'Outfit', 'Segoe UI', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

/* Base resets... */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--secondary); outline-offset: 5px; }
body { background-color: var(--bg-main); color: var(--text-main); font-family: var(--font-sans); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
ul { list-style: none; }
h1, h2, h3, h4 { line-height: 1.2; color: var(--primary); text-wrap: balance; }
p { text-wrap: pretty; }

.highlight { color: var(--secondary); font-family: var(--font-serif); font-style: italic; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section { padding: clamp(4rem, 7vw, 6.5rem) 0; }
.bg-alternate { background-color: var(--bg-alt); }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header > .eyebrow { display: flex; width: fit-content; margin-left: auto; margin-right: auto; }
.section-header h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -0.045em; margin-bottom: 1rem; font-family: var(--font-sans); position: relative; display: inline-block; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--secondary); border: 1px solid currentColor; border-radius: 30px; padding: 0.4rem 0.8rem; font-size: 0.75rem; line-height: 1.4; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1.2rem; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; max-width: 640px; margin: 0.8rem auto 0; line-height: 1.75; }

/* Buttons */
.btn-primary, .btn-secondary, .btn-nav { display: inline-flex; justify-content: center; align-items: center; gap: 0.65rem; min-height: 48px; padding: 0.8rem 1.4rem; border-radius: var(--radius-control); font-weight: 600; cursor: pointer; font-size: 0.95rem; line-height: 1.4; transition: background-color 0.2s, border-color 0.2s, transform 0.2s; }
.btn-primary { border: 2px solid var(--primary); background: var(--primary); color: white; box-shadow: none; }
.btn-primary:hover { transform: translateY(-2px); background: var(--cobalt); border-color: var(--cobalt); box-shadow: none; color: white; }
.btn-secondary { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-secondary:hover { background: var(--primary); color: white; border-color: var(--primary); }
.btn-nav { border: 0; background: var(--primary); color: white; padding: 0.5rem 1.2rem; font-size: 0.9rem; border-radius: var(--radius-control); min-height: 42px; }
.btn-nav:hover { background: var(--secondary); }

/* Navbar */
.navbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 1rem 0; transition: padding 0.3s ease; background: var(--bg-main); border-bottom: 1px solid var(--glass-border); }
.navbar.scrolled { padding: 0.85rem 0; background: var(--bg-main); box-shadow: 0 6px 20px rgba(18,43,83,0.04); }
.nav-container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.logo { flex-shrink: 0; font-family: var(--font-serif); font-size: 1.5rem; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 10px; }
.nav-logo-img { height: 40px; border-radius: 5px; }
.logo span { color: var(--text-main); font-family: var(--font-sans); font-size: 0.85rem; font-weight: 500;}
.nav-links { display: flex; gap: 1rem; align-items: center; }
.nav-links a:not(.btn-nav) { font-weight: 500; font-size: 0.85rem; }
.nav-links a:not(.btn-nav):hover { color: var(--secondary); }
.nav-links a[aria-current="location"], .nav-links a[aria-current="page"] { color: var(--cobalt); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Hero and first-visit shortcuts */
[hidden] { display: none !important; }
.nav-toggle { display: none; border: 1px solid var(--glass-border); background: white; color: var(--primary); border-radius: 8px; padding: 0.65rem 0.85rem; font-weight: 600; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: currentColor; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
.hero { position: relative; min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8rem 2rem 4rem; background: var(--bg-main); }
.hero-content { max-width: 900px; }
.hero-content h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 1.5rem; letter-spacing: -1px; }
.hero-content p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 2rem; }
.home-page .hero { padding: 9.5rem 0 4.5rem; text-align: left; }
.hero-layout { display: grid; grid-template-columns: 1.02fr 0.98fr; align-items: center; gap: 3.5rem; width: 100%; }
.hero-copy h1 { font-family: var(--font-sans); font-size: clamp(3rem, 5.4vw, 4.7rem); font-weight: 800; letter-spacing: -0.055em; line-height: 1.06; margin-bottom: 1.7rem; }
.hero-copy .highlight { display: inline-block; font-size: 0.88em; letter-spacing: -0.045em; }
.hero-lead { max-width: 490px; color: var(--text-muted); font-size: 1.12rem; line-height: 1.75; }
.hero-verse { border-left: 2px solid var(--secondary); padding-left: 1rem; margin: 1.4rem 0 1.8rem; max-width: 460px; color: var(--text-muted); font-size: 0.9rem; font-style: italic; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.hero-copy .hero-actions { justify-content: flex-start; }
.hero-visual { position: relative; isolation: isolate; box-shadow: var(--shadow-soft); border-radius: 90px 20px 18px 18px; }
.hero-visual::before { content: ""; position: absolute; top: -17px; right: -17px; width: 110px; height: 110px; border: 1px solid rgba(36,86,217,0.35); border-radius: 50%; z-index: -1; }
.hero-visual > img { width: 100%; height: 430px; object-fit: cover; border-radius: 90px 20px 0 0; }
.hero-video { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 20px 20px 0 0; background: #122b53; }
.hero-video iframe { display: block; width: 100%; height: 100%; border: 0; }
.hero-video-caption { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; background: white; color: var(--primary); font-size: .85rem; }
.hero-video-caption > span { font-weight: 600; }
.hero-video-caption a { text-decoration: underline; text-underline-offset: 4px; }
.hero-video-caption > div { min-width: 0; }
.hero-video-caption strong { display: block; margin-top: .35rem; font-size: 1rem; line-height: 1.4; overflow-wrap: anywhere; }
.hero-video-caption .video-status, .hero-video-caption time { font-size: .75rem; color: var(--text-muted); }
.hero-video-caption time { display: block; margin-top: .3rem; }
.hero-video-caption time[hidden] { display: none; }
.hero-video-caption a { flex-shrink: 0; }
@media (max-width: 600px) { .hero-video-caption { align-items: flex-start; flex-direction: column; gap: .75rem; } }
.hero-image-caption { position: absolute; top: 365px; left: 1.5rem; padding: 0.5rem 0.9rem; background: rgba(255,255,255,0.94); color: var(--primary); border-radius: 30px; font-size: 0.75rem; font-weight: 600; }
.hero-gathering { background: var(--cobalt); color: white; padding: 1.3rem 1.5rem; border-radius: 0 0 18px 18px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.hero-gathering strong { display: block; font-size: 1.1rem; }
.hero-gathering span, .hero-gathering p { font-size: 0.85rem; color: rgba(255,255,255,0.8); }
.hero-gathering a { font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.welcome-strip { border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); background: white; }
.welcome-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.welcome-item { padding: 1.8rem 2rem; border-right: 1px solid var(--glass-border); display: flex; flex-direction: column; gap: 0.3rem; }
.welcome-item:first-child { padding-left: 0; }
.welcome-item:last-child { border-right: 0; }
.welcome-item:hover strong { color: var(--secondary); }
.welcome-label { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; color: var(--text-muted); }
.welcome-item strong { font-weight: 700; font-size: 1.05rem; color: var(--primary); }

/* Acronym Section (CMCI) */
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.cmci-card { background: white; border: 1px solid var(--glass-border); border-radius: var(--radius-card); padding: 2rem; text-align: left; box-shadow: none; transition: transform 0.3s, box-shadow 0.3s; }
.cmci-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: rgba(36,86,217,0.25); }
.cmci-letter { font-family: var(--font-sans); font-size: 3.75rem; font-weight: 800; color: var(--cobalt); letter-spacing: -0.06em; margin-bottom: 1.8rem; line-height: 1; }
.cmci-card:nth-child(2) .cmci-letter, .cmci-card:nth-child(4) .cmci-letter { color: var(--secondary); }
.cmci-card h3 { font-size: 1.3rem; margin-bottom: 1rem; color: var(--text-main); }
.cmci-card p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.5; }

/* Vision Section */
.vision-banner { background: var(--primary); color: white; text-align: center; padding: 5rem 2rem; position: relative; overflow: hidden; }
.vision-banner .eyebrow { color: #d9c895; }
.vision-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
.vision-content h2 { color: var(--accent); font-family: var(--font-sans); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.04em; margin-bottom: 1.5rem; }
.vision-text { font-size: 1.35rem; font-weight: 400; line-height: 1.7; }
.vision-banner::before { content: ""; position: absolute; width: 360px; height: 360px; border: 1px solid rgba(255,255,255,0.15); border-radius: 50%; left: -160px; bottom: -200px; }

/* Resources / Blog Section */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.resource-card { background: white; border-radius: var(--radius-card); overflow: hidden; box-shadow: none; border: 1px solid var(--glass-border); transition: transform 0.3s; }
.resource-card:hover { transform: translateY(-5px); box-shadow: 0 12px 24px rgba(18,43,83,0.08); border-color: var(--cobalt); }
.resource-tag { background: var(--bg-alt); color: var(--secondary); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; padding: 0.6rem 1.2rem; border-bottom: 1px solid var(--glass-border); display: block; width: 100%; letter-spacing: 0.5px;}
.resource-body { padding: 1.8rem; display: flex; flex-direction: column; height: calc(100% - 43px); }
.resource-body .read-more { margin-top: auto; }
.resource-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.8rem; color: var(--primary); }
.resource-desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; }
.read-more { color: var(--secondary); font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 5px; }
.read-more:hover { color: var(--primary); }

/* Églises de maison */
#eglises-maison { scroll-margin-top: 100px; }
.house-church-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.house-church-card { display: flex; flex-direction: column; padding: 2rem; background: white; border: 1px solid var(--glass-border); border-radius: var(--radius-card); box-shadow: none; }
.house-church-card h3 { font-family: var(--font-sans); font-weight: 800; letter-spacing: -0.03em; font-size: 1.85rem; margin-bottom: 0.75rem; }
.house-church-leader { color: var(--text-muted); }
.house-church-schedule { margin: 1.5rem 0; }
.house-church-schedule div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--glass-border); }
.house-church-schedule dt { font-weight: 600; }
.house-church-schedule dd { margin: 0; white-space: nowrap; }
.house-church-address { color: var(--text-muted); margin-bottom: 1.5rem; }
.house-church-phone { align-self: flex-start; margin-top: auto; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.7rem 1rem; border-radius: var(--radius-control); background: var(--primary); color: white; font-weight: 600; }
.house-church-phone:hover { background: var(--secondary); color: white; }
.house-church-phone:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (max-width: 600px) {
    .house-church-grid { grid-template-columns: 1fr; }
    .house-church-card { padding: 1.5rem; }
}

/* Events Section */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.event-card { display: flex; align-items: stretch; background: white; border-radius: var(--radius-card); overflow: hidden; box-shadow: none; border: 1px solid var(--glass-border); transition: all 0.3s ease; }
.event-card:hover { transform: translateY(-3px); border-color: rgba(36,86,217,0.3); box-shadow: var(--shadow-soft); }
.event-date { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--primary); color: white; width: 100px; padding: 1.5rem 0; flex-shrink: 0; }
.event-date .day { font-weight: 800; font-size: 1.3rem; text-transform: uppercase; }
.event-date .time { font-size: 0.9rem; opacity: 0.9; margin-top: 5px; font-weight: 500; }
.event-card:nth-child(even) .event-date { background: var(--secondary); }
.event-details { padding: 1.5rem; display: flex; flex-direction: column; justify-content: center; }
.event-details h3 { font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--text-main); }
.event-details p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* Footer */
.footer { background: #0d2243; color: white; padding: 4.5rem 0 2rem; }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 3rem; margin-bottom: 3rem; }
.footer-brand h2 { font-family: var(--font-serif); font-size: 2rem; color: white; margin-bottom: 0.5rem; }
.footer-brand span { font-size: 1.2rem; margin-top: 5px; font-family: var(--font-sans); font-weight: 400;}
.footer-brand p { color: rgba(255,255,255,0.7); max-width: 300px; }
.footer-contact h3 { color: white; margin-bottom: 1.25rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; }
.footer a:hover { color: var(--accent); }
.footer-contact p { color: rgba(255,255,255,0.8); margin-bottom: 0.8rem; display: flex; align-items: center; gap: 10px; }
.footer-bottom { text-align: center; color: rgba(255,255,255,0.6); font-size: 0.9rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); }

/* Contact Form Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 34, 67, 0.65);
    overflow-y: auto;
    padding: 2rem 1rem;
}

.modal-content {
    margin: auto;
    max-width: 600px;
    position: relative;
    border-top: 5px solid var(--secondary);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-size: 2rem;
    font-family: var(--font-serif);
    margin-bottom: 0.5rem;
}

.close-modal {
    border: none;
    background: transparent;
    line-height: 1;
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    color: var(--text-muted);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover {
    color: var(--secondary);
}

/* Floating Action Button */
.fab-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
    cursor: pointer;
    z-index: 1500;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: none;
}

.fab-contact:hover {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.4);
}

@keyframes pulse-red {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(220, 38, 38, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

/* Contact Form Section */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
}
.glass-form {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    padding: 3rem;
    box-shadow: var(--shadow-soft);
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.form-group.full-width {
    grid-column: span 2;
}
.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
}
.form-group input, .form-group textarea {
    padding: 0.8rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all 0.3s;
    background: #fbfcfe;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px var(--primary-glow);
}
.form-actions {
    margin-top: 2rem;
    text-align: center;
}
.form-actions .btn-primary {
    width: 100%;
    max-width: 300px;
    font-size: 1rem;
    padding: 1rem;
}

/* Animations & Utils */
.animate-zoom { animation: animatezoom 0.4s; }
@keyframes animatezoom {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
html.motion-ready .animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
html.motion-ready .animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 800px) {

    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions a { width: 100%; max-width: 300px; text-align: center; }
    .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns: 1fr; }
    .form-group.full-width { grid-column: span 1; }
    .glass-form { padding: 1.5rem; }
    .event-card { flex-direction: column; text-align: center; }
    .event-date { width: 100%; padding: 1rem 0; flex-direction: row; gap: 15px; }
    .cmci-card { padding: 2rem 1rem; }
}

/* ============================
   Chatbot "Guide Spirituel"
   ============================ */
.chatbot-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1500;
    font-family: var(--font-sans);
}

.chatbot-fab {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.chatbot-fab:hover {
    transform: scale(1.1) rotate(-5deg);
    background: var(--secondary);
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    animation: slide-up 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slide-up {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.chatbot-header {
    background: var(--primary);
    color: white;
    padding: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-chat { border: none; background: transparent; color: white; font-size: 1.8rem; line-height: 1; padding: 0.2rem; cursor: pointer; }

.chatbot-header h3 {
    color: white;
    font-size: 1.1rem;
    margin: 0;
}

.chatbot-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #fdfdfd;
}

.msg {
    max-width: 85%;
    padding: 0.8rem 1rem;
    border-radius: 15px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.msg.bot {
    background: #eef2ff;
    color: var(--text-main);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    position: relative;
    padding-top: 1.5rem; /* Espace pour le badge IA */
}

.msg.bot::before {
    content: "Guide Spirituel • IA";
    position: absolute;
    top: 5px;
    left: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.msg.bot a {
    color: var(--secondary);
    text-decoration: underline;
    font-weight: 600;
}

.msg.bot ul {
    margin: 0.5rem 0;
    padding-left: 1.2rem;
}

.msg.bot li {
    margin-bottom: 0.3rem;
}

.msg.bot b {
    color: var(--primary);
}


.msg.user {
    background: var(--secondary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chatbot-options {
    padding: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border-top: 1px solid #eee;
    background: #fcfcfc;
}

.chatbot-input-area {
    padding: 0.8rem;
    display: flex;
    gap: 8px;
    border-top: 1px solid #eee;
    background: white;
}

.chatbot-input-area input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    outline: none;
    transition: border 0.3s;
}

.chatbot-input-area input:focus {
    border-color: var(--primary);
}

.chatbot-send-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

.chatbot-send-btn:hover {
    background: var(--secondary);
}


.opt-btn {
    background: white;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.opt-btn:hover {
    background: var(--primary);
    color: white;
}

.typing-indicator {
    display: none;
    font-style: italic;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

@media (max-width: 500px) {
    .chatbot-window {
        width: calc(100vw - 40px);
        height: 70vh;
        left: -10px;
    }
}


/* The next generation */
.youth-spotlight { padding: 6rem 0; background: var(--primary); color: white; overflow: hidden; }
.youth-layout { display: grid; grid-template-columns: 1fr 0.95fr; gap: 4rem; align-items: center; }
.youth-copy .eyebrow { color: var(--accent); }
.youth-copy h2 { color: white; font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.055em; line-height: 1.08; max-width: 580px; margin-bottom: 1.5rem; }
.youth-copy h2 em { color: var(--accent); font-style: normal; }
.youth-copy p { max-width: 480px; color: #dbe4f5; font-size: 1.08rem; line-height: 1.8; }
.youth-spotlight .youth-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.youth-spotlight .youth-actions .btn-primary { background: white; color: var(--primary); border-color: white; }
.youth-spotlight .youth-actions .btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.youth-spotlight .youth-actions .btn-secondary { color: white; border-color: rgba(255,255,255,0.45); }
.youth-spotlight .youth-actions .btn-secondary:hover { background: var(--cobalt); border-color: var(--cobalt); }
.youth-art { position: relative; max-width: 480px; width: 100%; justify-self: end; }
.youth-art > img, .youth-art > svg { width: 100%; height: auto; display: block; border-radius: 20px; }
.youth-art-caption { margin-top: 1rem; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: #dbe4f5; }
@media (max-width: 800px) { .youth-spotlight { padding: 4rem 0; } .youth-layout { grid-template-columns: 1fr; gap: 3rem; } .youth-art { justify-self: center; } }
@media (max-width: 600px) { .youth-copy h2 { font-size: 2.6rem; } .youth-spotlight .youth-actions { flex-direction: column; } .youth-spotlight .youth-actions a { text-align: center; } }

/* Church directory controls */
.house-church-number { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border: 1px solid var(--glass-border); border-radius: 50%; font-size: 0.75rem; font-weight: 700; color: var(--cobalt); margin-bottom: 1.5rem; }
.church-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem; }
.church-filter { border: 1px solid var(--glass-border); background: white; border-radius: 30px; color: var(--primary); padding: 0.65rem 1.2rem; font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.church-filter[aria-pressed="true"], .church-filter:hover { background: var(--primary); color: white; border-color: var(--primary); }
.church-results { text-align: center; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; }

/* A welcoming next step */
.home-join { padding: 4.5rem 0; background: var(--bg-main); }
.home-join-panel { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3rem; }
.home-join-copy { max-width: 650px; }
.home-join-copy h2 { font-size: clamp(2rem, 3.8vw, 3rem); letter-spacing: -0.045em; margin-bottom: 0.9rem; }
.home-join-copy p { color: var(--text-muted); max-width: 560px; font-size: 1.05rem; line-height: 1.75; }
.home-join-actions { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.home-join-actions .btn-primary { background: var(--cobalt); border-color: var(--cobalt); }
.home-join-actions .btn-primary:hover { background: var(--primary); border-color: var(--primary); }
.home-join-link { color: var(--primary); font-size: 0.95rem; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 800px) { .home-join-panel { grid-template-columns: 1fr; gap: 1.8rem; } .home-join-actions { align-items: flex-start; } }
@media (max-width: 600px) { .home-join { padding: 3.5rem 0; } .home-join-actions, .home-join-actions .btn-primary { width: 100%; } .home-join-actions { align-items: center; } }

/* Responsive navigation and page composition */
@media (max-width: 1100px) {
    .nav-container { flex-wrap: wrap; }
    .nav-links { flex-wrap: wrap; width: 100%; gap: 0.9rem 1.5rem; }
    html.nav-ready .nav-toggle { display: inline-flex; flex-direction: column; align-items: center; gap: 5px; margin-left: auto; min-height: 44px; justify-content: center; }
    html.nav-ready .nav-links { display: none; padding: 1rem 0 0.5rem; }
    html.nav-ready .nav-links.is-open { display: flex; }
    .hero-layout { gap: 2.5rem; }
    .hero-copy h1 { font-size: 3.6rem; }
}
@media (max-width: 800px) {
    .container, .nav-container { padding-left: 1.5rem; padding-right: 1.5rem; }
    .section { padding: 4rem 0; }
    .section-header h2 { font-size: 2.1rem; }
    .home-page .hero { padding-top: 7.5rem; padding-bottom: 3rem; }
    .hero-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-copy { max-width: 600px; }
    .hero-copy h1 { font-size: clamp(2.8rem, 8vw, 4rem); }
    .hero-copy .hero-actions { flex-direction: row; align-items: stretch; }
    .hero-copy .hero-actions a { width: auto; max-width: none; }
    .hero-visual > img { height: 380px; border-top-left-radius: 90px; }
    .hero-image-caption { top: 315px; }
    .welcome-item { padding: 1.4rem 1rem; }
    .welcome-item strong { font-size: 0.9rem; }
    .house-church-grid { gap: 1.25rem; }
    .house-church-card { padding: 1.5rem; }
}
@media (max-width: 600px) {
    .logo { font-size: 1.1rem; gap: 7px; }
    .logo span { max-width: 92px; font-size: 0.72rem; line-height: 1.3; }
    .nav-logo-img { height: 34px; }
    html.nav-ready .nav-links.is-open { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-links li a, .nav-links li button { display: block; padding: 0.75rem; }
    .hero-copy h1 { font-size: 2.8rem; }
    .hero-lead { font-size: 1rem; }
    .hero-copy .hero-actions { flex-direction: column; }
    .hero-copy .hero-actions a { width: 100%; }
    .hero-visual > img { height: 330px; }
    .hero-image-caption { top: 270px; left: 1rem; }
    .hero-gathering { padding: 1rem; }
    .hero-gathering strong { font-size: 1rem; }
    .hero-gathering a { font-size: 0.75rem; }
    .welcome-grid { grid-template-columns: 1fr; }
    .welcome-item, .welcome-item:first-child { padding: 1.25rem 0; border-right: 0; border-bottom: 1px solid var(--glass-border); }
    .welcome-item:last-child { border-bottom: 0; }
    .welcome-item strong { font-size: 1rem; }
    .fab-contact { bottom: 20px; right: 20px; width: 52px; height: 52px; }
    .chatbot-container { bottom: 20px; left: 20px; }
    .chatbot-fab { width: 52px; height: 52px; }
    .chatbot-window { left: 0; width: calc(100vw - 40px); max-height: calc(100dvh - 110px); }
    .chatbot-input-area input { min-width: 0; }
    .footer { padding-bottom: 5rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html.motion-ready .animate-on-scroll { opacity: 1; transform: none; }
}
