/* Betel Oradea – main stylesheet */

:root {
    --bg: #faf8f4;
    --bg-alt: #f2eee7;
    --surface: #ffffff;
    --ink: #1b1922;
    --muted: #686470;
    --line: #e6e1d8;
    --accent: #b22222;
    --accent-hover: #951b1b;
    --accent-soft: #fbeceb;
    --ok: #1f7a4d;
    --hero: #16141c;
    --hero-ink: #f6f3ee;
    --logo-filter: invert(1);

    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Fraunces", Georgia, "Times New Roman", serif;

    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(27, 25, 34, .04), 0 8px 24px rgba(27, 25, 34, .06);
    --header-h: 68px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #131118;
        --bg-alt: #19171f;
        --surface: #201d27;
        --ink: #f1eee9;
        --muted: #a29eab;
        --line: #2e2a36;
        --accent: #e0483f;
        --accent-hover: #f05a51;
        --accent-soft: #3a1d1e;
        --ok: #5cc493;
        --hero: #0d0c11;
        --logo-filter: none;
        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    }
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

img,
svg,
iframe {
    display: block;
    max-width: 100%;
}

h1, h2, h3 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

p {
    margin: 0 0 1em;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.muted {
    color: var(--muted);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}

.eyebrow-accent {
    color: var(--accent);
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: 600 15px/1 var(--font-body);
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-accent {
    background: var(--accent);
    color: #fff;
}

.btn-accent:hover {
    background: var(--accent-hover);
}

.btn-ghost {
    border-color: rgba(255, 255, 255, .28);
    color: var(--hero-ink);
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, .6);
}

.btn-small {
    min-height: 38px;
    padding: 0 18px;
    font-size: 14px;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: .6;
    cursor: progress;
    transform: none;
}

/* Pulsing live indicator */
.live-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    flex: none;
}

.live-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 1.8s ease-out infinite;
}

.btn-accent .live-dot {
    color: #fff;
}

@keyframes pulse {
    from { transform: scale(1); opacity: .7; }
    to { transform: scale(3); opacity: 0; }
}

/* ---------- Header ---------- */

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    height: var(--header-h);
    color: var(--hero-ink);
    transition: background-color .25s, color .25s, box-shadow .25s;
}

.site-header.is-scrolled {
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    color: var(--ink);
    box-shadow: 0 1px 0 var(--line);
}

.site-header.is-scrolled .brand img {
    filter: var(--logo-filter);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
}

.brand img {
    width: 28px;
    height: auto;
    transition: filter .25s;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.site-nav a:not(.btn) {
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    opacity: .82;
    transition: opacity .2s;
}

.site-nav a:not(.btn):hover {
    opacity: 1;
}

.nav-toggle {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
}

.nav-toggle span {
    position: absolute;
    left: 12px;
    right: 12px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .25s, top .25s;
}

.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }

