/* ---------- Reset & Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --purple:      #6a1b9a;
    --purple-dark: #4a148c;
    --bg:          #faf7fc;
    --card:        #ffffff;
    --ink:         #1a1a1a;
    --muted:       #6b6b6b;
    --line:        #ece4f2;
    --live:        #c1272d;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Tahoma, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.5;
    font-size: 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

a { color: inherit; text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
    background: var(--purple);
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 10;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1.25rem;
    gap: 1rem;
}

.logo { display: flex; align-items: center; gap: 0.7rem; }
.logo-mark {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #fff;
    color: var(--purple);
    display: grid; place-items: center;
    font-size: 1.1rem;
    font-weight: 700;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong { font-size: 0.95rem; color: #fff; }
.logo-text span   { font-size: 0.72rem; color: #e7d6f2; }

.main-nav {
    display: flex; align-items: center; gap: 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
}
.main-nav a { color: #fff; opacity: 0.9; }
.main-nav a:hover,
.main-nav a.active { opacity: 1; text-decoration: underline; }

/* ---------- Ticker ---------- */
.ticker-bar {
    background: #f4ecfa;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    height: 32px;
    display: flex;
    align-items: center;
}
.ticker-track {
    display: inline-flex;
    gap: 3rem;
    white-space: nowrap;
    font-size: 0.82rem;
    color: var(--purple-dark);
    font-weight: 500;
    animation: ticker-scroll 40s linear infinite;
    padding-left: 1rem;
}
.ticker-track span { display: inline-block; }
@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.ticker-bar:hover .ticker-track { animation-play-state: paused; }

/* ---------- Hero slider ---------- */
.hero { padding-top: 1.25rem; }
.hero-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 480px;
    margin: 0 auto;
    background: linear-gradient(135deg, #6a1b9a, #b8420f);
    box-shadow: 0 4px 14px rgba(106, 27, 154, 0.15);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.hero-slide.active { opacity: 1; }

.hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 55%);
    pointer-events: none;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px; height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    display: grid; place-items: center;
    z-index: 3;
    transition: background 0.2s, transform 0.15s;
    padding-bottom: 4px;
}
.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.08);
}
.hero-prev { left: 0.75rem; }
.hero-next { right: 0.75rem; }

.hero-dots {
    position: absolute;
    bottom: 0.75rem;
    right: 1rem;
    display: flex;
    gap: 0.4rem;
    z-index: 3;
}
.hero-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}
.hero-dot:hover { background: rgba(255, 255, 255, 0.75); }
.hero-dot.active { background: #fff; transform: scale(1.25); }

.hero-overlay {
    position: absolute;
    left: 1.5rem;
    bottom: 1.25rem;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
    z-index: 2;
    pointer-events: none;
}
.hero-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    opacity: 0.9;
    margin-bottom: 0.15rem;
}
.hero-overlay strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
}
.hero-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.15rem;
}

/* ---------- Main layout ---------- */
.main-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 1.25rem;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    align-items: start;
}

/* ---------- Cards ---------- */
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1.1rem 1.2rem;
    box-shadow: 0 1px 3px rgba(106, 27, 154, 0.04);
}

.card-eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    color: var(--purple);
    font-weight: 700;
    margin-bottom: 0.2rem;
}
.card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

/* ---------- Events ---------- */
.event-list {
    list-style: none;
    border-top: 1px solid var(--line);
}
.event-list li {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--line);
}
.event-list li.empty {
    color: var(--muted);
    font-style: italic;
    padding: 0.9rem 0;
    font-size: 0.88rem;
    justify-content: center;
}
.event-time {
    font-weight: 700;
    color: var(--purple);
    font-size: 0.85rem;
    min-width: 50px;
}
.event-info strong { font-size: 0.9rem; }
.live-tag {
    color: var(--live);
    font-weight: 700;
    font-size: 0.75rem;
    text-decoration: none;
    cursor: pointer;
}
.live-tag:hover {
    text-decoration: underline;
}

