/* =========================================================================
   Parohia Sf. Ecaterina și Sf. Acoperământ – stil „Death to the World”
   Culoarea de accent vine din setări: --accent (definită în _Layout).
   ========================================================================= */

:root {
    --accent: #C20303;
    --fundal: #0A0A0A;
    --text: #E8E8E8;
    --text-slab: #D0D0D0;
    --card-text: #2B2D42;
    --card-text-slab: #4A4C5E;
    --card-meta: #6A6C7E;
    --font-titlu: 'Oswald', Impact, sans-serif;
    --font-meniu: 'Mulish', sans-serif;
    --font-text: 'Source Sans 3', system-ui, sans-serif;
    --latime: 1200px;
    --spatiu-sectiune: 104px;
    --spatiu-lateral: 32px;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--fundal);
    color: var(--text);
    font-family: var(--font-text);
    font-size: 17px;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
}

p { margin: 0; }

h1, h2, h3, h4 {
    font-family: var(--font-titlu);
    margin: 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .01em;
}

a { color: #FFFFFF; }
a:hover { color: var(--text); }
a:focus-visible, button:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 3px; }

img { max-width: 100%; }

/* Fotografiile sunt alb-negru și capătă culoare la hover.
   Pe ecranele tactile (fără hover) rămân color. */
.foto { filter: grayscale(1) contrast(1.08); transition: filter .4s ease; }
.foto:hover, a:hover .foto, .card:hover .foto { filter: none; }
@media (hover: none) { .foto { filter: none; } }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.sari-la-continut { position: absolute; left: 16px; top: -60px; z-index: 10; background: #FFFFFF; color: #0A0A0A; padding: 10px 16px; border-radius: 4px; font-weight: 700; }
.sari-la-continut:focus { top: 16px; }

/* ---------- Texturi de fundal ---------- */
.tex-teal {
    background-color: #070808;
    background-image: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1.4px),
                      radial-gradient(ellipse at 50% 38%, #1B2120 0%, #0D1010 45%, #050505 85%);
    background-size: 4px 4px, 100% 100%;
}
.tex-negru {
    background-color: #0A0A0A;
    background-image: radial-gradient(rgba(255,255,255,.03) 1px, transparent 1.4px),
                      radial-gradient(ellipse at 50% 0%, #1E1E22 0%, #0A0A0A 70%);
    background-size: 4px 4px, 100% 100%;
}
.tex-gri {
    background-color: #1F1F1F;
    background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.4px),
                      radial-gradient(ellipse at 50% 50%, #3A3A3A 0%, #1F1F1F 55%, #0E0E0E 100%);
    background-size: 4px 4px, 100% 100%;
}
.tex-bleumarin {
    background-color: #11121A;
    background-image: radial-gradient(rgba(255,255,255,.03) 1px, transparent 1.4px);
    background-size: 4px 4px;
}

/* ---------- Așezare ---------- */
.sectiune { color: #FFFFFF; }
.sectiune + .sectiune--separata { border-top: 1px solid rgba(255,255,255,.08); }

.continut {
    max-width: var(--latime);
    margin: 0 auto;
    padding: var(--spatiu-sectiune) var(--spatiu-lateral);
    display: flex;
    flex-direction: column;
    gap: 48px;
}
.continut--ingust { max-width: 1100px; }
.continut--text { max-width: 960px; }
.continut--centrat { align-items: center; text-align: center; gap: 24px; }

.cap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}
.cap--lat { max-width: 860px; margin: 0 auto; gap: 22px; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 300px), 100%), 1fr));
    gap: 28px;
}
.grid--20 { gap: 20px; }
.grid--centrat { grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 250px), 100%), var(--max, 290px))); justify-content: center; }

