/*
Theme Name: Biserica Grosi - One Page
Author: Ekkode
Description: Site one-page pentru Biserica Penticostala Grosi: acasa, transmisie live, arhiva video, program. Textele si arhiva se editeaza din Aspect > Personalizeaza > Texte site.
Version: 1.2
Requires at least: 5.0
Text Domain: grosi-nou
*/

:root {
  --ink: #1c2230;
  --ink-soft: #4a5265;
  --paper: #faf8f4;
  --paper-alt: #f1ece3;
  --white: #ffffff;
  --gold: #b0893d;
  --gold-dark: #8e6c2a;
  --line: #e2dbcf;
  --live: #d33a2c;
  --header-h: 72px;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(28, 34, 48, .08);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--gold-dark); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 50;
  background: rgba(28, 34, 48, .0);
  transition: background .3s, box-shadow .3s;
}
.header.is-scrolled,
.header.is-open {
  background: rgba(28, 34, 48, .96);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .15);
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
}
.brand__mark {
  width: 38px; height: 38px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: grid; place-items: center;
}
.brand__mark svg { width: 20px; height: 20px; fill: var(--gold); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__small { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.brand__name { font-family: var(--serif); font-size: 26px; font-weight: 600; }

.nav { display: flex; gap: 6px; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  color: var(--white);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background .2s, border-color .2s, color .2s;
}
.nav__link:hover { border-color: rgba(255, 255, 255, .35); }
.nav__link.is-active { background: var(--gold); border-color: var(--gold); }

.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(211, 58, 44, .7);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(211, 58, 44, 0); }
  100% { box-shadow: 0 0 0 0 rgba(211, 58, 44, 0); }
}
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0; padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; margin: 5px 0;
  background: var(--white);
  transition: transform .25s, opacity .25s;
}
.header.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px 20px;
    background: rgba(28, 34, 48, .98);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .2s;
  }
  .header.is-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .nav__link { padding: 14px 18px; justify-content: flex-start; }
  .brand__name { font-size: 22px; }
}

/* ===== Hero ===== */
.hero {
  min-height: 92vh;
  min-height: 92svh;
  display: flex;
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(20, 24, 34, .75) 0%, rgba(20, 24, 34, .55) 45%, rgba(20, 24, 34, .85) 100%),
    url("img/acasa.jpg") center / cover no-repeat;
}
.hero__content { padding-top: var(--header-h); padding-bottom: 40px; max-width: 820px; margin-left: auto; margin-right: auto; text-align: center; }
.hero h1 { font-size: clamp(42px, 7vw, 76px); margin-bottom: .3em; }
.hero__lead { font-size: clamp(18px, 2.2vw, 21px); opacity: .9; max-width: 620px; margin: 0 auto 32px; }
.hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #e3c98f;
}
.eyebrow--dark { color: var(--gold-dark); }

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .03em;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--gold); color: var(--white); border: 1px solid var(--gold); }
.btn--primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn--ghost { color: var(--white); border: 1px solid rgba(255, 255, 255, .6); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }

/* ===== Program band ===== */
.band { background: var(--paper); padding: 88px 0; }
@media (max-width: 640px) { .band { padding: 64px 0; } }
.section-title { font-size: clamp(34px, 4.5vw, 48px); }
.band .section-title { text-align: center; margin-bottom: 36px; }

.schedule {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), 1fr);
  gap: 18px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
}
.card p { margin: 0; }
.card__day { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); }
.card__time { font-family: var(--serif); font-size: 32px; font-weight: 600; margin: 6px 0 4px !important; }
.card__desc { color: var(--ink-soft); font-size: 16px; }
@media (max-width: 900px) { .schedule { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .schedule { grid-template-columns: 1fr; } }

.contact {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 40px;
  margin-top: 40px;
}
.contact__item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
}
.contact__item svg {
  width: 44px; height: 44px; flex: none;
  padding: 11px;
  border-radius: 50%;
  background: var(--ink);
  fill: var(--gold);
}
.contact__item strong { display: block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); }
.contact__item:hover span { text-decoration: underline; }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section--alt { background: var(--paper-alt); }
.section-lead { color: var(--ink-soft); max-width: 680px; margin: 0 0 36px; }
@media (max-width: 640px) { .section { padding: 64px 0; } }

/* ===== Live ===== */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
}
.video-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.live__note { font-size: 16px; color: var(--ink-soft); margin-top: 16px; }

/* ===== Archive ===== */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter {
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.filter:hover { border-color: var(--gold); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }

.archive {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 960px) { .archive { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .archive { grid-template-columns: 1fr; } }

.video {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.video__player {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  background: #111 center / cover no-repeat;
  cursor: pointer;
}
.video__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play {
  position: absolute;
  top: 50%; left: 50%;
  width: 64px; height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: rgba(20, 24, 34, .75);
  display: grid; place-items: center;
  transition: background .2s, transform .2s;
}
.video__play svg { width: 26px; height: 26px; fill: var(--white); margin-left: 4px; }
.video__player:hover .video__play,
.video__player:focus-visible .video__play { background: var(--gold); transform: scale(1.06); }
.video__info { padding: 14px 18px 16px; }
.video__title { font-family: var(--serif); font-size: 22px; font-weight: 600; margin: 0; line-height: 1.2; }
.video__meta { font-size: 14px; color: var(--ink-soft); margin: 4px 0 0; }

.archive__more { margin-top: 36px; font-size: 16px; color: var(--ink-soft); }

/* ===== Footer ===== */
.footer { background: var(--ink); color: rgba(255, 255, 255, .75); font-size: 15px; padding: 36px 0; }
.footer strong { color: var(--white); }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; }
.footer p { margin: 0; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Bara de administrare WordPress (doar cand esti logat) */
body.admin-bar .header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .header { top: 46px; } }