.link-arrow {
    display: inline-block;
    margin-top: 0.75rem;
    color: var(--purple);
    font-weight: 600;
    font-size: 0.85rem;
}
.link-arrow:hover { text-decoration: underline; }

/* ---------- Hours ---------- */
.hours-list {
    list-style: none;
    border-top: 1px solid var(--line);
}
.hours-list li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.88rem;
}
.hours-list li span:first-child { color: var(--muted); flex-shrink: 0; }
.hours-list li span:last-child  {
    font-weight: 600;
    text-align: right;
    line-height: 1.4;
}

/* ---------- Donate ---------- */
.donate-section { padding-bottom: 1.5rem; }
.donate-card {
    background: linear-gradient(135deg, #6a1b9a, #4a148c);
    color: #fff;
    border-radius: 12px;
    padding: 1.4rem 1.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    box-shadow: 0 4px 14px rgba(106, 27, 154, 0.2);
}
.donate-card .card-eyebrow { color: #ffb300; }
.donate-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}
.donate-message { font-size: 0.95rem; opacity: 0.9; }
.donate-vipps {
    text-align: right;
    background: rgba(255, 255, 255, 0.12);
    padding: 0.7rem 1.1rem;
    border-radius: 8px;
    flex-shrink: 0;
}
.vipps-label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    opacity: 0.85;
    margin-bottom: 0.15rem;
}
.vipps-number {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffb300;
    letter-spacing: 0.04em;
}

/* ---------- Page main ---------- */
.page-main { flex: 1; padding-bottom: 2rem; }
.page-header {
    background: var(--purple-dark);
    color: #fff;
    padding: 2rem 0;
    text-align: center;
}
.page-header h1 { font-size: 1.8rem; margin-bottom: 0.25rem; }
.page-header p  { font-size: 0.95rem; opacity: 0.85; }

.content-blocks {
    display: grid;
    gap: 1rem;
    padding-top: 1.5rem;
    max-width: 800px;
}
.content-block {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1.4rem 1.5rem;
}
.content-block h2 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--purple);
    display: inline-block;
}
.content-block p { margin-bottom: 0.6rem; color: #333; }
.content-block p:last-child { margin-bottom: 0; }
.content-block ul { list-style: none; }
.content-block ul li {
    padding: 0.35rem 0 0.35rem 1.2rem;
    position: relative;
    color: #333;
}
.content-block ul li::before {
    content: "•";
    color: var(--purple);
    position: absolute;
    left: 0;
    font-weight: 700;
}
.content-block a {
    color: var(--purple);
    text-decoration: underline;
    font-weight: 500;
}
.content-block a:hover { color: var(--purple-dark); }

.donate-inline {
    background: #f4ecfa;
    padding: 0.7rem 1rem;
    border-radius: 6px;
    border-left: 3px solid var(--purple);
    margin-top: 0.5rem !important;
}

.contact-block p { font-size: 1rem; line-height: 1.7; }
.map-link { display: inline-block; margin-top: 0.4rem; }
.muted { color: var(--muted); font-size: 0.9rem; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--purple-dark);
    color: #d5bce6;
    padding: 0.8rem 0;
    font-size: 0.82rem;
    margin-top: auto;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.footer-links { display: flex; gap: 1rem; }
.footer-links a { color: #d5bce6; font-size: 0.82rem; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-contact { font-size: 0.78rem; color: #b892d1; }

/* ---------- Responsive ---------- */
@media (max-width: 780px) {
    .header-inner { flex-direction: column; align-items: flex-start; }
    .main-nav { gap: 0.85rem; font-size: 0.85rem; flex-wrap: wrap; }
    .main-grid { grid-template-columns: 1fr; }
    .hero-card { aspect-ratio: 1 / 1; max-height: none; }
    .hero-overlay strong { font-size: 1.2rem; }
    .hero-arrow { width: 30px; height: 30px; font-size: 1.3rem; }
    .hero-prev { left: 0.4rem; }
    .hero-next { right: 0.4rem; }
    .donate-card { flex-direction: column; align-items: stretch; text-align: center; }
    .donate-vipps { text-align: center; }
    .footer-inner { flex-direction: column; text-align: center; }
}