.menu-open .nav-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .nav-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 760px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: fixed;
        inset: var(--header-h) 0 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 16px 24px 32px;
        background: var(--bg);
        color: var(--ink);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .2s, transform .2s, visibility .2s;
    }

    .site-nav a:not(.btn) {
        padding: 16px 0;
        border-bottom: 1px solid var(--line);
        font-family: var(--font-display);
        font-size: 24px;
        opacity: 1;
    }

    .site-nav .btn {
        margin-top: 24px;
        min-height: 52px;
        font-size: 16px;
    }

    .menu-open .site-nav {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    /* backdrop-filter would make the header the containing block for the
       fixed menu panel, shrinking it to the header's height */
    .menu-open .site-header {
        background: var(--bg);
        color: var(--ink);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .menu-open .site-header .brand img {
        filter: var(--logo-filter);
    }
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(60% 60% at 50% 0%, rgba(178, 34, 34, .28), transparent 70%),
        radial-gradient(40% 50% at 85% 100%, rgba(255, 255, 255, .06), transparent 70%),
        var(--hero);
    color: var(--hero-ink);
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: calc(var(--header-h) + 72px);
    padding-bottom: 104px;
    text-align: center;
}

.hero-logo {
    width: 72px;
    height: auto;
    margin-bottom: 28px;
    opacity: .95;
}

.hero .eyebrow {
    color: rgba(246, 243, 238, .7);
}

.hero h1 {
    font-size: clamp(48px, 9vw, 96px);
    font-weight: 500;
    letter-spacing: -0.02em;
}

.hero h1 .eyebrow {
    display: block;
    width: fit-content;
    margin: 0 auto 12px;
    font-family: var(--font-body);
    line-height: 1.65;
    letter-spacing: .12em;
}

.hero-lead {
    max-width: 620px;
    margin: 28px 0 40px;
    font-family: var(--font-display);
    font-size: clamp(18px, 2.2vw, 21px);
    font-style: italic;
    line-height: 1.55;
    color: rgba(246, 243, 238, .78);
}

.hero-lead cite {
    display: block;
    margin-top: 12px;
    font-family: var(--font-body);
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(246, 243, 238, .55);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.hero-next {
    margin: 20px 0 0;
    font-size: 15px;
    color: rgba(246, 243, 238, .6);
}

[hidden] {
    display: none !important;
}

.nav-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-live .live-dot {
    color: var(--accent);
}

.site-header:not(.is-scrolled) .nav-live .live-dot {
    color: #ff5a4f;
}

/* ---------- Sections ---------- */

.section {
    padding: 104px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-head {
    max-width: 640px;
    margin-bottom: 48px;
}

.section h2 {
    margin-bottom: 16px;
    font-size: clamp(34px, 5vw, 48px);
}

.section-head p:last-child {
    margin: 0;
    font-size: 18px;
    color: var(--muted);
}

@media (max-width: 760px) {
    .section { padding: 72px 0; }
    .section-head { margin-bottom: 32px; }
}

/* Embedded players */
.media-frame {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    min-height: 240px;
}

.media-frame > * {
    width: 100%;
}

.media-frame iframe {
    border: 0;
}

.media-frame-video {
    background: #000;
    min-height: 0;
}

.media-frame-video iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

/* The bisericilive embed caps its player at 800px; let it fill the frame */
.media-frame-video #blcPlayer1650496099 {
    display: flow-root !important;
    max-width: none !important;
}

.media-note {
    margin: 16px 0 0;
    font-size: 15px;
    color: var(--muted);
}

.media-note a {
    color: var(--ink);
    font-weight: 500;
}

/* ---------- Archive ---------- */

.archive-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px 16px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}

.archive-card {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.archive-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-sm);
    background: var(--line);
}

.archive-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.archive-card:hover .archive-thumb img {
    transform: scale(1.04);
}