.doua-coloane { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.doua-coloane > * { flex: 1 1 var(--baza, 460px); min-width: 0; }

.butoane { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

.proza { display: flex; flex-direction: column; gap: 20px; color: var(--text-slab); }
.proza--compact { gap: 12px; }

/* ---------- Tipografie ---------- */
.titlu-1 { font-size: clamp(44px, 7vw, 96px); line-height: 1.02; }
.titlu-2 { font-size: clamp(36px, 5vw, 64px); line-height: 1.05; }
.titlu-2--mare { font-size: clamp(40px, 6vw, 88px); line-height: 1; }
.titlu-2--urias { font-size: clamp(44px, 7vw, 96px); line-height: 1; }
.titlu-citat { font-size: clamp(30px, 4.4vw, 56px); line-height: 1.12; }

.supratitlu {
    font-family: var(--font-meniu);
    font-size: 14px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #BBBBBB;
    font-weight: 700;
}

.subtitlu {
    font-family: var(--font-titlu);
    font-size: clamp(19px, 2vw, 24px);
    font-style: italic;
    font-weight: 600;
    line-height: 1.4;
    color: var(--accent);
    max-width: 780px;
}
.subtitlu--neutru { color: var(--text); font-style: normal; font-weight: 500; }
.subtitlu--slab { color: var(--text-slab); }

.intro { font-size: 19px; color: var(--text-slab); max-width: 680px; }

.eticheta-sus {
    font-family: var(--font-titlu);
    font-size: 15px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
}
.eticheta-sus--deschis { color: var(--text); font-size: 18px; letter-spacing: .14em; }

.numar-mare { font-size: clamp(52px, 9vw, 128px); line-height: 1; color: #FFFFFF; }

/* ---------- Antet și meniu ---------- */
.antet { border-bottom: 1px solid rgba(255,255,255,.08); }
.antet__interior {
    max-width: var(--latime);
    margin: 0 auto;
    padding: 28px var(--spatiu-lateral) 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}
.antet__sigla { display: block; }
.antet__sigla img { display: block; width: 56px; height: 72px; object-fit: contain; filter: grayscale(1) brightness(1.6); }

.nav {
    font-family: var(--font-meniu);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px 34px;
    font-size: 16px;
    font-weight: 600;
}
.nav a {
    color: var(--text);
    text-decoration: none;
    padding: 10px 2px;
    border-bottom: 2px solid transparent;
    transition: border-color .3s ease, color .3s ease;
}
.nav a:hover, .nav a.activ { color: #FFFFFF; border-bottom-color: #FFFFFF; }
.nav a.nav__ajuta { font-weight: 800; border-bottom-color: var(--accent); }

.nav-comutator {
    display: none;
    align-items: center;
    gap: 10px;
    background: none;
    border: 1.5px solid rgba(255,255,255,.5);
    border-radius: 4px;
    color: #FFFFFF;
    font-family: var(--font-titlu);
    font-size: 16px;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 8px 16px;
    cursor: pointer;
}
.nav-comutator__icon, .nav-comutator__icon::before, .nav-comutator__icon::after {
    display: block; width: 20px; height: 2px; background: currentColor; position: relative;
}
.nav-comutator__icon::before, .nav-comutator__icon::after { content: ""; position: absolute; left: 0; }
.nav-comutator__icon::before { top: -6px; }
.nav-comutator__icon::after { top: 6px; }

@media (max-width: 760px) {
    .js .nav-comutator { display: inline-flex; }
    .js .nav { display: none; flex-direction: column; gap: 0; width: 100%; }
    .js .antet--deschis .nav { display: flex; }
    .nav a { padding: 12px 2px; }
}

/* ---------- Butoane și linkuri ---------- */
.btn {
    display: inline-block;
    font-family: var(--font-titlu);
    font-weight: 600;
    font-size: 17px;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 4px;
    border: 2px solid transparent;
    background: transparent; /* și pentru <button>, care altfel are fundalul gri al browserului */
    cursor: pointer;
    transition: background .3s ease, color .3s ease, border-color .3s ease, filter .3s ease;
}
.btn-alb { border-color: #FFFFFF; color: #FFFFFF; }
.btn-alb:hover { background: #FFFFFF; color: #0A0A0A; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.btn-accent:hover { color: #FFFFFF; filter: brightness(1.15); }

.citeste {
    font-family: var(--font-titlu);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--accent);
}
.citeste:hover { color: var(--accent); text-decoration: underline; }
.citeste--alb, .citeste--alb:hover { color: #FFFFFF; }
.citeste--inchis, .citeste--inchis:hover { color: var(--card-text); }

/* ---------- Carduri ---------- */
.card {
    background: #FFFFFF;
    color: var(--card-text);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.45);
    transition: transform .3s ease;
    display: flex;
    flex-direction: column;
}
.card:hover { transform: translateY(-4px); }
@media (prefers-reduced-motion: reduce) { .card, .card:hover { transition: none; transform: none; } }

.card--centrat { text-align: center; }
.card__corp { padding: 32px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card__corp--mic { padding: 24px; gap: 10px; }
.card__titlu { font-size: 28px; line-height: 1.15; color: var(--card-text); font-weight: 500; text-transform: none; }
.card__titlu--mic { font-size: 23px; line-height: 1.2; }
.card__text { color: var(--card-text-slab); font-size: 16px; }
.card__text--justificat p { text-align: justify; hyphens: auto; }
.card__text p + p { margin-top: 10px; }
.card__meta { font-size: 13px; color: var(--card-meta); }
.card__jos { margin-top: auto; padding-top: 8px; }
.card__imagine { display: block; width: 100%; object-fit: cover; }
.card__imagine-loc {
    height: 160px; background: #3A3A3A; display: flex; align-items: center; justify-content: center;
}
.card__imagine-loc img { width: 40px; opacity: .35; filter: grayscale(1) brightness(1.6); }

/* Cardurile cu icoane (hramuri) */
.card__icoana { display: flex; justify-content: center; }
.card__icoana img { display: block; width: 100%; object-fit: contain; }

/* ---------- Bara de progres ---------- */
.progres { height: 10px; background: #E4E4E8; border-radius: 99px; overflow: hidden; }
.progres--gros { height: 12px; }
.progres__bara { height: 100%; background: var(--accent); }
.progres__text { font-size: 15px; font-weight: 700; color: var(--card-text); }

/* ---------- Program liturgic ---------- */
.zi {
    background: #16171F;
    border: 1px solid #2E3040;
    border-radius: 8px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: background .35s ease, border-color .35s ease;
}
.zi:hover { background: #22243A; border-color: #55586F; }
.zi__nume { font-size: 26px; color: #FFFFFF; padding-bottom: 6px; }
.zi--duminica { background: var(--accent); border-color: var(--accent); }
.zi--duminica:hover { background: var(--accent); border-color: var(--accent); filter: brightness(1.15); }
.zi--nota { background: none; border: 1px dashed #55586F; font-size: 15px; color: #C8CAD8; gap: 8px; }
.zi--nota:hover { background: none; border-color: #55586F; }
.zi--nota .zi__nume { font-size: 22px; padding-bottom: 4px; }

.slujba { display: grid; grid-template-columns: 62px 1fr; }
.slujba__ora { font-family: var(--font-titlu); font-weight: 600; color: #FFFFFF; }
.slujba__nota { grid-column: 2; font-size: 14px; line-height: 1.4; color: #9A9CB0; font-style: italic; margin-bottom: 6px; }
.zi--duminica .slujba__nota { color: rgba(255,255,255,.8); }

/* ---------- Secțiuni speciale ---------- */
.hero__titlu { display: flex; flex-direction: column; font-size: clamp(34px, 5.4vw, 72px); line-height: 1.08; color: #FFFFFF; }
.hero__titlu-mic { font-size: .45em; letter-spacing: .18em; color: var(--accent); padding-bottom: 1.6em; }
.hero__titlu-si { font-size: .6em; color: var(--accent); padding: 1.2em 0; }
.hero__icoana { display: block; width: 260px; height: 346px; object-fit: contain; }
.hero__imagine { width: 100%; aspect-ratio: 2212 / 1653; background: #111111; overflow: hidden; }
.hero__imagine img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Filmul din fundalul primei secțiuni (Setări → Aspect), ca la deathtotheworld.com (Kubio): sub film stă imaginea lui
   (pusă de site.js), iar playerul YouTube devine vizibil imediat ce e gata, fără să aștepte să ruleze. Safari pe iPhone
   pornește singur doar filmele vizibile pe ecran; un player ascuns până rulează nu ar porni niciodată. */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero__video {
    position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
    container-type: size; background: center / cover no-repeat;
}
/* Acoperă tot cadrul (ca object-fit: cover), oricare ar fi proporțiile. */
.hero__video iframe {
    position: absolute; top: 50%; left: 50%; border: 0; pointer-events: none;
    width: max(100cqw, 177.78cqh); height: max(100cqh, 56.25cqw);
    transform: translate(-50%, -50%);
    visibility: hidden;
}
.hero__video--gata iframe { visibility: visible; }
/* Playerul Facebook nu are încă API ca YouTube: rămâne ascuns până rulează (pe telefoane nu pornește singur). */
.hero__video--facebook { opacity: 0; transition: opacity 1.6s ease; }
.hero__video--facebook.hero__video--porneste { opacity: 1; }
.hero__video--facebook iframe { visibility: visible; }
/* Strat întunecat peste film, ca textul să rămână lizibil. */
.hero__video::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 45%, rgba(5,5,5,.45) 0%, rgba(5,5,5,.72) 70%), rgba(5,5,5,.2);
}
.hero--video .hero__titlu, .hero--video .intro, .hero--video .supratitlu { text-shadow: 0 2px 18px rgba(0,0,0,.6); }
/* Playerul Facebook (site.js) își pune singur dimensiuni fixe pe elementele lui; aici acoperă tot cadrul, ca filmul YouTube. */
.hero__video--facebook .fb-video, .hero__video--facebook .fb-video > span {
    position: absolute !important; inset: 0; width: 100% !important; height: 100% !important;
}
.hero__video--facebook iframe {
    width: max(100cqw, 177.78cqh) !important; height: max(100cqh, 56.25cqw) !important;
}
/* Imaginea animată pentru telefoane și tablete (Setări → Aspect), în locul filmului, pe care iPhone-ul nu îl pornește singur.
   Aceeași condiție de ecran ca în StocareAnimatii.MediaTelefon și site.js; pe calculator nu se arată (și nu se descarcă). */
.hero__animatie { display: none; }
@media (prefers-reduced-motion: no-preference) and (max-width: 640px), (prefers-reduced-motion: no-preference) and (hover: none) and (pointer: coarse) {
    .hero__animatie { display: block; position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
    .hero__animatie picture, .hero__animatie img { display: block; width: 100%; height: 100%; }
    .hero__animatie img { object-fit: cover; }
    /* Strat întunecat peste imagine, ca textul să rămână lizibil (ca la film). */
    .hero__animatie::after {
        content: ""; position: absolute; inset: 0;
        background: radial-gradient(ellipse at 50% 45%, rgba(5,5,5,.45) 0%, rgba(5,5,5,.72) 70%), rgba(5,5,5,.2);
    }
    .hero--animatie .hero__titlu, .hero--animatie .intro, .hero--animatie .supratitlu { text-shadow: 0 2px 18px rgba(0,0,0,.6); }
}

/* Transmisiunea live (audio), pe pagina Acasă. */
.live { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.live__buton { display: inline-flex; align-items: center; gap: 12px; min-width: 210px; justify-content: center; }
.live__icon {
    width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 13px;
    border-color: transparent transparent transparent currentColor;
}
.live[data-stare="canta"] .live__icon, .live[data-stare="incarca"] .live__icon {
    width: 12px; height: 15px; border-width: 0 4px; border-color: currentColor;
}
.live__stare { min-height: 1.5em; color: var(--text-slab); font-size: 16px; }
.live[data-stare="canta"] .live__stare::before {
    content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 10px;
    background: var(--accent); vertical-align: 1px; animation: live-puls 1.6s ease-in-out infinite;
}
@keyframes live-puls { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .live[data-stare="canta"] .live__stare::before { animation: none; } }
.live__audio { width: min(420px, 100%); }
html.js .live__audio { display: none; }
html:not(.js) .live__buton, html:not(.js) .live__stare { display: none; }

.video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 90vh; overflow: hidden; background: #111111; text-decoration: none; }
.video img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.video__strat {
    position: absolute; inset: 0; background: rgba(0,0,0,.55);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
}
.video__titlu { font-family: var(--font-titlu); font-weight: 700; text-transform: uppercase; font-size: clamp(28px, 4vw, 56px); line-height: 1.05; color: #FFFFFF; text-align: center; padding: 0 24px; }
.video__buton { width: 96px; height: 68px; border-radius: 14px; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.video__text { font-family: var(--font-meniu); color: #FFFFFF; font-weight: 700; font-size: 16px; }

.imagine-cadru { border-radius: 8px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.imagine-cadru img { display: block; width: 100%; object-fit: cover; }

.date-bancare { width: 100%; max-width: 560px; padding: 30px; gap: 6px; font-size: 16px; }
.date-bancare b { white-space: nowrap; }

.etichete { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 920px; }
.eticheta {
    font-family: var(--font-titlu); font-size: 15px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
    color: #FFFFFF; border: 1.5px solid rgba(255,255,255,.55); border-radius: 4px; padding: 8px 16px;
}

.anunt-gol { text-align: center; color: var(--text-slab); max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; align-items: center; }

/* ---------- Articol ---------- */
.articol { max-width: 760px; margin: 0 auto; }
.articol__continut { color: var(--text-slab); font-size: 18px; display: flex; flex-direction: column; gap: 1em; }
.articol__continut h2, .articol__continut h3 { color: #FFFFFF; margin-top: .6em; }
.articol__continut img { height: auto; border-radius: 8px; }
.articol__continut h2 { font-size: clamp(26px, 3.4vw, 34px); }
.articol__continut h3 { font-size: clamp(21px, 2.6vw, 25px); }

/* Textul formatat din consolă (articole și textele din pagini). Textele din pagini moștenesc culoarea
   secțiunii în care apar (unele sunt pe fundal deschis), deci nu primesc culori fixe. */
.articol__continut > *, .proza > * { margin: 0; }
.articol__continut ul, .articol__continut ol, .proza ul, .proza ol { padding-left: 1.4em; display: flex; flex-direction: column; gap: .4em; }
.articol__continut blockquote, .proza blockquote { border-left: 3px solid var(--accent); padding: .2em 0 .2em 1.1em; font-style: italic; }
.articol__continut a, .proza a { color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.articol__continut a:hover, .proza a:hover { color: var(--accent); }
.articol__continut hr { width: 100%; border: 0; border-top: 1px solid rgba(255,255,255,.2); margin: .6em 0; }
.articol__continut strong, .articol__continut blockquote { color: #FFFFFF; }

/* ---------- Subsol ---------- */
.subsol { background: #000000; color: #CCCCCC; border-top: 1px solid rgba(255,255,255,.08); }
.subsol a { text-decoration: none; }
.subsol__interior { max-width: var(--latime); margin: 0 auto; padding: 80px var(--spatiu-lateral) 40px; display: flex; flex-direction: column; gap: 52px; }
.subsol__coloane { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 40px; text-align: center; }
.subsol__coloana { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.subsol__titlu { font-size: 26px; color: #FFFFFF; padding-bottom: 6px; }
.subsol__rand { display: flex; align-items: center; gap: 12px; }
.subsol__rand a { color: var(--text); overflow-wrap: anywhere; }
.subsol__jos {
    border-top: 1px solid #2A2A2A; padding-top: 24px; display: flex; flex-wrap: wrap;
    justify-content: space-between; align-items: center; gap: 16px; font-size: 14px; color: #999999;
}

.social-lista { display: flex; gap: 14px; padding-top: 6px; }
.social {
    width: 52px; height: 52px; border-radius: 999px; border: 1.5px solid var(--text);
    display: flex; align-items: center; justify-content: center; transition: background .3s ease;
}
.social:hover { background: rgba(255,255,255,.12); }

.harta {
    width: 100%; min-height: 360px; border-radius: 8px; background: #151515; border: 1px solid #2A2A2A;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
    text-align: center; padding: 24px; overflow: hidden;
}
.harta iframe { width: 100%; height: 440px; border: 0; display: block; }
.harta--iframe { padding: 0; }
.harta__nota { font-size: 14px; color: var(--text-slab); max-width: 520px; }
.harta__nota a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
html:not(.js) .harta__buton { display: none; }
.harta__adresa { font-family: var(--font-titlu); text-transform: uppercase; font-size: clamp(20px, 3vw, 28px); font-weight: 600; color: #FFFFFF; }

/* ---------- Ecrane mici ---------- */
@media (max-width: 640px) {
    :root { --spatiu-sectiune: 72px; --spatiu-lateral: 20px; }
    .continut { gap: 36px; }
    .card__corp { padding: 24px; }
    .hero__icoana { width: 200px; height: 266px; }
    .btn { padding: 13px 22px; font-size: 16px; }
    .date-bancare { padding: 22px; }
    .subsol__interior { padding-top: 56px; }
}
