/* ============================================================
   Biserica Deo Gloria — stiluri
   Paletă din afișul oficial: navy / roșu / auriu
   ============================================================ */

:root {
  --navy: #1f3a5f;
  --navy-dark: #16293f;
  --navy-deep: #0f1d2e;
  --brand-red: #c0392b;
  --accent: #d98a3d;
  --background: #ffffff;
  --foreground: #1a1a1a;
  --muted: #6b7280;
  --surface: #f5f7fa;
  --radius: 16px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

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

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 29, 46, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.25rem;
  max-width: var(--max);
  margin: 0 auto;
}
.nav__brand { display: flex; align-items: center; gap: 0.7rem; }
.nav__logo {
  width: 44px; height: 44px;
  border-radius: 999px;
  background: #fff;
  object-fit: contain;
  padding: 2px;
}
.nav__brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav__title { color: #fff; font-weight: 700; text-transform: uppercase; font-size: 0.95rem; letter-spacing: 0.02em; }
.nav__subtitle { color: rgba(255,255,255,0.6); font-size: 0.7rem; margin-top: 1px; }
.nav__links { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
  color: rgba(255,255,255,0.72);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.nav__link:hover { background: rgba(255,255,255,0.06); color: #fff; }
.nav__link.is-active { background: rgba(255,255,255,0.12); color: #fff; }
.nav__live-dot {
  display: inline-block; width: 8px; height: 8px; margin-left: 0.4rem;
  background: var(--brand-red); border-radius: 999px; vertical-align: middle;
  animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.5rem; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: 0.2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
  color: #fff;
  text-align: center;
}
.hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(3px);
  transform: scale(1.05);
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(31,58,95,0.85), rgba(15,29,46,0.85) 60%, rgba(0,0,0,0.85));
}
.hero__content {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 6rem 1.25rem;
}
.badge {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.85);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.1; margin: 1.4rem 0 0; font-weight: 800; }
.hero h1 .accent { color: var(--accent); }
.hero__tagline { color: rgba(255,255,255,0.7); font-size: 1.1rem; margin-top: 1.3rem; }
.hero__cta { margin-top: 2.2rem; display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 0;
  transition: background 0.15s, transform 0.15s;
}
.btn--red { background: var(--brand-red); color: #fff; box-shadow: 0 8px 20px rgba(192,57,43,0.25); }
.btn--red:hover { background: #a93226; }
.btn--ghost { border: 1px solid rgba(255,255,255,0.3); color: #fff; background: transparent; }
.btn--ghost:hover { background: rgba(255,255,255,0.1); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-dark); }

/* ---------- Info card (homepage) ---------- */
.info-cards {
  max-width: 880px;
  margin: -3rem auto 0;
  padding: 0 1.25rem;
  position: relative;
  z-index: 2;
}
.info-cards__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}
.info-card { background: #fff; padding: 1.75rem 1.5rem; text-align: center; }
.info-card + .info-card { border-left: 1px solid rgba(0,0,0,0.08); }
.info-card__label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
.info-card__value { font-size: 1.4rem; font-weight: 700; color: var(--navy); margin: 0.4rem 0 0.2rem; }
.info-card__sub { font-size: 0.85rem; color: var(--muted); }
.info-card a.info-card__value { color: var(--brand-red); }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section--surface { background: var(--surface); }
.section--center { text-align: center; }
.section h2 { font-size: 1.9rem; color: var(--navy); margin: 0; font-weight: 700; }
.section__sub { color: var(--muted); margin-top: 0.5rem; }
.section__lead { font-size: 1.15rem; line-height: 1.7; color: rgba(26,26,26,0.72); max-width: 720px; margin: 1.4rem auto 0; }

.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.link-more { font-size: 0.9rem; font-weight: 600; color: var(--navy); }
.link-more:hover { text-decoration: underline; }

/* ---------- Event cards ---------- */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.event-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.event-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(0,0,0,0.12); }
.event-card__media { position: relative; aspect-ratio: 3 / 4; background: var(--surface); overflow: hidden; }
.event-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.event-card:hover .event-card__media img { transform: scale(1.05); }
.event-card__tag {
  position: absolute; left: 1rem; top: 1rem;
  background: rgba(31,58,95,0.9); color: #fff;
  padding: 0.25rem 0.75rem; border-radius: 999px;
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
}
.event-card__past {
  position: absolute; right: 1rem; top: 1rem;
  background: rgba(0,0,0,0.7); color: #fff;
  padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.7rem;
}
.event-card__body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.event-card__date { font-size: 0.85rem; font-weight: 600; color: var(--brand-red); }
.event-card__title { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin: 0.3rem 0; line-height: 1.3; }
.event-card__guest { font-size: 0.85rem; color: var(--muted); }
.event-card__desc { font-size: 0.9rem; color: rgba(26,26,26,0.7); margin-top: 0.6rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.event-card__more { margin-top: auto; padding-top: 1rem; font-size: 0.9rem; font-weight: 600; color: var(--navy); }

/* ---------- Page header ---------- */
.page-head { background: var(--navy-deep); color: #fff; text-align: center; padding: 4rem 1.25rem; }
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0; font-weight: 800; }
.page-head p { color: rgba(255,255,255,0.7); margin-top: 1rem; }

/* ---------- Event detail ---------- */
.detail-hero { background: var(--navy-deep); color: #fff; }
.detail-hero__top { max-width: var(--max); margin: 0 auto; padding: 1.5rem 1.25rem 0; }
.back-link { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.back-link:hover { color: #fff; }
.detail-hero__grid {
  max-width: var(--max); margin: 0 auto; padding: 2rem 1.25rem 4rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center;
}
.detail-hero__poster { max-width: 420px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 48px rgba(0,0,0,0.4); }
.detail-hero h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; margin: 1rem 0 0; font-weight: 800; }
.detail-hero__date { color: var(--accent); font-size: 1.1rem; font-weight: 600; margin-top: 0.8rem; }
.guest-box { margin-top: 1.5rem; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.05); border-radius: 12px; padding: 1rem; }
.guest-box__label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(255,255,255,0.5); }
.guest-box__name { font-size: 1.25rem; font-weight: 700; margin: 0.2rem 0 0; }
.guest-box__role { font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.detail-hero__desc { color: rgba(255,255,255,0.8); margin-top: 1.5rem; }
.admission { display: inline-block; margin-top: 1.5rem; background: var(--brand-red); color: #fff; padding: 0.5rem 1.25rem; border-radius: 999px; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }

.program { max-width: 760px; margin: 0 auto; padding: 4rem 1.25rem; }
.program h2 { font-size: 1.6rem; color: var(--navy); }
.program__item {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  background: var(--surface); border: 1px solid rgba(0,0,0,0.05);
  border-radius: 12px; padding: 1.2rem; margin-top: 1rem;
}
.program__day { font-weight: 700; color: var(--navy); }
.program__details { font-size: 0.9rem; color: var(--muted); }
.program__time { font-weight: 600; color: var(--brand-red); }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 3rem; }
.detail-box { background: #fff; border: 1px solid rgba(0,0,0,0.05); border-radius: 12px; padding: 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.detail-box__label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 600; }

/* ---------- Map ---------- */
.map { border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.map iframe { width: 100%; min-height: 320px; border: 0; display: block; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.contact-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 1.3rem; }
.contact-list__label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 600; }
.contact-list__value { font-weight: 500; color: var(--navy); margin-top: 0.2rem; }
.social-row { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 0.5rem; }
.social-chip { border: 1px solid rgba(0,0,0,0.1); padding: 0.5rem 1rem; border-radius: 999px; font-size: 0.85rem; font-weight: 500; color: var(--navy); }
.social-chip:hover { background: var(--surface); }

.donations { margin-top: 4rem; border-top: 1px solid rgba(0,0,0,0.05); padding-top: 3rem; }
.iban-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
.iban-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid rgba(0,0,0,0.05); border-radius: 12px; padding: 1.25rem; }
.iban-card__bank { font-weight: 700; color: var(--navy); }
.iban-card__label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-top: 0.25rem; }
.iban-card__iban { font-family: ui-monospace, "Courier New", monospace; font-size: 0.9rem; word-break: break-all; color: rgba(26,26,26,0.8); margin-top: 0.25rem; }
.iban-card .btn { margin-top: 1rem; align-self: flex-start; }

/* ---------- Live ---------- */
.live-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(192,57,43,0.9); color: #fff; padding: 0.4rem 1rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.live-badge__dot { width: 8px; height: 8px; background: #fff; border-radius: 999px; animation: pulse 1.5s infinite; }
.video-frame { max-width: 960px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: 0 20px 40px rgba(0,0,0,0.15); }
.video-frame__ratio { position: relative; aspect-ratio: 16 / 9; }
.video-frame__ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: rgba(255,255,255,0.8); }
.footer__grid { max-width: var(--max); margin: 0 auto; padding: 3rem 1.25rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer__brand { display: flex; align-items: center; gap: 0.7rem; }
.footer__brand img { width: 48px; height: 48px; border-radius: 999px; background: #fff; object-fit: contain; padding: 2px; }
.footer__brand-name { font-size: 1.1rem; font-weight: 700; color: #fff; }
.footer__tagline { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-top: 1rem; max-width: 24ch; }
.footer h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: #fff; margin: 0 0 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9rem; }
.footer a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); text-align: center; padding: 1.25rem; font-size: 0.8rem; color: rgba(255,255,255,0.5); }

/* ---------- Utilities ---------- */
.muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav { position: sticky; }
  .nav__inner { position: relative; }
  .nav__links { display: none; }
  .nav__links.is-open {
    display: flex; flex-direction: column; gap: 0.25rem;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy-deep);
    padding: 0.5rem 1rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 16px 32px rgba(0,0,0,0.4);
    z-index: 60;
  }
  .nav__links.is-open .nav__link {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: 10px;
  }
  .nav__links.is-open .nav__link.is-active { background: rgba(255,255,255,0.12); }
  .nav__toggle { display: block; }
  .nav__subtitle { display: none; }
  .info-cards__grid { grid-template-columns: 1fr; }
  .info-card + .info-card { border-left: 0; border-top: 1px solid rgba(0,0,0,0.08); }
  .events-grid { grid-template-columns: 1fr; }
  .detail-hero__grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .iban-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}
@media (min-width: 600px) and (max-width: 860px) {
  .events-grid { grid-template-columns: repeat(2, 1fr); }
}