.archive-playing {
    position: absolute;
    left: 8px;
    bottom: 8px;
    display: none;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.is-playing .archive-thumb {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.is-playing .archive-playing {
    display: block;
}

.archive-title {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.archive-card:hover .archive-title {
    color: var(--accent);
}

.archive-more {
    margin-top: 32px;
    text-align: center;
}

.btn-outline {
    border-color: var(--line);
    background: var(--surface);
    color: var(--ink);
}

.btn-outline:hover {
    border-color: var(--ink);
}

@media (max-width: 900px) {
    .archive-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Schedule ---------- */

.schedule {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.schedule-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.schedule-featured {
    border-color: transparent;
    background: var(--hero);
    color: var(--hero-ink);
}

.schedule-day {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.schedule-day h3 {
    font-size: 26px;
}

.schedule dl {
    display: grid;
    gap: 10px;
    margin: auto 0 0;
}

.schedule dl div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.schedule-featured dl div {
    border-color: rgba(255, 255, 255, .12);
}

.schedule dt {
    font-size: 14px;
    color: var(--muted);
}

.schedule-featured dt {
    color: rgba(246, 243, 238, .6);
}

.schedule dd {
    margin: 0;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--bg-alt);
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.badge-live {
    background: var(--accent);
    color: #fff;
}

.badge-live .live-dot {
    width: 6px;
    height: 6px;
}

@media (max-width: 960px) {
    .schedule { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
    .schedule { grid-template-columns: 1fr; }
}

/* ---------- Give ---------- */

.give {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 64px;
    align-items: center;
}

.give-copy p:not(.eyebrow) {
    font-size: 18px;
}

.give-card {
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.give-card-title {
    margin-bottom: 20px;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
}

.give-meta {
    display: grid;
    gap: 8px;
    margin: 0 0 24px;
}

.give-meta div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 15px;
}

.give-meta dt {
    color: var(--muted);
}

.give-meta dd {
    margin: 0;
    font-weight: 500;
    text-align: right;
}

.iban-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.iban-list li {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 12px 12px 12px 16px;
    border-radius: var(--radius-sm);
    background: var(--bg-alt);
}

.iban-currency {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--accent);
}

.iban {
    min-width: 0;
    overflow-wrap: anywhere;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 14px;
}

.copy-btn {
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    font: 500 13px/1.2 var(--font-body);
    cursor: pointer;
    transition: border-color .2s, color .2s;
}

.copy-btn:hover {
    border-color: var(--ink);
}

.copy-btn.is-done {
    border-color: var(--ok);
    color: var(--ok);
}

@media (max-width: 900px) {
    .give { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 420px) {
    .give-card { padding: 24px 18px; }
    .iban-list li { grid-template-columns: 1fr auto; gap: 4px 12px; }
    .iban-currency { grid-column: 1 / -1; }
    .iban { font-size: 12.5px; }
}

/* ---------- Contact ---------- */

.contact {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
    align-items: start;
}

.contact-info > p:not(.eyebrow) {
    font-size: 18px;
    color: var(--muted);
}

.contact-list {
    display: grid;
    gap: 20px;
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
}

.contact-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-list a {
    text-decoration: none;
    font-weight: 500;
}

.contact-list a:hover {
    color: var(--accent);
}

.icon {
    width: 40px;
    height: 40px;
    padding: 10px;
    flex: none;
    border-radius: 50%;
    background: var(--accent-soft);
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-list li:first-child a {
    line-height: 1.5;
    padding-top: 2px;
}

.contact-list li:not(:first-child) a {
    padding-top: 8px;
}

.contact-form {
    display: grid;
    gap: 18px;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.field {
    display: grid;
    gap: 6px;
}

.field label {
    font-size: 14px;
    font-weight: 500;
}

.field input,
.field textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.5 var(--font-body);
    transition: border-color .2s, box-shadow .2s;
}

.field textarea {
    resize: vertical;
    min-height: 130px;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.is-invalid {
    border-color: var(--accent) !important;
}

.check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 14px;
    color: var(--muted);
    cursor: pointer;
}

.check input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    flex: none;
    accent-color: var(--accent);
}

.check input.is-invalid {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.form-status {
    min-height: 1.5em;
    margin: 0;
    font-size: 15px;
    text-align: center;
}

.form-status.is-ok { color: var(--ok); }
.form-status.is-error { color: var(--accent); }

@media (max-width: 900px) {
    .contact { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 420px) {
    .contact-form { padding: 24px 18px; }
}

/* ---------- Footer ---------- */

.site-footer {
    background: var(--hero);
    color: var(--hero-ink);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
    padding-top: 48px;
    padding-bottom: 48px;
}

.social {
    display: flex;
    gap: 10px;
}

.social a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    transition: border-color .2s, background-color .2s;
}

.social a:hover {
    border-color: transparent;
    background: var(--accent);
}

.social svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.social svg.stroke {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.footer-meta {
    grid-column: 1 / -1;
    margin: 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: 14px;
    color: rgba(246, 243, 238, .55);
}

@media (max-width: 520px) {
    .footer-inner { grid-template-columns: 1fr; }
}
